[Scratch] Textbook programming : Math – Tears of y=ax^2

I am creating an animation of tears using the formula y=ax^2.

This is the case with only tears in the right eye. The tears that clone the parabola of y=(-1/100)x^2 move. I adjust it so that x=0 is exactly at the eye position, then reduce x by 3 and remove it when the tears reach the edge of the screen.

Reference

Tokyo-syoseki New Math 3
Page 114 Parabola around us

Scratch 3.0に対応した書籍です[PR]

【既存の教科でプログラミング授業】中学3年生 数学「y=ax^2の涙」

y=ax^2の式を使って涙のアニメーションを作成しています

GIFアニメで見る

右目の涙だけだとこうなります。y=(-1/100)x^2 の放物線をクローンした涙が動きます。x=0がちょうど目の位置になるように調節して、そこからxを3ずつ減らし、涙が画面の端に到達した時に削除するようにしています

参考

東京書籍 新しい数学3
114ページ 身のまわりの放物線

Scratch 3.0に対応した書籍です[PR]

タイトルとURLをコピーしました