You can use the expression parser of math.js, like:
var math = mathjs();
var result = math.eval('(1^3)/(1+x^(1/2))', {x: 16}); // 0.2
One thing: math.js currently lacks bitwise operations as you use in your example. I'm not sure if in your example you actually intend to do bitwise operations or mean to do power operations.