derivate

  • Thread starter Riccardo Maffei
  • Start date
R

Riccardo Maffei

Salve a tutti.
Ho un problema che spero possiate aiutarmi a risolvere.
Dovrei scrivere un piccolo programma che calcoli le derivate simboliche di
una funzione data sotto forma di stringa.
Grazie per l'aiuto.
Ric.
 
A

Artie Gold

Riccardo said:
Salve a tutti.
Ho un problema che spero possiate aiutarmi a risolvere.
Dovrei scrivere un piccolo programma che calcoli le derivate simboliche di
una funzione data sotto forma di stringa.
Grazie per l'aiuto.
Ric.

Erm, We speak English here.

Ciao,
--ag
 
L

LibraryUser

Artie said:
Erm, We speak English here.

No we don't necessarily. However the chances of an intelligent
reply are greatly enhanced by the use of something resembling
English.
 
A

Artie Gold

LibraryUser said:
No we don't necessarily. However the chances of an intelligent
reply are greatly enhanced by the use of something resembling
English.

I have a doubt about that. ;-)

--ag
 
I

ipo

Riccardo Maffei said:
Salve a tutti.
Ho un problema che spero possiate aiutarmi a risolvere.
Dovrei scrivere un piccolo programma che calcoli le derivate simboliche di
una funzione data sotto forma di stringa.
Grazie per l'aiuto.
Ric.

You need to be more specific. You are saying that it's a "piccolo programma"
so I assume that it should be able to differentiate only polynomials and not
algebraic or transcendental functions.

That being the case, the rules of differentiation for constants, sums,
differences, products, quotients, and powers in your textbook pretty much
spell out the algorithm that you're looking for. I haven't done any symbolic
computation in C so the simplest example that I know of is in the book LISP
by Patrick Winston published by Addison-Wesley. That should give you enough
to get you started.

ipo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top