Login
Discover
Waves
Communities
Raidstead
Write
Login
Signup
Topics
#
pythonmath
Explore topics
#pythonmath
Global
Trending
Hot
New
Payout
Muted
Promoted
#pythonmath
New
#pythonmath
Follow to get notified about new posts with this tag
Get #pythonmath by email
Follow
speeding
cn
9y
數學 × 程式編寫比賽 (第七回):我的Python算法
来steemit的时间不长,第一次参加了steemit里的数学程序编写比赛(第七回),用数学方法求解我实在没有耐心去琢磨,有兴趣的可以参考 @tvb 的这篇文章,佩服她的耐心。 我只考虑了编程的求解算法。假设一点P(x,y)处于1x1的正方形之内,它与各端点连线形成了四个三角形,能够大于120度的只有中间的四个角,这里我利用两个矢量夹角的计算公式: cos(a) = u·v / (|u||v|)
$ 14.316
16
3
Explore communities