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 
sum and product inside a program
03-29-2016, 09:52 PM
Post: #1
sum and product inside a program
I got strange results in one of my programs and it appears that sum() and product() don't work correctly, if called inside a program.

Example:
POLY(n,z)
BEGIN
LOCAL k;

sum(z^k/k^n, 1, 3, 1);
END;

returns +inf for POLY(2,.1).

But in CAS, from the command line, sum(0.1^k/k^2), returns .1026 . . .

Similar problem with product inside a program.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
sum and product inside a program - Helge Gabert - 03-29-2016 09:52 PM



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