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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

3-Visitor

Solving function with dependent functions

Hi!

So probably a pretty stupid and basic question.

The function. All functions are linear btw.

f0(x) := C(x)*f1(x)+f2(x)

And i want to solve for x when f0 = 5 (just a random number)

Hope it makes sense. Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:DA_9922845)

It would sure help if you post a picture and the worksheet itself to show the definition of the functions involved. Also we could then help by simply adding the necessary steps to your sheet rather than creating a new one from scratch. And last but not least we could see if aou are using real Mathcad (Version 15 and below) or Prime. In case of Prime you should also state which version you are using. In case of Prime a screenshot of the sheet or a pdf if the sheet is larger can be helpful, as some participants here can't read sheets from all versions (e.g. I can only read sheets up to Prime 6).

I guess that f2 and f2 are kown (and defined) functions. What about C? Guess its well known, too?

So you have at least three options to get the value of x.

a) Use the symbolic "solve" command

b) Use a numeric solve block

c) Use the numeric "root" command in one of its two flavours.

Keep in mind that if both f1(x) and C(x) are linear function, f0(x) will be a quadratic function and you'll have to expect two solutions for x.

The two numeric methods mentioned above will only return one of those solutions, depending on the range or the guess value you have to provide or depending on other constraints (if you are heading for the solve block).

5 REPLIES 5
24-Ruby V
(To:DA_9922845)

It would sure help if you post a picture and the worksheet itself to show the definition of the functions involved. Also we could then help by simply adding the necessary steps to your sheet rather than creating a new one from scratch. And last but not least we could see if aou are using real Mathcad (Version 15 and below) or Prime. In case of Prime you should also state which version you are using. In case of Prime a screenshot of the sheet or a pdf if the sheet is larger can be helpful, as some participants here can't read sheets from all versions (e.g. I can only read sheets up to Prime 6).

I guess that f2 and f2 are kown (and defined) functions. What about C? Guess its well known, too?

So you have at least three options to get the value of x.

a) Use the symbolic "solve" command

b) Use a numeric solve block

c) Use the numeric "root" command in one of its two flavours.

Keep in mind that if both f1(x) and C(x) are linear function, f0(x) will be a quadratic function and you'll have to expect two solutions for x.

The two numeric methods mentioned above will only return one of those solutions, depending on the range or the guess value you have to provide or depending on other constraints (if you are heading for the solve block).

3-Visitor
(To:Werner_E)

Thank you Brother!

24-Ruby II
(To:DA_9922845)

Here's another way to solve this problem:

24-Ruby V