我试图找到Maple中两行之间的角度,但我一直收到这个错误。
`restart:
with(Student[MultivariateCalculus]):
a:=Line([0,0],[0,2]);
a := << Line 1 >>
b:=Line([0,0],[2,0]);
b := << Line 2 >>
Angle(x,y);
Error, invalid input: Student:-MultivariateCalculus:-Angle expects its 1st
argument, x, to be of type {Student:-MultivariateCalculus:-Line, Student:-
MultivariateCalculus:-Plane, Vector}, but received x`
我知道这个角度的答案是90度,我只举了一个简单的例子,所以我能理解它。
答案 0 :(得分:0)
鉴于您已分配到a
和b
(而非x
和y
),请尝试执行此命令,
Angle(a, b);
例如(这是来自实际会话),
restart;
with(Student[MultivariateCalculus]):
a:=Line([0,0],[0,2]);
a := << Line 1 >>
b:=Line([0,0],[2,0]);
b := << Line 2 >>
Angle(a,b);
1
- Pi
2
Angle(a,b) * 180/Pi;
90