Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
edmond-chow authored Sep 19, 2023
1 parent 3e909b5 commit 176483e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions C#/Complex.rar/Complex/Complex 2.0/Cayley Dickson Algebra.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ public static Number Neg(Number Value)
}
public static Number Conjg(Number Value)
{
Number Output = Neg(Value);
Output[0] = -Output[0];
return Output;
return new Number(Value.Take(1).Concat(Value.Skip(1).Select((double V) => { return -V; })).ToArray());
}
public Number Left
{
Expand Down
4 changes: 1 addition & 3 deletions C#/Complex.rar/Complex/Complex 3.0/Cayley Dickson Algebra.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ public static Number Neg(Number Value)
}
public static Number Conjg(Number Value)
{
Number Output = Neg(Value);
Output[0] = -Output[0];
return Output;
return new Number(Value.Take(1).Concat(Value.Skip(1).Select((double V) => { return -V; })).ToArray());
}
public Number Left
{
Expand Down
4 changes: 1 addition & 3 deletions C#/Complex.rar/Complex/Complex/Cayley Dickson Algebra.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ public static Number Neg(Number Value)
}
public static Number Conjg(Number Value)
{
Number Output = Neg(Value);
Output[0] = -Output[0];
return Output;
return new Number(Value.Take(1).Concat(Value.Skip(1).Select((double V) => { return -V; })).ToArray());
}
public Number Left
{
Expand Down
4 changes: 1 addition & 3 deletions C#/Complex.rar/Complex/Sedenion/Cayley Dickson Algebra.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ public static Number Neg(Number Value)
}
public static Number Conjg(Number Value)
{
Number Output = Neg(Value);
Output[0] = -Output[0];
return Output;
return new Number(Value.Take(1).Concat(Value.Skip(1).Select((double V) => { return -V; })).ToArray());
}
public Number Left
{
Expand Down

0 comments on commit 176483e

Please sign in to comment.