Home Online Manual
Top
Back: minIntRoot
Forward: dmodapp_lib
FastBack: central_lib
FastForward: dmodapp_lib
Up: dmod_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.7.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