P
P
petan4ik2015-12-07 20:25:57
Mathematics
petan4ik, 2015-12-07 20:25:57

How to create or what algorithm to apply for the "command line"?

I have a matrix class written in C#.
That is, all overloaded operators, etc. are available.
I want to implement operations on matrices by entering an expression into the console.
For example: A+B=C, 3*A+B*D=C and so on.
Matrices are set and created after entering the entire expression.
How can this be implemented? Only some confusing and complex algorithms come to mind.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-12-07
@petan4ik

A typical task of writing a "calculator", IMHO. You will only need to replace the standard operators with your matrix ones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question