MathGroup Archive 2008

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

Search the Archive

RE : [mg94405] branch of (-1)^(1/3)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94444] RE : [mg94405] branch of (-1)^(1/3)
  • From: "Jaccard Florian" <Florian.Jaccard at he-arc.ch>
  • Date: Sun, 14 Dec 2008 07:33:18 -0500 (EST)
  • References: <200812121154.GAA27892@smc.vnet.net>

You could for example create you n-th root function :

myNthRoot[x_,n_]:=Piecewise[{{x^(1/n),x>=0},{-(-x)^(1/n),x<0}}]

Or :

myNthRoot[x_,n_]:=x/.ToRules[Reduce[y^n==x,y,Reals]]

An then :

myNthRoot[-1,3]  will give you -1 like you expect.

Regards,

F.Jaccard


________________________________

De: slawek [mailto:human at site.pl]
Date: ven. 12.12.2008 12:54
=C0: mathgroup at smc.vnet.net
Objet : [mg94405] branch of (-1)^(1/3)



Is a simple way to choose the branch of (-1)^(1/3) ?

Mathematica gives a (correct) non-real answer. It is ok, but I need the =
(-1)
as the output when I input (1)^(1/3)  because I know that it is a =
solution
of real-valued problem.

Is any "standard way" to pick up a correct (i.e. arbitrary) root of
(-1)^(1/n) instead the default?

slawek






  • Prev by Date: Re: branch of (-1)^(1/3)
  • Next by Date: Re: Optimized structure of an equation
  • Previous by thread: Re: branch of (-1)^(1/3)
  • Next by thread: Re: branch of (-1)^(1/3)