from 2015-6-7

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

maple-割り当てた変数をsaveする


すべてのuser-assigned variablesの値をsaveする方法

parse(sprintf("save %q,\"myfile.txt\";",
         anames(user)),statement);

If you've used names beginning with an underscore or containing forward slashes, try "alluser" instead of "user". See the help page ?anames.

http://www.mapleprimes.com/questions/41020-How-To-Save-All-Variables-In-The-Workspace

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

maple-保存のディレクトリの変更

writedata等で書き出されるデータの保存場所を/Users/hiroにする方法

/Users/hiro/.mapleinit

currentdir(“/Users/hiro”)
と書く。

currentdirの使い方。
curerntdir()
とすることで現在のカレントワーキングディレクトリが表示。
これが/Users/hiroだとする。
次に
currentdir(“/Users”)
とすればカレントディレクトリが/Usersになるが、返ってくる値は追い出された、/Users/hiro
currentdir()
とすれば/Usersが表示される。
current(homedir)
とするとkernelopts(homedir)で出て来るディレクトリをカレントディレクトリにすると
いうこと。homedirの他にbindir, datadir, mapledir, toolboxdirがある。

.mapleinitに書いておくと、mapleを立ち上げた時から保存場所が/Users/hiroになっている

maple-プログラミング勉強サイト

#次のページに書いてあったこと

how to study maple
http://www.mapleprimes.com/questions/36973-Learn-Maple

1. まずプログラミングレッスンの完全なセット

http://www.maplesoft.com/applications/view.aspx?SID=4744 for a complete set of Maple programming lessons.
2. また次のページ
http://www.cs.drexel.edu/~jjohnson/fa01/asym/lectures/lec4.html

3. 次のアドバンスドコース

http://www.cs.drexel.edu/~jjohnson/fa01/asym/lectures/lec5.html


4. 基本コース

http://theor.jinr.ru/Documents/MapleV/program/program.html ,old but still good.

5. 次のページも関係している。

http://www.cs.drexel.edu/~jjohnson/2008-09/spring/cs303.html#lectures