MathGroup Archive 2010

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

Search the Archive

Re: evaluate the floor s to yield a number

  • To: mathgroup at
  • Subject: [mg109011] Re: evaluate the floor s to yield a number
  • From: Murray Eisenberg <murray at>
  • Date: Sat, 10 Apr 2010 06:53:37 -0400 (EDT)

What symbolic system are your trying to use?  Built-in objects in 
Mathematica have names beginning with upper-case letters; function calls 
surround their arguments with square-brackets, not parentheses.

In any case, I don't see any "s" in the output.

The relevant Mathematica function is -- guess what! -- Floor to 
calculate the floor of something. Of course you cannot expect it to do 
an actual evaluation of the Floor of something unless all the variables 
inside the argument already have actual numeric values.

On 4/9/2010 3:34 AM, John Ertle Jr. wrote:
> In[82]:= J =
>   367*y + floor (7*(y + floor ((m + 9)/12))/4) + int (275*m/9) + da +
>    1721013.5
> Out[82]= 2.44254*10^6 + 7/4 floor (1966 + (17 floor)/12) + (2200 int)/
>   9
> How do you evaluate the floor s in the output in this example to yield a number for the Julian Date.

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: Plot and advanced filling
  • Next by Date: Formatting a symbol without evaluating it
  • Previous by thread: Re: evaluate the floor s to yield a number
  • Next by thread: List Manipulation: Conditionally changing y value when x value meets some criteria