Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

My program loops through a large number of parameter combinations and performs FindRoot on functions of those parameters. The results of the FindRoot calls are used in additional computations. At ...
Neil Geismar's user avatar
0 votes
0 answers
52 views

TFORM is considered a great tool for manipulating large and symbolic equations. In this thread, I’d like to share my optimization problem, which concerns a very simple operation — equations expansion. ...
kozapdh's user avatar
1 vote
1 answer
99 views

I’m trying to solve a problem from Modern Mathematical Methods for Scientists and Engineers using Maple, specifically applying the Fokas method (Unified Transform) to the heat equation on the half-...
Athanasios Paraskevopoulos's user avatar
0 votes
0 answers
73 views

I apologise if the answer to my question is facile, but I'm new to Mathematica and normally use Matlab. I have two variables that I define as follows: delta = Sqrt[u^2 - 4DC(theta - lambda)]; xi = ...
Chris Edge's user avatar
0 votes
0 answers
44 views

I am trying to make a box chart for four data sets with the data points shown on each box. This can be done using the Chart Element Function (CEF). I need a custom pointstyling detailed below. ...
Math Student's user avatar
0 votes
1 answer
90 views

I am working on a project and I would like to make sure I use Legendre function correctly. I've made a simple comparison between mpmath and Mathematica and the results are different: For mpmath in ...
user avatar
1 vote
1 answer
56 views

Let's say I have a function MyFunc[x_] := x + y I can do this: Block[{y = 1}, MyFunc[1]] which gives the result 2 correctly. Now, what to do if I want to save {y = 1} into a variable, something like ...
Aufheben's user avatar
  • 869
0 votes
0 answers
102 views

I am trying to solve a complex integral equation including an infinite continued fraction. Continued fraction to order n=50 $Version (*14.2.0 for Microsoft Windows (64-bit) (December 26, 2024)*) ...
Gallagher's user avatar
  • 101
1 vote
0 answers
152 views

I am trying to solve a nonlinear system of differential equations in Wolfram Mathematica using NDSolve and visualize the solution with Manipulate. However, I encounter the following error when running ...
Raihanah Nazihah's user avatar
0 votes
1 answer
62 views

