numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
205 stars 120 forks source link

Fix issue #792, add is scalar multiple of x for vector #899

Closed alisahq closed 2 years ago

alisahq commented 2 years ago

Hi,

I tried to add is_scalar_multiple(u, v [, rel_tol] [, abs_tol]) in my math.js and updated the jme-builtins.js correspondingly. Would you mind if you check my code? Thank you and I appreciate it!

Best, Alisa