How to do the matrix calculation with Lua

Typically: "How do I... ", "How can I... " questions
Post Reply
gloria7@scuthahaha

How to do the matrix calculation with Lua

Post by gloria7@scuthahaha »

Hi coppelia:

I want to do a parallel configuration and I want to check my kinematic equation with this model. So I want to turn my mathematics into Lua script. Here is some question:
1, kinematic model need many matrix calculation so I check the Lua matrix in GitHub https://github.com/davidm/lua-matrix/bl ... x.lua#L219But the api didn't contain the diag or det method in Matlab , so I didn't know how to write it into Lua.
2.As my model is parallel configuration, I think the tip-dummy is needed. But I didn't know how to control them.As I want the gear 1,gear 2,gear 3 works individual and both of them determine the upper platform's motion.
Hope I can received your reply soon~ Thank you.

Gloria
18.5.10

fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: How to do the matrix calculation with Lua

Post by fferri »

gloria7@scuthahaha wrote: 10 May 2018, 09:04 https://github.com/davidm/lua-matrix/bl ... x.lua#L219But the api didn't contain the diag or det method in Matlab , so I didn't know how to write it into Lua.
https://github.com/davidm/lua-matrix/bl ... ix.lua#L95

gloria7@scuthahaha

Re: How to do the matrix calculation with Lua

Post by gloria7@scuthahaha »

thanks for your reply, it works.

Post Reply