[Citat] Calculati suma
S=tg1+tg5+tg9+...+tg177
unde argumentele sunt in grade.
|
O solutie ar merge foarte probabil cam asa.
Raspunsul se afla numeric usor:
(20:38) gp > tg( x ) = tan( x*Pi/180. )
(20:38) gp > ?sum
sum(X=a,b,expr,{x=0}): x plus the sum (X goes from a to b) of expression expr.
(20:38) gp > sum( x=0, 176/4, tg(1+4*x) )
%1 = 45.00000000000000000000000007