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 
Hardware vs. Emulator - CAS program
10-02-2022, 12:25 AM
Post: #1
Hardware vs. Emulator - CAS program
It is me, or has the #cas/#endcas(?) disappeared in programs?

The code calculates the curvature of f(x).


Code:
EXPORT fcurve(y,x)
BEGIN
// curvature
// function
// radius = 1/curvature
LOCAL a,b;
a:=diff(y,x,2);
b:=diff(y,x,1);
RETURN ABS(a)/(1+b^2)^(3/2);
END;


Hardware: 2.1.14603 (12/2/2021)
CAS works as expected
Home works as expected as long as variables and the function are quoted

Emulator: 2.1.14596 (10/1/2021 - I didn't see an update since)
Despite purging all the variables, 0 is returned
Home works as expected as long as variables and the function are quoted


Attached File(s) Thumbnail(s)
   
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Hardware vs. Emulator - CAS program - Eddie W. Shore - 10-02-2022 12:25 AM



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