from 2015-6-7

自分用の備忘録としてネット上にも残しておこうと思い書いています

maple-マクロを使ってlprintを簡単に書きやすくする方法

マクロを使ってlprintを簡単に書きやすくする方法
http://www.mapleprimes.com/questions/42622-Single-Line-Output
より


If you need to do this a lot, that is, display an output in 1D, but prefer to use the 2D setting for normal viewing, you might assign a macro to make this a bit easier to type. Thus

# assign macro named ~ that lprints the previous expression
> macro(~ = lprint(%)):
> (x+1)^2;                  
                       2
                (x + 1)

> ~;                        
(x+1)^2