Maple中两条线之间的角度

问题描述 投票:-1回答:1

我试图找到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度,我只是举了一个简单的例子,所以我能理解它。

coordinates line angle maple
1个回答
0
投票

鉴于你分配给ab(而不是xy)然后尝试命令,

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
© www.soinside.com 2019 - 2024. All rights reserved.