01-20-2010 11:30 PM - edited 01-20-2010 11:37 PM
Estimados señores:
Escribo por lo siguiente, necesito hacer la siguiente operación con un arreglo, pero he probado de distintas maneras, por horas y no consigo dar con la manera de hacerlo; puede ser fácil, pero no me resulta.
La idea es la siguiente: si el arreglo original es (a, b, c, d, e, f,g,...), en donde cada elemento es un número real, necesito obtener
(a, a+b, a+b+c, a+b+c+d, a+b+c+d+e,a+b+c+d+e+f,a+b+c+d+e+f+g,a+b+c+d+e+f+g+...,....), es decir, simplemente cada término corresponde a la suma de los anteriores.
Si alguien me puede ayudar, se lo agradeceré.
Solved! Go to Solution.
01-20-2010 11:58 PM
Try posting in english here for better response
I
write about the following, I need to do the following operation with a
settlement, but I tried in various ways, for hours and I can not come
up with a way to do it can be easy, but do not find it.
The idea is this: if the original array is (a, b, c, d, e, f, g ,...), where each element is a real number, I need to get
(a, a + b, a + b + c, a + b + c + d, a + b + c + d + e, a + b + c + d + e + f, a + b + c + d + e + f + g, a + b + c + d + e + f + g +...,....), ie each term simply represents the sum of the above.
01-21-2010 12:05 AM
01-21-2010 12:27 AM - edited 01-21-2010 12:27 AM
Muks,
Why wouldn't you autoindex the incoming array?
01-21-2010 12:29 AM
01-21-2010 12:30 AM
Hi muks,
U r such a brillaint guy to provide solutions for complex requiremnts too.. appreciate your diligence in translating the spanish content.. i am a follower of this forum.. u r my icon..
01-21-2010 12:37 AM
01-21-2010 02:07 AM
by the way where do u work and where are you put up?
01-21-2010 02:38 AM
01-21-2010 04:12 AM
oh is it i am also from ilink only.. hmm good to know that...