Chebyshev coefficients: Difference between revisions

m
→‎{{header|Raku}}: did not need .list coercion
m (→‎{{header|Raku}}: more Unicode, fewer sigils)
m (→‎{{header|Raku}}: did not need .list coercion)
Line 1,621:
my \bpa = ½ × (b + a);
 
my @pi-n = ( (^n).list »+» ½ ) »×» (π/n);
my @f = ( @pi_n».cos »×» bma »+» bpa )».&$func;
my @sums = (^n).map: { [+] @f »×« ( @pi-n »×» $_ )».cos };
2,392

edits