source-academy / js-slang

Implementations of sublanguages of JavaScript, TypeScript, Scheme and Python
https://source-academy.github.io/source/
Apache License 2.0
70 stars 104 forks source link

[math]: math_hypot should take any number of arguments #1308

Open martin-henz opened 2 years ago

martin-henz commented 2 years ago

Currently: math_hypot(3,4,5); Line 1: Expected 2 arguments, but got 3.

Specs: math_hypot() → {number} computes the square root of the sum of squares of its arguments. If no arguments are passed, the result is +0. Parameters: Name Type Description value1,value2,... number given numbers Name Type Description
value1,value2,... number given numbers
martin-henz commented 7 months ago

this issue persists as of today.