You can add an "html" block in Moodle. You would insert the generico filter string there.
If you are happy to use a normal calculator, and you have PoodLL installed, you could use the PoodLL small size calculator. The filter string for that looks like this:
{POODLL:type=calculator,size=normal}