C++

Completado Publicado Apr 19, 2002 Pagado a la entrega
Completado Pagado a la entrega

In this assignment you are to write a program that will differentiate expressions in the variable X. The input to this program will be a series, each representing an infix expression to be differentiated. Each such expressions is to be viewed as a stream of tokens. Valid tokens are integers, the variable X, the binary operators (+, -, *, /, ^), and parentheses. To make scanning for tokens easy, you may assume that each token is followed by exactly one space, with the exception of the final token, which is followed by the end of line character. First the program will have to scan the infix expression, building up an appropriate binary tree representation of it. Once the binary expression tree is built, traverse it, building up an other binary expression tree, which represents the derivative of the original expression. The following differentiation rules should be used in this process: Suppose C is a constant, and S and T are expressions in X: Diff (C) = 0 Diff (X) = 1 Diff (S + T) = Diff (S) + Diff (T) Diff (S - T) = Diff (S) - Diff (T) Diff (S * T) = S * Diff (T) + T * Diff (S) Diff (S / T) = ((T * Diff (S)) - (S * Diff (T))) / (T ^ 2) Diff (S ^C) = (C * S ^ (C - 1)) * Diff (S) Finally, once the binary expression tree for the derivative has been built, print the expression. Print it in completely parenthesized infix notation to avoid ambiguity. Note that there are three distinct phases to this problem: 1) Parsing of the original infix expression into a binary tree representation 2) Building a binary tree representation of the derivative 3) Printing the derivative in completely parenthesized infix notation.

## Deliverables

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.

## Platform

you can use any compilar....windows OS 98, me, 2000

Programación en C Ingeniería MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #2847394

Sobre el proyecto

7 propuestas Proyecto remoto Activo Apr 22, 2002

Adjudicado a:

mak1002000

See private message.

$9 USD en 14 días
(5 comentarios)
2.8

7 freelancers están ofertando un promedio de $26 por este trabajo

sanatanvw

See private message.

$21.25 USD en 14 días
(72 comentarios)
5.5
sammyleong

See private message.

$38.25 USD en 14 días
(80 comentarios)
5.2
alexkvw

See private message.

$34 USD en 14 días
(66 comentarios)
5.1
blabbone

See private message.

$34 USD en 14 días
(1 comentario)
1.9
vijendervw

See private message.

$21.25 USD en 14 días
(4 comentarios)
0.4
saurabhsoni

See private message.

$21.25 USD en 14 días
(1 comentario)
0.8