Hi, so basically I'm using matrix for robotics. I've created a matrix with constants (r,s,t,u) in the matrix stored in the constant q. It works, but when I change the value of constants (ex : 3->r) when I call the matrix q it doesn't update r IN the matrix. I have to call the whole matrix again (not just q)
Is there an alternative to this problem or I need to call the matrix each time ?
Matrix stored doesn't update the constants
4 posts
• Page 1 of 1
-
doreori
Niveau 7: EP (Espèce Protégée: geek)- Posts: 2
- Joined: 24 Apr 2023, 10:57
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Matrix stored doesn't update the constants
You could use a Notes app in your document, with mathboxes (Ctrl-M) for variable setting and equation writing (here the matrix). If you change variables at the top it would then update the result of each dependent thing afterwards.
See this video:
See this video:
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14772
- Images: 1119
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: Matrix stored doesn't update the constants
Merci pour ta réponse ! j'ai essayé de faire ce qu'il dit dans la vidéo mais rien y fait j'ai fait quelque chose de faux ?
θ=0 ▸ θ=0
alpha=0 ▸ alpha=0
a=0 ▸ a=0
d=d1 ▸ d=d1
matrice=[[cos(θ),−sin(θ),0,a][sin(θ)*cos(alpha),cos(θ)*cos(alpha),−sin(alpha),−sin(alpha)*d][sin(θ)*sin(alpha),cos(θ)*sin(alpha),cos(alpha),cos(alpha)*d][0,0,0,1]] ▸ matrice=[[cos(θ),−sin(θ),0,a][cos(alpha)*sin(θ),cos(alpha)*cos(θ),−sin(alpha),−d*sin(alpha)][sin(alpha)*sin(θ),sin(alpha)*cos(θ),cos(alpha),d*cos(alpha)][0,0,0,1]]
θ=0 ▸ θ=0
alpha=0 ▸ alpha=0
a=0 ▸ a=0
d=d1 ▸ d=d1
matrice=[[cos(θ),−sin(θ),0,a][sin(θ)*cos(alpha),cos(θ)*cos(alpha),−sin(alpha),−sin(alpha)*d][sin(θ)*sin(alpha),cos(θ)*sin(alpha),cos(alpha),cos(alpha)*d][0,0,0,1]] ▸ matrice=[[cos(θ),−sin(θ),0,a][cos(alpha)*sin(θ),cos(alpha)*cos(θ),−sin(alpha),−d*sin(alpha)][sin(alpha)*sin(θ),sin(alpha)*cos(θ),cos(alpha),d*cos(alpha)][0,0,0,1]]
-
doreori
Niveau 7: EP (Espèce Protégée: geek)- Posts: 2
- Joined: 24 Apr 2023, 10:57
- Gender:
- Calculator(s):→ MyCalcs profile
Re: Matrix stored doesn't update the constants
I'm not sure, can you share the tns file?
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14772
- Images: 1119
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
4 posts
• Page 1 of 1
Return to Problèmes divers / Aide débutants
Who is online
Users browsing this forum: No registered users and 10 guests