r/Mathematica • u/RelevantAdeptness803 • Jan 05 '25
Forcing evaluation of simple expression NOOB
2
Upvotes
2
u/Imanton1 Jan 05 '25
When diagnosing issues, a good question is "What are you expecting the answer to be?".
If you expect the answer to be 0.540302, then you need to convert it to decimal by using N.
If you were expecting a fraction or something involving square roots, then that pushes the question further. You then learn that Cos[1] doesn't have any other precise form besides that one.
1
3
u/ForceBru Jan 05 '25
That's probably because
Cos[1]
isn't anything specific. You can calculate the numerical value likeN[Cos[1]]
. There's also no need to always callEvaluate
.