Hello.
Haven't used epix for some time, but I tried to create a two squares inside a half-circle, but it failed.
I use 1.2.18
and I got this error
Error: /undefined in getenv
I've attached the log file
and here is the code
/* -*-ePiX-*- */
#include "epix.h"
using namespace ePiX;
double f(double x)
{
return sqrt(1-x*x);
}
int main()
{
picture(P(-1, 0), P(1, 1), "2.5 x 1.25in");
begin();
h_axis(4);
v_axis(2);
// h_axis_labels(xsize(), P(0, -4), b);
arc(P(0,0), 1, 0, M_PI);
bold();
double a,b,s1,s2;
s2 = 0.8;
a = f(s2);
b = s2-a;
s1 = -b/2 + sqrt(b*b/4+1-b*b);
rect(P(-b,0), P(a, s2));
// rect(P(-b-s1,0), P(-b, s1));
label(P(a, f(a)), P(2,4), "$y=\\sqrt{1-x^2}$", tr);
end();
}