Evaluate the logarithmic integral - MATLAB Cody - MATLAB Central

Problem 46066. Evaluate the logarithmic integral

Difficulty:Rate
The logarithmic integral li(x) plays a role in number theory because the related function Li(x) = li(x) - li(2) provides an estimate for the number of primes less than x. MATLAB's Symbolic Toolbox has the function logint, but it is not available in basic MATLAB or Cody.
Write a function to evaluate the logarithmic integral.

Solution Stats

20.9% Correct | 79.1% Incorrect
Last Solution submitted on Sep 05, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
18
6

Problem Recent Solvers13

Suggested Problems

More from this Author291

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page