Re: math.e and misc.e

new topic     » topic index » view thread      » older message » newer message

My preference goes to rad_to_deg() and deg_to_rad() but rad2deg() and deg2rad()
are acceptable.


regards,
Jacques DeschĂȘnes


Juergen Luethje wrote:
> 
> Jason Gade wrote:
> 
> > Derek Parnell wrote:
> > > I tend to agree with Pete on this one. Returning just the index will give
> > > better
> > > performance and it can be used in an expression whereas returning the
> > > {inx,val}
> > > combination cannot be used in a 'value' expression ...
> > > 
> > >   if blah[largest(blah)] ... -- okay
> > >   
> > >   if blah[largest(blah)[2]] ... -- fails
> > > 
> > > 
> > > -- 
> > > Derek Parnell
> > > Melbourne, Australia
> > > Skype name: derek.j.parnell
> > 
> > I'm gonna throw my opinion behind Juergen, Pete, and Derek here. I think
> > that
> > Juergen has the most elegant solution so far.
> 
> Thanks.
> 
> Matt suggested to change the names of the functions deg() and rad().
> He proposed to use
>    rad_to_deg() and deg_to_rad()
>        or
>    rad2deg() and deg2rad().
> 
> Which one do you, and others, prefer?
> 
> Regards,
>    Juergen

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu