« first day (1867 days earlier)      last day (2607 days later) » 

12:32 AM
Before I ask a question are there any functions that act similar to the way nodejs.org works in asynchronous mode where there the form readFile(file,functionOnFinish)
If I need to post more examples I'm happy to. Functions that this would be helpful would be for socket code creating a sever maybe.
 
 
4 hours later…
4:35 AM
@William AsynchronousTask can be used for this.
 
4:49 AM
@yode Basically, the final question in your post is
> So the result of `parameterNumber[RelationGraph] is {{2},{3}}`

> Or the Plus, `Plus[arg1_,arg2_,arg3_,...]` is valid,So the result of `parameterNumber[Plus]` is `{0,Infinity}` How to make a such function?
You are asking for the correct number of arguments which itself is not a good question for the Wolfram Language. Each function with options automatically takes an infinite number of arguments. However, the help of Sequence, you can use every function with as many arguments as you want. For instance, Plot can easily take only one argument:
Plot[Sequence[{Sin[x], Sin[2 x], Sin[3 x]}, {x, 0, 2 Pi}, PlotLegends -> "Expressions"]]
My solution has the same flaws that other answers have too. There isn't a general solution because you always have to rely on additional information (like SyntaxInformation) that will be inconsistent for some functions.
 
 
1 hour later…
6:03 AM
@halirutan I realize it's indeed not a good question after I have a try with SyntaxInformation.But another hand,do you think some bug is in function SyntaxInformation?
Considering my such examples:SyntaxInformation/@{DirectedEdges,EquirippleFilterKernel,Plot,FindCycl‌​e}
 
@yode I cannot really comment on this, but I guess that SytnaxInformation was put together manually.
I would say they probably collected basic information with the help of the definitions and the usage patterns, but you might see that this is not perfectly possible
 
 
10 hours later…
3:57 PM
Are there any JLink aficionados on line? I'm trying to connect to a USB spectrometer using these instructions written for Matlab. I can create an object with JavaNew and then when I try wrapper@openAllSpectrometers[] I get the error mentioned a bit farther down the page about the JNI path.
 
 
1 hour later…
5:08 PM
When I call a method that doesn't require the DLL (e.g. wrapper@getApiVersion[]) I do get a valid response returned, so I know that JLink is operating and the class is loaded; there appears to be a problem in locating the drivers.
 
5:33 PM
@bobthechemist So there is both, a java jar and a dll that is called through JNI?
 
5:54 PM
@halirutan As far as I can tell, yes. My googling suggests that folks have the same problem with matlab and octave, requiring some modifications to the path, but I haven't found analogous solutions for M.
I know the class it cannot find, but don't know what DLL (windows) it is contained in. In principle, however, it's in the same directory as the JAR files.
 
@bobthechemist On Linux you need to include the "dll" in the LD_LIBRARY_PATH to make it work.
 
you mean the unix shell path, not a M variable, correct?
@halirutan adding the path in InstallJava with the -Djava.library.path option and adding the class path did the trick (I seemed to do one or the other, but not both). Thanks.
 
6:09 PM
@bobthechemist No, that's an environment variables (so not an M variable), but also different from PATH. PATH is for locating executables, LD_LIBRARY_PATH for locating shared libraries
 
6:21 PM
When I enter the following command in Mathematica it gives me a list of terms as an algebraic expression. How can I make Mathematica evaluate a decimal number value for this expression? The command is: Sum[Exp[I*pi*(m + n)], {m, -5, -5}, {n, -5, 5}]
 
@csss It's Pi in Mathematica, not pi.
 
 
3 hours later…
9:13 PM
There is out of the box interoperability for Java, .Net, and R. Are there any other languages/platforms that Wolfram Language operates with without the need for 3rd-party packages?
 
 
1 hour later…
10:19 PM
@Edmund You're forgetting C/C++ :)
 
 
1 hour later…
11:35 PM
@C.E. Ah yes. The direct compile. Thanks
 

« first day (1867 days earlier)      last day (2607 days later) »