The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: calculating euler products [newbie]
Replies: 2   Last Post: Jan 5, 2012 3:21 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jean Dupont

Posts: 7
Registered: 1/5/12
calculating euler products [newbie]
Posted: Jan 5, 2012 12:35 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I've written the function below to calculate euler-products, I was
wondering how it can be improved i.e. written more in "matlab-style"
perhaps reducing execution time for large numbers


function eulerprod(n)
%calculate PI(1/(1-p^-1)) for all primes smaller than n
for i=1:nop

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.