
Hello,
you have planned the implementation of matrices.
Do you already know how long it will be take or you already
finished yet?
Thank you.
I really need the implementation of matrices.
Like this, Matrix.M1..M2 ... > IMathExpression,
Every MatrixElement should be an expression.
And the Matrix could be parsed like this 2*{2,3,4} or what do you mean?
Best Regards.
Ronny


Coordinator
Nov 20, 2013 at 3:38 PM

I implemented wrappers for vector and matrix (in the "dev" branch). But I don't know how to implement add, sub, mul and etc of matrices.
The Calculate method returns "double", but I have to have IMathExpression.
I can change the IMathExpression interface.
public interface IMathExpession
{
// ...
IMathExpression Calculate(...); // How to get number without casting to Number.
// ...
}
But I will break all existing code.


Coordinator
Nov 20, 2013 at 3:45 PM

Or:
Create separated classes for operations (As Simplify), but it's strange decision.



I've seen that you've added matrices. Very nice. Thank you ;)
Could you also add a function for sumarizing, maybe like this one,
Sum(IMathExpression expression,string indexName, IMathExpression indexInit, IMathExpression increment)
Thank you. ;)
And many thanks for your create work



I've seen you've also added these features. Many thanks :)


Mar 4, 2014 at 10:52 AM
Edited Mar 4, 2014 at 11:24 AM

Another thing,
why I can't calculate the product of two vectors?
Or Crossproduct etc. Will this be supported in future? like this "cross({0,1,2},{3,4,5})"
I also want to do this, abs({0,1,2}) the absolute value of a vector.
I hope it could be solved or added.
Thank you.
Regards
Ronny


Coordinator
Mar 5, 2014 at 8:53 AM

The product AB is defined only if the number of columns in A is equal to the number of rows in B.
If A = {1, 2, 3}  1 row, 3 cols
And B = {4, 8, 2}  1 row (need 3 rows), 3 cols.



could you also implement the cross product?
and maybe the length of a vector, like this abs({1,2,3}), => sqrt(1²+2²+3²).
Do you still plan to implement a SolveFeature? Like 10+x=15.
Sorry, many questions. But your library is the most powerful and fastest math lib for c#.
Another thing would be a nice feature.
Complex Number. Like 10i < 5°,
The .Net Framework has support for such numbers,
maybe you could include it in your library.
Thank you.
Best Regards
Ronny


Coordinator
Mar 8, 2014 at 9:29 AM

I don't plan to implement complex numbers and a solving of expressions now. Maybe later.


Coordinator
Mar 8, 2014 at 9:34 AM

Cross product of vector.
In this implementation, a vector is a sequence of elements (an onedimensional array). A matrix is a twodimensional array.
{1, 2, 3} don't means coordinates of vector.


Mar 8, 2014 at 9:49 AM
Edited Mar 8, 2014 at 9:51 AM

I want to cross two vectors like that,
v1 = {1,2,3};
v2 = {2,3,4};
cross(v1,v2);
so I just want to parse it like this... ="cross({1,2,3},{2,3,4})", the result should be
= { 1 ; 2 ; 1 }
I also want to calculate the determinate of a matrix, also be parsed, ="det({{1,2},{2,3}})",
a squared matrix, the result should be a number.
And an important think is the implementation of vector length.
abs({1,2,3}), I want to use the absFunction with a Vector parameter,
Regards
Ronny


Coordinator
Mar 9, 2014 at 8:44 AM

"det({{1,2},{2,3}})" works. Result is 1.
I maybe implement cross and abs later.



Hi,
do you know why I can't parse something like this?
({1,2,3}*4)+{2,3,4}
you couldn't be parsed. {4,8,12}+{2,3,4}={6,11,16}
I hope its only a little problem.
With my real calculator it works perfectly.
Thanks and I hope you could solve this.
Ronny :)


Coordinator
Mar 21, 2014 at 4:59 PM

It's a bug in Add, Sub and Mul. I'll fix it.


Coordinator
Mar 22, 2014 at 1:11 PM

Fixed.



thx =)