In Mathematica I implemented this simple code: n = 8; a0 = Range[0, n - 1]; a1 = Subsets[a0, {2}]; a2 = Subsets[a1, {2}]; a3 = Select[a2, Length[Union[Flatten[#]]] == 4 &]; a4 = Subsets[a3, {n/4}];...
user avatar
2 votes
1 answer
554 views

I downloaded the Wolfram Engine and have verified that it works by running it in the terminal. I also downloaded a VSC extension for the Wolfram Langauge: https://github.com/WolframResearch/vscode-...
ngc1300's user avatar
  • 180
1 vote
0 answers
65 views

My main code runs a large program and saves the results in a text-like notebook (Put[...] & Save[...]) that contains result matrices, like e.g., tab1 = {{1, 2, 3, 4, 5, 6}, {2, 4, 6, 8, 10, 12}, {...
Leela Michaels's user avatar
0 votes
0 answers
56 views

I have a very simple network model: two named input ports, one summing layer, one linear layer and a scalar output. Despite many attempts, I cannot select a suitable data format that would be accepted ...
Władysław Egner's user avatar
1 vote
0 answers
147 views

I am trying to get Mathics3 to produce Asymptote output that more closely matches what Mathematica produces. Here is an example of Mathematica output for Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}]: and ...
rocky's user avatar
  • 7,168
-1 votes
1 answer
118 views

I have a complicated equation and I wanna solve it with Mathematica. But, Because of the equation form I can't find analytical solution. So I try to solve it numerically. I try some method but can't ...
Ama's user avatar
  • 11
0 votes
1 answer
61 views

Why doesn't the following simple code reset K[r]? In[1]:=$Context K[r]=4r; Clear["Global`*"]; K[r] Out[1]=Global` Out[4]=4r If I use, say, A[r] or B[r] instead of K[r], they get cleared. ...
matrixbud's user avatar
  • 133
0 votes
0 answers
34 views

I am trying to use some of the tools available in Mathematica within a Python program (or jupyter notebook) that I am writing. I have already done: pip install wolframclient on my computer and this ...
physicscitizen's user avatar
0 votes
1 answer
130 views

I have 2 differential equations I am trying to solve. Running the code below takes about an hour on my computer before it outputs a very long equation if i do not include the initial conditions. I ...
noah rivas's user avatar
0 votes
0 answers
69 views

I am trying to use ND Eigensystem to find the eigenvalues of the Woods-Saxon Potential Schroedinger Equation for Oxygen. I've defined the potential and operator, but I know the functions given are ...
Kol's user avatar
  • 33
1 vote
1 answer
53 views

In Mathematica I have the variable u defined as follows: u = {1,2,3} Now I want the product a*u to show as: a {1,2,3} but a*u returns this: {a,2 a,3 a} I have tried HoldForm and other things, but I ...
Felipe Jiménez's user avatar
3 votes
1 answer
53 views

I am currently trying to use the EBImage package in R (see article here) to get the perimeters and areas of binary images. Specifically, I'm trying to do this for English and Chinese characters. Below ...
Shawn Hemelstrand's user avatar
1 vote
1 answer
83 views

This question is from the "Elementary Introduction to the Wolfram Language", when dealing with the String and Text. I think there must be easier ways to solve this. Would you guys give me ...
user27517742's user avatar
0 votes
1 answer
74 views

How can I build a truth table out of this formula in Wolfram Alpha: ((A and(if B then C)) or (C and not A))
Lorenz Power's user avatar
0 votes
1 answer
148 views

I need to conjugate some sum of terms. Wolfram Mathematica does this for short sums, but not for long ones. Click here to see a screenshot of Wolfram Mathematica with formatted code. Raw code: Ass = ...
Alex2414's user avatar
0 votes
1 answer
67 views

I am stuck in an attempt to pass an interpolating function that was generated from a PDE solved using NDSolveValue to a second call to NDSolveValue for a solution to a simple ODE. Here is my code for ...
Leapfrog's user avatar
1 vote
1 answer
56 views

I am trying to run the following code in Mathematica. Sol1 = DSolve[{S'[t] == D - Er - Es*S[t], S[0] == 1}, S[t], t] plots = Table[ Evaluate[ S[t] /. Sol1 /. {D -> d, Er -> er, Es -> es}...
Abitatha Roy's user avatar
0 votes
1 answer
95 views

I am trying to evaluate the following integral in Mathematica: Integrate[u ^(m + 1)*Exp[-(u^2)/(2*rho)]*(u^2 - eps)^(j + k/2 - 1) , {u, Sqrt[eps],Infinity}] I want to specify that for me, m and j are ...
user3236841's user avatar
  • 1,396
1 vote
0 answers
74 views

I wrote a program: import sympy as sp # Define symbols l, alpha, x, gamma, r, theta, beta, v = sp.symbols('l alpha x gamma r theta beta v') c = 2.99792458 * 10**8 # Define the equation lhs = l * sp....
Parker Emmerson's user avatar
0 votes
1 answer
107 views

So I am trying to symbolically solve a polynomial equation in mathematica that is described with vectors: A = {Subscript[a, 0], Subscript[a, 1], Subscript[a, 2]} B = {Subscript[b, 0], Subscript[b, 1], ...
yosmo78's user avatar
  • 641
0 votes
0 answers
89 views

I am trying to find the local/global maxima of a function. This function is computed by taking the trace of a 64x64 matrix and summing over a bunch of indices. With my current implementation I have 90 ...
Markus M's user avatar
0 votes
0 answers
81 views

I've implemented Fraction and Polynomial classes to simulate the mathematical operations that may be applied to them. The Fraction class was mainly implemented so that numbers like 2 / 3 will be ...
lightningcoder123's user avatar
0 votes
0 answers
25 views

I'm new in Mathematica and I've just installed the GammaMaP package. The problem is that I'm not getting the a symbolic output like in the documentation, for example, if I create a cell with the code ...
Davizon's user avatar
0 votes
0 answers
84 views

I am trying to write a function that returns the numerical answer of a very complicated integral. I have the following code import numpy as np import scipy as sp import sympy as smp import matplotlib....
QFTheorist's user avatar
0 votes
1 answer
130 views

I am working on a small proof/demonstration of how the least squares method gives us the arithmetic mean. Wolfram Language 14.0.0 Engine for Microsoft Windows (64-bit) Copyright 1988-2023 Wolfram ...
William John Holden's user avatar
2 votes
1 answer
164 views

I want to compute the Kronecker product of a long list of small matrices (say, Pauli matrices). I tried to define the small matrices using scipy.sparse.csr_array, and use scipy.sparse.kron to perform ...
Lelouch's user avatar
  • 2,203
0 votes
2 answers
263 views

The screenshot shown is a Jupyter notebook running a Wolfram Engine kernel. There are two problems: a) The output cells are images, preventing copying to the clipboard. b) Some expressions within them ...
Erwann's user avatar
  • 115
0 votes
0 answers
73 views

In Mathematica 14.0.0 (MacOS Sonoma 14.4.1) I made a simple package consisting of two "sub packages". One of them is loaded as "private" from with the main package: The package ...
nanitous's user avatar
  • 721
1 vote
0 answers
46 views

I am unsure about the results, but is it possible to generate diffraction pattern like following in the second picture. The following equation is like this added in the first picture for different ...
SGoo's user avatar
  • 11
1 vote
0 answers
46 views

this feels like an easy question, but I want to specify a 2D "window" on a 3D plot, so it fills the rectangle... So many options to try (and the underlying image has lots of Graphics3D ...
Richard E's user avatar
0 votes
1 answer
106 views

I want to use the hypergeometric function: this exists in Mathematica (Wolfram)... ] ...and Python docs link. I cant find the equivalent in MATLAB, does it exist? If not is there a way to use ...
Ali11H's user avatar
  • 33
2 votes
1 answer
95 views

EnteringNLStart[ "/Applications/NetLogo 6.4.0/" ]after installing netlogo.m as/Users/my_name/Library/Mathematica/Applications/NetLogo.wl returns the message NetLogo could not be found in: /...
Michael Kerckhove's user avatar
1 vote
0 answers
39 views

I'm trying to solve an boundary value problem with eigenvalues, following the article ( https://doi.org/10.1063/5.0155331 ) equation where α and At are certain numbers and Q(σ) is a known function, ...
Repentanze's user avatar
0 votes
3 answers
191 views

Mathematica has an object called Nothing that when put into a list automatically disappears. For example, {a, b, Nothing, c, d, Nothing} automatically evaluates to {a, b, c, d}. Does something ...
evanb's user avatar
  • 180
0 votes
2 answers
53 views

Consider the the following small script running with Mathematica 14.0.0 on Mac OS X ARM (64 bit) 14.4.1 (23E224) In[155]:= src = " __kernel void addTwo(__global mint* arry, mint len) { int ...
Olivier Janssens's user avatar
0 votes
0 answers
44 views

I noticed that for the input a*b/c, b/c is evaluated first, and then a*(b/c). In[1]:=FullForm@Hold[a*b/c] Out[1]=Hold[Times[a,Times[b,Power[c,-1]]]] But I don't know why. Later I found a built-in ...
cppHusky's user avatar
0 votes
0 answers
94 views

How to convert the following Mathematica code to Python NDSolve[{1/(1 - f)^2.5*g''''[y] + G*Sin[\[Alpha]]*((1 - f) + f*(p1*e1)/(p2*e2))* t'[y] - (((M^2)*A)/(1 + (A*m)^2) + 1/(k*(1 - ...
user24067290's user avatar
-2 votes
1 answer
80 views

I'm trying to compue the following integral on the interval $[0,\pi]$ on the $\theta$ variable. (1/(4 Sqrt[2] r0^4 (Cos[\[Theta]]^6 + Sin[\[Theta]]^6)^( 13/6)))(5 + 3 Cos[4 \[Theta]])^( 1/6) (4 (Cos[...
Gema89.'s user avatar
  • 99
0 votes
0 answers
47 views

I am new to Mathematica. I have defined following functions p[k_, j_, n_] := 9 2^11 2^(6 j) k^6 - 3 2^6 2^(4 j) k^4 + 5 2^2 2^(2 j) k^2 - (n + 1) q[j_, n_] := Defer[1/(24 2^(j - 1) Sqrt[2]) Sqrt[ ...
SHASHANK RANJAN's user avatar
0 votes
1 answer
66 views

I frequently can't get it to plot anything and the output is the same as the input. After messing with it sometimes I'm able to get it to plot but I have no clue what I'm changing. I'm trying to plot ...
Muller's user avatar
  • 3
0 votes
0 answers
45 views

Please, explain me the main difference between the Rule and the Pattern in the following examples: Why we are got the different results for -> and :>? Another one thing I want to reproduce is ...
Sergey V.'s user avatar
  • 1,028

1
2 3 4 5
90