Controlling the expression separator in a multiple print.

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 603
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Controlling the expression separator in a multiple print.

Message par compsystems » ven. févr. 09, 2018 2:18 am

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

parisse
Messages : 5882
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Controlling the expression separator in a multiple print

Message par parisse » ven. févr. 09, 2018 7:33 am

You can concatenate the strings and other objects to be printed as you like and pass the resulting string to print.

compsystems
Messages : 603
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: Controlling the expression separator in a multiple print

Message par compsystems » ven. févr. 09, 2018 2:23 pm

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²

Répondre