blob: 03bceb447bb0947d343d62149caec63fdd6cee22 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
/* postgres can not */
USE plato;
$data = (
SELECT
Math::Pi() * CAST(subkey AS Double) AS rad
FROM Input
);
--INSERT INTO Output
SELECT Math::Sqrt(Math::Sin(rad) * Math::Sin(rad) + Math::Cos(rad) * Math::Cos(rad)) FROM $data
|