Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP6_formula
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
MORVANT Mathis
TP6_formula
Commits
570794a2
Commit
570794a2
authored
7 months ago
by
MORVANT Mathis
Browse files
Options
Downloads
Patches
Plain Diff
Class Logarithm complete
parent
ae499fb3
No related branches found
No related tags found
No related merge requests found
Pipeline
#39432
failed
7 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/formula/Logarithm.java
+22
-0
22 additions, 0 deletions
src/main/java/formula/Logarithm.java
with
22 additions
and
0 deletions
src/main/java/formula/Logarithm.java
0 → 100644
+
22
−
0
View file @
570794a2
package
formula
;
public
class
Logarithm
implements
Formula
{
public
Formula
Member
;
public
Logarithm
(
Formula
Member
)
{
this
.
Member
=
Member
;
}
@Override
public
double
eval
(
double
xValue
)
{
return
Math
.
log
(
Member
.
eval
(
xValue
));
}
@Override
public
Formula
derivative
()
{
return
new
Division
(
Member
.
derivative
(),
Member
);
}
@Override
public
String
toString
()
{
return
"log("
+
Member
.
toString
()
+
")"
;
}
}
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