epix-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ePiX-users] Fwd: Need help to find error


From: Hwang, Andrew
Subject: Re: [ePiX-users] Fwd: Need help to find error
Date: Sun, 2 May 2021 11:18:30 -0400

Hi Gunnar,

Your code compiles for me (PDF attached). The /undefined in getenv during the call of ps2epsi looks like an issue with ghostscript. Another user reported a similar-looking error last year, related to

https://bugs.ghostscript.com/show_bug.cgi?id=702024

I was never able to reproduce the error, unfortunately. If you're able to resolve the issue by updating ghostcript or otherwise work around it, I'd be interested to know.

Andy



On Sun, May 2, 2021 at 9:01 AM Gunnar Lindholm <lindholm.gunnar@gmail.com> wrote:
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();
}



_______________________________________________
ePiX-users mailing list
ePiX-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/epix-users


--
Andrew D. Hwang (he/him/his)   ahwang@holycross.edu
Department of Math and CS      http://math.holycross.edu/~ahwang
College of the Holy Cross      (508) 793-2458 (Office: 339 Swords)
Worcester, MA, 01610-2395      (508) 793-3530 (fax)

Attachment: epixtest.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]