Quantcast
Channel: MaplePrimes - Questions and Posts tagged with solve
Viewing all articles
Browse latest Browse all 1089

Why does `solve` miss the solutions without warnings?

$
0
0

The output RealDomain:-solve(x**2 + 2*cos(x) = (Pi/3)**2 + 1, [x]) means that there is no real solution, but clearly, both x = -Pi/3 and x = +Pi/3 satisfy the original equation: 

So, why does `solve` lose the real solutions without any warning messages? 
Code: 

restart;eq := 9*(x^2 + 2*cos(x)) = Pi^2 + 9;RealDomain:-solve(eq, [x]);[]:-solve({eq, x >= 0}, [x]); # as (lhs - rhs)(eq) is an even function []

Viewing all articles
Browse latest Browse all 1089

Trending Articles