newTable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Engine.newTable

create a new Table

 

Calling Sequence

Description

Examples

Calling Sequence

Table newTable() throws MapleException

Description

• 

The newTable method creates a new empty Maple table.  It returns a Table object.

• 

Errors that occur within the Maple session are reported via errorCallBack, other errors are raised as a MapleException.

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 );

        Table t = (Table)engine.newTable( );

        System.out.println( t );

        Algebraic key = engine.newNumeric(10);

        t.assign( key, engine.newNumeric( 100 ) );

        System.out.println( t );

        System.out.println( t.select( key ) );

    }

}

Executing this code produces the following output.

table([])

table([(10)=100])

100

See Also

ExternalCalling/Java/MapleException

OpenMaple

OpenMaple/Java/API

OpenMaple/Java/Engine

 


Download Help Document