Category : algebra

This question is more about algebra than programming but maybe I will find some help here 🙂 I am trying to create a QRect around a QLine with given offset(see picture below). Having the segment AB and the offset, how to find all the missing points to create a QRect? Source: Windows Que..

Read more

I wanted to simplify algebraic expressions in c++. I started with something simple: removing brackets from a algebraic expression containing + and – operators. For example, a-(b-c) should be simplified to a-b+c. This link gives the answer to this question. Here is the source code: #include <iostream> #include <string.h> #include <stack> using namespace std; // ..

Read more