The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Using solve and sigma from programming
03-30-2021, 12:33 AM
Post: #1
Using solve and sigma from programming
Hello,
I have an equation

pv = cf/(1+r) + cf/(1+r)^1 + cf/(1+r)^2 + ... + cf/(1+r)^n

I have the value of pv, cf and I need to find the value of r. How do I call the CAS.solve() and pass a function that does summation?

BEGIN
LOCAL pv,cf,result;
pv:= 100;
cf:= 10;
result:=CAS.solve(.....); // <- how do I write this?


END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Using solve and sigma from programming - photometer - 03-30-2021 12:33 AM



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