Search the web
Sign In
New User? Sign Up
jsci
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 300 - 344 of 369   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#344 From: "Mark" <mj_hale@...>
Date: Thu Sep 13, 2007 4:17 am
Subject: JSci v0.94 released - Important Fix
mj_hale
Offline Offline
Send Email Send Email
 
Hi,

This release contains an important thread-safety bug fix to
SpecialMath.  It affects only the beta and gamma function-related
methods.  To gain a performance advantage when calling the beta/gamma
functions from different threads, you should try to arrange it so that
calls with the same (p,q) degrees occur in the same thread.

Regards,

Mark

#337 From: Mark Hale <mj_hale@...>
Date: Thu Apr 19, 2007 7:13 pm
Subject: Re: Re: Parsing Mathml using JSCI parser.parse()
mj_hale
Offline Offline
Send Email Send Email
 
I now have my laptop with me, and was able to fix the
problem :D I have committed the changes to CVS.

Sorry for the long delay.

--- avspavan <pavan@...> wrote:

> Hi Mark:
>
> Sorry! I didn't copy the mathml into the previous
> mail correctly!! I
> was using the correct mathml expression for my code
> as below:
>
> <math xmlns='http://www.w3.org/1998/Math/MathML'>
>     <apply>
>     <power/>
>     <exponentiale/>
>     <apply>
>      <power/>
>      <ci>x</ci>
>      <cn type='integer'>2</cn>
>     </apply>
>    </apply>
>  </math>
>
> Now this is exp(x^2) and this is not completely
> parsed by the
> parser.parse method. Only the inner most math form
> (x^2) is parsed. If
>  I am wrong in parsing it, please correct me. I have
> already posted
> the code that I am using to parse the mathml. (see
> the previous mails
> below)
>
> Thanks
> Pavan
>
>
>
>
> --- In jsci@yahoogroups.com, Mark Hale <mj_hale@...>
> wrote:
> >
> >
> > You know that your sample mathml is not a
> well-formed
> > xml document?
> >
> > --- avspavan <pavan@...> wrote:
> >
> > > Hi Mark:
> > >
> > > Did you figure out what the problem is?? Is it a
> bug
> > > or am I using
> > > wrong classes & methods?
> > >
> > > Thanks
> > > Pavan
> > >
> > >
> > >
> > > --- In jsci@yahoogroups.com, Mark Hale
> <mj_hale@>
> > > wrote:
> > > >
> > > > Hi,
> > > >
> > > > Yes, you are using the right method. It could
> be a
> > > > bug. I'll look into it.
> > > >
> > > > Regards,
> > > >
> > > > Mark
> > > >
> > > >
> > > > --- avspavan <pavan@> wrote:
> > > >
> > > > > Hi:
> > > > >
> > > > > I am using Jsci package to parse mathml
> (Convert
> > > > > mathml to JSci
> > > > > objects). This works fine for the mathml
> > > document
> > > > > that has only one
> > > > > set of <apply> tags. I have explained taking
> two
> > > > > math expressions below:
> > > > >
> > > > > For example: x^2
> > > > >
> > > > > Its mathml form:
> > > > >
> > > > > "<apply>
> > > > >     <power/>
> > > > >     <ci>x</ci>
> > > > >     <cn type='integer'>2</cn>
> > > > >    </apply>
> > > > >   </annotation-xml>
> > > > >  </semantics>
> > > > > </math>"
> > > > >
> > > > > and: exp(x^2)
> > > > >
> > > > > Its mathml form:
> > > > >
> > > > > "<apply>
> > > > >     <power/>
> > > > >     <exponentiale/>
> > > > >     <apply>
> > > > >      <power/>
> > > > >      <ci>x</ci>
> > > > >      <cn type='integer'>2</cn>
> > > > >     </apply>
> > > > >    </apply>
> > > > >   </annotation-xml>
> > > > >  </semantics>
> > > > > </math>"
> > > > >
> > > > > The x^2 expression is parsed well and good.
> But
> > > when
> > > > > it comes to
> > > > > exp(x^2) expression it parses only the inner
> > > most
> > > > > <apply> tagged math
> > > > > form. So in second form only x^2 is parsed.
> The
> > > > > exponential
> > > > > information is lost.
> > > > >
> > > > > Could someone help me in using the right
> > > functions
> > > > > to parse the
> > > > > complete mathml form??
> > > > >
> > > > > I have posted the code below ( Thanks to
> herbert
> > > for
> > > > > the help!!!)
> > > > >
> > > > >
> > > > > Thanks in advance
> > > > > Pavan
> > > > >
> > > > >
> > > > >
> > > > > public static void main(String[] args)
> throws
> > > > > SAXNotRecognizedException,
> > > SAXNotSupportedException
> > > > > {
> > > > > 	 MathMLParser parser = new MathMLParser();
> > > > >
> > > > > 	 try {
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
parser.parse("D:\\Purdue_project\\ProjectsFrom14thJuly20061.40PM\\PharmaInformat\
ics\\test.xml");
> > > > > 		 //System.out.println("This is the
> > > > > parser.toString() output" +
> > > > > parser.toString());
> > > > > 		 //System.out.println("This is the
> > > > > translate.toString() output" +
> > > > > parser.translateToJSciObjects());
> > > > >
> > > > >
> > > > > 	 } catch (Exception e) {
> > > > > 		 System.out.println(e.getMessage());
> > > > > 	 }
> > > > >
> > > > >
> > > > > 	    Object parseList[] =
> > > > > parser.translateToJSciObjects();
> > > > >
> > > > >
> > > > > 	    Object list[] =
> > > parser.translateToJSciCode();
> > > > >
> > > > > 	 System.out.println("This is the length of
> the
> > > list
> > > > > "+ list.length);
> > > > > 	 System.out.println("This is the length of
> the
> > > > > Parse list "+
> > > > > parseList.length);
> > > > >
> > > > > 	 for(int i=0;i<list.length;i++){
> > > > > 	 System.out.println("This is in list " +
> > > > > list[i].toString());
> > > > > 	 }
> > > > >
> > > > >
> > > > >
> > > > > 	 for (int i = 0; i < parseList.length; i++)
> {
> > > > > 		 JSci.io.MathMLExpression test =
> > > > > (JSci.io.MathMLExpression)
> > > > > parseList[i];
> > > > >
>
=== message truncated ===



       ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/

#336 From: "avspavan" <pavan@...>
Date: Tue Feb 20, 2007 7:21 pm
Subject: Re: Parsing Mathml using JSCI parser.parse()
avspavan
Offline Offline
Send Email Send Email
 
Hi Mark:

Sorry! I didn't copy the mathml into the previous mail correctly!! I
was using the correct mathml expression for my code as below:

<math xmlns='http://www.w3.org/1998/Math/MathML'>
     <apply>
     <power/>
     <exponentiale/>
     <apply>
      <power/>
      <ci>x</ci>
      <cn type='integer'>2</cn>
     </apply>
    </apply>
  </math>

Now this is exp(x^2) and this is not completely parsed by the
parser.parse method. Only the inner most math form (x^2) is parsed. If
  I am wrong in parsing it, please correct me. I have already posted
the code that I am using to parse the mathml. (see the previous mails
below)

Thanks
Pavan




--- In jsci@yahoogroups.com, Mark Hale <mj_hale@...> wrote:
>
>
> You know that your sample mathml is not a well-formed
> xml document?
>
> --- avspavan <pavan@...> wrote:
>
> > Hi Mark:
> >
> > Did you figure out what the problem is?? Is it a bug
> > or am I using
> > wrong classes & methods?
> >
> > Thanks
> > Pavan
> >
> >
> >
> > --- In jsci@yahoogroups.com, Mark Hale <mj_hale@>
> > wrote:
> > >
> > > Hi,
> > >
> > > Yes, you are using the right method. It could be a
> > > bug. I'll look into it.
> > >
> > > Regards,
> > >
> > > Mark
> > >
> > >
> > > --- avspavan <pavan@> wrote:
> > >
> > > > Hi:
> > > >
> > > > I am using Jsci package to parse mathml (Convert
> > > > mathml to JSci
> > > > objects). This works fine for the mathml
> > document
> > > > that has only one
> > > > set of <apply> tags. I have explained taking two
> > > > math expressions below:
> > > >
> > > > For example: x^2
> > > >
> > > > Its mathml form:
> > > >
> > > > "<apply>
> > > >     <power/>
> > > >     <ci>x</ci>
> > > >     <cn type='integer'>2</cn>
> > > >    </apply>
> > > >   </annotation-xml>
> > > >  </semantics>
> > > > </math>"
> > > >
> > > > and: exp(x^2)
> > > >
> > > > Its mathml form:
> > > >
> > > > "<apply>
> > > >     <power/>
> > > >     <exponentiale/>
> > > >     <apply>
> > > >      <power/>
> > > >      <ci>x</ci>
> > > >      <cn type='integer'>2</cn>
> > > >     </apply>
> > > >    </apply>
> > > >   </annotation-xml>
> > > >  </semantics>
> > > > </math>"
> > > >
> > > > The x^2 expression is parsed well and good. But
> > when
> > > > it comes to
> > > > exp(x^2) expression it parses only the inner
> > most
> > > > <apply> tagged math
> > > > form. So in second form only x^2 is parsed. The
> > > > exponential
> > > > information is lost.
> > > >
> > > > Could someone help me in using the right
> > functions
> > > > to parse the
> > > > complete mathml form??
> > > >
> > > > I have posted the code below ( Thanks to herbert
> > for
> > > > the help!!!)
> > > >
> > > >
> > > > Thanks in advance
> > > > Pavan
> > > >
> > > >
> > > >
> > > > public static void main(String[] args) throws
> > > > SAXNotRecognizedException,
> > SAXNotSupportedException
> > > > {
> > > > 	 MathMLParser parser = new MathMLParser();
> > > >
> > > > 	 try {
> > > >
> > > >
> > > >
> > >
> >
>
parser.parse("D:\\Purdue_project\\ProjectsFrom14thJuly20061.40PM\\PharmaInformat\
ics\\test.xml");
> > > > 		 //System.out.println("This is the
> > > > parser.toString() output" +
> > > > parser.toString());
> > > > 		 //System.out.println("This is the
> > > > translate.toString() output" +
> > > > parser.translateToJSciObjects());
> > > >
> > > >
> > > > 	 } catch (Exception e) {
> > > > 		 System.out.println(e.getMessage());
> > > > 	 }
> > > >
> > > >
> > > > 	    Object parseList[] =
> > > > parser.translateToJSciObjects();
> > > >
> > > >
> > > > 	    Object list[] =
> > parser.translateToJSciCode();
> > > >
> > > > 	 System.out.println("This is the length of the
> > list
> > > > "+ list.length);
> > > > 	 System.out.println("This is the length of the
> > > > Parse list "+
> > > > parseList.length);
> > > >
> > > > 	 for(int i=0;i<list.length;i++){
> > > > 	 System.out.println("This is in list " +
> > > > list[i].toString());
> > > > 	 }
> > > >
> > > >
> > > >
> > > > 	 for (int i = 0; i < parseList.length; i++) {
> > > > 		 JSci.io.MathMLExpression test =
> > > > (JSci.io.MathMLExpression)
> > > > parseList[i];
> > > >
> > > >
> > > > 		 System.out.println("This is test.evaluate()"
> > > > +test.evaluate());
> > > > 		 System.out.println("This is
> > test.getOperation() "
> > > > +test.getOperation());
> > > > 		 System.out.println("This is
> > test.getArgument()
> > > > "+test.getArgument(1).toString());
> > > > 		 System.out.println("This is test.getClass()
> > > > "+test.getClass());
> > > > 		 System.out.println("This is test.length()
> > > > "+test.length());
> > > > 		 System.out.println("This is test.toString()
> > > > "+test.toString());
> > > > 		 System.out.println("This is hashCode "
> > > > +test.hashCode());
> > > >
> > > >
> > > >
> > > > 	 }
> > > >  }
> > > >
> > > >
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> ___________________________________________________________
> >
> > > Copy addresses and emails from any email account
> > to Yahoo! Mail -
> > quick, easy and free.
> > http://uk.docs.yahoo.com/trueswitch2.html
> > >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> === message truncated ===
>
>
>
>
>
>
> ___________________________________________________________
> New Yahoo! Mail is the ultimate force in competitive emailing. Find
out more at the Yahoo! Mail Championships. Plus: play games and win
prizes.
> http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
>

#335 From: Mark Hale <mj_hale@...>
Date: Fri Feb 16, 2007 9:01 pm
Subject: Re: Re: Parsing Mathml using JSCI parser.parse()
mj_hale
Offline Offline
Send Email Send Email
 
You know that your sample mathml is not a well-formed
xml document?

--- avspavan <pavan@...> wrote:

> Hi Mark:
>
> Did you figure out what the problem is?? Is it a bug
> or am I using
> wrong classes & methods?
>
> Thanks
> Pavan
>
>
>
> --- In jsci@yahoogroups.com, Mark Hale <mj_hale@...>
> wrote:
> >
> > Hi,
> >
> > Yes, you are using the right method. It could be a
> > bug. I'll look into it.
> >
> > Regards,
> >
> > Mark
> >
> >
> > --- avspavan <pavan@...> wrote:
> >
> > > Hi:
> > >
> > > I am using Jsci package to parse mathml (Convert
> > > mathml to JSci
> > > objects). This works fine for the mathml
> document
> > > that has only one
> > > set of <apply> tags. I have explained taking two
> > > math expressions below:
> > >
> > > For example: x^2
> > >
> > > Its mathml form:
> > >
> > > "<apply>
> > >     <power/>
> > >     <ci>x</ci>
> > >     <cn type='integer'>2</cn>
> > >    </apply>
> > >   </annotation-xml>
> > >  </semantics>
> > > </math>"
> > >
> > > and: exp(x^2)
> > >
> > > Its mathml form:
> > >
> > > "<apply>
> > >     <power/>
> > >     <exponentiale/>
> > >     <apply>
> > >      <power/>
> > >      <ci>x</ci>
> > >      <cn type='integer'>2</cn>
> > >     </apply>
> > >    </apply>
> > >   </annotation-xml>
> > >  </semantics>
> > > </math>"
> > >
> > > The x^2 expression is parsed well and good. But
> when
> > > it comes to
> > > exp(x^2) expression it parses only the inner
> most
> > > <apply> tagged math
> > > form. So in second form only x^2 is parsed. The
> > > exponential
> > > information is lost.
> > >
> > > Could someone help me in using the right
> functions
> > > to parse the
> > > complete mathml form??
> > >
> > > I have posted the code below ( Thanks to herbert
> for
> > > the help!!!)
> > >
> > >
> > > Thanks in advance
> > > Pavan
> > >
> > >
> > >
> > > public static void main(String[] args) throws
> > > SAXNotRecognizedException,
> SAXNotSupportedException
> > > {
> > > 	 MathMLParser parser = new MathMLParser();
> > >
> > > 	 try {
> > >
> > >
> > >
> >
>
parser.parse("D:\\Purdue_project\\ProjectsFrom14thJuly20061.40PM\\PharmaInformat\
ics\\test.xml");
> > > 		 //System.out.println("This is the
> > > parser.toString() output" +
> > > parser.toString());
> > > 		 //System.out.println("This is the
> > > translate.toString() output" +
> > > parser.translateToJSciObjects());
> > >
> > >
> > > 	 } catch (Exception e) {
> > > 		 System.out.println(e.getMessage());
> > > 	 }
> > >
> > >
> > > 	    Object parseList[] =
> > > parser.translateToJSciObjects();
> > >
> > >
> > > 	    Object list[] =
> parser.translateToJSciCode();
> > >
> > > 	 System.out.println("This is the length of the
> list
> > > "+ list.length);
> > > 	 System.out.println("This is the length of the
> > > Parse list "+
> > > parseList.length);
> > >
> > > 	 for(int i=0;i<list.length;i++){
> > > 	 System.out.println("This is in list " +
> > > list[i].toString());
> > > 	 }
> > >
> > >
> > >
> > > 	 for (int i = 0; i < parseList.length; i++) {
> > > 		 JSci.io.MathMLExpression test =
> > > (JSci.io.MathMLExpression)
> > > parseList[i];
> > >
> > >
> > > 		 System.out.println("This is test.evaluate()"
> > > +test.evaluate());
> > > 		 System.out.println("This is
> test.getOperation() "
> > > +test.getOperation());
> > > 		 System.out.println("This is
> test.getArgument()
> > > "+test.getArgument(1).toString());
> > > 		 System.out.println("This is test.getClass()
> > > "+test.getClass());
> > > 		 System.out.println("This is test.length()
> > > "+test.length());
> > > 		 System.out.println("This is test.toString()
> > > "+test.toString());
> > > 		 System.out.println("This is hashCode "
> > > +test.hashCode());
> > >
> > >
> > >
> > > 	 }
> > >  }
> > >
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
___________________________________________________________
>
> > Copy addresses and emails from any email account
> to Yahoo! Mail -
> quick, easy and free.
> http://uk.docs.yahoo.com/trueswitch2.html
> >
>
>
>
>
>
> Yahoo! Groups Links
>
=== message truncated ===






___________________________________________________________
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at
the Yahoo! Mail Championships. Plus: play games and win prizes.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk

#334 From: "avspavan" <pavan@...>
Date: Fri Feb 16, 2007 7:25 pm
Subject: Re: Parsing Mathml using JSCI parser.parse()
avspavan
Offline Offline
Send Email Send Email
 
Hi Mark:

Did you figure out what the problem is?? Is it a bug or am I using
wrong classes & methods?

Thanks
Pavan



--- In jsci@yahoogroups.com, Mark Hale <mj_hale@...> wrote:
>
> Hi,
>
> Yes, you are using the right method. It could be a
> bug. I'll look into it.
>
> Regards,
>
> Mark
>
>
> --- avspavan <pavan@...> wrote:
>
> > Hi:
> >
> > I am using Jsci package to parse mathml (Convert
> > mathml to JSci
> > objects). This works fine for the mathml document
> > that has only one
> > set of <apply> tags. I have explained taking two
> > math expressions below:
> >
> > For example: x^2
> >
> > Its mathml form:
> >
> > "<apply>
> >     <power/>
> >     <ci>x</ci>
> >     <cn type='integer'>2</cn>
> >    </apply>
> >   </annotation-xml>
> >  </semantics>
> > </math>"
> >
> > and: exp(x^2)
> >
> > Its mathml form:
> >
> > "<apply>
> >     <power/>
> >     <exponentiale/>
> >     <apply>
> >      <power/>
> >      <ci>x</ci>
> >      <cn type='integer'>2</cn>
> >     </apply>
> >    </apply>
> >   </annotation-xml>
> >  </semantics>
> > </math>"
> >
> > The x^2 expression is parsed well and good. But when
> > it comes to
> > exp(x^2) expression it parses only the inner most
> > <apply> tagged math
> > form. So in second form only x^2 is parsed. The
> > exponential
> > information is lost.
> >
> > Could someone help me in using the right functions
> > to parse the
> > complete mathml form??
> >
> > I have posted the code below ( Thanks to herbert for
> > the help!!!)
> >
> >
> > Thanks in advance
> > Pavan
> >
> >
> >
> > public static void main(String[] args) throws
> > SAXNotRecognizedException, SAXNotSupportedException
> > {
> > 	 MathMLParser parser = new MathMLParser();
> >
> > 	 try {
> >
> >
> >
>
parser.parse("D:\\Purdue_project\\ProjectsFrom14thJuly20061.40PM\\PharmaInformat\
ics\\test.xml");
> > 		 //System.out.println("This is the
> > parser.toString() output" +
> > parser.toString());
> > 		 //System.out.println("This is the
> > translate.toString() output" +
> > parser.translateToJSciObjects());
> >
> >
> > 	 } catch (Exception e) {
> > 		 System.out.println(e.getMessage());
> > 	 }
> >
> >
> > 	    Object parseList[] =
> > parser.translateToJSciObjects();
> >
> >
> > 	    Object list[] = parser.translateToJSciCode();
> >
> > 	 System.out.println("This is the length of the list
> > "+ list.length);
> > 	 System.out.println("This is the length of the
> > Parse list "+
> > parseList.length);
> >
> > 	 for(int i=0;i<list.length;i++){
> > 	 System.out.println("This is in list " +
> > list[i].toString());
> > 	 }
> >
> >
> >
> > 	 for (int i = 0; i < parseList.length; i++) {
> > 		 JSci.io.MathMLExpression test =
> > (JSci.io.MathMLExpression)
> > parseList[i];
> >
> >
> > 		 System.out.println("This is test.evaluate()"
> > +test.evaluate());
> > 		 System.out.println("This is test.getOperation() "
> > +test.getOperation());
> > 		 System.out.println("This is test.getArgument()
> > "+test.getArgument(1).toString());
> > 		 System.out.println("This is test.getClass()
> > "+test.getClass());
> > 		 System.out.println("This is test.length()
> > "+test.length());
> > 		 System.out.println("This is test.toString()
> > "+test.toString());
> > 		 System.out.println("This is hashCode "
> > +test.hashCode());
> >
> >
> >
> > 	 }
> >  }
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
>
>
> ___________________________________________________________
> Copy addresses and emails from any email account to Yahoo! Mail -
quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html
>

#326 From: Mark Hale <mj_hale@...>
Date: Sat Jan 13, 2007 11:25 pm
Subject: Re: Parsing Mathml using JSCI parser.parse()
mj_hale
Offline Offline
Send Email Send Email
 
Hi,

Yes, you are using the right method. It could be a
bug. I'll look into it.

Regards,

Mark


--- avspavan <pavan@...> wrote:

> Hi:
>
> I am using Jsci package to parse mathml (Convert
> mathml to JSci
> objects). This works fine for the mathml document
> that has only one
> set of <apply> tags. I have explained taking two
> math expressions below:
>
> For example: x^2
>
> Its mathml form:
>
> "<apply>
>     <power/>
>     <ci>x</ci>
>     <cn type='integer'>2</cn>
>    </apply>
>   </annotation-xml>
>  </semantics>
> </math>"
>
> and: exp(x^2)
>
> Its mathml form:
>
> "<apply>
>     <power/>
>     <exponentiale/>
>     <apply>
>      <power/>
>      <ci>x</ci>
>      <cn type='integer'>2</cn>
>     </apply>
>    </apply>
>   </annotation-xml>
>  </semantics>
> </math>"
>
> The x^2 expression is parsed well and good. But when
> it comes to
> exp(x^2) expression it parses only the inner most
> <apply> tagged math
> form. So in second form only x^2 is parsed. The
> exponential
> information is lost.
>
> Could someone help me in using the right functions
> to parse the
> complete mathml form??
>
> I have posted the code below ( Thanks to herbert for
> the help!!!)
>
>
> Thanks in advance
> Pavan
>
>
>
> public static void main(String[] args) throws
> SAXNotRecognizedException, SAXNotSupportedException
> {
> 	 MathMLParser parser = new MathMLParser();
>
> 	 try {
>
>
>
parser.parse("D:\\Purdue_project\\ProjectsFrom14thJuly20061.40PM\\PharmaInformat\
ics\\test.xml");
> 		 //System.out.println("This is the
> parser.toString() output" +
> parser.toString());
> 		 //System.out.println("This is the
> translate.toString() output" +
> parser.translateToJSciObjects());
>
>
> 	 } catch (Exception e) {
> 		 System.out.println(e.getMessage());
> 	 }
>
>
> 	    Object parseList[] =
> parser.translateToJSciObjects();
>
>
> 	    Object list[] = parser.translateToJSciCode();
>
> 	 System.out.println("This is the length of the list
> "+ list.length);
> 	 System.out.println("This is the length of the
> Parse list "+
> parseList.length);
>
> 	 for(int i=0;i<list.length;i++){
> 	 System.out.println("This is in list " +
> list[i].toString());
> 	 }
>
>
>
> 	 for (int i = 0; i < parseList.length; i++) {
> 		 JSci.io.MathMLExpression test =
> (JSci.io.MathMLExpression)
> parseList[i];
>
>
> 		 System.out.println("This is test.evaluate()"
> +test.evaluate());
> 		 System.out.println("This is test.getOperation() "
> +test.getOperation());
> 		 System.out.println("This is test.getArgument()
> "+test.getArgument(1).toString());
> 		 System.out.println("This is test.getClass()
> "+test.getClass());
> 		 System.out.println("This is test.length()
> "+test.length());
> 		 System.out.println("This is test.toString()
> "+test.toString());
> 		 System.out.println("This is hashCode "
> +test.hashCode());
>
>
>
> 	 }
>  }
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>




___________________________________________________________
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy
and free. http://uk.docs.yahoo.com/trueswitch2.html

#325 From: Mark Hale <mj_hale@...>
Date: Sat Jan 13, 2007 10:41 pm
Subject: Re: Documentation for Jsci???
mj_hale
Offline Offline
Send Email Send Email
 
Hi,

The zip file distribution contains a basic developers
guide as well as the API.

Regards,

Mark

--- avspavan <pavan@...> wrote:

> Hi:
>
> Is there a documentation available for Jsci
> packages?? I use the API
> online but if there is any other documentation/help
> files available
> that will be very useful.
>
> Thanks
> Pavan
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>




___________________________________________________________
Yahoo! Messenger - with free PC-PC calling and photo sharing.
http://uk.messenger.yahoo.com

#324 From: "avspavan" <pavan@...>
Date: Fri Jan 12, 2007 7:19 pm
Subject: Documentation for Jsci???
avspavan
Offline Offline
Send Email Send Email
 
Hi:

Is there a documentation available for Jsci packages?? I use the API
online but if there is any other documentation/help files available
that will be very useful.

Thanks
Pavan

#323 From: "avspavan" <pavan@...>
Date: Fri Jan 12, 2007 5:54 pm
Subject: Parsing Mathml using JSCI parser.parse()
avspavan
Offline Offline
Send Email Send Email
 
Hi:

I am using Jsci package to parse mathml (Convert mathml to JSci
objects). This works fine for the mathml document that has only one
set of <apply> tags. I have explained taking two math expressions below:

For example: x^2

Its mathml form:

"<apply>
     <power/>
     <ci>x</ci>
     <cn type='integer'>2</cn>
    </apply>
   </annotation-xml>
  </semantics>
</math>"

and: exp(x^2)

Its mathml form:

"<apply>
     <power/>
     <exponentiale/>
     <apply>
      <power/>
      <ci>x</ci>
      <cn type='integer'>2</cn>
     </apply>
    </apply>
   </annotation-xml>
  </semantics>
</math>"

The x^2 expression is parsed well and good. But when it comes to
exp(x^2) expression it parses only the inner most <apply> tagged math
form. So in second form only x^2 is parsed. The exponential
information is lost.

Could someone help me in using the right functions to parse the
complete mathml form??

I have posted the code below ( Thanks to herbert for the help!!!)


Thanks in advance
Pavan



public static void main(String[] args) throws
SAXNotRecognizedException, SAXNotSupportedException {
		 MathMLParser parser = new MathMLParser();

		 try {


parser.parse("D:\\Purdue_project\\ProjectsFrom14thJuly20061.40PM\\PharmaInformat\
ics\\test.xml");
			 //System.out.println("This is the parser.toString() output" +
parser.toString());
			 //System.out.println("This is the translate.toString() output" +
parser.translateToJSciObjects());


		 } catch (Exception e) {
			 System.out.println(e.getMessage());
		 }


	     Object parseList[] = parser.translateToJSciObjects();


	     Object list[] = parser.translateToJSciCode();

		 System.out.println("This is the length of the list "+ list.length);
		 System.out.println("This is the length of the Parse list "+
parseList.length);

		 for(int i=0;i<list.length;i++){
		 System.out.println("This is in list " + list[i].toString());
		 }



		 for (int i = 0; i < parseList.length; i++) {
			 JSci.io.MathMLExpression test = (JSci.io.MathMLExpression)
parseList[i];


			 System.out.println("This is test.evaluate()" +test.evaluate());
			 System.out.println("This is test.getOperation() "
+test.getOperation());
			 System.out.println("This is test.getArgument()
"+test.getArgument(1).toString());
			 System.out.println("This is test.getClass() "+test.getClass());
			 System.out.println("This is test.length() "+test.length());
			 System.out.println("This is test.toString() "+test.toString());
			 System.out.println("This is hashCode " +test.hashCode());



		 }
	 }

#322 From: "taiji810327" <zhoufeng0116@...>
Date: Sat Dec 30, 2006 3:38 am
Subject: Re: square matrix determinant problem again (begging for the answer)
taiji810327
Offline Offline
Send Email Send Email
 
--- In jsci@yahoogroups.com, Mark Hale <mj_hale@...> wrote:
>
> It could be a numerical instability problem, post the
> actual matrix so I can take a look.
>

Thank you for replying my message.

Here is one example I get NaN as the result of determinant.

a 3 by 3 matrix of 1s.

1.0 1.0 1.0
1.0 1.0 1.0
1.0 1.0 1.0

Thanks a lot

#321 From: Mark Hale <mj_hale@...>
Date: Thu Dec 28, 2006 9:57 pm
Subject: Re: square matrix determinant problem again (begging for the answer)
mj_hale
Offline Offline
Send Email Send Email
 
It could be a numerical instability problem, post the
actual matrix so I can take a look.


--- taiji810327 <zhoufeng0116@...> wrote:

> Hello, everyone in this group.
> I encoutered a square matrix determinant problem on
> 1 October and
> posted a message to get some help on that date.
> Until now, I am still
> not quite sure why sometimes I get NaN. Could
> someone please give me
> an answer for that?
> Thanks a lot.
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>




___________________________________________________________
All New Yahoo! Mail – Tired of Vi@gr@! come-ons? Let our SpamGuard protect you.
http://uk.docs.yahoo.com/nowyoucan.html

#320 From: "taiji810327" <zhoufeng0116@...>
Date: Mon Dec 18, 2006 6:13 am
Subject: square matrix determinant problem again (begging for the answer)
taiji810327
Offline Offline
Send Email Send Email
 
Hello, everyone in this group.
I encoutered a square matrix determinant problem on 1 October and
posted a message to get some help on that date. Until now, I am still
not quite sure why sometimes I get NaN. Could someone please give me
an answer for that?
Thanks a lot.

#318 From: Herbert Kluge <herbertkluge@...>
Date: Thu Dec 7, 2006 9:37 am
Subject: Re: Sum computation
herbertkluge
Offline Offline
Send Email Send Email
 
Pavan (Akkisetty Venkata Sai Pavan Kumar) wrote:
> I am not sure if evaluate( )-mathod will do non-numeric evaluations. I
> see that your mathml is non-numeric in nature (I mean symbolic).
> This is the output I get if I use Mathematica to interpret your mathml.

Ok, that was a confusing example. The following should be possible to compute:

<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
   <sum/>
   <bvar><ci>i</ci></bvar>
   <lowlimit><cn>0</cn></lowlimit>
   <uplimit><cn>100</cn></uplimit>
   <apply>
     <power/>
     <cn>2</cn>
     <ci>i</ci>
   </apply>
</apply>
</math>

Now there's an exception: "Exception in thread "main"
java.lang.ClassCastException: java.lang.String"

>  I am also trying to use JSci to convert mathml to Jsci objects. Can you
> send me an example code if you have any?? I couldn't understand how to
> use MathMLDOMimpl library.

Yes, it's really difficult to see how the library works.

import JSci.mathml.MathMLApplyElementImpl;
import JSci.io.MathMLExpression;

public class TestJSci {

	 /**
	  * @param args
	  */
	 public static void main(String[] args) {
		 JSci.io.MathMLParser parser = new JSci.io.MathMLParser();

		 try {

			 parser.parse("test.mml");
		 } catch (Exception e) {
			 System.out.println(e.getMessage());
		 }

		 Object parseList[] = parser.translateToJSciObjects();

		 for (int i = 0; i < parseList.length; i++) {
			 JSci.io.MathMLExpression test = (JSci.io.MathMLExpression) parseList[i];
			 System.out.println(test.evaluate());
			 System.out.println(test.getOperation());
		 }
	 }

}

Regards, Herbert


___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

#317 From: "Pavan (Akkisetty Venkata Sai Pavan Kumar)" <pavan@...>
Date: Wed Dec 6, 2006 7:18 pm
Subject: Re: Sum computation
avspavan
Offline Offline
Send Email Send Email
 
Hi:

I am not sure if evaluate( )-mathod will do non-numeric evaluations. I see that your mathml is non-numeric in nature (I mean symbolic).



This is the output I get if I use Mathematica to interpret your mathml. I am also trying to use JSci to convert mathml to Jsci objects. Can you send me an example code if you have any?? I couldn't understand how to use MathMLDOMimpl library.

-Pavan


Herbert Kluge wrote:
Pavan (Akkisetty Venkata Sai Pavan Kumar) wrote:
As far as I understand, this(mathml) is just the representation of the (math)information. There is no solver attached to it. You have to send this information to a solver to get the calculation made.

But a MathML equation just with <times/>, <plus/>, <minus/>, ... can be
computed with the evaluate()-method.
Am I wrong or is the computation of <sum/> missing?
Regards,
Herbert
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/jsci/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/jsci/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:jsci-digest@yahoogroups.com mailto:jsci-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
jsci-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

-- *********************************************************************************
Pavan (Akkisetty Venkata Sai Pavan Kumar)
Graduate Research Assistant
2008 FRNY Chemical Engineering
Purdue University
Office Phone:765-494-4083
310 N.Salisbury, Apt 3
West Lafayette
Indiana-47906
Cell Phone:765-413-8559

#316 From: Herbert Kluge <herbertkluge@...>
Date: Wed Dec 6, 2006 6:52 pm
Subject: Re: Sum computation
herbertkluge
Offline Offline
Send Email Send Email
 
Pavan (Akkisetty Venkata Sai Pavan Kumar) wrote:
> As far as I understand, this(mathml) is just the representation of the
> (math)information. There is no solver attached to it. You have to send
> this information to a solver to get the calculation made.

But a MathML equation just with <times/>, <plus/>, <minus/>, ... can be
computed with the evaluate()-method.

Am I wrong or is the computation of <sum/> missing?

Regards,
Herbert




___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

#315 From: "Pavan (Akkisetty Venkata Sai Pavan Kumar)" <pavan@...>
Date: Tue Dec 5, 2006 8:16 pm
Subject: Re: Mathml to Java Classes
avspavan
Offline Offline
Send Email Send Email
 
hi Mark:

Are there any examples available for this implementation? (Mathml to
JSci Objects)?? I didn't find any such example in JSci package.

Thanks
Pavan

Mark Hale wrote:
>
> Hi,
>
> jsci-mathmlimpl is an implementation of the DOM MathML API. There is
> also a higher level JSci.io.MathMLParser which converts the DOM API
> directly into JSci objects. See documentation/JSci.io.html for more
> information. What you need to do is write a converter from the DOM, or
> the JSci objects into the Matlab API/representation.
>
> XML -> DOM (-> JSci) -> Mathlab
>
> I´m not familar with the matlab API, so I don´t know what sort of
> object representation it has. But at a guess, I assume it can evaluate
> matlab strings, something like matlabEval("5^2+4"), so you probably
> need to convert the MathML DOM into the matlab textual representation,
> and send it to the matlab evaluation engine.
>
> ----- Original Message ----
> From: avspavan <pavan@... <mailto:pavan%40purdue.edu>>
> To: jsci@yahoogroups.com <mailto:jsci%40yahoogroups.com>
> Sent: Monday, 27 November, 2006 5:49:30 PM
> Subject: [jsci] Mathml to Java Classes
>
> Hi:
>
> I am interested in sending mathml to Matlab through Java and solving
> the equations. But matlab inherently doesn't understand Mathml.
>
> I have come across the package (Jsci-mathmlimpl) which seems like will
> help me. I would like to know what exactly it does as I couldn't find
> any example that shows conversion of mathml to java objects?! Can Jsci
> convert given mathml to Java objects?? If so I think there are ways to
> make Matlab understand these Java objects and solve the equations and
> get the answer.
>
> Thanks
> Pavan
>
> Yahoo! Groups Links
>
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com <http://uk.messenger.yahoo.com>
>
>

--
********************************************************************************\
*
Pavan (Akkisetty Venkata Sai Pavan Kumar)
Graduate Research Assistant
2008 FRNY Chemical Engineering
Purdue University
Office Phone:765-494-4083

310 N.Salisbury, Apt 3
West Lafayette
Indiana-47906
Cell Phone:765-413-8559

#314 From: "Pavan (Akkisetty Venkata Sai Pavan Kumar)" <pavan@...>
Date: Tue Dec 5, 2006 7:15 pm
Subject: Re: Sum computation
avspavan
Offline Offline
Send Email Send Email
 
Hi Herbert:

As far as I understand, this(mathml) is just the representation of the
(math)information. There is no solver attached to it. You have to send
this information to a solver to get the calculation made.

Pavan


Herbert Kluge wrote:
> Hello!
>
> Why is the computation of a sum not working?
>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
> <apply>
>   <sum/>
>   <bvar><ci>i</ci></bvar>
>   <lowlimit><cn>0</cn></lowlimit>
>   <uplimit><cn>100</cn></uplimit>
>   <apply>
>     <power/>
>     <ci>x</ci>
>     <ci>i</ci>
>   </apply>
> </apply>
> </math>
>
> Did I made a fault or is the computation of sums not implemented yet?
>
> Regards, Herbert
>
>
>
>
>
>
>
>
> ___________________________________________________________
> Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
********************************************************************************\
*
Pavan (Akkisetty Venkata Sai Pavan Kumar)
Graduate Research Assistant
2008 FRNY Chemical Engineering
Purdue University
Office Phone:765-494-4083

310 N.Salisbury, Apt 3
West Lafayette
Indiana-47906
Cell Phone:765-413-8559

#313 From: Herbert Kluge <herbertkluge@...>
Date: Tue Dec 5, 2006 6:57 pm
Subject: Sum computation
herbertkluge
Offline Offline
Send Email Send Email
 
Hello!

Why is the computation of a sum not working?

<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
   <sum/>
   <bvar><ci>i</ci></bvar>
   <lowlimit><cn>0</cn></lowlimit>
   <uplimit><cn>100</cn></uplimit>
   <apply>
     <power/>
     <ci>x</ci>
     <ci>i</ci>
   </apply>
</apply>
</math>

Did I made a fault or is the computation of sums not implemented yet?

Regards, Herbert








___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de

#312 From: Herbert Kluge <herbertkluge@...>
Date: Tue Dec 5, 2006 9:28 am
Subject: Re: MathMLParser
herbertkluge
Offline Offline
Send Email Send Email
 
Hi!

Thank you for your answer. I read this document. If the translation is
successful is there any chance to get the type of the elements without
testing with instanceof against every type?

Regards,
Herbert

Mark Hale wrote:
> Hi,
>
> The MathMLParser can translate MathML into Java JSci objects or code, i.e.
> <cn>45</cn>   --->   new MathDouble(45)
>
> There is some information in the jsci guide, documentation/jsci.io.html.
>
> No, not really, jscience is something similar but separate.
>
>
> ----- Original Message ----
> From: herbertkluge <herbertkluge@...>
> To: jsci@yahoogroups.com
> Sent: Monday, 4 December, 2006 12:15:15 PM
> Subject: [jsci] MathMLParser
>
>
> Hello!
>
> What's the MathMLParser for? Are there any further information?
>
> Sincerely yours, Herbert
>
> P.S. Is there any relationship to jscience.org?
>
>
>
>
> Yahoo! Groups Links
>
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
>
>
> Yahoo! Groups Links
>
>
>
>



___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

#311 From: Mark Hale <mj_hale@...>
Date: Mon Dec 4, 2006 9:36 pm
Subject: Re: Mathml to Java Classes
mj_hale
Offline Offline
Send Email Send Email
 
Hi,

jsci-mathmlimpl is an implementation of the DOM MathML API. There is also a
higher level JSci.io.MathMLParser which converts the DOM API directly into JSci
objects. See documentation/JSci.io.html for more information. What you need to
do is write a converter from the DOM, or the JSci objects into the Matlab
API/representation.

XML -> DOM (-> JSci) -> Mathlab

I´m not familar with the matlab API, so I don´t know what sort of object
representation it has. But at a guess, I assume it can evaluate matlab strings,
something like matlabEval("5^2+4"), so you probably need to convert the MathML
DOM into the matlab textual representation, and send it to the matlab evaluation
engine.

----- Original Message ----
From: avspavan <pavan@...>
To: jsci@yahoogroups.com
Sent: Monday, 27 November, 2006 5:49:30 PM
Subject: [jsci] Mathml to Java Classes


Hi:

I am interested in sending mathml to Matlab through Java and solving
the equations. But matlab inherently doesn't understand Mathml.

I have come across the package (Jsci-mathmlimpl) which seems like will
help me. I would like to know what exactly it does as I couldn't find
any example that shows conversion of mathml to java objects?! Can Jsci
convert given mathml to Java objects?? If so I think there are ways to
make Matlab understand these Java objects and solve the equations and
get the answer.

Thanks
Pavan






Yahoo! Groups Links



Send instant messages to your online friends http://uk.messenger.yahoo.com

#310 From: Mark Hale <mj_hale@...>
Date: Mon Dec 4, 2006 9:29 pm
Subject: Re: MathMLParser
mj_hale
Offline Offline
Send Email Send Email
 
Hi,

The MathMLParser can translate MathML into Java JSci objects or code, i.e.
<cn>45</cn>   --->   new MathDouble(45)

There is some information in the jsci guide, documentation/jsci.io.html.

No, not really, jscience is something similar but separate.


----- Original Message ----
From: herbertkluge <herbertkluge@...>
To: jsci@yahoogroups.com
Sent: Monday, 4 December, 2006 12:15:15 PM
Subject: [jsci] MathMLParser


Hello!

What's the MathMLParser for? Are there any further information?

Sincerely yours, Herbert

P.S. Is there any relationship to jscience.org?




Yahoo! Groups Links



Send instant messages to your online friends http://uk.messenger.yahoo.com

#309 From: Mark Hale <mj_hale@...>
Date: Mon Dec 4, 2006 8:55 pm
Subject: Re: Mathml Parser for PDEs/ODEs
mj_hale
Offline Offline
Send Email Send Email
 
Hi,

The mathml DOM implementation in JSci, I believe, can parse them. That is you
can access them from the DOM tree. But the high-level JSci object parser doesn´t
currently support them. Mainly because the JSci package currently lacks object
representations of ODEs and PDEs. So, XML -> MathML DOM is ok, but currently not
MathML DOM -> JSci objects.

Regards,
Mark


----- Original Message ----
From: avspavan <pavan@...>
To: jsci@yahoogroups.com
Sent: Thursday, 30 November, 2006 1:33:10 PM
Subject: [jsci] Mathml Parser for PDEs/ODEs


Hi:

I have my mathinfo of PDEs(Partial Differential Equations) and
ODEs(Ordinary Differential Equations) in mathml. Can this be parsed
using the existing Jsci framework? I dont see the PDE/ODE mathml nodes
parsed in the existing JSci MathmlParser. Please let me know if this
is possible.

Thanks
Pavan





Yahoo! Groups Links





___________________________________________________________
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy
and free. http://uk.docs.yahoo.com/trueswitch2.html

#308 From: "herbertkluge" <herbertkluge@...>
Date: Mon Dec 4, 2006 6:15 pm
Subject: MathMLParser
herbertkluge
Offline Offline
Send Email Send Email
 
Hello!

What's the MathMLParser for? Are there any further information?

Sincerely yours, Herbert

P.S. Is there any relationship to jscience.org?

#307 From: "avspavan" <pavan@...>
Date: Thu Nov 30, 2006 7:33 pm
Subject: Mathml Parser for PDEs/ODEs
avspavan
Offline Offline
Send Email Send Email
 
Hi:

I have my mathinfo of PDEs(Partial Differential Equations) and
ODEs(Ordinary Differential Equations) in mathml. Can this be parsed
using the existing Jsci framework? I dont see the PDE/ODE mathml nodes
parsed in the existing JSci MathmlParser. Please let me know if this
is possible.

Thanks
Pavan

#306 From: "avspavan" <pavan@...>
Date: Mon Nov 27, 2006 11:49 pm
Subject: Mathml to Java Classes
avspavan
Offline Offline
Send Email Send Email
 
Hi:

I am interested in sending mathml to Matlab through Java and solving
the equations. But matlab inherently doesn't understand Mathml.

I have come across the package (Jsci-mathmlimpl) which seems like will
help me. I would like to know what exactly it does as I couldn't find
any example that shows conversion of mathml to java objects?! Can Jsci
convert given mathml to Java objects?? If so I think there are ways to
make Matlab understand these Java objects and solve the equations and
get the answer.

Thanks
Pavan

#305 From: Mark Hale <mj_hale@...>
Date: Tue Nov 21, 2006 9:41 pm
Subject: Re: DecimalFormat
mj_hale
Offline Offline
Send Email Send Email
 
Hi,

Thanks for your email. There exists the following methods for changing the
number formatting (defined in Graph2D):

setNumberFormat (all axes)
setXNumberFormat
setYNumberFormat

Regards,

Mark


----- Original Message ----
From: damiaan_persyn <damiaan.persyn@...>
To: jsci@yahoogroups.com
Sent: Friday, 17 November, 2006 5:00:09 PM
Subject: [jsci] DecimalFormat


Hi;

let me first thank you for this great piece of software, I'm enjoing
testing its possibilities and learning some Java in the course.

Being new at Java this question is probably really dumb, but anyway...

I was trying to get two numbers after the decimal point in a
linegraph, in stead of one. (My data consists of stock option prices,
which tick mostly by 0.05 or 0.01 cents, so that's why.)

My approach so far:

1/ unpacked the jsci-xtra.jar file

2/ downloaded Graph2D.java from cvs and changed line 37 to

protected NumberFormat xNumberFormat = new DecimalFormat("##0.00");
in stead of
protected NumberFormat xNumberFormat = new DecimalFormat("##0.0");

3/ made a new classfile running javac Graph2D.java

4/ ran "jar cf jsci-xtra.jar Jsci", copied the new jsci-xtra.jar file
to /usr/share/java (which is in my $CLASSPATH).

5/ recompiled my applet, restarted my browser.

As this all didn't work started deleting stuff from the ~/.java cache,
robooted, did the above for JGraph2D.java as well, changed all
appearances of .0f to .00f... but all to no good.

So am I wrong in how I changed the code, in the recompilation, or is
there maybe some annoying cache issue keeping the old jar's in use?

Btw, why did I had to change line 28 in Graph2D.java to "public" to
get it compile?
(public Graph2D.DataMarker dataMarker = Graph2D.DataMarker.NONE;)

This number formatting seems pretty hard-coded. I guess a
method for setting it would be a nice feature (at least for me :)

Many thanks,

Damiaan





Yahoo! Groups Links



Send instant messages to your online friends http://uk.messenger.yahoo.com

#304 From: "damiaan_persyn" <damiaan.persyn@...>
Date: Fri Nov 17, 2006 11:00 pm
Subject: DecimalFormat
damiaan_persyn
Offline Offline
Send Email Send Email
 
Hi;

let me first thank you for this great piece of software, I'm enjoing
testing its possibilities and learning some Java in the course.

Being new at Java this question is probably really dumb, but anyway...

I was trying to get two numbers after the decimal point in a
linegraph, in stead of one. (My data consists of stock option prices,
which tick mostly by 0.05 or 0.01 cents, so that's why.)

My approach so far:

1/ unpacked the jsci-xtra.jar file

2/ downloaded Graph2D.java from cvs and changed line 37 to

protected NumberFormat xNumberFormat = new DecimalFormat("##0.00");
in stead of
protected NumberFormat xNumberFormat = new DecimalFormat("##0.0");

3/ made a new classfile running javac Graph2D.java

4/ ran "jar cf jsci-xtra.jar Jsci", copied the new jsci-xtra.jar file
to /usr/share/java (which is in my $CLASSPATH).

5/ recompiled my applet, restarted my browser.

As this all didn't work started deleting stuff from the ~/.java cache,
robooted, did the above for JGraph2D.java as well, changed all
appearances of .0f to .00f... but all to no good.

So am I wrong in how I changed the code, in the recompilation, or is
there maybe some annoying cache issue keeping the old jar's in use?

Btw, why did I had to change line 28 in Graph2D.java to "public" to
get it compile?
(public Graph2D.DataMarker dataMarker = Graph2D.DataMarker.NONE;)

This number formatting seems pretty hard-coded. I guess a
method for setting it would be a nice feature (at least for me :)

Many thanks,

Damiaan

#303 From: "taiji810327" <zhoufeng0116@...>
Date: Fri Oct 20, 2006 3:30 am
Subject: square matrix's determinant
taiji810327
Offline Offline
Send Email Send Email
 
Every square matrix should have its determinant. However, when I use
the det() method in class DoubleSquareMatrix, I sometimes get NaN. For
instance, if I ask for the determinant of a 3 by 3 matrix of 1s, I get
NaN. Is there any special settings?

Cheers

#301 From: Mark Hale <mj_hale@...>
Date: Fri Aug 25, 2006 4:46 pm
Subject: Re: Re: inverse Fourier Transform
mj_hale
Offline Offline
Send Email Send Email
 
OK, thanks, I will make a note in the javadocs.

----- Original Message ----
From: alkottke <alkottke@...>
To: jsci@yahoogroups.com
Sent: Friday, 25 August, 2006 5:23:42 PM
Subject: [jsci] Re: inverse Fourier Transform

Turns out it is easy to create a transfer function using the other
notation, just use the conjugate.

--- In jsci@yahoogroups.com, "alkottke" <alkottke@...> wrote:
>
> Hello,
>
> So I found out the issue.  Matlab uses -2pi in the transform and 2pi
> in the inverse, whereas JSci uses 2pi in the transform and -2pi in the
> inverse transform. If I recall correctly, the difference between +/-
> 2pi is a matter of convention, but I don't know how to create a
> transfer function in the frequency domain when the -2pi convention is
> applied.  Mathworld also uses the -2pi transform, 2pi inverse
> convention: http://mathworld.wolfram.com/FourierTransform.html
>
> --- In jsci@yahoogroups.com, Mark Hale <mj_hale@> wrote:
> >
> > Hi,
> >
> >  As the data is increasing positive, increasing negative then you
> don't need the first initial sort, ie inverseTransform(data), if you
> want the output in sequential time order, then you need the last sort,
> ie sort(inverseTransform(data)).
> >
> >  If you still have problems, send me some test data and a screen
> shot of the results in matlab.
> >
> >  Regards,
> >
> >  Mark
> >
> >
> > ----- Original Message ----
> > From: alkottke <alkottke@>
> > To: jsci@yahoogroups.com
> > Sent: Thursday, 24 August, 2006 8:22:58 PM
> > Subject: [jsci] inverse Fourier Transform
> >
> > I had some problems getting the inverse Fourier Transform to work.  I
> > have a Fourier Amplitude Spectrum (FAS) that with increasing positive
> > frequencies, the Nyquist frequency, and the increasing negative
> > frequencies.  I tried using sort(inverseTransform(sort(...))) to
> > compute the time history, but the results don't make any sense.  I
> > also tried with and without the both of the sort() commands.  Which is
> > appropriate?
> >
> > Right now I decided to use another FFT library because the results
> > that it produces match the results I compute using matlab.  However, I
> > would like to use JSci to simplify the libraries.
> >
> > Can anyone explain to me how to properly use inverseTransform()?
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
>







Yahoo! Groups Links

#300 From: "alkottke" <alkottke@...>
Date: Fri Aug 25, 2006 4:23 pm
Subject: Re: inverse Fourier Transform
alkottke
Offline Offline
Send Email Send Email
 
Turns out it is easy to create a transfer function using the other
notation, just use the conjugate.

--- In jsci@yahoogroups.com, "alkottke" <alkottke@...> wrote:
>
> Hello,
>
> So I found out the issue.  Matlab uses -2pi in the transform and 2pi
> in the inverse, whereas JSci uses 2pi in the transform and -2pi in the
> inverse transform. If I recall correctly, the difference between +/-
> 2pi is a matter of convention, but I don't know how to create a
> transfer function in the frequency domain when the -2pi convention is
> applied.  Mathworld also uses the -2pi transform, 2pi inverse
> convention: http://mathworld.wolfram.com/FourierTransform.html
>
> --- In jsci@yahoogroups.com, Mark Hale <mj_hale@> wrote:
> >
> > Hi,
> >
> >  As the data is increasing positive, increasing negative then you
> don't need the first initial sort, ie inverseTransform(data), if you
> want the output in sequential time order, then you need the last sort,
> ie sort(inverseTransform(data)).
> >
> >  If you still have problems, send me some test data and a screen
> shot of the results in matlab.
> >
> >  Regards,
> >
> >  Mark
> >
> >
> > ----- Original Message ----
> > From: alkottke <alkottke@>
> > To: jsci@yahoogroups.com
> > Sent: Thursday, 24 August, 2006 8:22:58 PM
> > Subject: [jsci] inverse Fourier Transform
> >
> > I had some problems getting the inverse Fourier Transform to work.  I
> > have a Fourier Amplitude Spectrum (FAS) that with increasing positive
> > frequencies, the Nyquist frequency, and the increasing negative
> > frequencies.  I tried using sort(inverseTransform(sort(...))) to
> > compute the time history, but the results don't make any sense.  I
> > also tried with and without the both of the sort() commands.  Which is
> > appropriate?
> >
> > Right now I decided to use another FFT library because the results
> > that it produces match the results I compute using matlab.  However, I
> > would like to use JSci to simplify the libraries.
> >
> > Can anyone explain to me how to properly use inverseTransform()?
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
>

Messages 300 - 344 of 369   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help