MathGroup Archive 2011

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

Search the Archive

Re: How to force numeric output

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

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> wrote:
> On Jan 15, 4:45 am, KenR <ramsey2... at> 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?

  • Prev by Date: Re: Making a table with unlinked sliders
  • Next by Date: Re: How to force numeric output
  • Previous by thread: Re: How to force numeric output
  • Next by thread: Re: How to force numeric output