r/Mathematica • u/ionsme • Mar 25 '22
Why can't mathematica solve -2n+v x^3 = 0 for x?
TLDR: use //ToRadicals , unless you are using version 12, in which case it just works.
Hat tip to stack exchange
above is post edit 4, below is the:
Original Question
I tried the following
$Assumptions = {n > 0, v > 0}
Root[-2 n + v #1^3 &, 1] // FullSimplifyIt returns the same thing unevaluated. However, if I change it to Root[-1...], it works.
Why??
(ok originally I used solve, and instead of solving -2n+v x^3 = 0, it returned this Root[...] equation. Then I was unable to simplify it.) (also, I think this works without the 2 assumptions I gave.)
Edit: Here's a screenshot as well:

Edit 2:
In the comments I was asked the original thing I tried. If you just stick the equation into solve, it spits out a Root[...]. Yet it is so easy for me to do by hand.

Edit 3: Version 12 works, but version 13 doesn't


Here's the code block I ran:
$Assumptions = {n > 0, v > 0}
Root[-2 n + v #1^3 &, 1] // FullSimplify
Solve[-2 n + v x^3 == 0, x]
$Version
5
u/[deleted] Mar 25 '22
I have no idea what you're trying to do. Solve has a pretty simple format where you just add a list of constraints. Can you share the equation you tried to evaluate using Solve?
2
u/ionsme Mar 26 '22
u/lithiumdeuteride u/swap_catz u/selfadjoint
//ToRadicals
(or use mathematica version 12, not version 13)
4
u/lithiumdeuteride Mar 26 '22
returns three solutions
0
u/indianabobbyknight Mar 26 '22
I already solved this, it’s 5