Skip to main content
16-Pearl
August 26, 2014
Solved

Summing function Wm(time,a,b,c,d) from m=0 to m=n ?

  • August 26, 2014
  • 14 replies
  • 3968 views

To all,

I am sure I saw something about how to do such thing but I cannot find it so needs some pointers

I have a function (see attached mcad sheet) Wm(t,am,bm,cm,dm) where t is time and am,bm,cm,dm are coefficient valid for equation m

I need to do sum of Wm from m =0 to n: Capture.PNG but I am struggling with indices in mcad

Coudl anyone refreshe my memory on this summation? It might be something with "dicretizing" the time 't' if I recall

Thanks

Regards

JXB

Best answer by JBlackhole

Thanks to all for the help. Moving on to the next bit of the tool....

14 replies

1-Visitor
August 26, 2014

Like the attached?

I have change t from a range variable to a vector and also removed the units s the program works.

19-Tanzanite
August 26, 2014

The attached should help.

Alan

Looks like Mike just beat me to it!

Edit: Just noticed that your original file was a .mcd, so I've added a .mcd version here.

Mike: In your file the definition of Wm still contains tdm < t > tdm+Nm/2fm. I suspect this should be tdm < t < tdm+Nm/2fm (though I could be wrong!).

16-Pearl
August 26, 2014

Hi Alan

Thanks for the help. Am I correct to say that the Sum only works for a specific t value and not a range of t. Using Mike suggested method, I reckon that one needs to use two range variables

i for the vectorised time t

m for the number of coefficient (a,b,c,d) to consider

19-Tanzanite
August 26, 2014

J B wrote:

Hi Alan

Thanks for the help. Am I correct to say that the Sum only works for a specific t value and not a range of t. Using Mike suggested method, I reckon that one needs to use two range variables

i for the vectorised time t

m for the number of coefficient (a,b,c,d) to consider

The sum as written only works for a specific value of t, but you could include this sum within another that summed over the values of t.

Alan

JBlackhole16-PearlAuthorAnswer
16-Pearl
August 26, 2014

Thanks to all for the help. Moving on to the next bit of the tool....