Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
2 votes
0 answers
89 views

A question about using .dll in Mathematica with LibraryFunctionLoad

I am trying to use a custom trilinear interpolation written in C in Mathematica (Windows). This is the code I start with: ...
John Taylor's user avatar
  • 5,963
14 votes
3 answers
401 views

ForeignFunctionLoad / RawMemoryAllocate and c-struct that includes an array

I have an external c-function I need to call, and I wish to use ForeignFunctionLoad. The c-function, foo, takes as an argument a reference to a struct, for example: ...
Stefan Gillessen's user avatar
5 votes
0 answers
105 views

Are ForeignFunction and its friends the next generation of LibraryLink?

It's a bit surprising to me that no one asks about this so far, so let me step up :) . In version 13.3, an EXPERIMENTAL Foreign Function Interface has been introduced. I'm by no means a C expert, but ...
xzczd's user avatar
  • 68.4k
1 vote
0 answers
44 views

Why my MATLink must execute the command `OpenMATLAB[]` twice to realize once normal `OpenMATLAB[]` command?

Problem description To use Matlab code in Mathematica I have tried to use the package MATLink. However, everytime I run the code below ...
narip's user avatar
  • 511
4 votes
1 answer
113 views

How to use a personal function in Matlab within Mathematica utilizing Matlink?

Problem description I've written a function in Matlab as follows: function z = testfuncadd(x,y) z = x + y; end I want to use this function within Mathematica ...
narip's user avatar
  • 511
2 votes
0 answers
142 views

How to set up the Gurobi optimizer?

How do I set up Mathematica to use the commercial Gurobi optimizer? Mathematica should be able to use it, as the Method -> "Gurobi" option exists for ...
István Zachar's user avatar
2 votes
1 answer
77 views

Control metadata of CopyToClipboard

Question The system clipboard can contain image data and text data (and a plethora of other types). Mathematica copies different expressions as different types of data; copy ...
Adam's user avatar
  • 4,006
1 vote
1 answer
138 views

Is there any Mathematica API for Z3?

Z3 has bindings for various programming languages, e.g., C, C++, Java, Python, and so on. Are there any for Mathematica? Or how to implement one?
hengxin's user avatar
  • 840
3 votes
1 answer
71 views

What crops the response from the SocketListen based web server?

I noticed that when the response length passes around 1k characters then it is cut at weird lengths: 424, 936 or 1448 characters. Response is generated correctly but then it is cut so if the body was ...
Kuba's user avatar
  • 138k
1 vote
0 answers
76 views

Repeated calling of Mathematica function from R through system call make it extremely slow

I have the following simple function in test.wls file x = ToExpression[$ScriptCommandLine[[2]]] y = ToExpression[$ScriptCommandLine[[3]]] z = x+y Print[z] I call ...
Ahmed Abdullah's user avatar
7 votes
2 answers
673 views

Getting data into Julia session?

Mathematica has a way of integrating with Julia, and automatically convert Julia outputs into Mathematica objects (Julia seems to have nice support for low-rank approximation). What is the best way to ...
Yaroslav Bulatov's user avatar
1 vote
0 answers
344 views

Can OGDF (a self-contained C++ library for graph algorithms) be integrated into Mathematica?

I would like to begin by congratulating IGraphM on the release of its current update (M 0.6.1). This package makes graph calculations on Mathematica much smoother. The specifics are available at the ...
licheng's user avatar
  • 2,101
1 vote
0 answers
87 views

Copying Bitmaps in 13.1.0.0

I have just installed 13.1.0.0 and have been copying bitmaps (ListLinePlot) from notebooks (Edit->CopyAs->Bitmap) into various MS applications in Windows 10. ...
OpticsMan's user avatar
  • 586
6 votes
1 answer
274 views

Make Mathematica input things on a website and take the data out

So I found a website that calculates polynomials that I need it intakes a word of a's and b's say aabba and outputs a polynomial. Here is the website: http://www.math.stonybrook.edu/~moira/NewApps/...
2132123's user avatar
  • 657
0 votes
1 answer
244 views

How to copy Mathematica code into Microsoft Word?

Is there a way to copy my mathematica code (with preserved formatting) as text into microsoft word? Below is part of my code. ...
Johnson's user avatar
  • 391
0 votes
0 answers
64 views

Using and executing the missing complex functions of Mathematica in Wolfram script *.wls

I have the following Mathematica notebook on this link notebook I was told that the binary wolframscript couldn't understand some complex functions of Mathematica. First, I would you like to convert ...
youpilat13's user avatar
7 votes
0 answers
254 views

