Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More methods added #24

Merged
merged 37 commits into from
Aug 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
63e40f9
trace, min and max adeed
Andreas-Hum Aug 14, 2023
41bffe7
trace min and max tests done
Andreas-Hum Aug 14, 2023
46055b6
Rank done
Andreas-Hum Aug 14, 2023
b2cea1e
rank done
Andreas-Hum Aug 14, 2023
2ea61f8
isDiagonal and isSymmetric added
Andreas-Hum Aug 14, 2023
0f59ce3
is identity has been added
Andreas-Hum Aug 14, 2023
1a327d8
tsdocs added
Andreas-Hum Aug 14, 2023
cd01f67
sum added
Andreas-Hum Aug 14, 2023
7bf5458
matrix sum added
Andreas-Hum Aug 14, 2023
bd6299f
reshape for matrix done
Andreas-Hum Aug 14, 2023
8abd42f
nullify added
Andreas-Hum Aug 14, 2023
56ff822
remove row soon
Andreas-Hum Aug 14, 2023
0050bf1
fix error
Andreas-Hum Aug 14, 2023
e21a213
remove row and remove columnd added
Andreas-Hum Aug 14, 2023
0dc9dbb
Cofactor matrix implemented
Andreas-Hum Aug 14, 2023
c95cba7
Adjugate of a matrix found
Andreas-Hum Aug 14, 2023
f7fde0d
cofactor an element added
Andreas-Hum Aug 14, 2023
a8832a7
map added
Andreas-Hum Aug 15, 2023
a36f5e7
small fix
Andreas-Hum Aug 15, 2023
8a1e0f6
abs and mean added
Andreas-Hum Aug 15, 2023
44e9b29
max added to math
Andreas-Hum Aug 15, 2023
4b9b59f
multiple norms added
Andreas-Hum Aug 15, 2023
ac1e762
root at power added
Andreas-Hum Aug 15, 2023
3654788
pnorm added
Andreas-Hum Aug 15, 2023
c15d6f4
small fixes
Andreas-Hum Aug 15, 2023
f3872cc
dft and fft added to math
Andreas-Hum Aug 16, 2023
77bf206
fourier now added as matrix method
Andreas-Hum Aug 16, 2023
c66626a
final tweeks under way
Andreas-Hum Aug 16, 2023
a5f1cb7
diag fixed for wide and tall
Andreas-Hum Aug 18, 2023
4911898
is invertable added
Andreas-Hum Aug 18, 2023
e8afba4
typings added in example
Andreas-Hum Aug 18, 2023
f47ea94
small fixes
Andreas-Hum Aug 18, 2023
0abe354
0.7.0
Andreas-Hum Aug 18, 2023
acc7f29
more fixes
Andreas-Hum Aug 18, 2023
8866091
last fixes before new release
Andreas-Hum Aug 18, 2023
cd1f2c3
docs updated
Andreas-Hum Aug 18, 2023
def3578
readme updated
Andreas-Hum Aug 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix error
  • Loading branch information
Andreas-Hum committed Aug 14, 2023
commit 0050bf1a6e592d1662f21ebb104978151dec352b
2 changes: 1 addition & 1 deletion src/fraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class Fraction {
this.denominator = parseFloat(split[1])

if (Number.isNaN(this.numerator) || Number.isNaN(this.denominator)) throw new Error("Invalid arguments");

if (this.denominator === 0) throw new Error("Denominator cant be 0")
} else if (typeof a === 'number' && typeof b === 'number') {
this.numerator = a;
this.denominator = b;
Expand Down