## AngouriMath

## Settings

## Description

**Summary**

A couple of settings allowing you to set some preferences for AM's algorithms

To use these settings the syntax is

To use these settings the syntax is

```
using var _ = MathS.Settings.SomeSetting.Set(5 /* Here you set a value to the setting */);
// here you write your code normally
```

## Members

### AllowNewton

Property**Summary**If you only need analytical solutions and an empty set if no analytical solutions were found, disable Newton's method

### ComplexityCriteria

Property**Summary**Criteria for simplifier so you could control which expressions are considered easier by you

### DecimalPrecisionContext

Property**Summary**Settings for EDecimal precisions of PeterO.Numbers### DowncastingEnabled

Property**Summary**Enables downcasting. Not recommended to turn off, disabling might be only useful for some calculations

### ExplicitParsingOnly

Property**Summary**Determine if it should only parse if it is explicit

### FloatToRationalIterCount

Property**Summary**Amount of iterations allowed for attempting to cast to a rational

The more iterations, the larger fraction could be calculated

### MaxAbsNumeratorOrDenominatorValue

Property**Summary**If a numerator or denominator is too large, it's suspended to better keep the real number instead of casting

### MaxExpansionTermCount

Property**Summary**The maximum number of linear children of an expression in polynomial solver

considering that there's no more than 1 children with the required variable, for example:

(x + 2) ^ 2 3 [x2, 4x, 4] x + 3 + a 2 [x, 3 + a] (x + a)(b + c) 2 [(b + c)x, a(b + c)] (x + 3 + a) / (x + 3) 2 [x / (x + 3), (3 + a) / (x + 3)] x2 + x + 1 3 [x2, x, 1]

Expression Complexity ### NewtonSolver

Property**Summary**Settings for the Newton-Raphson's root-search method

e.g.

`using var _ = MathS.Settings.NewtonSolver.Set(new NewtonSetting { From = (-10, -10), To = (10, 10), StepCount = (10, 10), Precision = 30 }); ...`

### PrecisionErrorCommon

Property**Summary**Sets threshold for comparison

For example, if you don't need precision higher than 6 digits after .,

you can set it to 1.0e-6 so 1.0000000 == 0.9999999

### PrecisionErrorZeroRange

Property**Summary**Numbers whose absolute value is less than PrecisionErrorZeroRange are considered zeros

2019-2021 Angouri · Project's repo · Site's repo · Octicons