Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
Lab1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohamad.alturky
Lab1
Commits
a6e3b2bf
Commit
a6e3b2bf
authored
Oct 28, 2023
by
mohamad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding Math Fibonacci bug fixing
parent
45183747
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
MathFibonacciCalculator.java
...bonacciSeries/implementation/MathFibonacciCalculator.java
+1
-1
MathFibonacciCalculator.class
...onacciSeries/implementation/MathFibonacciCalculator.class
+0
-0
No files found.
src/main/java/FibonacciSeries/implementation/MathFibonacciCalculator.java
View file @
a6e3b2bf
...
...
@@ -9,6 +9,6 @@ public class MathFibonacciCalculator implements IFibonacciCalculator {
double
item2
=
(
1
-
Math
.
sqrt
(
5
))/
2
;
item1
=
Math
.
pow
(
item1
,
number
);
item2
=
Math
.
pow
(
item2
,
number
);
return
Math
.
round
((
item1
+
item2
)/
Math
.
sqrt
(
5
));
return
Math
.
round
((
item1
-
item2
)/
Math
.
sqrt
(
5
));
}
}
target/classes/FibonacciSeries/implementation/MathFibonacciCalculator.class
View file @
a6e3b2bf
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment