1 Pages (8 items)
[SS-2440] Vectorize() works differently in 6179 - Feature/Bug ? - Messages
#1 Posted: 3/20/2017 4:40:31 PM
Once again, Smath of the newest version is not compatible with the older one.
Attached, is a worksheet to design a special case of elliptic low pass filter.
It was written a year ago and it works fine in 5973, but doesn't work in 6179.
The vectorization of H(s) failed.
I still need to keep 5973 for quite a number of old worksheets.
EQMF.sm (28 KiB) downloaded 75 time(s).
Attached, is a worksheet to design a special case of elliptic low pass filter.
It was written a year ago and it works fine in 5973, but doesn't work in 6179.
The vectorization of H(s) failed.
I still need to keep 5973 for quite a number of old worksheets.
EQMF.sm (28 KiB) downloaded 75 time(s).
#3 Posted: 3/21/2017 11:11:51 AM
Thank you Davide,
What is bothering me - there is no much logic behind the kluge.
P.S.
Another difference between 6179 and 5973 is:
In 5973 we can put almost any operator into a matrix o vector.
Sometimes I did it to fit the code it in lesser number of lines (like in old Mathcad).
But if I put "for()" into the matrix, 5379 accepts that, but 6179 reports error "no result".
It looks like 6179 expect some calculated result for each element of the matrix.
But in this case the matrix is just a placeholder for operators, we don't need any value there.
Regards,
Igor
What is bothering me - there is no much logic behind the kluge.
P.S.
Another difference between 6179 and 5973 is:
In 5973 we can put almost any operator into a matrix o vector.
Sometimes I did it to fit the code it in lesser number of lines (like in old Mathcad).
But if I put "for()" into the matrix, 5379 accepts that, but 6179 reports error "no result".
It looks like 6179 expect some calculated result for each element of the matrix.
But in this case the matrix is just a placeholder for operators, we don't need any value there.
Regards,
Igor
#4 Posted: 3/21/2017 12:13:22 PM
Hello Igor,
You have several interesting points about including operators in matrix.
Can you post what you have not working 6179 ... doctors are waiting.
Those "Filters" are monkey business to me [not my cup of tea].
The attached Butterworth works fine.
1. Smath does not have the 'range variable iterated product'... it works otherwise.
2. Iterated product as well as summation needs be "local definition".
3. Vectorise operator does an extraordinary good job. Most likely about this
operator: it will never be exhausted ... Mathcad 11 was never exhausted.
Almost each case is specific.
The elliptic filter would take ~ ½ day to code from Mathcad 11.
Jean
Maths Butterworth.sm (28 KiB) downloaded 73 time(s).
You have several interesting points about including operators in matrix.
Can you post what you have not working 6179 ... doctors are waiting.
Those "Filters" are monkey business to me [not my cup of tea].
The attached Butterworth works fine.
1. Smath does not have the 'range variable iterated product'... it works otherwise.
2. Iterated product as well as summation needs be "local definition".
3. Vectorise operator does an extraordinary good job. Most likely about this
operator: it will never be exhausted ... Mathcad 11 was never exhausted.
Almost each case is specific.
The elliptic filter would take ~ ½ day to code from Mathcad 11.
Jean
Maths Butterworth.sm (28 KiB) downloaded 73 time(s).
#5 Posted: 3/21/2017 1:00:31 PM
Hello Jean,
I'm just a hardware developer playing with circuit theory.
Elliptic filters are an example of efficient way to synthesise
transfer functions for the feedback loops of extremely high loopgain.
But let us get back to the "for()" in the matrix.
See the code in attachment. This is an example of SVD algorithm.
Find the comment ">- LOOK AT THE TRICK !-->" in the matrix.
This code works with 5973, but 6179 reports an error "There is no result".
Regards
svdt.sm (63 KiB) downloaded 74 time(s).
I'm just a hardware developer playing with circuit theory.
Elliptic filters are an example of efficient way to synthesise
transfer functions for the feedback loops of extremely high loopgain.
But let us get back to the "for()" in the matrix.
See the code in attachment. This is an example of SVD algorithm.
Find the comment ">- LOOK AT THE TRICK !-->" in the matrix.
This code works with 5973, but 6179 reports an error "There is no result".
Regards
svdt.sm (63 KiB) downloaded 74 time(s).
#6 Posted: 3/21/2017 1:54:17 PM
Especially for large numerical calculations I created Script plugin. The script is compiled into the library and then executed. If I find the time, I'll show something from digital signal processing (including images).
Russia ☭ forever, Viacheslav N. Mezentsev
#7 Posted: 3/21/2017 3:31:01 PM
#8 Posted: 3/21/2017 10:14:01 PM
Sorry collabs [Igor, Mark],
All that stuff is above my head !
Attached as well "eigenAll Companion", adapted from G Urroz.
Jean
Matrix SVD [Igor].sm (75 KiB) downloaded 73 time(s).
eigenAll Companion.sm (49 KiB) downloaded 76 time(s).
All that stuff is above my head !
Attached as well "eigenAll Companion", adapted from G Urroz.
Jean
Matrix SVD [Igor].sm (75 KiB) downloaded 73 time(s).
eigenAll Companion.sm (49 KiB) downloaded 76 time(s).
1 Pages (8 items)
-
New Posts
-
No New Posts