Fix of tan.

This commit is contained in:
Christoffer Lerno
2023-02-04 23:32:17 +01:00
parent 0f7d21330a
commit 38b44a7265

View File

@@ -372,7 +372,7 @@ macro sqrt(x) => $$sqrt(values::promote_int(x));
macro tan(x)
{
var $Type = $typeof(x);
$if (types.is_vector($Type)):
$if (types::is_vector($Type)):
return $$sin(x) / $$cos(x);
$elif ($Type.typeid == float.typeid):
return _tanf(x);