isSet - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Algebraic.isSet

check if the current Algebraic represents a Maple set

 

Calling Sequence

Description

Examples

Calling Sequence

boolean isSet() throws MapleException

Description

• 

The isSet function returns true if the current Algebraic object represents a Maple set.

Examples

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}:" );

        if ( a1.isSet() )

        {

            System.out.println( "Set" );

        }

        else

        {

            System.out.println( "Not Set" );

        }

    }

}

Executing this code should produce the following output.

Not Set

Set

See Also

ExternalCalling/Java/MapleException

OpenMaple

OpenMaple/Java/Algebraic

OpenMaple/Java/API

set