Top
Back: 5.1.101 quot
Forward: 5.1.103 quotient
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

5.1.102 quote

Syntax:

quote ( expression )

Type:

none

Purpose:

prevents expressions from evaluation. Used only in connections with write to MPfile links, prevents evaluation of an expression before sending it to an other SINGULAR process. Within a quoted expression, the quote can be "undone" by an eval (i.e., each eval "undoes" the effect of exactly one quote).

Example:
 
  link l="MPfile:w example.mp";
  ring r=0,(x,y,z),ds;
  ideal i=maxideal(3);
  ideal j=x7,x2,z;
  option(prot);
  // compute i+j before writing, but not std
  write (l, quote(std(eval(i+j))));
  close(l);
  // now read it in again and evaluate:
  read(l);
→ [1023:1]1(12)s2(11)s3(10)--s(7)s(6)-----7-
→ product criterion:4 chain criterion:0
→ _[1]=z
→ _[2]=x2
→ _[3]=xy2
→ _[4]=y3
  close(l);

See MPfile links; eval; write.


Top Back: 5.1.101 quot Forward: 5.1.103 quotient FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.