I want to calculate ln(1+x)in verilog A. I know that the code is
y = ln(1+x);
But if the x value becomes very small(ex x=3.52e-18), the y value becomes zero. In MATLAB, I can calculate like
y=log1p(x);
and I want to calculate like that code. How can I calculate more accurately?