# evaluate at particular values

Posted 8 years ago
9649 Views
|
2 Replies
|
1 Total Likes
|
 Hi all. I would like to evaluate "2cosv+2cosvln(usinv)" at (u=8,v=5). What command can I give Mathematica to do this? I am overwhelmed by the documentation, and surprisingly, I can't find an answer to this on google. I'd have thought that many users would have asked this question already!Thank you. EDIT: I tried "Evaluate[2 Cos[v] + 2 Cos[v]*Log[u Sin[v]], {8, 5}]", but did not get a numerical answer. :/
2 Replies
Sort By:
Posted 8 years ago
Posted 8 years ago
 From the notation of your question I assume you are using Mathematica and not WolframAlpha to do this.If so then look up ReplaceAll in the Mathematica documentation. ReplaceAll[2 Cos[v] + 2 Cos[v]*Log[u Sin[v]], {u->8, v->5}] Many functions in Mathematica have an abbreviated form, like this one for ReplaceAll. 2 Cos[v] + 2 Cos[v]*Log[u Sin[v]]/.{u->8, v->5} Using the abbreviated form can be somewhat confusing for a new user and sometimes the documentation doesn't clearly show the use of both the un-abbreviated and the abbreviated forms, but if you can understand one way of getting what you need then make some notes for future reference and do whatever works for you.If you want that result converted into decimals then look up the N function in the documentation.Then you may or may not want to think about why the result is a complex number.