cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

"This value must be a function" error

KT_12679048
7-Bedrock

"This value must be a function" error

Hello! I am having an issue with Mathcad solve block. This is for an Electrical Engineering class, and I am trying to solve a system of 6 equations to find 6 unknown values. I have re-formatted my equations and the solve block many times and cannot tell what I am doing wrong. Any help would be greatly appreciated!

ACCEPTED SOLUTION

Accepted Solutions

I am so sorry about that; I am new to Mathcad! Thank you for taking the time to reply to my post! I have figured out my issue and will be posting a screenshot of how the correct version should look for anyone else encountering this issue! And to answer your question, the omega represents Ohms and the equal sign after the last expression can be used to solve the matrix! Screenshot 2024-12-29 180117.png

View solution in original post

3 REPLIES 3
StuartBruff
23-Emerald III
(To:KT_12679048)

First, please post your worksheet. It can be difficult to troubleshoot a picture.

 

Second, as an example of the above, is Omega the unit ohm or is it a function?

 

Third, remove the definition operator (= sign) after the find expression. 

 

Stuart

I am so sorry about that; I am new to Mathcad! Thank you for taking the time to reply to my post! I have figured out my issue and will be posting a screenshot of how the correct version should look for anyone else encountering this issue! And to answer your question, the omega represents Ohms and the equal sign after the last expression can be used to solve the matrix! Screenshot 2024-12-29 180117.png

StuartBruff
23-Emerald III
(To:KT_12679048)

There is no need to apologise for being a new or inexperienced Mathcad user - not fully understanding something is par for the course (or "to be expected", if you're not in golfing analogies!).   Even experienced, long-time users make mistakes, sometimes because they've forgotten a rarely-used case, didn't notice that a feature has changed in the latest version (*), or that old classic of making a typo and failing to spot it because they see what they think they wrote as opposed to what's there.

 

My initial thought, which seems to be supported by your latest screenshot, was that you didn't have a multiplication or scaling operator between the Ws and the parentheses. OTOH, you had parentheses after every W, which usually indicates a function, hence my question about what W was. This also shows the importance of posting a worksheet for quicker and more targeted support.

 

You don't need the equals sign to find the solution, just to display the result.  However, it is generally regarded as better practice to separate a definition and its display, as evaluating (=) an expression can result in undesired side-effects in an evaluation.  An example of this was Mathcad Prime's previous behaviour of assigning the result of evaluating a range variable to the defined variable.   Many people used this as a way to convert range variables to vectors.  However, range variables cause enough confusion as they are without reliance on side-effects, so this "undocumented feature" was fixed in Mathcad Prime 10 ... which, referring to my first paragraph, caught a number of people out when worksheets stopped working as they expected.

 

Stuart

 

Stuart 

Announcements

Top Tags