MathGroup Archive 2003

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

Search the Archive

Re: [newbie] can't get the answer

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43143] Re: [newbie] can't get the answer
  • From: Bill Rowe <listuser at earthlink.net>
  • Date: Thu, 14 Aug 2003 05:07:59 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 8/13/03 at 7:49 AM, gjgjdt at xs4all.nl (Promania Corasna) wrote:

> I'm a newbie in using mathematica 5. I've searched over the internet, but I
> can't find out how to get the answer to my formula. This is the formula, I
> have to calculate:

> cosh(sinh(97))+(sin(42)+sinh(e^2))/1

> This is the answer of mathematica:
 
> 42\ sin + 97\ cosh\ sinh + e\^2\ sinh\)

By design Mathematica returns exact answers anytime you give it exact values to work with. You can convert such exact values to a number with whatever precision you desire using N.

For your example.

Cosh[Sinh[97]]+(Sin[42]+Sinh[E^2])/1//N

will result in a number with the default machine precision.

An alternative way to get always get an numeric result is to input the arguments as inexact numbers. For example, if instead of 97 you input 97.0, Mathematica would output a machine precision number as the answer.


  • Prev by Date: Re: Nonlinear fit for a non-differentiable function
  • Next by Date: Re: Evaluating a polynomial on a matrix; matrix computations over a finite field
  • Previous by thread: Re: [newbie] can't get the answer
  • Next by thread: RE: [newbie] can't get the answer