Skip to content

Commit 19d5880

Browse files
authored
Update README.md
1 parent f859a11 commit 19d5880

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The module can evaluate mathematical expressions such as:
2828
+ `min(cos(sin(30))+2^2;1)`
2929
+ \* `GCD(1280;240;100;30*cos(0);10*DET({{sin(atn(1)*2); 0; 0}; {0; 2; 0}; {0; 0; 3}}))`
3030

31-
\*`GCD` and `DET` are user-defined functions (UDF).
31+
\*`GCD` is an user-defined function (UDF).
3232

3333
Allowed expressions must follow the following grammar:
3434

@@ -80,9 +80,9 @@ Sub AddingNewFunctions()
8080
Dim Result As String
8181
8282
Set Evaluator = New VBAexpressions
83-
UDFnames() = Array("GCD", "DET")
83+
UDFnames() = Array("GCD")
8484
With Evaluator
85-
.DeclareUDF UDFnames, "UserDefFunctions" 'Declare the Greatest Common Divisor and Determinant functions
85+
.DeclareUDF UDFnames, "UserDefFunctions" 'Declare the Greatest Common Divisor function
8686
'defined in the UDfunctions class module. This need
8787
'an instance in the VBAcallBack class module.
8888
' The determinant of a diagonal matrix. It is defined
@@ -100,8 +100,6 @@ VBA expressions can evaluate matrix functions whose arguments are given as array
100100

101101
However, user-defined array functions need to take care of creating arrays from a string, the `ArrayFromString` method can be used for this purpose.
102102

103-
As an illustration, the `UDFunctions.cls` module has an implementation of the `DET` function with an example of using the array handle function. In addition, the `GCD` function is implemented as a demo.
104-
105103
## Using the code
106104
VBA Expressions is an easy-to-use library, this section shows some examples of how to use the most common properties and methods
107105

0 commit comments

Comments
 (0)