Page 1 sur 1

» symbol for syntax or python mode in Xcas

Publié : mar. avr. 30, 2019 11:13 pm
par compsystems
Hello BP

As a suggestion for the syntax or python mode in Xcas, show, before the entry line, angular commas »

» m := [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]

[enter]
[[1,2,3],[4,5,6],[7,8,9]]

» [ [row_[col_] for row_ in m ] for col_ in seq(k,k,0,colDim(m)-1) ] [enter]
[[1,4,7],[2,5,8],[3,6,9]]