[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

56. engineering-format

工学フォーマットは maximaが浮動小数点数を出力する方法をエンジニアがよく使う記法 a*10^bに変更します。 ここで bは3で割り切れる数です。


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

56.1 Functions and Variables for engineering-format

オプション変数: engineering_format_floats

デフォルト値: true

この変数は工学フォーマットを一時的にオフに切り返すために使います。

 
(%i1) load("engineering-format");
(%o1) /home/gunter/src/maxima-code/share/contrib/engineering-for\
mat.lisp
(%i2) float(sin(10)/10000);
(%o2)                - 54.40211108893698e-6
(%i3) engineering_format_floats:false$
(%i4) float(sin(10)/10000);
(%o4)                - 5.440211108893698e-5

fpprintprecfloatも参照してください

オプション変数: engineering_format_min

デフォルト値: 0.0

工学フォーマットに自動的には変換されない最小絶対値。 engineering_format_maxengineering_format_floatsも参照してください。

 
(%i1) lst: float([.05,.5,5,500,5000,500000]);
(%o1)       [0.05, 0.5, 5.0, 500.0, 5000.0, 500000.0]
(%i2) load("engineering-format");
(%o2) /home/gunter/src/maxima-code/share/contrib/engineering-for\
mat.lisp
(%i3) lst;
(%o3) [50.0e-3, 500.0e-3, 5.0e+0, 500.0e+0, 5.0e+3, 500.0e+3]
(%i4) engineering_format_min:.1$
(%i5) engineering_format_max:1000$
(%i6) lst;
(%o6)     [50.0e-3, 0.5, 5.0, 500.0, 5.0e+3, 500.0e+3]

オプション変数: engineering_format_max

デフォルト値: 0.0

工学フォーマットに自動的には変換されない最大絶対値。 engineering_format_minengineering_format_floatsも参照してください。


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

56.2 Known Bugs

SBCL 1.3.0の出力ルーチンには、3で割り切れない指数を時々出力するバグがあります。 この場合でも表示数の値はまだ有効です。


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by 市川雄二 on October, 4 2018 using texi2html 1.76.