matlab中 sqrt(1+(cos(x))^2)的积分
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/14 18:59:14
matlab中 sqrt(1+(cos(x))^2)的积分
>> fun=inline('sqrt(1+(cos(x))^2)')
fun =
Inline function:
fun(cos,x) = sqrt(1+(cos(x))^2)
>> [R,k,T]=Romberg(fun,realmin,4,1e-6)
Error using ==> inline.subsref
Not enough inputs to inline function.
Error in ==> Romberg at 13
T=h/2*(fun(a)+fun(b));
>> syms x
>> fun=sqrt(1+(cos(x))^2)
fun =
(1+cos(x)^2)^(1/2)
>> [R,k,T]=Romberg(fun,0,4,1e-6)
Subscript indices must either be real positive integers or logicals.
Error in ==> Romberg at 13
T=h/2*(fun(a)+fun(b));
>> fun=inline('sqrt(1+(cos(x))^2)')
fun =
Inline function:
fun(cos,x) = sqrt(1+(cos(x))^2)
>> [R,k,T]=Romberg(fun,realmin,4,1e-6)
Error using ==> inline.subsref
Not enough inputs to inline function.
Error in ==> Romberg at 13
T=h/2*(fun(a)+fun(b));
>> syms x
>> fun=sqrt(1+(cos(x))^2)
fun =
(1+cos(x)^2)^(1/2)
>> [R,k,T]=Romberg(fun,0,4,1e-6)
Subscript indices must either be real positive integers or logicals.
Error in ==> Romberg at 13
T=h/2*(fun(a)+fun(b));
fun=inline('sqrt(1+(cos(x).^2)')
这里x是向量 要用点乘或者点幂
fun=inline('sqrt(1+(cos(x).^2))')
fun =
Inline function:
fun(x) = sqrt(1+(cos(x).^2))
>> [R,T]=Romberg(fun,[0 4],1e-6)
R =
4.9666
T =
5.2178 0 0 0 0 0 0
4.7752 4.6276 0 0 0 0 0
4.9314 4.9834 5.0072 0 0 0 0
4.9578 4.9667 4.9656 4.9649 0 0 0
4.9645 4.9667 4.9667 4.9667 4.9667 0 0
4.9661 4.9666 4.9666 4.9666 4.9666 4.9666 0
4.9665 4.9666 4.9666 4.9666 4.9666 4.9666 4.9666
这里x是向量 要用点乘或者点幂
fun=inline('sqrt(1+(cos(x).^2))')
fun =
Inline function:
fun(x) = sqrt(1+(cos(x).^2))
>> [R,T]=Romberg(fun,[0 4],1e-6)
R =
4.9666
T =
5.2178 0 0 0 0 0 0
4.7752 4.6276 0 0 0 0 0
4.9314 4.9834 5.0072 0 0 0 0
4.9578 4.9667 4.9656 4.9649 0 0 0
4.9645 4.9667 4.9667 4.9667 4.9667 0 0
4.9661 4.9666 4.9666 4.9666 4.9666 4.9666 0
4.9665 4.9666 4.9666 4.9666 4.9666 4.9666 4.9666
matlab中 sqrt(1+(cos(x))^2)的积分
如何用matlab做sqrt(1-x^2)*x*log(2+x)的数值积分
如何用MATLAB求[x^2.*sqrt(2.*x^2+3)]在1到5上的定积分?
matlab中积分syms h x sx=(h-1.5)*sqrt(1.5^2-x^2-(h-1.5)^2)+sqrt(
怎么用MATLAB计算y=sqrt(a^2+x^2)/x^2的积分啊
sqrt(1-x^2-y^2) matlab用for循环求积分
求教matlab介入下方程:积分函数f=1/sqrt(1-a^2*(sin(x))^2);积分上下限为(0,pi/2);
matlab中 >> x=-1:0.001:1; >> y=log((1+sqrt(1-x.^2))/x)+sqrt(1
matlab 计算定积分怎么运行很慢,我的程序如下:syms x S2=sqrt(1+(1.767*x^2-3.68*x
求1/(sqrt(1-x^2))在(-1,1)上的定积分
1/(sqrt(1-x^2))的定积分(-1,1)
怎样用MATLAB将int(sqrt((y*cos(pi*t))^2+1/x)-1,t,0,1)=0这个关于x,y的隐函