2016-05-06から1日間の記事一覧

lua で媒介変数方程式をグラフ化する 2

Define lis(ft)= Func :Return {sin(5*ft),cos(7*ft)} :EndFunc -- 今度は元の函数を nspire 側で定義しておく。 -- 前回のスクリプトがそのまま利用できるよう、もう一度 lua の中でリサジュ函数を定義する。 function on.resize() W, H = platform.window:…

lua で媒介変数方程式をグラフ化する 1

-- lua の中だけで完結する。 -- 参考: http://triode.dip.jp/honkytonk/2014/09/tsuredure/ti-n-spire-cx-cas-lua-1.html function on.resize() W, H = platform.window:width(), platform.window:height() X0, Y0 = math.floor(W/2), math.floor(H/2) UNIT…