LoginSignup
1
1

More than 1 year has passed since last update.

センター試験の数学をJSで解く【数学Ⅰ・A】_1

Last updated at Posted at 2021-06-05

キャプチャ.PNG

var r = (function* f(a) {
    while(a < 100){
       ((a ** 2 - 2 * a - 8) === 0 ? (yield a) : "")
        a += 1
    }
})(-100)
for(var v of r) console.log(v)//-2,4

ア -
イ 2
ウ 4

ポイント

どういう手法で問題を解くか、解くための計算式をどうするかといった思考部分は人間がやらなければならない。だから、センター試験の数学をプログラムで解いても、あまり意味がない。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1