Changeset 7956ecc in git


Ignore:
Timestamp:
Sep 21, 1999, 2:29:29 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
9f8d5d3ce9044926152c6915b3b05def5c0129a8
Parents:
ca18d3b3adb9e51465a8bcaaa281c41f87c41d85
Message:
* renamed plot to mplot to avoid name conflickts with polt from
  surf.lib


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/graphics.lib

    rca18d3 r7956ecc  
    1 // $Id: graphics.lib,v 1.4 1999-07-06 15:32:47 Singular Exp $
     1// $Id: graphics.lib,v 1.5 1999-09-21 12:29:29 obachman Exp $
    22//
    33// author : Christian Gorzel email: gorzelc@math.uni-muenster.de
    44//
    55///////////////////////////////////////////////////////////////////////////////
    6 version="$Id: graphics.lib,v 1.4 1999-07-06 15:32:47 Singular Exp $";
     6version="$Id: graphics.lib,v 1.5 1999-09-21 12:29:29 obachman Exp $";
    77info="
    88LIBRARY: graphics.lib    PROCEDURES FOR GRAPHICS WITH MATHEMATICA
     
    1111 staircase(fname,I);  Mathematica text for displaying staircase of I
    1212 mathinit();          string for loading Mathematica's ImplicitPlot
    13  plot(fname,I[# s]);  Mathematica text for various plots
     13 mplot(fname,I[# s]);  Mathematica text for various plots
    1414";
    1515
     
    151151
    152152///////////////////////////////////////////////////////////////////////////////
    153 proc  plot(string fname,ideal I,list #)
    154 "USAGE:   plot(I[,#]); fname string; I ideal , # strings representing the
     153proc  mplot(string fname,ideal I,list #)
     154"USAGE:   mplot(I[,#]); fname string; I ideal , # strings representing the
    155155                         plot region or further ideals
    156156RETURN:  string, text with Mathematica commands to display a plot
     
    169169          an implicit curve given as  f == 0
    170170
    171 EXAMPLE: example plot; shows an example
     171EXAMPLE: example mplot; shows an example
    172172"
    173173{
     
    336336   ideal I = x1^3 + x1, x1^2;
    337337   ideal J = x1^2,-x1+x1^3; "";
    338    plot("",J); "";
    339    plot("",I,"-2,2",J);
     338   mplot("",J); "";
     339   mplot("",I,"-2,2",J);
    340340
    341341   ring rr1 = 0,x,dp;  export rr1;
    342342   ideal I(1) = 2x2-1/2x3 +1, x-1;
    343343   ideal I(2) = x3-x ,x; "";
    344    plot("",I(1),I(2),"-2,4");
     344   mplot("",I(1),I(2),"-2,4");
    345345
    346346 // Paste the output into a Mathematica notebook
     
    351351   I(1) = x3,-1/10x3+x2,x2;
    352352   I(2) = x2,-x2+2,-2x2-x+1; "";
    353    plot("",I(1),I(2));
     353   mplot("",I(1),I(2));
    354354
    355355 // Paste the output into a Mathematica notebook
     
    371371
    372372   poly f = (x-y)*(x2+y);
    373    plot("",f); "";
     373   mplot("",f); "";
    374374   ideal J = jacob(f);
    375375   J; "";
    376    plot("",J[1],J[2]);     // bad resolution
     376   mplot("",J[1],J[2]);     // bad resolution
    377377   "";
    378    plot("",J[1],J[2],"-10,10","-10,10");  // get better picture in this way
    379 
    380    plot("",I(1),I(2),"-2.5,2.5"); "";
    381 
    382    plot("",I(3),"-2,2");
     378   mplot("",J[1],J[2],"-10,10","-10,10");  // get better picture in this way
     379
     380   mplot("",I(1),I(2),"-2.5,2.5"); "";
     381
     382   mplot("",I(3),"-2,2");
    383383
    384384 // Paste the output into a Mathematica notebook
     
    392392
    393393   ideal J(2) = xy,y,x2; "";
    394    plot("",J(1),"-2,1","1,2");  "";
    395    plot("",J(2),"-1.5,1.5","-2,2");
     394   mplot("",J(1),"-2,1","1,2");  "";
     395   mplot("",J(2),"-1.5,1.5","-2,2");
    396396
    397397 // Paste the output into a Mathematica notebook
Note: See TracChangeset for help on using the changeset viewer.