Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9737
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: evaluating functions and displaying results numerically |
| Date | 2012-04-22 10:06 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jn0l72$4th$1@smc.vnet.net> (permalink) |
| References | <201204210433.AAA29272@smc.vnet.net> |
Correct, the result of Sin[1] is _exactly_ Sin[1], whereas Sin[1.] will give you a decimal result that approximates the exact value. This is one of the most basic ideas of Mathematica -- that it can deal with exact symbolic quantities, like Pi or E or Sqrt[2] or Sin[1]. Perhaps you need to read some of the introductory tutorials provided with Mathematica. On 4/21/12 12:33 AM, Eduardo Fontana wrote: > Once in a while a face a problem with Mathematica in which I cannot > get a straightforward numerical output. > I have a function defined in mathematica, I try to evaluate the > function with numerical arguments and mathematica returns a replica of > my function with the same arguments. It must be something I set > without noticing. I cannot get numerical results at all. > In another instance, I have a summation of about 1000 terms defined as > a function of 3 arguments. When I use numerical arguments, instead of > Mathematica calculating a numerical result it generates a symbolic > output with all 1000 terms. Even if a try something very simple such > as > In[1]: Sin[1] > the output is > Out[1]: Sin[1] > Could anyone give me a clue on this? > regards > -- Murray Eisenberg murray@math.umass.edu 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
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Re: evaluating functions and displaying results numerically Murray Eisenberg <murray@math.umass.edu> - 2012-04-22 10:06 +0000 Re: evaluating functions and displaying results numerically prof.eduardofontana@gmail.com - 2012-04-24 09:32 +0000
csiph-web