How To Install R Packages Via R Link In Windows

So it looks like I got RLink working on my Windows machine: ...
Daniel Berkowitz's user avatar
4 votes
1 answer
134 views

Change DataStructure (or maybe just a symbol) from JLink/Java program

I try to use JLink and Java program for receiving responses from the abstract WebSocket server. WSS not supported by Wolfram Language now, but I can use this java project + JLink for the creating a ...
Kirill Belov's user avatar
0 votes
1 answer
159 views

How to make the words in pictures from Mathematica into MS Word can be edited?

I find that when I export graphics to PDF format from Mathematica, the words in pictures can be copied. However, when I save the pictures from Mathematica and then insert those pictures into MS Word, ...
Y. zeng's user avatar
  • 567
5 votes
1 answer
173 views

Is it possible to run Linux utils from Mathematica using Windows Subsystem for Linux?

I have Windows 10 Professional x64 with WSL2 installed. I've also installed Ubuntu 20.04 LTS from Microsoft Store. I can type ubuntu2004 in the CMD and get access ...
Alexey Popkov's user avatar
11 votes
1 answer
679 views

Mathematica and Google Drive backup client

My Mathematica notebooks (as well as all other files I author in my research) are in a directory that is managed by the Google Drive client. This automatically backs up everything I create and I don't ...
Wynne's user avatar
  • 1,546
3 votes
3 answers
2k views

Read sympy expression in .txt file as Mathematica input

I have a Python file that has a variable defined using sympy. For instance, let us take the following (crazy) example that I could have eventually since I am automatizing a routine: ...
edgardeitor's user avatar
2 votes
1 answer
125 views

interact with web pages with many hyperlinks and search for a specific name or phrase How?

I have this code that shows many hyperlinks links = Import[ "http://www.liceobrainstorm.cl/wp-content/uploads/2020/07/", "Hyperlinks"] ...
BeTDa's user avatar
  • 500
5 votes
2 answers
203 views

Image format change when doing direct Cut/Paste

I usually produce graphics with Mathematica and then use Keynote (I am on a Mac running the latest Big Sur OS) for post processing. Until version 12.0.0.0 I would directly highlight the graphics in ...
Daniele Binosi's user avatar
4 votes
0 answers
99 views

Socket not ready but data is available

Background I am playing with https://github.com/arnoudbuzing/wolfram-server and I faced problems with requests that are slightly longer. I tried to narrow it down here. Problem This could be my ...
Kuba's user avatar
  • 138k
2 votes
1 answer
206 views

Calling Julia via `ExternalEvaluate`

