[PD] cos~, feature or bug?

Frank Barknecht fbar at footils.org
Thu Feb 24 17:50:25 CET 2005


Hallo,
Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:

> 
> On Thu, 24 Feb 2005, Frank Barknecht wrote:
> > > can someone please examine the attatched patch for me and see why I get
> > > WAY different values for [cos~] and [expr~ cos($v1)] ?
> > Because both expect input to be in different scales. the cos in expr
> > wants radians.
> > Try to input 1 and 3.14 =~ M_PI.
> > cos~ will output 1 at input 1, "expr~ cos()" will output almost 1 at
> > input 3.14.
> 
> Hmm, is this a bug in cos~ or a bug in the stated fact? cos(pi)=-1
> normally. The period of cos(t) and sin(t) is 2pi, not pi.

Yep, sorry, my bad. I got the numbers wrong.

Ciao
-- 
 Frank Barknecht                               _ ______footils.org__
             
             _ __latest track: fqdn _ http://footils.org/cms/show/38




More information about the Pd-list mailing list