# First Steps ¶

This is meant to be a gentle introduction to the symengine C++ library.

## Working with Expressions¶

We will start by inspecting the use of Expression.

#include <symengine/expression.h>
using SymEngine::Expression;

Expression x("x");

auto ex = pow(x+sqrt(Expression(2)), 6);
ex

$\left(x + \sqrt{2}\right)^6$
expand(ex)

$8 + 24 \sqrt{2} x + 40 \sqrt{2} x^3 + 6 \sqrt{2} x^5 + 60 x^2 + 30 x^4 + x^6$

Review

Written on 27 August 2020, proofread on 20 January 2021