Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: evaluating functions and displaying results

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126167] Re: evaluating functions and displaying results
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Sun, 22 Apr 2012 06:07:23 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201204210433.AAA29272@smc.vnet.net>

>From the tutorial on mathematical functions:   Mathematica tries to give exact values for mathematical functions when you give it exact input.  The problem here is that you are giving an exact argument. All you need to do is append a decimal point to the argument:
In[1]:= Sin[1.]
Out[1]= 0.841471
Alternatively, evaluate the numerical value:
In[2]:= N[Sin[1]]Out[2]= 0.841471
-Tomas

> Date: Sat, 21 Apr 2012 00:33:05 -0400
> From: prof.eduardofontana at gmail.com
> Subject: evaluating functions and displaying results numerically
> To: mathgroup at smc.vnet.net
>
> 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
>


  • Prev by Date: Re: evaluating functions and displaying results numerically
  • Next by Date: Re: evaluating functions and displaying results numerically
  • Previous by thread: Re: evaluating functions and displaying results numerically
  • Next by thread: Re: evaluating functions and displaying results numerically