|
[Date Index]
[Thread Index]
[Author Index]
Re: Real numerical computations
- To: mathgroup at smc.vnet.net
- Subject: [mg71767] Re: Real numerical computations
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Tue, 28 Nov 2006 06:04:21 -0500 (EST)
On 11/27/06 at 4:04 AM, jcsantos at fc.up.pt (José Carlos Santos) wrote:
>With Mathematica, if I type
>N[(-1.)^(1/3)]
>I get
>0.5 + 0.866025 i
>This is correct, of course, but I would like to get -1. instead. How
>do I tell Mathematica that I want a real result (if there is one)?
Take a look at the package Miscellaneous`RealOnly`
i.e.
In[1]:=
<<Miscellaneous`RealOnly`
In[2]:=
(-1)^(1/3)//N
Out[2]=
-1.
--
To reply via email subtract one hundred and four
Prev by Date:
Re: Descending order
Next by Date:
Re: Please help carry out the integral
Previous by thread:
Real numerical computations
Next by thread:
Re: Real numerical computations
|