Find Jobs
Hire Freelancers

C++

$20-25 USD

Slutfört
Publicerad ungefär 22 år sedan

$20-25 USD

Betalning vid leverans
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
Project ID: 2847394

Om projektet

6 anbud
Distansprojekt
Senaste aktivitet 22 år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
See private message.
$9 USD Om 14 dagar
4,9 (5 omdömen)
2,8
2,8
6 frilansar lägger i genomsnitt anbud på $24 USD för detta uppdrag
Använd avatar
See private message.
$38,25 USD Om 14 dagar
5,0 (80 omdömen)
5,2
5,2
Använd avatar
See private message.
$21,25 USD Om 14 dagar
4,4 (72 omdömen)
5,5
5,5
Använd avatar
See private message.
$34 USD Om 14 dagar
5,0 (1 omdöme)
1,9
1,9
Använd avatar
See private message.
$21,25 USD Om 14 dagar
5,0 (4 omdömen)
0,4
0,4
Använd avatar
See private message.
$21,25 USD Om 14 dagar
0,0 (1 omdöme)
0,8
0,8

Om kunden

Flagga för UNITED STATES
United States
0,5
1
Medlem sedan mars 29, 2002

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.