MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to force numeric output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115639] Re: How to force numeric output
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Mon, 17 Jan 2011 05:38:18 -0500 (EST)

On 1/16/11 at 5:55 AM, ramsey2879 at msn.com (KenR) wrote:

>On Jan 15, 4:45 am, KenR <ramsey2... at msn.com> wrote:
>>I am new to Mathematica and cant seem to get it to give a numeric
>>answer to

>>input    y = 5; x = floor[sqrt[y+1.0]]; x.

>>instead of a numeric it gives "out floor[sqrt[6.0]]"

>Thanks to those who e-mail me I am aware that the functions Floor
>and Sqrt must be capitalized.  It still apparently will not work
>because Mathematica does not know whether a positive or negative
>answer is desired.

What do you mean by "will not work"? I get

In[1]:= y = 5; x = Floor[Sqrt[y + 1.0]]

Out[1]= 2

In[2]:= $Version

Out[2]= 8.0 for Mac OS X x86 (64-bit) (November 6, 2010)

Do you get something different? Are you expecting something different?



  • Prev by Date: Re: Solve fails with this simple inequality problem
  • Next by Date: Installing packages
  • Previous by thread: Re: How to force numeric output
  • Next by thread: Re: How to force numeric output