wxEcMath is the name given to the library, which contains sub-classes. You really need to know wxEcEngine, wxEcPlot, wxEcComplex and wxEcMatrix.
To compile the library, you just need to include it in your workspace. There is no makefile, and no shared library.
Depending on your needs, you will have to include header files. New names begin with prefix "wxEc". If you don't need a class, don't include the associated header file.
- See also
To perform a simple computation, it is not harder than :
To create a plot, do like other common components :
m_plot = new wxEcPlot
, wxID_ANY, wxDefaultPostion, wxDefaultSize);
m_yourSizer->Add(m_plot, 1, wxEXPAND|wxALL, 5);
To draw a curve, you have to create a new object :
(wxT("sqr(x)/10 $ -7 4*pi"
If you want to use complex numbers, it is not complicated :
c = a + b;
d = a * c;
When using matrixes, you will have to initialize each cell before being able to operate. Automated fills can be managed by wxEcMatrix::Clear(), wxEcMatrix::Factor() and wxEcMatrix::AddConstant().
matC = matA * matB;
- A matrix stores values in double format. At C++ compilation, make sure your values won't be considered as integer values. Thus, you must write "my_matrix.Clear(2.0/3.0)" not "my_matrix.Clear(2/3)". In case of doubt, wxEcMatrix::DumpAsString() can show you the content of the matrix.