This is my first asked question here, so I will do my best to make you understand my need. I'm trying to do a function which should resolve any polynomial equation in scheme language, but I am a beginner so I can't do it properly... I've tried to detect all the unknow and make different function for the substraction, the multiply, the addition and the division but I am stuck at this. I can't make a function who while said the nature of the calcul... So please, help me guys please.
Sorry forgot to write it :
(define (addition? L1)
(if (memq '+' L1))
#T
(else (error))
)
(define (count L1 x n)
(cond [(null? L1) n]
[(eq? (car L1) x)
(count (cdr L1) x (+ n 1))]
[else
(count (cdr L1) x n)]))
(define (polynome L1)
(compter L1))
`