Re: How to force numeric output

*To*: mathgroup at smc.vnet.net*Subject*: [mg115650] Re: How to force numeric output*From*: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>*Date*: Mon, 17 Jan 2011 05:40:26 -0500 (EST)*References*: <igrqb1$qmq$1@smc.vnet.net> <iguirf$8tl$1@smc.vnet.net>

If you captitalize the functions ***AND*** remove the point after the x everything should work fine. No need for Assuming or whatsoever. What you are refering to as a similar problem has absolutely nothing to do with your case. Cheers -- Sjoerd kOn Jan 16, 11:55 am, KenR <ramsey2... at msn.com> 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]]" > > > what am I doing wrong? > > > I have Mathematica 8.0 > > > Thankyou, Kenneth Ramsey > > I was looking at past posts and came upon a similar situation. 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. > > A similar situation was posted below where the sqrt of meter^2 etc was > desired. A reader responded to write the code "Assuming[ > {Positive[Meter], Positive[Second]}, > Refine[(Sqrt[Meter^2/Second^2] Second)/Meter^2] > > How would I invoke a similar solution to my case?