~ubuntu-branches/debian/sid/gsl/sid

« back to all changes in this revision

Viewing changes to complex/math.c

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2008-12-16 06:17:55 UTC
  • mfrom: (1.3.2 upstream) (3.1.15 jaunty)
  • Revision ID: james.westby@ubuntu.com-20081216061755-9la7p0qwrhopk8pl
Tags: 1.12+dfsg-1
* New upstream version released today

* doc/*: As before, removed the 'non-free' documentation to create a 
  source package that complies with Debian's interpretation of what is free. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 * Complex numbers
52
52
 **********************************************************************/
53
53
 
54
 
#ifndef HIDE_INLINE_STATIC
55
 
gsl_complex
56
 
gsl_complex_rect (double x, double y)
57
 
{                               /* return z = x + i y */
58
 
  gsl_complex z;
59
 
  GSL_SET_COMPLEX (&z, x, y);
60
 
  return z;
61
 
}
62
 
#endif
63
 
 
64
54
gsl_complex
65
55
gsl_complex_polar (double r, double theta)
66
56
{                               /* return z = r exp(i theta) */