Get Help

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Mathcad Error

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2013
09:44 AM

06-03-2013
09:44 AM

Mathcad Error

Greetings.

I wonder if there is anybody that can help me with my project . I did the first part of the question and I get the answer but the last part suddenly an error appears saying this value must be scalar or vector. I really don't get where I did wrong.

Labels:

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2013
10:33 AM

06-03-2013
10:33 AM

Re: Mathcad Error

You define all of your values (beta, q, etc.) as single valued variable (AKA scalars) and it works to find z for one value. Then you define i as an index variable from 1 to 14. (Mathcad starts at 0 by default unless you change ORIGIN.)

Then you define I, HR, and SR as vectors (indexed by i) but when you try to index beta (or q) Mathcad finds scalars, so you get red in yiour equation and the calculation fails.

Note that z will equal 1 (the value you defined as the guess for your solve block, not the 0.769 you found. It will stay that way until you redefine it.

Need to spend more time reading "help," or "getting started."

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-03-2013
10:36 AM

06-03-2013
10:36 AM

Re: Mathcad Error

In addition to what Fred point out, in one expression you have z(beta_i,q_i), so you are calling z as a function. You do not have it defined as a function though. Also, in another equation you have z multiplied by (beta_i,q_i). That does not mean anything to Mathcad. Is z supposed to be a function?