Ask Your Question

Hyacinth's profile - activity

2023-03-02 19:56:06 +0200 received badge  Popular Question (source)
2021-07-18 18:09:56 +0200 received badge  Student (source)
2021-07-18 16:50:07 +0200 marked best answer Sage refuses to evaluate summations...

I'm trying to define a function

g(x) = sum(frac(j*p/q), j, 0, x)

where p, q are pre-defined constants (say (p, q)=(33, 21)). Sage did not give any errors, but when I type g(10), I would get output symbolic expression sum(frac(11/7*j), j, 0, 10), which is different from the expected value 31/7.

How do I fix this?

2021-07-18 16:50:07 +0200 received badge  Scholar (source)
2021-07-18 16:49:44 +0200 commented answer Sage refuses to evaluate summations...

Thanks! I want to integrate this function, so a python function is probably not the best choice... Nonetheless, how is f

2021-07-18 10:35:05 +0200 asked a question Sage refuses to evaluate summations...

Sage refuses to evaluate summations... I'm trying to define a function g(x)=sum(frac(jp/q),j,0,x) where p,q are pre-defi