10-02-2022, 12:25 AM
It is me, or has the #cas/#endcas(?) disappeared in programs?
The code calculates the curvature of f(x).
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
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