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
- :
- Explicitly solve a function assigned to a variable

- 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

Highlighted
##

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

10-01-2015
09:37 PM

10-01-2015
09:37 PM

Explicitly solve a function assigned to a variable

Hi all,

I am trying to solve a function symbolically. However, I am having trouble with it, as shown below:

As you can see, if I symbolically solve the function in the first line, directly, I get the desired result. It shows the transposed function and then I evaluate to get the answer.

In the second line, I try to assign the function to a function variable.

In the third line, I try to call up the function to solve it explicitly, but it fails. However, it still manages to find the solution, if I don't request 'explicit'.

Is there any way to call up a function assigned to a variable and solve it explicitly?

Any advice will be greatly appreciated.

Cheers.

Labels:

2 REPLIES 2

Highlighted
##

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

10-02-2015
02:16 AM

10-02-2015
02:16 AM

Re: Explicitly solve a function assigned to a variable

I think the problem lies with using 'explicit' and 'solve, ThetaR' on the same line. This may be interpreted as that the numeric values for 'solve' and for 'ThetaR' must be suppressed in the answer.

Look up the help info on explicit to see examples of how it is supposed to be used. You'll find that you're supposed to stack the keywords 'explicit' and 'solve' rather than butt them on the same line.

Success!

Luc

Highlighted
##

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

10-04-2015
10:56 PM

10-04-2015
10:56 PM

Re: Explicitly solve a function assigned to a variable

It seems that in my case it makes no difference:

It just can't find a symbolic solution for a function assigned to a variable. As can be seen above, it works nicely when applying the keywords to the function directly. But the moment I assign it to a variable, it gives up. It still finds a solution, but not symbolically.

Am I doing something wrong in terms of assigning the function to a variable?

The reason I am trying to do this, is I am creating a worksheet which assigns a function to a variable depending a set of parameters the user specifies. If the function can't be evaluated from that variable, then the exercise becomes pointless.