mathematica的表格的问题现有2个表格Table1和Table2,格式为table1=[{x1,y1},{x2,y2},{x3,y3},{x4,y4}],table2=[{x1,y5},{x2,y6},{x3,y7},{x4,y8}]如何求一个新表格table3,使得table3=[{x1,y5-y1},{x2,y5-y2},{x3,y7-y3},{x4,y8-y4}]就是说
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 03:02:31
mathematica的表格的问题现有2个表格Table1和Table2,格式为table1=[{x1,y1},{x2,y2},{x3,y3},{x4,y4}],table2=[{x1,y5},{x2,y6},{x3,y7},{x4,y8}]如何求一个新表格table3,使得table3=[{x1,y5-y1},{x2,y5-y2},{x3,y7-y3},{x4,y8-y4}]就是说
mathematica的表格的问题
现有2个表格Table1和Table2,格式为table1=[{x1,y1},{x2,y2},{x3,y3},{x4,y4}],
table2=[{x1,y5},{x2,y6},{x3,y7},{x4,y8}]
如何求一个新表格table3,使得table3=[{x1,y5-y1},{x2,y5-y2},{x3,y7-y3},{x4,y8-y4}]
就是说前2个表格的x项都是相同的,只是y项不同,
现在的table3要求保留相同的x项,而使得y项为“table2的y项减去table1的相对应的y项”.
谢谢!
mathematica的表格的问题现有2个表格Table1和Table2,格式为table1=[{x1,y1},{x2,y2},{x3,y3},{x4,y4}],table2=[{x1,y5},{x2,y6},{x3,y7},{x4,y8}]如何求一个新表格table3,使得table3=[{x1,y5-y1},{x2,y5-y2},{x3,y7-y3},{x4,y8-y4}]就是说
table1 = {{x1,y1},{x2,y2},{x3,y3},{x4,y4}}
table2 = {{x1,y5},{x2,y6},{x3,y7},{x4,y8}}
table3 = Table[{table1[[i,1]],table2[[i,2]] - table1[[i,2]]},{i,1,4}]