Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am using Mathematica and I want my for loop to produce tht[1]=tht[[1]][t], tht[2]=tht[[2]][t], ... and so on. but i keep getting an error partd:
I am using Mathematica and I want my for loop to produce tht[1]=tht[[1]][t], tht[2]=tht[[2]][t], ... and so on. but i keep getting an error partd: th[[1]] is greater than the depth. Does anyone know a quick fix to this? My code is below. Thanks. Clear n=4; xt=x[t]; yt=y[t]; dxt=D[xt,t]; dyt=D[yt,t]; For[c=2,c<=n+1, tht[c-1] =th[[c-1]][t]; dtht[c-1]=D[tht[c-1],t]; ++c] phit=phi[t];
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started