Algebraic.isSet - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : OpenMaple : Java Application Programming Interface : Algebraic Class : OpenMaple/Java/Algebraic/isSet

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[];

        Engine engine;

        Algebraic a1, a2;

        mapleArgs = new String[1];

        mapleArgs[0] = "java";

        engine = new Engine( mapleArgs, new EngineCallBacksDefault(),

                null, null );

        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

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam