sin() in PostgreSQL?

From: mathprof(at)bigfoot(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: sin() in PostgreSQL?
Date: 2000-02-01 02:03:08
Message-ID: 200002010203.UAA13029@ogopogo.flash.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a sin() function in PostgreSQL? I need to create a view in
PostgreSQL that uses sin(x), and the only real mathematical functions I
see supported are dexp() and dpow(). I tried using dexp(I) to get the
exponential of an imaginary number (which would make writing sin() easy),
but this didn't work, since dexp() expects a floating point argument. Is
there an easy way to get sin()?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-02-01 02:04:31 Re: [HACKERS] float4 confused as int??
Previous Message treklover 2000-02-01 01:42:48 sin() in PostgreSQL?