Arc Forumnew | comments | leaders | submitlogin
3 points by rocketnia 3514 days ago | link | parent

That looks like a system of linear equations:

  1 * larger - 5/2 * smaller = 0
  2 * larger - 2 * smaller = 12
One algorithm for solving these is Gaussian elimination. If you're using Anarki (https://github.com/arclanguage/anarki), there's already a ready-made implementation in math.arc!

  arc> (load "lib/math.arc")
  nil
  arc> (gauss-elim '((1 -5/2) (2 -2)) '(0 12))
  (10 4)
There's probably no way you could have known where to find this unless you asked, so thanks for the question. Please let us know if you have further questions about how to use this, or if you'd like to know more about any of these concepts.