Post Reply 
Evaluate an expression for given points
01-13-2020, 02:28 AM
Post: #5
RE: Evaluate an expression for given points
(01-12-2020 08:25 PM)Allen Wrote:  
(01-12-2020 09:28 AM)blevita Wrote:  I would like to evaluate [an] expression for even and odd n‘s...

Is it practical to calculate f(x)=2/(n*pi) and multiply f(x) by (n MOD 2)?
This should return f(x) for odd n and 0 for even n.

it's possible to do the same thing if you don't have the MOD function by cleverly using (-1)^n.
irem
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Evaluate an expression for given points - CyberAngel - 01-13-2020 02:28 AM



User(s) browsing this thread: 1 Guest(s)