1 страниц (2 вхождений)
Numeric and Symbolic Evaluation - Сообщения
#1 Опубликовано: 02.05.2011 21:43:50
Hi,
For educational purposes i've created a function to fix any number to a given precision, not in decimals (as round function) but in digits. You can see my work in this file:
SM File (0.89.8)
The question is... why is this function taking so much time to work when used inside a program block, like the matrix product in the file? I've also created a plugin with the same function dg() and the time required was not reduced.
Of course i tried numerical and symbolic evaluation, but didn't see major changes in the time. Can anyone help me with this?
UPDATE: later tests... i've found that the problem is no in the dg() file created by me, because just the matrix product is taking a lot of time compared with the smath included matrix product. The problem is that i cant use my function to fix numbers inside the standard matrix product, so i need the additional pro_mx function
For educational purposes i've created a function to fix any number to a given precision, not in decimals (as round function) but in digits. You can see my work in this file:
SM File (0.89.8)
The question is... why is this function taking so much time to work when used inside a program block, like the matrix product in the file? I've also created a plugin with the same function dg() and the time required was not reduced.
Of course i tried numerical and symbolic evaluation, but didn't see major changes in the time. Can anyone help me with this?
UPDATE: later tests... i've found that the problem is no in the dg() file created by me, because just the matrix product is taking a lot of time compared with the smath included matrix product. The problem is that i cant use my function to fix numbers inside the standard matrix product, so i need the additional pro_mx function
#2 Опубликовано: 29.10.2011 22:54:54
ing.sosa,
Try this. Select all and change Optimization from Symbolic to Numeric.
I'm not sure what Symbolic Optimization is used for but it many cases that I've observed it causes problems in the calculations. I wish Numeric Optimization was the default.
Try this. Select all and change Optimization from Symbolic to Numeric.
I'm not sure what Symbolic Optimization is used for but it many cases that I've observed it causes problems in the calculations. I wish Numeric Optimization was the default.
Ed
1 страниц (2 вхождений)
-
Новые сообщения
-
Нет новых сообщений