Simply write a mathematical expression in any emacs buffer, and on that line, if you press C-x * e emacs will evaluate the expression and enter embedded calc mode.

If you press C-x * d it will evaluate in a new line.

Pressing q will exist the calc embed mode.

If you press C-x * o it will open the calc buffers without switching to them.