Algebraic.isSet
check if the current Algebraic represents a Maple set
Calling Sequence
Description
Examples
boolean isSet() throws MapleException
The isSet function returns true if the current Algebraic object represents a Maple set.
import com.maplesoft.openmaple.*;
import com.maplesoft.externalcall.MapleException;
class Example
{
public static void main( String notused[] ) throws MapleException
String[] mapleArgs = { "java" };
Engine engine = new Engine( mapleArgs, new EngineCallBacksDefault(), null, null );
Algebraic a1 = engine.evaluate( "1:" );
if ( a1.isSet() )
System.out.println( "Set" );
}
else
System.out.println( "Not Set" );
a1 = engine.evaluate( "{1,2,3}:" );
Executing this code should produce the following output.
Not Set
Set
See Also
ExternalCalling/Java/MapleException
OpenMaple
OpenMaple/Java/Algebraic
OpenMaple/Java/API
set
Download Help Document