On 29 Nov., 11:52, smichr <[email protected]> wrote:
> If an equation is of the form f(x)**n = c and you only want the values
> of x corresponding to c**(1/n) rather than the n roots of c what would
> you expect to use for the solve hint? e.g. what should 'foo' be below?
>
> >>> solve((x-1)**3-3)
>
> [1 - (-3)**(1/3), 1 + I*(-3)**(1/3)*3**(1/2)/2 + (-3)**(1/3)/2, 1 -
> I*(-3)**(1/3)*3**(1/2)/2 + (-3)**(1/3)/2]
>
> >>> solve((x-1)**3-3, hint='foo')
>
> [1 + 3**(1/3)]

See mpmath.nthroot.

Vinzent

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to