leesugil / symbolic

Symbolic calculator for arithmetic operations with fractions
GNU General Public License v3.0
1 stars 0 forks source link

calculating the number part #9

Closed leesugil closed 5 months ago

leesugil commented 5 months ago

-1 3 -28 a + -1 3 -14 b + -1 3 -7 c symbols: "f" = "a x^2 + b x^1 + c x^0" "g" = "y f" "h" = "g z" "i" = "-1 h" "j" = "i -1" "x" = "2" "y" = "3" "z" = "7"

leesugil commented 5 months ago

psuedo code: in calcExpr, refresh p, if p->op == , if is_pure_number(p->left) == 1, if is_pure_number(p->right) == 2 (complex), get the number from p->right, calc p->left num update p->name (don't have to restructure p->left, p->right)

leesugil commented 5 months ago
Screenshot 2024-02-02 at 2 33 50 AM

resolved