Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5745
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Simplifying radicals |
| Date | 2011-10-21 10:25 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j7rhb4$hc7$1@smc.vnet.net> (permalink) |
| References | <j7p1s8$5ko$1@smc.vnet.net> |
On Thu, 20 Oct 2011 12:49:28 +0100, Tom De Vries <tidetabletom@gmail.com>
wrote:
> Hi, I'm working with some introductory topics in radicals.
>
> I know that Mathematica assumes things about the domain used in
> problems, so the principal cube root of a negative number will be
> complex... or something like that..
>
> I'm way down at the lower high school level simply working with cube
> roots of negative numbers and wanting a negative number result.
>
> I know there are ways of using assumptions and solving over the reals,
> etc.
>
> Is there any EASY way I can simply ask for the cube root of -729 and get
> -9?
>
> TOM
>
negativeCubeRoot[num_?Negative] := Block[{x},
x /. ToRules@Reduce[num == x^3 && x < 0, x, Reals]
];
negativeCubeRoot[-729]
-9
negativeCubeRoot[-150]
-5^(2/3) 6^(1/3)
negativeCubeRoot[-73.8]
-4.19455
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Simplifying radicals Tom De Vries <tidetabletom@gmail.com> - 2011-10-20 11:49 +0000
Re: Simplifying radicals "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-10-21 10:25 +0000
Re: Simplifying radicals dimitris <dimmechan@yahoo.com> - 2011-10-21 10:29 +0000
Re: Simplifying radicals dimitris <dimmechan@yahoo.com> - 2011-10-22 10:15 +0000
Re: Simplifying radicals Ray Koopman <koopman@sfu.ca> - 2011-10-23 10:35 +0000
Re: Simplifying radicals Tom <tidetabletom@gmail.com> - 2011-10-24 09:19 +0000
csiph-web