Skip to main content
1-Visitor
January 22, 2011
Question

Iterative loop with symbols

  • January 22, 2011
  • 2 replies
  • 5211 views

Hello,

Can you please tell me how can I implement the attached code as a loop in Mathcad?

The values of ci are computed in an iterative way, and I need to store them all (as a vector of functions for example), so that each ci is a function.

Thanks,

Andrey

2 replies

1-Visitor
January 22, 2011

Firstly you don't need to define a(x):x.


Have you defined c.3?

Clipboard01.jpg

Mike

AndreyK1-VisitorAuthor
1-Visitor
January 22, 2011

Hi Mike,

I'm not sure I understand your answer.

The code that I attached to the original question is just an example, a(x) has no particular meaning.

I defined c.3, and c.4.

I'm willing to be able to calculate c.5, c.6 and so forth - say till c.50, but not manually. How can I do it in a loop?

1-Visitor
January 23, 2011

Andrey K wrote:

Hi Mike,

I'm not sure I understand your answer.

The code that I attached to the original question is just an example, a(x) has no particular meaning.

If this is merely anexample, then I don't know how to do this generically.

For this specific case,we can develop a solution by inspection, but I don't know if you could extend the solution to a general case. That would take more mathematican than I.

12-Amethyst
January 23, 2011

Andrey,

I gave it a try, see if this works.

Wayne

AndreyK1-VisitorAuthor
1-Visitor
February 7, 2011

Hello guys,

Thank you very much for your suggestions.

I asked this question because I wanted to understand what is the right method for addressing such problems (iretative symbolic calculations) in Mathcad.

I'm new to Mathcad and I thought that when running in a loop, the calculation can use the result of the previous iteration. Now I realize that every calculation in Mathcad is performed separately, even in loops. Am I right?

If so, Mathcad is probably not the tool I'm looking for.

Again, thank you all very much,

Andrey