Quantcast
Channel: MaplePrimes - Questions and Posts tagged with 2dmath
Viewing all articles
Browse latest Browse all 296

substitution of physics matrix multiplication with the default one

$
0
0
Hey guys, in the following expression 
restart;
with(Physics[Vectors]);
Setup(mathematicalnotation = true);
with(Physics);

Setup(op = {Omega, r});

lprint(m*Omega^2*r);

which outputs this:

i want to substitute  Physics:-`*` which is an overloaded version of matrice multiplication with the default one which is `.` so I wrote the following code :

use   `*`= :-`.` in
a := m*Omega^2*r
end use

the result is the same and its not substitute the physics product with the default one. what is the mistake here?

I also tried the following code and its worked. but I want to make it work with the 'use' function for general purposes

lprint(m . (:-`.`(Omega^2, r)))

thanks in advance


Viewing all articles
Browse latest Browse all 296

Trending Articles