2017-08-24から1日間の記事一覧

TI-Nspire & Lua / 常微分方程式の数値解法 / 応用例 / 聯成振動 2 / Nyström 法 / ゴムひもの伸び縮みを表現する

CoupledVib = class() function CoupledVib:init(funcs, t0, inits, initsDot, h, numOfDiv) self.fillLine = (function() local POW = math.pow local ATAN = math.atan2 local MIN = math.min local SQRT = math.sqrt local SIN = math.sin local COS = ma…

伸び縮みしているのがわかるような太い線を描く

fillLine = (function() local POW = math.pow local ATAN = math.atan2 local MIN = math.min local SQRT = math.sqrt local SIN = math.sin local COS = math.cos return function(gc, x1, y1, x2, y2, area) -- (gc, 始点, 終点, 面積) local angle = ATA…