%% Simplify a symbolic expression by means of "Task"
%% (live script:   simplify_task2.mlx,   after inserting the "Simplification Task")
%

clear; clc
syms x real
e1=((exp(-x*1i)*1i) - (exp(x*1i)*1i));
e2=(exp(-x*1i) + exp(x*1i));
espr=e1/e2;

%

% Compute simplified symbolic expression
espr
simplifiedExpr = simplify(espr,"Steps",1600)

%%