I suggest you ...

Use solved variables in other equations

y = 2z + 1
z(3) => 1
z(3) * 5 => 5*z(3) //This should be 5

88 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    JasonJason shared this idea  ·   ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • PedroPedro commented  · 

        My initial hyperventilating enthusiasm with Calca soon vanished when I realised that creating a new definition with the value of a solved variable or using that solved variable in other equations is not supported:

        y = a * b

        res1 = y(a=2,b=3)=> 6
        res1=> 6

        res2 = a(y=3, b=4)=> 0.75
        res2=> a(y=3, b=4)
        #res2 should be 0.75

      • Barry FergBarry Ferg commented  · 

        Even something as simple as this doesn't work:

        5 = y + 3
        y => 2
        x = y
        x + 1 => y + 1

        I think it is because when it solves for "y", the "y" is an expression so the engine doesn't actually define it like it would a variable. Quite counter-intuitive, ideally the whole document could be treated as a system of equations or at least allow for variables to be defined based on "solved" expressions.

      • Björn CarlssonBjörn Carlsson commented  · 

        hyp = sqrt(x^2 + y^2)
        hyp = 95
        x = 50

        it would be nice if it became this: y => 80.7775
        but this is the result: y => sqrt(hyp^2 - 2,500)

      Feedback and Knowledge Base