Changeset afe420 in git for Singular/LIB/surf.lib


Ignore:
Timestamp:
Mar 2, 2001, 2:41:19 PM (23 years ago)
Author:
Eric Westenberger <westenb@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a3705ae0dbd6279402189c585e055106566f94f1
Parents:
89ff330823701e119667003326742b3326348ba6
Message:
* slightly changed documentation and error messages


git-svn-id: file:///usr/local/Singular/svn/trunk@5299 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/surf.lib

    r89ff33 rafe420  
    1 //last change: 13.02.2001 (Eric Westenberger)
     1//last change: 02.03.2001 (Eric Westenberger)
    22///////////////////////////////////////////////////////////////////////////////
    3 version="$Id: surf.lib,v 1.18 2001-02-19 14:17:49 lossen Exp $";
     3version="$Id: surf.lib,v 1.19 2001-03-02 13:41:19 westenb Exp $";
    44category="Visualization";
    55info="
     
    1818
    1919PROCEDURES:
    20  plot(I);  plots curves and surfaces
     20 plot(I);  plots plane curves and surfaces
    2121";
    2222
     
    4141proc  plot(ideal I,list #)
    4242"USAGE:   plot(I);  I ideal
    43 ASSUME: I involves only 2 or 3 variables
     43ASSUME: I defines a plane curve or a surface
    4444RETURN: nothing
    4545NOTE: requires the external program 'surf' to be installed
     
    4848{
    4949  string l="/tmp/surf"+string(system("pid"));
     50  string err_mes; // string containing error messages
    5051  def base=basering;
    5152  intvec v=num_of_vars(I);
     
    5758  if (n==0 or n>3)
    5859  {
    59     string err_mes="Cannot plot equations with "+string(n)+" variables";
     60    err_mes="Cannot plot equations with "+string(n)+" variables";
    6061    ERROR(err_mes);
    6162  }
     
    107108    else
    108109    {
    109       ERROR("cannot plot"+string(ncols(I))+"equations in"
    110              +string(n)+"variables");
     110      err_mes="cannot plot "+string(ncols(I))+" equations in "
     111             +string(n)+" variables";
     112      ERROR(err_mes);
    111113    }
    112114  }
     
    120122  if (i!=0)
    121123  {
    122     ERROR("calling `surf` failed. (the shell return the error code"
     124    err_mes = "calling `surf` failed. (the shell return the error code "
    123125          +string(i)+")."+newline+
    124     "probably the executable `surf` is not found.");
     126    "probably the executable `surf` is not found.";
     127    ERROR(err_mes);
    125128  }
    126129  i=system("sh","/bin/rm "+l);
Note: See TracChangeset for help on using the changeset viewer.