y=x./9.8*sqrt(x.^2+2.*9.8.*2.1);在matlab中的程序

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 11:28:38
y=x./9.8*sqrt(x.^2+2.*9.8.*2.1);在matlab中的程序

y=x./9.8*sqrt(x.^2+2.*9.8.*2.1);在matlab中的程序
y=x./9.8*sqrt(x.^2+2.*9.8.*2.1);在matlab中的程序

y=x./9.8*sqrt(x.^2+2.*9.8.*2.1);在matlab中的程序
赢改为y=x./9.8.*sqrt(x.^2+2*9.8*2.1)
数值函数中,常数之间不需要点乘,数组(如x)之间的运算需要加".".

首先要定义变量x
程序如下:syms x
y=x./9.8*sqrt(x.^2+2.*9.8.*2.1)
运行结果为:y = 1/49*x*(25*x^2+1029)^(1/2)