<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16386" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff><FONT color=#7f0055 size=2>
<P align=left><SPAN class=231580712-19122012><FONT face="Iskoola Pota"
color=#0000ff size=3>Hi,</FONT></SPAN></P>
<P align=left><SPAN class=231580712-19122012><FONT face="Iskoola Pota"
color=#0000ff size=3>I am trying to call ode from java. but it shows
</FONT></SPAN></P>
<P align=left><SPAN class=231580712-19122012><FONT face="Iskoola Pota"
color=#0000ff size=3>an error like following, </FONT></SPAN></P><FONT
face="Iskoola Pota" color=#0000ff size=3><FONT size=2>
<P align=left>foo[1,1] = sci_matrix</P>
<P align=left>getHeight() = 1</P>
<P align=left>getHeight() = 5</P>
<P align=left>intdy-- t (=r1) illegal </P>
<P align=left>where r1 is : 0.2500000000000D-01 </P>
<P align=left>t n est pas entre tcur - hu (= r1) et tcur (=r2)</P>
<P align=left>where r1 is : 0.8694709664001D-02 and r2 : -0.7179037253078D-01
</P>
<P align=left>lsoda-- problems due to intdy. itask=i1,tout=r1</P>
<P align=left>where i1 is : 1 </P>
<P align=left>where r1 is : 0.2500000000000D-01 </P>
<P>testing </P></FONT></FONT>
<P align=left><FONT face="Iskoola Pota" color=#0000ff size=3></FONT> </P>
<P align=left><SPAN class=231580712-19122012><FONT face="Iskoola Pota"
color=#0000ff size=3>my code is as follows,</FONT></SPAN></P>
<P align=left><FONT face="Iskoola Pota" color=#0000ff size=3></FONT> </P>
<P align=left><STRONG><FONT
face="Iskoola Pota">class</FONT></STRONG></FONT><FONT size=2><FONT
face="Iskoola Pota" color=#000000> Example1 {</FONT></P>
<P align=left><FONT face="Iskoola Pota" color=#000000></FONT></P>
<P align=left></FONT><B><FONT color=#7f0055 size=2><FONT
face="Iskoola Pota">public</FONT></B></FONT><FONT face="Iskoola Pota"><FONT
size=2> </FONT><B><FONT color=#7f0055 size=2>static</B></FONT></FONT><FONT
face="Iskoola Pota"><FONT size=2> </FONT><B><FONT color=#7f0055
size=2>void</B></FONT></FONT><FONT face="Iskoola Pota"><FONT size=2>
main(String[] args) </FONT><B><FONT color=#7f0055
size=2>throws</B></FONT></FONT><FONT size=2><FONT face="Iskoola Pota">
Exception{</FONT></P>
<P align=left><FONT face="Iskoola Pota"></FONT></P>
<P align=left></FONT><B><FONT color=#7f0055 size=2><FONT
face="Iskoola Pota">try</FONT></B></FONT><FONT size=2><FONT face="Iskoola Pota">
{</FONT></P>
<P align=left><FONT face="Iskoola Pota">Scilab sci = </FONT></FONT><B><FONT
color=#7f0055 size=2><FONT face="Iskoola Pota">new</FONT></B></FONT><FONT
face="Iskoola Pota"><FONT size=2> Scilab(</FONT><B><FONT color=#7f0055
size=2>true</B></FONT></FONT><FONT size=2><FONT
face="Iskoola Pota">);</FONT></P>
<P align=left><FONT face="Iskoola Pota"></FONT></P>
<P align=left><FONT face="Iskoola Pota"></FONT></P>
<P align=left></FONT><B><FONT color=#7f0055 size=2><FONT
face="Iskoola Pota">if</FONT></B></FONT><FONT size=2><FONT face="Iskoola Pota">
(sci.open())</FONT></P>
<P align=left><FONT face="Iskoola Pota">{</FONT></P>
<P align=left><FONT face="Iskoola Pota">sci.exec(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"function dx=f(t,x);dx
=sin(2*t);endfunction"</FONT><FONT size=2><FONT
face="Iskoola Pota">);</FONT></P>
<P align=left><FONT face="Iskoola Pota"></FONT></P>
<P align=left><FONT face="Iskoola Pota"></FONT></P>
<P align=left><FONT face="Iskoola Pota">ScilabDouble t0=</FONT></FONT><B><FONT
color=#7f0055 size=2><FONT face="Iskoola Pota">new</FONT></B></FONT><FONT
size=2><FONT face="Iskoola Pota"> ScilabDouble(0);</FONT></P>
<P align=left><FONT face="Iskoola Pota">ScilabDouble x0=</FONT></FONT><B><FONT
color=#7f0055 size=2><FONT face="Iskoola Pota">new</FONT></B></FONT><FONT
size=2><FONT face="Iskoola Pota"> ScilabDouble(0.5);</FONT></P>
<P align=left><FONT face="Iskoola Pota">sci.put(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"t0"</FONT><FONT size=2><FONT
face="Iskoola Pota">,t0);</FONT></P>
<P align=left><FONT face="Iskoola Pota">sci.put(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"x0"</FONT><FONT size=2><FONT
face="Iskoola Pota">,x0);</FONT></P>
<P align=left><FONT face="Iskoola Pota">sci.exec(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"[t] = linspace(0,0.1,5);"</FONT><FONT
size=2><FONT face="Iskoola Pota">);</FONT></P>
<P align=left><FONT face="Iskoola Pota">ScilabType t=sci.get(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"t"</FONT><FONT size=2><FONT
face="Iskoola Pota">); </FONT></P>
<P align=left><FONT face="Iskoola Pota">System.</FONT></FONT><I><FONT
color=#0000c0 size=2><FONT face="Iskoola Pota">out</FONT></I></FONT><FONT
face="Iskoola Pota"><FONT size=2>.println(</FONT><FONT color=#2a00ff
size=2>"foo[1,1] = "</FONT></FONT><FONT size=2><FONT face="Iskoola Pota"> +
t.getType());</FONT></P>
<P align=left><FONT face="Iskoola Pota">System.</FONT></FONT><I><FONT
color=#0000c0 size=2><FONT face="Iskoola Pota">out</FONT></I></FONT><FONT
face="Iskoola Pota"><FONT size=2>.println(</FONT><FONT color=#2a00ff
size=2>"getHeight() = "</FONT></FONT><FONT size=2><FONT face="Iskoola Pota"> +
t.getHeight());</FONT></P>
<P align=left><FONT face="Iskoola Pota">System.</FONT></FONT><I><FONT
color=#0000c0 size=2><FONT face="Iskoola Pota">out</FONT></I></FONT><FONT
face="Iskoola Pota"><FONT size=2>.println(</FONT><FONT color=#2a00ff
size=2>"getWidth() = "</FONT></FONT><FONT size=2><FONT face="Iskoola Pota"> +
t.getWidth()); </FONT></P>
<P align=left><FONT face="Iskoola Pota">sci.put(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"t"</FONT><FONT size=2><FONT
face="Iskoola Pota">,t);</FONT></P>
<P align=left><FONT face="Iskoola Pota">sci.exec(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"x = ode ( t0 , x0 , t , f )
;"</FONT><FONT size=2><FONT face="Iskoola Pota">);</FONT></P>
<P align=left><FONT face="Iskoola Pota">sci.exec(</FONT></FONT><FONT
face="Iskoola Pota" color=#2a00ff size=2>"plot2d(t,x);"</FONT><FONT size=2><FONT
face="Iskoola Pota">); </FONT></P>
<P align=left><FONT face="Iskoola Pota">System.</FONT></FONT><I><FONT
color=#0000c0 size=2><FONT face="Iskoola Pota">out</FONT></I></FONT><FONT
face="Iskoola Pota"><FONT size=2>.println(</FONT><FONT color=#2a00ff
size=2>"testing "</FONT></FONT><FONT size=2><FONT face="Iskoola Pota">
);</FONT></P>
<P align=left><FONT face="Iskoola Pota">}</FONT></P>
<P align=left></FONT><B><FONT color=#7f0055 size=2><FONT
face="Iskoola Pota">else</FONT></B></FONT><FONT size=2><FONT
face="Iskoola Pota"> </FONT></P>
<P align=left><FONT face="Iskoola Pota">System.</FONT></FONT><I><FONT
color=#0000c0 size=2><FONT face="Iskoola Pota">out</FONT></I></FONT><FONT
face="Iskoola Pota"><FONT size=2>.println(</FONT><FONT color=#2a00ff size=2>"Not
opening scilab "</FONT></FONT><FONT size=2><FONT face="Iskoola Pota">
);</FONT></P>
<P align=left><FONT face="Iskoola Pota"></FONT></P>
<P align=left><FONT face="Iskoola Pota">} </FONT></FONT><B><FONT color=#7f0055
size=2><FONT face="Iskoola Pota">catch</FONT></B></FONT><FONT size=2><FONT
face="Iskoola Pota"> (org.scilab.modules.javasci.JavasciException e)
{</FONT></P>
<P align=left><FONT face="Iskoola Pota">System.</FONT></FONT><I><FONT
color=#0000c0 size=2><FONT face="Iskoola Pota">out</FONT></I></FONT><FONT
face="Iskoola Pota"><FONT size=2>.println(</FONT><FONT color=#2a00ff
size=2>"test "</FONT></FONT><FONT size=2><FONT face="Iskoola Pota">
);</FONT></P>
<P align=left><FONT face="Iskoola Pota">System.</FONT></FONT><I><FONT
color=#0000c0 size=2><FONT face="Iskoola Pota">err</FONT></I></FONT><FONT
face="Iskoola Pota"><FONT size=2>.println(</FONT><FONT color=#2a00ff size=2>"An
exception occurred: "</FONT></FONT><FONT size=2><FONT face="Iskoola Pota"> +
e.getMessage());</FONT></P>
<P align=left><FONT face="Iskoola Pota">}</FONT></P>
<P align=left><FONT face="Iskoola Pota"></FONT></P>
<P align=left><FONT face="Iskoola Pota">}</FONT></P>
<P align=left><FONT face="Iskoola Pota">}</FONT></P></FONT></FONT></DIV>
<DIV> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=311435408-29122009><STRONG><FONT color=#808080><EM><FONT face=Wingdings
size=6>?</FONT></EM><FONT face="Century Gothic" size=1>Thanks and
Regards</FONT></FONT></STRONG><FONT face="Times New Roman" color=#000000 size=3>
</FONT></DIV>
<P><FONT face=Candara color=#800000><B>P J Binu</B></FONT><FONT
face="Century Gothic"><FONT color=#808080><B> <FONT
color=#0000ff>|</FONT></B></FONT><B> </B></FONT><FONT face=Candara
color=#808080><B>Senior Engineer</B></FONT><FONT face="Century Gothic"
color=#808080><B> </B></FONT><FONT face="Century Gothic"><B>|
</B></FONT><FONT face=Candara color=#800000><B>Heath Informatics</B></FONT><FONT
face="Century Gothic" color=#800000><B> </B></FONT><FONT
face="Century Gothic"><B>|</B></FONT><FONT face="Century Gothic"
color=#808080><B> </B></FONT><FONT face=Candara
color=#808080><B>C-DAC</B></FONT><FONT face="Century Gothic" color=#808080><B>
</B></FONT><FONT face=Candara color=#808080><B>Trivandrum</B></FONT><FONT
face="Century Gothic"><B>|</B></FONT><FONT face="Century Gothic"
color=#808080><B> </B></FONT><FONT color=#000080><B><FONT face=Candara><FONT
color=#800040>Kerala</FONT> | <FONT color=#808080>India </FONT>| </FONT><A
href="mailto:pjbinu@cdac.in"><FONT face=Candara>pjbinu@cdac.in</FONT></A><FONT
face=Candara> | </FONT></B></FONT><A href="http://www.cdactvm.in/"><B><FONT
face=Candara color=#800040>www.cdactvm.in</FONT></A></B><FONT
face="Century Gothic"><B>|</B></FONT><FONT size=3> </FONT>
<P><FONT face=Candara color=#808080 size=2><B>Voice : +91
9496236198</B></FONT><FONT face="Century Gothic" color=#808080 size=2><B>
</B></FONT><FONT face="Century Gothic" size=2><B>|</B></FONT><FONT
face="Century Gothic" color=#808080 size=2><B> </B></FONT><FONT face=Candara
color=blue size=2><B>Video Conference : 0471 2313282</B></FONT><FONT
face="Century Gothic" color=blue size=2>
</FONT></P></SPAN></FONT></FONT></FONT></DIV>
<DIV> </DIV><br />-------------------------------------------------------------------------------------------------------------------------------
<br />This e-mail is for the sole use of the intended recipient(s) and may
<br />contain confidential and privileged information. If you are not the
<br />intended recipient, please contact the sender by reply e-mail and destroy
<br />all copies and the original message. Any unauthorized review, use,
<br />disclosure, dissemination, forwarding, printing or copying of this email
<br />is strictly prohibited and appropriate legal action will be taken.
<br />-------------------------------------------------------------------------------------------------------------------------------
</BODY></HTML>