View Single Post
Old 2022-08-12, 09:48   #2
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

3·5·683 Posts
Default

you mean this?

Code:
gp > sum(d=1,20,if(d%2==0&&d%3==0,1./d,0),0)
%1 = 0.30555555555555555555555555555555555556
gp > 1./6+1/12+1/18
%2 = 0.30555555555555555555555555555555555556
gp >
Pari is a programing language, how you combine the stuff is up to you
(p.s. I also edited your post and fixed your formula)
LaurV is offline   Reply With Quote