Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP6_formula-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BOUKENZE Basma
TP6_formula-template
Commits
db913324
Commit
db913324
authored
2 years ago
by
TRAVERS Corentin
Browse files
Options
Downloads
Patches
Plain Diff
Deleted README.md~
parent
eb4c7988
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md~
+0
-44
0 additions, 44 deletions
README.md~
with
0 additions
and
44 deletions
README.md~
deleted
100644 → 0
+
0
−
44
View file @
eb4c7988
# Représentation de formules
## Description du projet
Dans cette planche de TP, vous allez implémenter des classes pour générer des formules mathématiques. Chaque classe
correspondra à un type de formule (constantes, variable, addition, multiplication, ... ).
Chaque classe devra implémenter l'interface Formula suivante :
```java
public interface Formula {
/**
* Compute the value of the formula
*
* @param xValue the value of the variable x
* @return the value of the function when the variable x has value {@code xValue}
*/
double eval(double xValue);
/**
* Compute a {@code String} representation of the formula.
* @return the formula as a {@code String}
*/
String toString();
/**
* Compute the derivative of the formula.
* @return the derivative of the formula
*/
Formula derivative();
}
```
Une classe implémentant `Formula` devra donc avoir trois fonctionnalités :
- le calcul de sa valeur étant donnée une valeur pour la variable $x$ : méthode `eval`,
- la représentation en chaîne de caractères de la formule : méthode `toString`,
- le calcul de sa dérivée sous la forme d'une autre formule : méthode `derivative`.
## Membre du projet
- NOM, prénom
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment