Demo entry 6361899

1

   

Submitted by anonymous on May 05, 2017 at 16:25
Language: Matlab. Code size: 276 Bytes.

x=100000;
y1=0;
y2=0;
y1=log(x-sqrt(x^2-1));
y2=-log(x+sqrt(x^2-1));
y1
y2
z1=single(y1);
z2=single(y2);
c=single(x);
v=single(x^2-1);
z1=log(c-sqrt(v));
z2=-log(c+sqrt(v));
z1
z2

y1 = -12.206073762186564
y2 = -12.206072645505174
z1 = -Inf
z2 = -12.2060728

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).