HP Forums
Hardware vs. Emulator - CAS program - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Hardware vs. Emulator - CAS program (/thread-18914.html)



Hardware vs. Emulator - CAS program - Eddie W. Shore - 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).


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


RE: Hardware vs. Emulator - CAS program - toml_12953 - 10-02-2022 05:29 AM

Checking the CAS: box when creating a new program no longer automatically creates a CAS template. You can put in the #cas and #endcas lines yourself and they continue to work properly.


RE: Hardware vs. Emulator - CAS program - Wes Loewer - 10-03-2022 06:43 PM

(10-02-2022 05:29 AM)toml_12953 Wrote:  Checking the CAS: box when creating a new program no longer automatically creates a CAS template. You can put in the #cas and #endcas lines yourself and they continue to work properly.

It would be nice if the CAS checkbox were put back. It would also be nice to have a checkbox for a Python program where it would set up a template for the necessary wrapper function.