Questions tagged [scripting]

For questions about Wolfram Language Scripts (formerly known as Mathematica Script), or running the kernel without direct user interaction.

Filter by
Sorted by
Tagged with
2 votes
1 answer
90 views

Why Mathematica does not return explicit output [closed]

I am new to Mathematica. One thing that I don't get is why if I define a matrix and give it a name, then use the name in another function, I get back the function itself. However, When I use an ...
user avatar
  • 21
1 vote
1 answer
70 views

NSum::nslim: Limit of summation k is not a number. Help, please( [closed]

...
user avatar
  • 43
4 votes
1 answer
137 views

Empty .png figures generated by a function "PlotWithGrid" whereas no problem with Export function

I have an issue about a .wls script that I can't manage to solve for the moment. I execute it with wolframscript interpeter on ...
user avatar
  • 43
0 votes
0 answers
35 views

Wolfram script exported from a Mathematica Notebook : errors actually warnings?

I have exported with the following script put at the beginning of my Mathematica notebook : ...
user avatar
  • 35
0 votes
0 answers
69 views

Reading an old file with newer versions of Mathematica

So I was given code for mathematica software in the form of an nb-file, but my mathematica sofware isn't reading it or detecting an nb file in my computer. I'm assuming this code was done a few years ...
user avatar
0 votes
1 answer
25 views

Weird behaviour when taking input from the terminal using $ScriptCommandLine

I am trying to create a .wl file that can be run from the terminal using wolframscript. The script looks something like ...
user avatar
0 votes
1 answer
79 views

Getting Error on differential equation Mathematica [closed]

There is a Differential equation that I had to Implement on Mathematica. But I am getting this error over and over. don't know what I did wrong I tried this but does not work. ...
user avatar
2 votes
2 answers
77 views

Plot issue : put a legend instead of a top label

I have an issue about putting a legend consisted of a text and numerical value instead of a label. For example, with this command line : ...
user avatar
  • 35
1 vote
1 answer
53 views

Plot issue : bad label ordering with concatenation of strings

I have an issue about a label which is consisted of a variable name [Omega]BD and a numerical value associated. Firstly, I put the BD subscript to ...
user avatar
  • 35
0 votes
1 answer
68 views

Export all figures and plots produced from a Wolfram script into a single PDF

Here is a .wls script that produces different images into .jpg format. I would like to export directly all the images in a same ...
user avatar
  • 35
0 votes
0 answers
196 views

Find a way to have all progressively human reading or logical steps in a symbolic calculus and improve rendering

I have the following Mathematica notebook on this link notebook link 1.First, I would like to generate in an automatically way this notebook to a Wolfram script that I can make run directly from ...
user avatar
  • 35
0 votes
0 answers
46 views

Save figure of a plot following a conversion from notebook to Wolfram script

I have the following Mathematica notebook on this link notebook link I have converted it to Wolfram script. Once done this, I am trying to save the plots as png ...
user avatar
  • 35
0 votes
0 answers
48 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 ...
user avatar
  • 35
0 votes
0 answers
15 views

Running wolframscript results in "Failed to open configuaration file at path"

The wolframscript configuration file exists and have all of the permission enabled. When I start wolframscript on Ubuntu 16.04.2 LTS, it starts fine. However, it produces the following error message. ...
user avatar
  • 1
7 votes
0 answers
105 views

Fork/Pull Request ResourceFunction?

Wolfram is so rapidly evolving its extension technologies, that it's hard to figure out how to meaningfully contribute to the community. Over the years we've seen: Applications, Packages/Paclets and ...
user avatar
  • 1,115
1 vote
0 answers
37 views

Mathematica prints out "List" in For cycle [closed]

So I run a For loop and "List" print outs come out of nowhere, how do I get rid of them
user avatar
  • 11
3 votes
1 answer
76 views

Front End Not Available Error in Wolfram Script

I have a script to produce a custom palette that works perfectly well when run in a MM notebook, but when I try to run it as a standalone Wolfram script, it produces the dreaded: FrontEndObject::...
user avatar
0 votes
0 answers
42 views

Is there a way to access the previous evaluations (%, %%, ...) in a Wolfram Language Script when run from the command line?

In this example of a .wls file, I attempt to retrieve the output of the last evaluation (the string "Hello world") and print it just as in a notebook: This works when I open the file with ...
user avatar
  • 483
0 votes
0 answers
54 views

Import the package (.wl) file in the notebook (.nb) format to help understand it

It's well known that mathematica use .wl file to store a package, which has very different writing flavor and execute behavior from those of the notebook (.nb) file. In general, IMO, the package (.wl) ...
user avatar
4 votes
1 answer
130 views

How to add doodles and sketches in a mandala

i discovered mathematica yesterday; and i've been playing with RandomMandala since. i also saw this question; and i really liked the second answer; but i like the ...
user avatar
-4 votes
2 answers
156 views

Wolfram Mathematica Code please [closed]

Consider two natural numbers of two-digits, like 46 and 96. They have the property that by exchanging the place of their digits and multiplying the so obtained numbers, we get the same product; i.e., <...
user avatar
1 vote
1 answer
267 views

How to do that Fourier transform?

I want to perform Fourier Transform of $$\frac{\exp(jkr)}{r},$$ where $k=\frac{2 \pi}{\lambda}$ and $r=\sqrt{x^2+y^2+z^2}$. The result should be $\exp\left(jkz \sqrt{1-(\lambda u)^2 - (\lambda v)^2} \...
user avatar
  • 19
1 vote
0 answers
20 views

SessionSubmit + ScheduledTask is not working in wolframscript environment

I have, for example, the following scheduled task SessionSubmit@ScheduledTask[ Print["testing..."] ,{Quantity[1,"Seconds"],Infinity}] which ...
user avatar
  • 365
0 votes
1 answer
40 views

Updating the association with answers from the TrigProperties Function

I have created a list of rules I would like to update with values. My goal here is to be able to write the following: ...
user avatar
1 vote
1 answer
73 views

Outputting probability of rolling 6 dice N times, generating a new output each roll

I am looking to output the probability of n classic six-sided dice but I am not sure how to go about starting. This is what I have written out so far, but no way to go about accounting for n dice for ...
user avatar
1 vote
2 answers
55 views

Code should not evaluate at non-integers, fail at too few integers

I want this piece of code to sort a given list by odds first and evens last. This piece of code did the trick with the list I entered in: ...
user avatar
0 votes
0 answers
32 views

Pokemon ELO rating with wolframscript

I would like to implement a Pokemon ELO system that my friends that don't have Mathematica installed could use as well via Wolframscript. The application would work as follows: You run a script ./...
user avatar
  • 928
2 votes
2 answers
95 views

How to find the supremum of a brownian motion?

I imagine this is quite simple but unable to find it, if I simulate a standard brownian motion, $(B_t)_{t \geq 0}$, with ...
user avatar
0 votes
0 answers
42 views

Why is the `N` function giving me the wrong result when using WolframScript? [duplicate]

I am using wolframscript.exe to learn mathematica and I would expect the following code to return 0.7071: ...
user avatar
  • 111
0 votes
0 answers
51 views

How to give a path to a file in a package file?

How do I fix the problem with zsolve in the picture? I do not know how to give the path to zsolve.
user avatar
3 votes
1 answer
61 views

Probably easy question: How to make the Text font in the subscript?

In the specific Graphic setting, precisely (somehow \ ( and \ ) are not shown properly below in Stackexchange window) Graphics[Text[Style["\ !\ (1234_L\ )",LineSpacing->{0,12}],{0,3}]] ...
user avatar
  • 823
1 vote
1 answer
77 views

Is it possible to do grid like printing on commandline when executing scripts on Ubuntu?

I am executing scripts on command line (cli) using wolfram -script code.m. However I couldn't find a solution that can print data in a grid like or fixed-width ...
user avatar
  • 902
0 votes
0 answers
54 views

What is tilde ~ meaning in coding Mathematica? [duplicate]

I got this code to solve problem 500 in euler project. I was managing to figure out what they mean but got stuck in translating the tilde (~). It seems tilde has no specific meaning and when I change ...
user avatar
  • 1
-2 votes
1 answer
95 views

Why this Basis Parabolic PDE's solution is not smooth?

What is this Parabolic PDE modeling in real life? Why the solutions is not nice? Have I made any coding errors? $\frac{\partial u(t,x)}{\partial t}=\frac{\partial^2 u(t,x)}{\partial x^2}$ $\frac{\...
user avatar
  • 71
5 votes
1 answer
69 views

Individual block diagonalisations take more time than single diagonalization of block matrix

Sample Problem of a large block matrix: I want to find the lowest eigenvalue of a blockdiagonal matrix h[x] for a range of values of ...
user avatar
  • 902
0 votes
0 answers
55 views

MathLink related error on HPC

Most of the times, Mathematica gives the following error for the jobs submitted on multiple nodes in queue: ...
user avatar
  • 902
0 votes
0 answers
44 views

Equation issue: Solve gives an empty output

I need c1,c2....c9 values. Why is Solve returning an empty list? How i can fix it? Thanks for any advice. ...
user avatar
0 votes
0 answers
26 views

FaceFeatures - How to better customise the details of JSON output file?

I am using FacialFeatures to identify the age and gender of characters in movie frames. I am using the following script (simplified from this source): ...
user avatar
  • 17
1 vote
0 answers
62 views

Exit Wolframscript by Ctrl+C without interrupt prompt

How can a Wolframscript be terminated by Ctrl+C without yielding the Interrupt prompt (see e.g. here)? Unfortunately, this self-proclaimed hack causes a ...
user avatar
1 vote
0 answers
79 views

Wolfram script does not work due to memory shortage and/or "license error" (FacialFeatures function)

I am trying to run a wolfram script on my windows cmd prompt. The script (available here) uses the function Facial Features of Mathematica. It is important to highlight that I need to process this ...
user avatar
  • 17
0 votes
1 answer
54 views

Running a wolframscript on the cmd prompt: error message related to "shadowed" definitions

I am trying to use a wolfram script to analyse a large number of movie frames (script available here:https://community.wolfram.com/groups/-/m/t/2288529) I am using the following code on the Windows ...
user avatar
  • 17
1 vote
0 answers
102 views

Making Standalone executable out of any mathematica program

Is it possible to make an executable file out of any mathematica program so that It can be run on any windows computer not having the mathematica. In case of FORTRAN (on windows), it is possible to do ...
user avatar
  • 902
0 votes
0 answers
36 views

A standalone notebook that just shows a Manipulate and hides all other code?

I have a complex notebook with one cell that contains a bunch of initial definitions, several modules, and finally a Manipulate object. For a simple example take ...
user avatar
  • 197
0 votes
1 answer
132 views

Difficulty to run a Wolfram Script (with FacialFeature function) on Windows Command Line

I am on Windows. I am working on a project which consists in analysing a very high number of images. More precisely, I am using the FacialFeatures function of Mathematica to quantify the visibility of ...
user avatar
  • 17
0 votes
1 answer
95 views

Impossible to copy paste wolfram script on windows command shell (cmd)

I am a full beginner in coding. I have prepared some Wolfram script on the Mathematica platform. I would like to run it on Windows command shell. Accordingly I have activated wolframscript on cmd, ...
user avatar
  • 17
0 votes
0 answers
31 views

How to change default cell style of WSL files?

In *.wsl files when I create a new input cell as usual it creates a Code cell as can be seen by inspecting the underlying code: This is how ...
user avatar
  • 618
0 votes
0 answers
35 views

How to execute Wolfram Language code/scripts in R Studio (or similar)?

How to execute the Wolfram Language in R Studio?, or similar. https://www.wolfram.com/wolframscript/?source=nav
user avatar
  • 3,061
5 votes
1 answer
185 views

How to run wolfram code from the finder in macos?

I'd like to run wolfram code (probably a .wls script) on a file or set of files by selecting them in the finder and using Right-click > Services. For example, ...
user avatar
  • 30.3k
1 vote
1 answer
58 views

Quit Mathematica script (no matter what)

I have a complicated script (not just written by me) that gets called using MathKernel -script script.m. Among others script.m ...
user avatar
  • 3,553
2 votes
0 answers
71 views

Where does wolfram script store the command history? (like .bashrc)

I'm imagining there is a file like bashrc, because I've noticed the wolfram Script on windows remembers my command history. I'm using ...
user avatar
  • 639

1
2 3 4 5
7