[QUESTION] command names on History & CAS MODE VIEW
12-21-2016, 10:23 PM (This post was last modified: 02-15-2018 11:10 PM by compsystems.)
Post: #4
 compsystems Senior Member Posts: 1,229 Joined: Dec 2013
RE: [QUESTION] command names on History & CAS MODE VIEW
The double functionality is valid and I agree
ABS vs abs
The problem is only visualization within the history view with "Textbook Display on" & ALGEBRAIC input mode

Because copying the expression to the input line is renamed.

Enable the ALGEBRAIC input mode & "Textbook Display off"
abs([a,b]) → [abs(a), abs(b)] // ok
[up][up][copy]
abs([a,b]) → [abs(a), abs(b)] // ok

but

Enable the TEXTBOOK input mode & "Textbook Display off"
abs([a,b]) → ABS([a,b]) → √(a^2+b^2)
This is not logical, the same input two different answers

Another case

CAS MODE

MAKEMAT(0,10); -> Error: Bad Argument Type" Why?
makemat(0,10); ->[[0,0,0,0,0,0,0,0,0,0]]
makeMat(0,10); -> [0,0,0,0,0,0,0,0,0,0]; // ok =)

mat1:=makeMat(0,10); -> [0,0,0,0,0,0,0,0,0,0]; // ok =)
mat1(1):=a; -> [a,0,0,0,0,0,0,0,0,0]; // ok =)
mat1(10):=j; -> [a,0,0,0,0,0,0,0,0,j]; // ok =)
mat1[2]:=b; -> [a,b,0,0,0,0,0,0,0,0]; // ok =)
mat1[2]; -> b // ok
mat1(2); -> b // ok

dim(mat1); -> 10 // ok
DIM(mat1); -> {10} // ok
DIM(mat1)[1]; -> 10 // ok
DIM(mat1)(1); -> 10 // ok

MAKELIST(0,X,1,10); -> {0,0,0,0,0,0,0,0,0,0} // ok
makelist(0,X,1,10); -> [0] Why?
makeList(0,X,1,10); -> Error: Bad Argument Type" Why?

list1:=MAKELIST(0,X,1,10) -> {0,0,0,0,0,0,0,0,0,0} // ok
dim(list1); -> 10 // ok
DIM(list1); -> {1,1,1,1,1,1,1,1,1,1} // ok

mat0:=MAKEMAT(0,3,4) -> [[0,0,0,0],[0,0,0,0],[0,0,0,0]] // ok

HOME
DIM(mat1) -> {10}
dim(mat1) -> {10}
DIM(mat1)[1] -> {[10]} -> 10
DIM(mat1)(1) -> {10} ?

inside program (HOME)
local elements:=dim(mat1)[1]; // error
or
local elements:=dim(mat1)(1); // error

for aux_index_i from 1 to dim(a)[1] do // error
 « Next Oldest | Next Newest »

 Messages In This Thread [QUESTION] command names on History & CAS MODE VIEW - compsystems - 12-07-2016, 03:16 PM RE: [QUESTION] command names on History & CAS MODE - compsystems - 12-21-2016, 06:07 PM RE: [QUESTION] command names on History & CAS MODE VIEW - Tim Wessman - 12-21-2016, 07:50 PM RE: [QUESTION] command names on History & CAS MODE VIEW - compsystems - 12-21-2016 10:23 PM

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