Page 1 of 1

How to do the matrix calculation with Lua

Posted: 10 May 2018, 09:04
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

Re: How to do the matrix calculation with Lua

Posted: 13 May 2018, 22:10
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

Re: How to do the matrix calculation with Lua

Posted: 14 May 2018, 08:26
by gloria7@scuthahaha
thanks for your reply, it works.