Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hello, Everyone.
Need help in a creating program function like as the above.
Thanks in advance for your time and help.
Regards.
Solved! Go to Solution.
OK, a little perseverance and it's done in Mathcad 11.
And with an array of 5 elements it gives:
Success!
Luc
you should bring the accuracy to nine decimal places
You want a program that will create that symbolic expression? I doubt very much that's possible.
Hello Richard! my answer doesn't fit?
I think what Loi Le is requesting is a function that creates the expression shown.
Thank You!
Hello, LucMeekes!
Your answer is very interesting. But, I would also see the numerical result.
Greetings F. M.
Here you go:
Then there are the smbolic simplified results:
To get at the sum of fractions with all numerator equal to 1 is going to be difficult, because the symbolic processor doesn't usually 'follow orders' easily.
But at least I got it to check:
Success!
Luc
Wonderful!
but it runs even with the most recent versions of mathcad?
Bye!
I doubt that. It runs in Mathcad 11, no guarantee for higher version numbers. Don't know about Prime.
One (of the many) good reason(s) to keep Mathcad 11 running while possible.
But I can reconstruct the expressions now:
This gives me:
and less or more.
Success!
Luc
OK, a little perseverance and it's done in Mathcad 11.
And with an array of 5 elements it gives:
Success!
Luc
It works in Mathcad 15 too
Great!
What about Prime? (I only have 3.1 express ).
Prime uses MuPad, so the symbolics give the same results (I have not tried this worksheet, but I have not seen a case where the symbolic results are different).
In Mathcad 15 M040 service release everything works fine, but after the conversion to the Mathcad Prime 3.1 version multiple programm blocks are converted as pictures (in converter menu appears a warning - "Unsupported calculation" for this blocks) and obtained calculations is incomplete. In attachment you can find result of this conversion.
Result in Mathcad Prime 3.1:
Thanks Vladimir.
So the Fraction() function works in Prime too. It seems that Prime doesn't like (or better: support) the symbolic evaluation inside a function definition. Therefor Fracture() fails. You could make it work by taking out the 'simplify ->' from the last line, leaving only 'R'.
Then if you symbolically evaluate:
'Fracture( (C0 C1 C2) ) simplfy ->'
I suspect it would produce an (better: the correct) answer rather than an error.
But the simplification is needed in FractEq(), otherwise it produces a trivial identity.
So the 'simplify ->' on the second line of FractEq() must remain and will throw an error....
Luc
No problem, Luc.
Thanks for your respond, P.M., Richard, VladimirN, and Luc.
How to type C[.0 like as your, Luc ?
Regards,
Loi.
Type "." (literal subscript) instead of "[" (vector subscript).
Many thanks, Richard.
Hello, Everyone,
From :
Thanks in advance.
Regards
Loi.
You can't solve one equation for four unknowns.
Hello, Everyone.
So is it possible to create a program function with the input is 11/18 , and the output is 1/2 + 1/(2*5) + 1/(5*18) or a similar of the output ?
Thanks in advance for your time and help.
Best Regards.
There seem to be lots of solutions for each fraction that you could input:
Are they all acceptable?
Yes, they are, Luc. . Please help with the program function. I greatly appreciate your time and help, Luc.
Best Regards.
Loi.