Changeset 7956ecc in git
- Timestamp:
- Sep 21, 1999, 2:29:29 PM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 9f8d5d3ce9044926152c6915b3b05def5c0129a8
- Parents:
- ca18d3b3adb9e51465a8bcaaa281c41f87c41d85
- 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 SingularExp $1 // $Id: graphics.lib,v 1.5 1999-09-21 12:29:29 obachman Exp $ 2 2 // 3 3 // author : Christian Gorzel email: gorzelc@math.uni-muenster.de 4 4 // 5 5 /////////////////////////////////////////////////////////////////////////////// 6 version="$Id: graphics.lib,v 1. 4 1999-07-06 15:32:47 SingularExp $";6 version="$Id: graphics.lib,v 1.5 1999-09-21 12:29:29 obachman Exp $"; 7 7 info=" 8 8 LIBRARY: graphics.lib PROCEDURES FOR GRAPHICS WITH MATHEMATICA … … 11 11 staircase(fname,I); Mathematica text for displaying staircase of I 12 12 mathinit(); string for loading Mathematica's ImplicitPlot 13 plot(fname,I[# s]); Mathematica text for various plots13 mplot(fname,I[# s]); Mathematica text for various plots 14 14 "; 15 15 … … 151 151 152 152 /////////////////////////////////////////////////////////////////////////////// 153 proc plot(string fname,ideal I,list #)154 "USAGE: plot(I[,#]); fname string; I ideal , # strings representing the153 proc mplot(string fname,ideal I,list #) 154 "USAGE: mplot(I[,#]); fname string; I ideal , # strings representing the 155 155 plot region or further ideals 156 156 RETURN: string, text with Mathematica commands to display a plot … … 169 169 an implicit curve given as f == 0 170 170 171 EXAMPLE: example plot; shows an example171 EXAMPLE: example mplot; shows an example 172 172 " 173 173 { … … 336 336 ideal I = x1^3 + x1, x1^2; 337 337 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); 340 340 341 341 ring rr1 = 0,x,dp; export rr1; 342 342 ideal I(1) = 2x2-1/2x3 +1, x-1; 343 343 ideal I(2) = x3-x ,x; ""; 344 plot("",I(1),I(2),"-2,4");344 mplot("",I(1),I(2),"-2,4"); 345 345 346 346 // Paste the output into a Mathematica notebook … … 351 351 I(1) = x3,-1/10x3+x2,x2; 352 352 I(2) = x2,-x2+2,-2x2-x+1; ""; 353 plot("",I(1),I(2));353 mplot("",I(1),I(2)); 354 354 355 355 // Paste the output into a Mathematica notebook … … 371 371 372 372 poly f = (x-y)*(x2+y); 373 plot("",f); "";373 mplot("",f); ""; 374 374 ideal J = jacob(f); 375 375 J; ""; 376 plot("",J[1],J[2]); // bad resolution376 mplot("",J[1],J[2]); // bad resolution 377 377 ""; 378 plot("",J[1],J[2],"-10,10","-10,10"); // get better picture in this way379 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"); 383 383 384 384 // Paste the output into a Mathematica notebook … … 392 392 393 393 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"); 396 396 397 397 // Paste the output into a Mathematica notebook
Note: See TracChangeset
for help on using the changeset viewer.