### How to do the matrix calculation with Lua

Posted:

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

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