Post Reply 
Function Programing HOME and CAS Views
01-05-2018, 07:42 PM (This post was last modified: 01-05-2018 07:46 PM by lschroeder1947.)
Post: #1
Function Programing HOME and CAS Views
HP Prime pivmat CAS var programming for FREE / Lite / Pro (Virtual, handheld) pivot CAS function - SCALE HOME function

See Post's alternate approach pivmat and pivmat screenshots.
Note A: To Works on Windows 10 Free, Android Free, iOS Lite in command line paste we needed to drop #cas and #end. Dropped #cas and #end works on Pro as well but not shown in Program Catalog. For Pro (Virtual, handheld) probably should use Program Editor with #cas and #end.
Note B: To work on Windows 10 Pro's needed BEGIN, return, and End.
Note C: 1, 2, and 3 work in both HOME and CAS view. Why 2 in CAS view and 3 in both HOME and CAS views?
Note D: From Han's post, Why no quotes?

1. Works HOME and CAS Views - wrapper pivot and mRow - expect HOME and CAS to work

pivmat(m,r,c):=
BEGIN
return CAS(pivot(CAS(mRow(1/m(r,c),m,r)),r,c));
END;

2. Works HOME and CAS Views - wrapper piivot - expect only HOME to work

pivmat(m,r,c):=
BEGIN
return CAS(pivot(SCALE(m,(1/m(r,c)),r),r,c));
END;

3. Works HOME and CAS Views- expect neither to work

pivmat(m,r,c):=
BEGIN
return pivot(SCALE(m,(1/m(r,c)),r),r,c);
END;
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Function Programing HOME and CAS Views - lschroeder1947 - 01-05-2018 07:42 PM



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