For questions on interfacing or getting Mathematica to work together with other software or technologies.
39
votes
5answers
1k views
Minimal effort method for integrating C++ functions into Mathematica
As of Mathematica 8, what is the minimal effort way to integrate an existing C++ function into Mathematica?
I think we have these:
MathLink (it was quite long ago I used it last time)
communication ...
22
votes
2answers
668 views
Are there any “RLink” like projects, which enable the interaction between R and Mathematica?
I want to borrow the vast amount of packages of R. I know there was one but it is neither sold nor supported anymore. So are there any active open source projects for linking R with Mathematica? Thank ...
20
votes
3answers
873 views
Calling MATLAB from Mathematica
How can I call MATLAB functions directly from Mathematica and transfer data/variables between the two systems?
19
votes
3answers
621 views
Calling IronPython code from Mathematica
I'd like to call some IronPython code from Mathematica using .NET/Link.
The problem is that the code lives in .py files, yet from Mathematica I can only load .NET assemblies which are DLLs.
So it ...
19
votes
2answers
547 views
How do I call a 32-bit DLL using .NET/Link and a 64-bit version of Mathematica?
The .NET/Link tutorial shows how to call functions defined in DLLs. The example uses the GetTickCount Win32 API function
...
17
votes
3answers
2k views
How to use Mathematica functions in Python programs?
I'd like to know how can I call Mathematica functions from Python.
I appreciate a example, for example, using the Mathematica function Prime.
I had search about MathLink but how to use it in Python ...
16
votes
1answer
368 views
Linking FORTRAN with Librarylink
FORTRAN code can be called using MathLink or .NET/Link (see the link for a worked examples).
But as mentioned in a talk by T.Gayley and J.Klein in Wolfram Technology Conference 2011, LibraryLink, ...
15
votes
1answer
297 views
Can anyone explain how to use Mathematica's OAuth package?
I noticed that in HTTPClient.m which is included with Mathematica 9 and is located in
...
14
votes
2answers
300 views
Is Compress[] compatible between different Mathematica versions?
Compress[] was introduced in version 6 of Mathematica. It gives a compressed version of expressions represented as a string of ASCII characters. It preserves more ...
14
votes
1answer
368 views
Executing Maple Code Inside Mathematica
Is it possible to create a C++ program using MathLink that will invoke the Maple kernel and execute a very basic Maple command using OpenMaple?
I'm envisioning the following:
...
13
votes
4answers
689 views
Is there a Mathematica/Lisp link?
I'd like to start learning Lisp as it sometimes leads to interesting answers on this site with concepts borrowed from this language, so I'm curious. As I already spend most of my programming time in ...
13
votes
2answers
460 views
Is it possible to embed the Mathematica editor?
Is it possible to embed a Mathematica window into a .NET application? I mean not just the interop, but actually making the notebook editor window part of a .NET form. Is this possible?
13
votes
2answers
263 views
Interfacing Mathematica with MINE using JLink
In last December's Science David N. Reshef, et al. proposed an interesting method to detect associations in data (Detecting Novel Associations in Large Data Sets, Science 334, 1518, 2011). Contrary to ...
11
votes
1answer
369 views
Is it possible to use C# LINQ from Mathematica using .NET/Link?
Using Mathematica's .NET/Link (NETLink`) package, is it possible to call out to .NET's LINQ facilities for list manipulation and other operations?
11
votes
0answers
308 views
Strategies for Interfacing to web visualization libraries like Stanford's Data-Driven Documents (D3)?
There is a growing library of visualization tools being developed (eg on GitHub) - for Stanford's Data-Driven Documents. The implementation languages and standards are the usual W3C suspects: JS, ...
10
votes
2answers
273 views
How can I connect Mathematica to Clojure?
I'm using Clojure and I'd really love to be able to use some of Mathematica's functions inside it. Can anyone help with mathlinking it?
10
votes
1answer
521 views
How to install and configure Intel C++ Compiler for Mathematica correctly?
I wish to try the trial version of the latest Intel C++ Compiler for Windows with Mathematica. I have downloaded the current version of IntelĀ® C++ Composer XE 2011 for Windows and installed only the ...
10
votes
1answer
329 views
Using a different R version with RLink
I wish to use a different version of R than what is provided by Mathematica 9. For example, I want to use the Macports version of R, where R_HOME is ...
10
votes
1answer
199 views
Load a Mathematica Package via .Net code
I'm using C# to pass data to Mathematica and return graphs:
...
10
votes
0answers
204 views
How do I stop my joystick from rotating a 3D graphic?
I am trying to use Mathematica to illustrate mixed strategies in Game Theory. I want my students to be able to use common joysticks as controllers. What I find, however, is that in addition to doing ...
9
votes
1answer
330 views
CDF and MediaWiki
Recently there was a handful of CDF embedding-related topics. However I would like to ask whether anyone has succeeded in embedding CDF into MediaWiki page?
I've attempted to do so with the Widget ...
9
votes
1answer
597 views
How can I deploy DLL files created by a Fortran function and call them from Mathematica
This is my Fortran function, established by Intel visual Fortran 11.1
...
9
votes
1answer
166 views
Mathematica Functions from VBA
I'm trying to call Mathematica functions from VBA (Excel) using .NETLink without success.
(Yes, I know Mathematica Link for Excel exists. And yes, I know the proper thing to do is buy it. However, ...
9
votes
1answer
177 views
Link ITK with Mathematica
I would like to know if someone has tried to link Mathematica with ITK code (call ITK code in Mathematica)?
8
votes
1answer
215 views
Write C/C++ programs calling Mathematica functions
I need to write a C/C++ program and call some functions in Mathematica especially those like Solve or NDSolve. The problem is ...
8
votes
1answer
150 views
How to embed “Share content” button into a CDF?
I want to have a button present in a CDF that, when pressed, shares some content material e.g. via Facebook. Is it possible or would the restrictions of the CDF format prevent anything from happening? ...
8
votes
1answer
641 views
Using Mathlink with the cernlib FORTRAN package MINUIT
I could successfully use Mathlink to call a simple fortran subroutine. However, when I went to a realistic problem, I failed.
To be specific, I want to fit a set of data with some function using the ...
8
votes
1answer
358 views
Can you call a C function that takes function pointers as arguments?
I want to use MathLink to call a function I wrote in C. However, similar to an integrator, it takes a function pointer as an argument and applies it on numbers depending on the other arguments. I ...
8
votes
2answers
236 views
MathLink and C++ vector container
The Problem.
I have a C++ class that does some computations, and returns a C++ vector object (the length of which can possibly vary with each run).
I want to store each of these vectors as a list in ...
7
votes
3answers
443 views
Calling external commands without showing command prompt on windows
I'm playing around with some code that's calling external command-line commands on a windows platform, and when doing this, the command prompt will pop up quickly and then disappear. This is not a ...
7
votes
2answers
354 views
Mathematica Library Link : How to use non standard 'mint' e.g. 'unsigned int' or 'long long int'
I use Mathematica 8.0.4 on Mac OSX 64 bit, and gcc as C compiler.
I am trying to write a LibraryLink function that deals with large positive integers i.e. greater than $2^{31}-1$. By dealing with, I ...
7
votes
1answer
176 views
7
votes
1answer
252 views
Mathematica File Organization
Last year I asked how to integrate notebooks to the documentation center in stackoverflow. Back then I was only interested in seeing those notebook and being able to search for them. Unfortunately, it ...
6
votes
2answers
308 views
Web scraping and multi-threading in Mathematica
I'm working in some web scraping using Mathematica, and today, to speed-up the process, I used bash commands (xargs with parallel options with curl and wget) using ...
6
votes
1answer
205 views
WinBUGS Interface
Has anyone created on WinBUGS (Bayesian inference Using Gibbs Sampling) interface with Mathematica similar to BugsXLA for Excel? I'd like to setup the model, define the evidence in a notebook and then ...
5
votes
1answer
267 views
Setting default Mathematica version
Is there a way to set the default Mathematica version? I would like to run both versions 7 and 8 (on a Win7 PC), but when version 8 is installed it takes priority. Clicking on a notebook ...
4
votes
1answer
393 views
Mathematica 9 Linking with R
I would like to run a batch job from within the current Mathematica .m file using "R CMD BATCH &" (the job runs in the background when Mathematica proceeds with the current calculations. How can ...
4
votes
1answer
315 views
Is there a way to run Python from within Mathematica?
I know there is some support for running Mathematica from Python, but is there any way to do the reverse. For example, to import some Python classes and use them in Mathematica?
4
votes
1answer
170 views
Problem with SerialIO package and Lego NXT
I'm following a guide from The Mathematica Journal that describes how to use Mathematica with the Lego Mindstorms NXT but have some trouble getting started and got stuck with the SerialIO package.
I ...
4
votes
0answers
75 views
Mathlink and Parallelization [duplicate]
Possible Duplicate:
How to run mathlink external commands in parallel?
Abstract
I have a binary file compiled to work with MathLink. I can install the file and run the component functions ...
3
votes
1answer
54 views
Reading RData files without RLink
I am using Mathematica 8. I would like to read some RData files which I have received. I do not currently have an installation of R on the machine with Mathematica.
3
votes
1answer
270 views
MathLink compile errors
Don't you just love it when your computer is working fine, you work with some good examples, everything is wonderful and your relationship with your computer is the best? I do. But what happens when ...
3
votes
0answers
43 views
Eureqa Client to connect to Mathematica under Windows
Does there exist a way to use Eureqa software with Mathematica under Windows?
That is, is there a working client to connect to a Eureqa server?
3
votes
0answers
170 views
RefProp in Mathematica
RefProp by NIST is a program that calculates the thermodynamic properties of fluids. I need to call certain RefProp functions ...
2
votes
2answers
87 views
Cannot call custom function loaded from script using C/C++ MathLink
I am using MathLink with C/C++ on a Unix system in order to call a Mathematica (version 9) function and get the result.
The function I need to call is a personal function of mine ...
2
votes
1answer
72 views
Cannot run Mathematica C-interfacing examples 'factor'
I am trying to run a Mathematica example concerning Mathematica interfacing issues with C programs. In particular I am trying to call a Mathematica function from C.
Example ...
2
votes
0answers
54 views
Can Mathematica interact with OPC server of Microsoft?
I am considering to interact with Microsoft OPC server with Mathematica. Writing a Solver of Optimization. Is it possible ?
2
votes
0answers
244 views
Automatically sending to Print (using CutePDF Writer)
I use CutePDF for creating PDF output, but this requires manually selecting Print (Ctrl+P), with CutePDF Writer as the printer, and pressing OK. Can this be automated?
1
vote
1answer
50 views
How to send a function definition to MathLink from C/C++?
In this tutorial some MathLink concepts are introduced. At page 33 in the last lines the author is talking about sending to MathLink a function definition like ...
1
vote
0answers
77 views
How to fix a “NET::methodargs: Improper arguments supplied” error?
I am trying to call the fortran program: Phaml.f90, which is supposed to generate an array of size "num"
...
