Function and vector inputs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Function and vector inputs
I want to solve a function based on column of vector inputs how can I achieve this? I want to define a specific function then solve it by providing a variable that contains values in form of columns.
- Labels:
-
Mathcad Usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Please provide a worksheet with (an example of) what you are trying to do.
State the version of Prime you are using.
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I agree with Luc that an example sheet which shows what you actually are trying to achieve would be necessary for further help.
Here just a shot in the blue
Lets assume you want to solve the equation (you can't solve a "function"!)
for c, input values are a and b and you want to solve it for a couple of a- and b- values which you provide as vectors.
One way could be to symbolically solve the equation and turn the result into a function sol1( ) of a and b.
Then you call that function with the vectors as arguments (you should use vectorization when you do so).
Another way is to use the numeric root function in a similar way
For further help attach a worksheet with some examples
