Skip to content

Commit

Permalink
Close #302 - Add 'tohex', 'tooct', 'tobin' functions (#326)
Browse files Browse the repository at this point in the history
* Tests

* Close #302 - Add 'tohex', 'tooct', 'tobin' functions
  • Loading branch information
sys27 committed Sep 18, 2020
1 parent 2fb2441 commit 0636b45
Show file tree
Hide file tree
Showing 48 changed files with 1,479 additions and 1,122 deletions.
27 changes: 27 additions & 0 deletions xFunc.Maths/Analyzers/Analyzer{TResult,TContext}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,33 @@ public virtual TResult Analyze(DelegateExpression exp, TContext context)
public virtual TResult Analyze(Sign exp, TContext context)
=> throw new NotSupportedException();

/// <summary>
/// Analyzes the specified expression.
/// </summary>
/// <param name="exp">The expression.</param>
/// <param name="context">The context.</param>
/// <returns>The result of analysis.</returns>
public virtual TResult Analyze(ToBin exp, TContext context)
=> throw new NotSupportedException();

/// <summary>
/// Analyzes the specified expression.
/// </summary>
/// <param name="exp">The expression.</param>
/// <param name="context">The context.</param>
/// <returns>The result of analysis.</returns>
public virtual TResult Analyze(ToOct exp, TContext context)
=> throw new NotSupportedException();

/// <summary>
/// Analyzes the specified expression.
/// </summary>
/// <param name="exp">The expression.</param>
/// <param name="context">The context.</param>
/// <returns>The result of analysis.</returns>
public virtual TResult Analyze(ToHex exp, TContext context)
=> throw new NotSupportedException();

#endregion Standard

#region Matrix
Expand Down
24 changes: 24 additions & 0 deletions xFunc.Maths/Analyzers/Analyzer{TResult}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ public virtual TResult Analyze(DelegateExpression exp)
public virtual TResult Analyze(Sign exp)
=> throw new NotSupportedException();

/// <summary>
/// Analyzes the specified expression.
/// </summary>
/// <param name="exp">The expression.</param>
/// <returns>The result of analysis.</returns>
public virtual TResult Analyze(ToBin exp)
=> throw new NotSupportedException();

/// <summary>
/// Analyzes the specified expression.
/// </summary>
/// <param name="exp">The expression.</param>
/// <returns>The result of analysis.</returns>
public virtual TResult Analyze(ToOct exp)
=> throw new NotSupportedException();

/// <summary>
/// Analyzes the specified expression.
/// </summary>
/// <param name="exp">The expression.</param>
/// <returns>The result of analysis.</returns>
public virtual TResult Analyze(ToHex exp)
=> throw new NotSupportedException();

#endregion Standard

#region Matrix
Expand Down

0 comments on commit 0636b45

Please sign in to comment.