Expr + Java function

iamfromspacebaby's icon

I've written a Bessel function in Java and I want to call it in expr, is this possible? I'm using expr in a Matrix to create a Chladni pattern. The Bessel function use's the coordinate r. Thanks.

Jean-Francois Charles's icon
iamfromspacebaby's icon

Ahh thanks.

Let me explain further.

I have allready created a Bessel function in Java using mxj. As Expr doesn't have a Bessel operation I want to call the Bessel function I created using Expr and apply it to the matrix...

Something like this...

expr (mxj Bessel(in[1] * norm[1])) * sin(in[2] * PI * norm[0])

I've looked in the help file and from JCs advice I dont think I can do this..

So instead I'm thinking of editing expr and adding a BesselFunction or do the arithmatic on the Matrix in Javascript. What do you suggest? I'm pretty new at this so I just want some feedback on my ideas.