Page 1 sur 1

Controlling the expression separator in a multiple print.

Publié : ven. févr. 09, 2018 2:18 am
par compsystems
Hello, in a multiple print, it is printed with a separator (comma), this restricts the output form. I suggest that it be printed together and the user define which separator to put.

currently
print( abc, 123, cde ); returns
abc,123,cde

with a custom separator
print( abc, "," , 123, ",", cde); returns
abc,123,cde

print( abc, ", " , 123, ", ", cde); returns
abc, 123, cde

print( abc, " " , 123, " ", cde); returns
abc 123 cde

print( abc, 123, cde); returns
abc123cde

Re: Controlling the expression separator in a multiple print

Publié : ven. févr. 09, 2018 7:33 am
par parisse
You can concatenate the strings and other objects to be printed as you like and pass the resulting string to print.

Re: Controlling the expression separator in a multiple print

Publié : ven. févr. 09, 2018 2:23 pm
par compsystems
ok.

How can I print on pretty-print (2D)? So far I have only seen this feature in TI68K calculators

print(x^2); returns x^2 (1D)
prettyprint(x^2); returns x²

How difficult is to implement this feature? xcas already has a two-dimensional expression printing engine,
Expression menu, new expression
x^2 put x²