Find Jobs
Hire Freelancers

C++

$20-25 USD

Ukończony
Opublikowano około 22 lata temu

$20-25 USD

Płatne przy odbiorze
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
Identyfikator projektu: 2847394

Informację o projekcie

6 ofert
Zdalny projekt
Aktywny 22 lata temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
See private message.
$9 USD w 14 dni
4,9 (5 opinii)
2,8
2,8
6 freelancerzy składają oferty o średniej wysokości $24 USD dla tej pracy
Awatar Użytkownika
See private message.
$38,25 USD w 14 dni
5,0 (80 opinii)
5,2
5,2
Awatar Użytkownika
See private message.
$21,25 USD w 14 dni
4,4 (72 opinii)
5,5
5,5
Awatar Użytkownika
See private message.
$34 USD w 14 dni
5,0 (1 opinia)
1,9
1,9
Awatar Użytkownika
See private message.
$21,25 USD w 14 dni
5,0 (4 opinii)
0,4
0,4
Awatar Użytkownika
See private message.
$21,25 USD w 14 dni
0,0 (1 opinia)
0,8
0,8

O kliencie

Flaga UNITED STATES
United States
0,5
1
Członek od mar 29, 2002

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.