跳至主要內容

Part 1A Paper 4 Mathematics Examples paper 1

AI悦创原创python 1v1留学生作业辅导剑桥大学大约 1 分钟...约 346 字

Find a vector normal to both the lines

r1=(1,2,3)+λ(4,5,6)r_1 = (1,2,3) + \lambda (4,5,6)

r2=(2,3,2)+μ(5,6,7)r_2 = (2,3,2) + \mu (5,6,7)

(i) Hence find the shortest distance between the two lines. Check that your answer seems reasonable by plotting the lines with Matplotlib.

Hint: You will need to import and use a module from mpl_toolkits, e.g.

from mpl_toolkits.mplot3d import Axes3D

(ii) Calculate the shortest distance between the two lines with Python and find the points where the two lines are closest together.

公众号:AI悦创【二维码】

AI悦创·编程一对一

AI悦创·推出辅导班啦,包括「Python 语言辅导班、C++ 辅导班、java 辅导班、算法/数据结构辅导班、少儿编程、pygame 游戏开发、Web、Linux」,全部都是一对一教学:一对一辅导 + 一对一答疑 + 布置作业 + 项目实践等。当然,还有线下线上摄影课程、Photoshop、Premiere 一对一教学、QQ、微信在线,随时响应!微信:Jiabcdefh

C++ 信息奥赛题解,长期更新!长期招收一对一中小学信息奥赛集训,莆田、厦门地区有机会线下上门,其他地区线上。微信:Jiabcdefh

方法一:QQopen in new window

方法二:微信:Jiabcdefh

上次编辑于:
贡献者: AndersonHJB
你认为这篇文章怎么样?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
评论
  • 按正序
  • 按倒序
  • 按热度