Top
Back: minIntRoot
Forward: dmodapp_lib
FastBack:
FastForward:
Up: dmod_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.5.4.0. isRational
Procedure from library dmod.lib (see dmod_lib).

Usage:
isRational(n); n number

Return:
int

Purpose:
determine whether n is a rational number,
that is it does not contain parameters.

Assume:
ground field is of characteristic 0

Example:
 
LIB "dmod.lib";
ring r = (0,a),(x,y),dp;
number n1 = 11/73;
isRational(n1);
==> 1
number n2 = (11*a+3)/72;
isRational(n2);
==> 0

Top Back: minIntRoot Forward: dmodapp_lib FastBack: FastForward: Up: dmod_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.