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.