Hi there,
A friend of mine created a plugin for me that solves a set of linear equations.
The way to use it is as follows:
Suppose you need to the solve the next (simple) set of equations:
//
// x + 2y = 3
// 4x + 5y = 6
You use the plugin as follows:
CreateMatrix(2)
SetScaleFactor(1)
SetMatrixValue(1, 1, 1)
SetMatrixValue(1, 2, 2);
SetMatrixValue(2, 1, 4);
SetMatrixValue(2, 2, 5);
SetVectorValue(1, 3);
SetVectorValue(2, 6);
Solve()
GetValue(1)
GetValue(2)
Where value(1) is x and value(2) is y.
We like to contribute this plugin to the community (finally doing something back for the wonderful platform!).
how do I proceed? I do not know C++ nor do I have a compiler to add the instructions.
The plugin can be found at http://ags.drkoops.nl
can anyone help me putting this on the plugin site of ags?
kind regards,
martijn
Thanks for contributing! To add your plugin to the website, use this page:
http://www.agsforums.com/games.php?action=add&cat=21