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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Need help in a creating program function.

lvl107
20-Turquoise

Need help in a creating program function.

  Hello, Everyone.

Need help with a program function .PNG

Need help in a creating program function like as the above.

   Thanks in advance for your time and help.

       Regards.

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:LucMeekes)

OK,  a little perseverance and it's done               in Mathcad 11.

And with an array of 5 elements it gives:

Success!
Luc

View solution in original post

26 REPLIES 26
-MFra-
21-Topaz II
(To:lvl107)

you should bring the accuracy to nine decimal placesNeed with ect..jpg

RichardJ
19-Tanzanite
(To:lvl107)

You want a program that will create that symbolic expression? I doubt very much that's possible.

-MFra-
21-Topaz II
(To:RichardJ)

Hello Richard! my answer doesn't fit?

RichardJ
19-Tanzanite
(To:-MFra-)

I think what Loi Le is requesting is a function that creates the expression shown.

-MFra-
21-Topaz II
(To:RichardJ)

Thank You!

LucMeekes
23-Emerald III
(To:lvl107)

Part of it is at least possible:

-MFra-
21-Topaz II
(To:LucMeekes)

Hello, LucMeekes!

Your answer is very interesting. But, I would also see the numerical result.

Greetings F. M.

LucMeekes
23-Emerald III
(To:-MFra-)

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

-MFra-
21-Topaz II
(To:LucMeekes)

Wonderful!

but it runs even with the most recent versions of mathcad?

Bye!

LucMeekes
23-Emerald III
(To:-MFra-)

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

LucMeekes
23-Emerald III
(To:LucMeekes)

OK,  a little perseverance and it's done               in Mathcad 11.

And with an array of 5 elements it gives:

Success!
Luc

RichardJ
19-Tanzanite
(To:LucMeekes)

It works in Mathcad 15 too

LucMeekes
23-Emerald III
(To:RichardJ)

Great!
What about Prime? (I only have 3.1 express ).

RichardJ
19-Tanzanite
(To:LucMeekes)

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:

Pic_1.png

LucMeekes
23-Emerald III
(To:VladimirN)

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.

lvl107
20-Turquoise
(To:LucMeekes)

   Thanks for your respond, P.M., Richard, VladimirN, and Luc.

   How to type C[.0 like as your, Luc ?

(2).PNG

       Regards,

           Loi.

RichardJ
19-Tanzanite
(To:lvl107)

Type "." (literal subscript) instead of "[" (vector subscript).

lvl107
20-Turquoise
(To:RichardJ)

  Many thanks, Richard.

lvl107
20-Turquoise
(To:lvl107)

  Hello, Everyone,

  From :

Theorem 2 (Euler).PNG

(3).PNG

  Thanks in advance.

      Regards

          Loi.

RichardJ
19-Tanzanite
(To:lvl107)

You can't solve one equation for four unknowns.

lvl107
20-Turquoise
(To:RichardJ)

   I got it. Thanks, Richard.

(4).PNG 

   Regards,

      Loi.

lvl107
20-Turquoise
(To:lvl107)

  Hello, Everyone.

Euler Expansion .PNG

   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.

LucMeekes
23-Emerald III
(To:lvl107)

There seem to be lots of solutions for each fraction that you could input:

Are they all acceptable?

lvl107
20-Turquoise
(To:LucMeekes)

Yes, they are, Luc. . Please help with the program function. I greatly appreciate your time and help, Luc.

   Best Regards.

      Loi.

Top Tags