Matlab中怎么编写sin(t)的平方

Matlab中怎么编写sin(t)的平方

t=0:0.1:2*pi;

sin_t2=(sin(t)).^2;

plot(t,sin_t2)

power()函数,是matlab的乘方函数,例如:power(a,3),第一个参数为底,第二个参数为指数。其中“a”为向量;

t = [0:0.0001:2PI];

plot(t,sin(t)./t);

公式:

(1)(sinα)^2+(cosα)^2=1

(2)1+(tanα)^2=(secα)^2

(3)1+(cotα)^2=(cscα)^2

证明下面两式,只需将一式,左右同除(sinα)^2,第二个除(cosα)^2即可

(4)对于任意非直角三角形,总有

tanA+tanB+tanC=tanAtanBtanC

以上内容参考:百度百科-三角函数万能公式

温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-03-25
t=0:0.1:2*pi;
sin_t2=(sin(t)).^2;
plot(t,sin_t2)本回答被提问者采纳
第2个回答  2011-03-25
1楼
第3个回答  2011-03-25
1楼正解
相似回答