Skip to main content
1-Visitor
December 1, 2020
Solved

Explicited expression does not match when saved to a varialble name

  • December 1, 2020
  • 2 replies
  • 3664 views

Hi

Say I have an expression:

Z(s):= c(s)[a(s)+b(s)]; where s is a variable

When I evaluated them, they are not the same. 

 

Z(s)=

 

The results is not the same as:

c(s)[a(s)+b(s)]=

 

Please see attached for a better explanation. The bottom right row result is not the same as the bottom left result. Bottom right row is correct

 

I think it has to do with some kind of matrix errors

 

Thanks

Rdliquid

 

 

Best answer by Werner_E

Your function Z(s) is NOT dependent on "s" but on "freq". If you want it to be dependent on "s" you would have to write

Werner_E_0-1606899894403.png

EDIT: The pic showed the wrong expression - replaced it for the correct one.

 

 

2 replies

23-Emerald IV
December 1, 2020

Did you type the   [   ( and the     ] )   ?

Then there's your error. You should ONLY type those if you want to make a matrix.

 

This equation should be typed in as:

c(s)*(a(s)+b(s)).

 

Success!
Luc

 

rdliquid1-VisitorAuthor
1-Visitor
December 1, 2020

Hi Luc,

 

Thanks, no that is just an example and I used "[" instead of "(" for easy viewing the equation. Sorry for the confusion. The attachment will clears things up as what I mean.

 

I think it has to do with scalar and vector quantity.

 

Re-attaching the file in case it did not attach the first time

 

Thanks

Rdliquid

Werner_E25-Diamond IAnswer
25-Diamond I
December 1, 2020

Your function Z(s) is NOT dependent on "s" but on "freq". If you want it to be dependent on "s" you would have to write

Werner_E_0-1606899894403.png

EDIT: The pic showed the wrong expression - replaced it for the correct one.

 

 

rdliquid1-VisitorAuthor
1-Visitor
December 2, 2020

Hi Werner_E,

 

Thanks that's it and it makes sense to me now. Still trying to get comfortable with Mathcad 6

 

Thanks a lot!

 

Rdliquid