Changeset bfff18e in git for Singular/LIB
- Timestamp:
- May 19, 1999, 1:28:55 PM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a1c9c024fcfe57d4d7c4505aaef8f489171d67f3
- Parents:
- 45ce793cb374cf63eb4115ae8584390e35f69d82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/standard.lib
r45ce793 rbfff18e 1 // $Id: standard.lib,v 1. 29 1999-04-22 08:35:12 obachmanExp $1 // $Id: standard.lib,v 1.30 1999-05-19 11:28:55 Singular Exp $ 2 2 ////////////////////////////////////////////////////////////////////////////// 3 3 4 version="$Id: standard.lib,v 1. 29 1999-04-22 08:35:12 obachmanExp $";4 version="$Id: standard.lib,v 1.30 1999-05-19 11:28:55 Singular Exp $"; 5 5 info=" 6 6 LIBRARY: standard.lib PROCEDURES WHICH ARE ALWAYS LOADED AT START-UP … … 414 414 //if size(#)>2 a minimal resolution is computed 415 415 416 string varstr_P = varstr(P); 417 416 418 //LaScala for the homogeneous case 417 419 if(homog(m)==1) … … 727 729 proc sprintf(string fmt, list #) 728 730 "USAGE: sprintf(fmt, ...) fmt string 729 RETURN: string 730 PURPOSE: sprintf performs output formatting. The first argument is a format 731 control string. Additional arguments may be required, depending on 732 the contents of the control string. A series of output characters is 733 generated as directed by the control string; these characters are 731 RETURN: string 732 PURPOSE: sprintf performs output formatting. The first argument is a format 733 control string. Additional arguments may be required, depending on 734 the contents of the control string. A series of output characters is 735 generated as directed by the control string; these characters are 734 736 returned as a string. The control string is simply text to be copied, 735 737 except that the string may contain conversion specifications. Do 736 738 'help print:' for a listing of valid conversion specifications. 737 As an addition to the conversions of 'print', the '%n' and '%2' 739 As an addition to the conversions of 'print', the '%n' and '%2' 738 740 conversion specification does not consume an additional argument, 739 741 but simply generates a newline character. 740 NOTE: If one of the additional arguments is a list, then it should be 742 NOTE: If one of the additional arguments is a list, then it should be 741 743 enclosed once more into a list() command, since passing a list 742 744 as an argument flattens the list by one level. … … 814 816 "USAGE: printf(fmt, ...) fmt string 815 817 RETURN: none 816 PURPOSE: printf performs output formatting. The first argument is a format 817 control string. Additional arguments may be required, depending on 818 the contents of the control string. A series of output characters is 819 generated as directed by the control string; these characters are 820 displayed (i.e. printed to standard out). 821 The control string is simply text to be copied, except that the 822 string may contain conversion specifications. 818 PURPOSE: printf performs output formatting. The first argument is a format 819 control string. Additional arguments may be required, depending on 820 the contents of the control string. A series of output characters is 821 generated as directed by the control string; these characters are 822 displayed (i.e. printed to standard out). 823 The control string is simply text to be copied, except that the 824 string may contain conversion specifications. 823 825 Do 'help print:' for a listing of valid conversion specifications. 824 As an addition to the conversions of 'print', the '%n' and '%2' 826 As an addition to the conversions of 'print', the '%n' and '%2' 825 827 conversion specification does not consume an additional argument, 826 828 but simply generates a newline character. 827 829 828 NOTE: If one of the additional arguments is a list, then it should be 830 NOTE: If one of the additional arguments is a list, then it should be 829 831 enclosed once more into a list() command, since passing a list 830 832 as an argument flattens the list by one level. … … 854 856 "USAGE: fprintf(l, fmt, ...) l link; fmt string 855 857 RETURN: none 856 PURPOSE: fprintf performs output formatting. The second argument is a format 857 control string. Additional arguments may be required, depending on 858 the contents of the control string. A series of output characters is 859 generated as directed by the control string; these characters are 858 PURPOSE: fprintf performs output formatting. The second argument is a format 859 control string. Additional arguments may be required, depending on 860 the contents of the control string. A series of output characters is 861 generated as directed by the control string; these characters are 860 862 written to the link l. 861 The control string is simply text to be copied, except that the 862 string may contain conversion specifications. 863 The control string is simply text to be copied, except that the 864 string may contain conversion specifications. 863 865 Do 'help print:' for a listing of valid conversion specifications. 864 As an addition to the conversions of 'print', the '%n' and '%2' 866 As an addition to the conversions of 'print', the '%n' and '%2' 865 867 conversion specification does not consume an additional argument, 866 868 but simply generates a newline character. 867 869 868 NOTE: If one of the additional arguments is a list, then it should be 870 NOTE: If one of the additional arguments is a list, then it should be 869 871 enclosed once more into a list() command, since passing a list 870 872 as an argument flattens the list by one level. … … 890 892 fprintf(li, "%b", M); 891 893 } 892 893 894 895 896 894 895 896 897 898 897 899 898 900 /*
Note: See TracChangeset
for help on using the changeset viewer.