Evaluates an expression (in text-based form) at a given independent variable value. The expression must be written as a string, similar to:
ax^2 + Sin(2x) + b^x
You may include “parameters” such as ‘a’ and ‘b’ in the above equation, which can then be assigned a value. Parameters that are more than a single letter must be written as ‘[abc]’.
The string expression is case-sensitive. For example, in the above expression, writing ‘Sin’ as ‘sin’ will not work. Similarly, the natural log should be written as ‘Ln’ instead of ‘ln’. And so on.
Number | Name | Object Type | Description | Optional |
---|---|---|---|---|
1 | Expression | System.String | First expression, as a string | No |
2 | Ind Variable | System.String | The independent variable. Defaults to ‘x’. | Yes |
3 | Parameters | List<System.String> | List of all parameters (other than the independent variable). | Yes |
4 | Parameter Values | List<System.Double> | Value for each parameter. Must contain the same number of values as parameters defined. | Yes |
5 | Evaluate At | System.Double | The value of the independent variable to evaluate the function at. | No |
Number | Name | Object Type | Description |
---|---|---|---|
1 | Value | System.Double | The value of the function at the independent variable specified. |