How to force numeric evaluation?

I need to evaluate the PolyLog function at some points, but I'm interested in numeric values. E.g. PolyLog[3, 2.7] works fine, but PolyLog[3, e] just prints the same PolyLog[3, e] . I somehow need to convert this symbolic representation to a number. Seems like a simple question, but I couldn't find the answer.

241k 17 17 gold badges 343 343 silver badges 759 759 bronze badges asked Feb 8, 2015 at 23:37 159 2 2 silver badges 8 8 bronze badges

1 Answer 1

$\begingroup$
N@PolyLog[3,e] or N[PolyLog[3,e]] 

Also if by e you mean E or Exp[1] (Mathematica's notation), then you'll have to change that.

241k 17 17 gold badges 343 343 silver badges 759 759 bronze badges answered Feb 8, 2015 at 23:54 256 1 1 silver badge 7 7 bronze badges $\begingroup$ Thanks! N[] worked perfectly for me! $\endgroup$ Commented Feb 9, 2015 at 0:08

Related

Hot Network Questions

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.4.14806

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.