mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
f4e2b9bbd2
@ -40,7 +40,7 @@ module.exports = function (math) {
|
||||
|
||||
if (isUnit(x)) {
|
||||
if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) {
|
||||
throw new TypeError ('Unit in function cos is no angle');
|
||||
throw new TypeError ('Unit in function sin is no angle');
|
||||
}
|
||||
return Math.sin(x.value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user