You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Note: The WPF application (xFunc UI) was migrated to a separate repository [xFun
19
19
* Derivative and simplifying expressions;
20
20
* Plotting graphs;
21
21
* Truth tables;
22
-
* Supported Framework: .NET Standard 2.1+;
22
+
* Supported Framework: .NET 6+;
23
23
24
24
## Usage
25
25
@@ -39,7 +39,7 @@ var exp = processor.Parse("2 + x");
39
39
// you can calculate it or process it by analyzers (Differentiator, Simplifier, etc.)
40
40
41
41
// 'exp' has a parameter
42
-
// we should provide a value for varible 'x'
42
+
// we should provide a value for variable 'x'
43
43
varparameters=newParameterCollection
44
44
{
45
45
{ "x", 10 }
@@ -49,13 +49,13 @@ var result = exp.Execute(parameters);
49
49
// result will be equal to 12
50
50
```
51
51
52
-
_Note: The `Parse` method won't simplify expression automatically, it will return the complete representation of provided string expression._
52
+
_Note: The `Parse` method won't simplify the expression automatically, it will return the complete representation of provided string expression._
53
53
54
54
**Solve:**
55
55
56
-
This method parses string expression (like `Parse` method) and then calculates it (returns object which implements `IResult` interface).
56
+
This method parses string expression (like the `Parse` method) and then calculates it (returns object which implements the`IResult` interface).
57
57
58
-
There is two overloads of this method (common and generic). The common returns just `IResult` (you can access result by `Result` property). The generic allows to return specific implementation of `IResult` (eg. `NumberResult`).
58
+
There are two overloads of this method (common and generic). The "common" returns just `IResult` (you can access result by `Result` property). The generic allows to return specific implementation of `IResult` (eg. `NumberResult`).
59
59
60
60
```csharp
61
61
varprocessor=newProcessor();
@@ -71,12 +71,12 @@ If your expression has any parameter, you need to assign a value to it (otherwis
71
71
```csharp
72
72
processor.Solve("x := 10");
73
73
74
-
// or explicitly throught Parameters property
74
+
// or explicitly through Parameters property
75
75
76
76
processor.Parameters.Variables.Add("x", 10);
77
77
```
78
78
79
-
_Note: The `Solve` method automatically simplifies expression, to control this behavior you can use `simplify` argument. It's useful for differentiation, because it will eliminate unnecessary expression nodes._
79
+
_Note: The `Solve` method automatically simplifies expression, to control this behavior you can use the `simplify` argument. It's useful for differentiation because it will eliminate unnecessary expression nodes._
0 commit comments