We are working to address an issue with subscription email notifications. In the meantime, be sure to check your favorite boards for new topics.
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
Solved! Go to Solution.
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).
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).
Thank you Brother!
Here's another way to solve this problem:
Symbolic evaluation of solve blocks only work in real Mathcad. This feature was broken in Prime and chances are that the OP is using Prime 7 (given from another thread he opened a while ago). BTW, if you use symbolic eval, no guess value for x is necessary.
But of course the solve block can be evaluated numerically in all versions and if you add a constraint like x>0 or x<0, you have control over the solution calculated.
Out of habit, I set the initial condition, since I usually use a numerical solution. Symbolic result - to show the same answer as yours.