200分跪求matlab的code 希望matlab专家帮助一下ff = inline(vectorize('r*(r*cos(t))^2' ),'z','t','r')triplequad(ff,0,2,-pi/2,pi/2,0,sqrt(z))就是不对z取值0<=z<=2

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 08:02:05
200分跪求matlab的code 希望matlab专家帮助一下ff = inline(vectorize('r*(r*cos(t))^2' ),'z','t','r')triplequad(ff,0,2,-pi/2,pi/2,0,sqrt(z))就是不对z取值0<=z<=2
xS[O@+ ڒ]^whfzami}<,l 1F6NW d7 3sΜjd<_k~ڀ8hfː˼e98&K6he15o~6c?u[s&^kJcSF~+$]cݑ$(0RZJO=Cg݊,KԬȲ\tMkl\`BA öT0eTcꖥ"۴<* FF\4q4M[AR,Yn# TtM!.)Z!yHLJSˏ7)$^`N`Ӌr|w{?OwhVlxk?|,Q?nhlO^swas?|,n1ySyk$dl؞ ߓ4Nq&V$Mz3~La

200分跪求matlab的code 希望matlab专家帮助一下ff = inline(vectorize('r*(r*cos(t))^2' ),'z','t','r')triplequad(ff,0,2,-pi/2,pi/2,0,sqrt(z))就是不对z取值0<=z<=2
200分跪求matlab的code
希望matlab专家帮助一下
ff = inline(vectorize('r*(r*cos(t))^2' ),'z','t','r')
triplequad(ff,0,2,-pi/2,pi/2,0,sqrt(z))
就是不对
z取值0<=z<=2

200分跪求matlab的code 希望matlab专家帮助一下ff = inline(vectorize('r*(r*cos(t))^2' ),'z','t','r')triplequad(ff,0,2,-pi/2,pi/2,0,sqrt(z))就是不对z取值0<=z<=2
syms r t z
int(int(int('(r*cos(t))^2*r','t',-pi/2,pi/2),'r',0,sqrt(z)),'z',0,2)
结果:
pi/3
triplequad函数适用于长方体内积分.你可以看一下triplequad的帮助文档:help triplequad
当然可以改造一下,使之适用于非长方体内积分,也在帮助文档内.