I am trying to call Julia from Mathematica via ExternalEvaluate, as per this documentation page. I have Julia installed with all the required packages (...
Yly's user avatar
  • 265
2 votes
3 answers
1k views

How to use Mathematica from Python

I've been using the following lines of code to generate 3D geometry (ref). The inputs edges, vd, ...
Natasha's user avatar
  • 359
1 vote
0 answers
360 views

WolframKernel not found when running WolframScript

While attempting to run wolframscript in linux, I get the error "WolframKernel not found. Use -configure to set WOLFRAMSCRIPT_KERNELPATH Or export WolframKernel=/yourpath/WolframKernel" I am ...
BOUNCE's user avatar
  • 589
2 votes
1 answer
418 views

Reading information from a Portable Executable (.exe)

I want to extract information from executable files, such as the names and sizes of sections, symbols, etc. The Wikipedia article has a diagram showing the layout of a PE. See also this diagram It ...
flinty's user avatar
  • 25.9k
4 votes
1 answer
345 views

Python module error using Externalsession

What I am trying to do is to generate an array using Python inside Mathematica but I getting TypeError required field:type_ignores missing Module. Here is the image:...
Las Des's user avatar
  • 827
5 votes
2 answers
280 views

Using WSTP with LibraryLink

I'm building an interface for a Fortran library. I would like to use LibraryLink and Mathematica to do the compilation (via CreateLibrary), Visual Studio is ...
Batox's user avatar
  • 153
1 vote
1 answer
181 views

LibraryFunctionLoad with Cool Prop documentation

I use the following command ...
Cezary's user avatar
  • 11
9 votes
1 answer
730 views

Reusing PARDISO symbolic factorization

Is there a way to do this natively in Mathematica? I read in several places that this is possible with LibraryLink, but I don't have a lot of experience with C and so I'm having trouble implementing ...
beets's user avatar
  • 93
16 votes
2 answers
8k views

How do you run Wolfram Language code in VSCode?

I have recently gotten into learning the Wolfram Language with Mathematica, I honestly love Mathematica, but my trial has recently ended, and I do not want to go through the mess of installing Eclipse;...
Greenrock12's user avatar
15 votes
1 answer
771 views

Call julia from Mathematica?

How might one go about calling julia from Mathematica? And vice versa? I'm aware of the MathLink.jl package (https://github.com/JuliaInterop/MathLink.jl), which I've installed into julia 1.3.1. I ...
murray's user avatar
  • 12.1k
1 vote
0 answers
115 views

How to call the function calculation result of Magma in MMA

Magma is a very useful abstract algebra calculation software.How to call the function calculation result of magma in MMA? ...
A little mouse on the pampas's user avatar
6 votes
0 answers
162 views

MWE for compiling functions into standalone DLL and calling them in Python?

I have read calling-a-compiledfunction-dll-from-outside-mathematica and the CodeGeneration tutorial and scanned other related questions too numerous to mention, but I am still unclear about how to ...
Julian Moore's user avatar
  • 2,570
2 votes
0 answers
211 views

Citing with EndNote X9

I am trying to cite my work with EndNote X9 by using the Insert -> Citation -> Bibliographical Reference menu item, but the citation panel is empty. Before you ask, first I opened EndNote and then ...
user49047's user avatar
  • 811
1 vote
1 answer
157 views

ExcelLink stop working after Windows 10 update

After Windows Update KB4508433 & KB4512508, ExcelLink stop to work. If I uninstall these updates, it work again, but windows return to install them... ...
crazzymath's user avatar
2 votes
1 answer
361 views

How to change the terminal size programmatically that is opened by `RunProcess`?

Why isn't the following linux command working from the RunProcess interface? I want to change the terminal size programmatically and then display the information: <...
user13892's user avatar
  • 9,751
3 votes
1 answer
365 views

RunProcess fails when a directory path contains a space

In my "Documents" folder I've created two directories with names "тест" and "тест 2". When I try to use RunProcess for obtaining directory listing for the first ...
Alexey Popkov's user avatar
1 vote
0 answers
343 views

Can I use the Gwnum library to accelerate the multiplication in Mathematica?

Is it possible to use Gwnum library to accelerate the multiplication in Mathematica?
Reda.Kebbaj's user avatar
0 votes
1 answer
598 views

How to make an executable?

I made a program in mathematica and I want to know if Mathematica permits to generate an executable code (*.exe) for running it on a machine where Mathematica is not installed. This is my program: <...
user41178's user avatar
3 votes
1 answer
912 views

How to get Python WolframClient library to connect with WolframKernel on Linux?

My question is similar to the one posted here: WolframEngine install + wolframclient for Python on Ubuntu. However, this solution is not fixing my problem. I cannot get the wolframclient library to ...
aadharna's user avatar
6 votes
0 answers
97 views

WXF encoder library for C++ (asking on may 2019) [duplicate]

Is there any updates regarding plans to open-source C library to support WXF? My question is related to "WXF encoder library for C++". Strongly apologize for opening a new question regarding this ...
fmvin's user avatar
  • 261
26 votes
1 answer
1k views

How can I use the Python library networkx from Mathematica?

Is there an easy way to access the Python library networkx from Mathematica? The improvements to ExternalEvaluate in Mathematica 12.0 should make this feasible.
Szabolcs's user avatar
  • 236k
11 votes
1 answer
1k views

3D rigid body physics engine

Is there a package in Mathematica that will allow me to simulate collisions of 3d rigid bodies? If not, what known libraries could I use and how? For example, one problem I want to simulate is a ...
Ivan's user avatar
  • 2,237
3 votes
0 answers
263 views

How to get the executable out of a compiled function and run it in cmd

Can someone please guide how to run the function compiled by Wolfram Language in cmd independent of the kernel. It seems to export it into ...
user13892's user avatar
  • 9,751
2 votes
0 answers
59 views

How to write on a camera device

I am trying to use a USB camera which is made with a CMOS sensor, there are some parameters that can be set for the camera as gain and some others, the problem is talk with the sensor (APTINA MT9P031) ...
Heberley Tobón Maya's user avatar
6 votes
4 answers
1k views

How to copy a string to the clipboard from a script?

How to copy a string to the clipboard from a script? I want the wolfram script to copy a string to the clipboard. Unfortunately the following script fails to do this. The same code works perfectly in ...
Conor Cosnett's user avatar

1
2 3 4 5