1 страниц (8 вхождений)
[SS-2440] Vectorize() works differently in 6179 - Feature/Bug ? - Сообщения
#1 Опубликовано: 20.03.2017 16:40:31
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 КиБ) скачан 75 раз(а).
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 КиБ) скачан 75 раз(а).
#2 Опубликовано: 20.03.2017 20:36:24
1 пользователям понравился этот пост
Igor Skarine 21.03.2017 10:56:00
#3 Опубликовано: 21.03.2017 11:11:51
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 Опубликовано: 21.03.2017 12:13:22
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 КиБ) скачан 73 раз(а).
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 КиБ) скачан 73 раз(а).
#5 Опубликовано: 21.03.2017 13:00:31
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 КиБ) скачан 74 раз(а).
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 КиБ) скачан 74 раз(а).
#6 Опубликовано: 21.03.2017 13:54:17
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 Опубликовано: 21.03.2017 15:31:01
#8 Опубликовано: 21.03.2017 22:14:01
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 КиБ) скачан 73 раз(а).
eigenAll Companion.sm (49 КиБ) скачан 76 раз(а).
All that stuff is above my head !
Attached as well "eigenAll Companion", adapted from G Urroz.
Jean
Matrix SVD [Igor].sm (75 КиБ) скачан 73 раз(а).
eigenAll Companion.sm (49 КиБ) скачан 76 раз(а).
1 страниц (8 вхождений)
-
Новые сообщения
-
Нет новых сообщений