1 страниц (4 вхождений)
trace() function broken - Сообщения
#1 Опубликовано: 03.07.2012 03:22:52
Hi,
I get the following with build 4559
[MATH lang=eng]trace(mat(1,3,2,4,2,2))=1@#[/MATH]
I need the trace function to fake the also broken norme() function using
[MATH lang=eng]M:mat(1,2,3,4,2,2)@#[/MATH]
[MATH]norm_e(M):sqrt(trace(transpose(M)*M))[/MATH]
Best regards, Martin Kraska
I get the following with build 4559
[MATH lang=eng]trace(mat(1,3,2,4,2,2))=1@#[/MATH]
I need the trace function to fake the also broken norme() function using
[MATH lang=eng]M:mat(1,2,3,4,2,2)@#[/MATH]
[MATH]norm_e(M):sqrt(trace(transpose(M)*M))[/MATH]
Best regards, Martin Kraska
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#2 Опубликовано: 03.07.2012 04:18:12
Hmm, what results do you expect?
#3 Опубликовано: 03.07.2012 05:00:09
Hello,
BTW., trace() is reserved function for debugging purpose - trace evaluations through Output window - see trace()
Regards,
Radovan
Wrote
I get the following with build 4559
[MATH lang=eng]trace(mat(1,3,2,4,2,2))=1@#[/MATH]
BTW., trace() is reserved function for debugging purpose - trace evaluations through Output window - see trace()
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#4 Опубликовано: 03.07.2012 13:58:26
Hi,
ok, that is just my fault, I expected trace to be the trace of a matrix, i.e. the sum of the diagonal elements. In fact, I have to use tr(), than everything works as expected:
[MATH lang=eng]M=mat(1,2,3,4,2,2)@#[/MATH]
[MATH lang=eng]sqrt(tr(transpose(M)*M))=sqrt(30)@#[/MATH]
Thanks for the hints!
Best regards, Martin Kraska
ok, that is just my fault, I expected trace to be the trace of a matrix, i.e. the sum of the diagonal elements. In fact, I have to use tr(), than everything works as expected:
[MATH lang=eng]M=mat(1,2,3,4,2,2)@#[/MATH]
[MATH lang=eng]sqrt(tr(transpose(M)*M))=sqrt(30)@#[/MATH]
Thanks for the hints!
Best regards, Martin Kraska
WroteHello,
Wrote
I get the following with build 4559
[MATH lang=eng]trace(mat(1,3,2,4,2,2))=1@#[/MATH]
BTW., trace() is reserved function for debugging purpose - trace evaluations through Output window - see trace()
Regards,
Radovan
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 страниц (4 вхождений)
-
Новые сообщения
-
Нет новых сообщений