EngM

60 Reputation

5 Badges

11 years, 126 days

MaplePrimes Activity


These are questions asked by EngM

I wanted to create an *m file with many @(x)  Matrix(x) , each of these matrices is 6-by-something , the matrices are not big in size, but they contain a LOT of sin/cos functions (of x vector). The only option I found is to use 

str := CodeGeneration:-Matlab(var,resultname = varname,output = string):

However, this takes endless time to execute despite the fact that the Maple operation to generate these matrices is, more or less, takes an acceptable time, but converting it to Matlab and output a string is an endless operation. 

I technically don't know why! These are matrices, they are not code or anything, just matercies. . 

I have a high end pc yet I couldn't get this line above to be executed in reasnable time (up to 30min!)

Hello, 

I am new to modelica modeling in Maplesim, how do I add ports to the custom component created by Modelica Custom Component in MapleSim?

thanks. 

Hello, 

I am doing symbolic calculations of multi-body kinematics which involves more than 40-degrees of freedom. I built a module that will construct initial kinematic calculations and it finshes fairly quicly, (about 20s). When I want to retrieve these calculations, stored as proprties of the module, it takes really a long time, we are talking more than 30min. It's strange because these calcualtions were already made during the initalization of the module, I am just retriving them for the purpose of writing the symbolic results to a file to later be used in Matlab as functions. 

Any word of advice?

Thanks. 

Hello, 

I build a small simple custom library in MapleSim, for some reaon MapleSim is keep giving me that a variable can't be resolved and that there is no "LibraryName" visible. 

The library loads successfully with no error though. 

exact msg:

Cannot resolve type `MyLibrary.Dh_Revolute` of variable `Main.DR1` in model `Main`; there is no `MyLibrary` visible

thanksf or your help. 

Hello, 

I have some complicated calculations which result in a lot of 1e(-7) or even 1e(-12). These numbers greatly complicate the expersisions without adding any benefits. 

How do I instrcut Maple to round the calculations to the nearest decimal precision?

I tried "Digits" and "Rounding" and "interface(precisiondisplay)" but none of them get rid of something like 3.343^(-12)* expr. 

I still see such infistimal terms showing up. 

If you're wondering, I am exporting these symbolic terms to Matlab to be used as optimization functions. So, having these extra terms add unnecessary optimization steps. 

Thanks. 

1 2 Page 1 of 2