All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
21 views

Controlling precision in Do command

so I have the following code: ...
0
votes
1answer
20 views

Creating and defining a family of functions with indexed variables?

I am trying to do the following: Create a list as Table[Subscript[\[Beta], i] _, {i, 1, dim}] And then use this list to define a function: ...
0
votes
1answer
26 views

How to plot using ListPlot and RootFind

I am new to Mathematica, now I have an expression Implicit\[Omega]Zero with some parameters $\lambda1,\mu rr,\theta s,b0,a,b1,\omega$ Now I want to find the $\omega(...
-1
votes
0answers
18 views

If statement based on outcome of RandomChoice

Been doing a school project, where I am asked to simulate a roulette wheel with 18 Red tiles, 18 Black tiles and 2 Green tiles. The individual in the scenario bets $n on 'Red'. If the wheel lands on ...
0
votes
0answers
28 views

Solving triple integral

Can you help solve this: ...
0
votes
0answers
27 views

Is it possible to generate a random vector space in Mathematica?

I’d like to generate a random vector space, to practice applying certain theorems to it and seeing them concretely. How can I generate a random vector space?
0
votes
0answers
23 views

Music animations

I've been tempted to use Mathematica to create some artistic musical animations. That is, if I have a music file, I want to be able to edit, for example, its waveform animation. For example, get ...
0
votes
1answer
30 views

How to specify range in an implicit relationship with variable?

Here is the plot I want to do: ContourPlot[3 Abs[x] y (y^2/x^2 - 1/3) - 2/(Abs[x] y) == 3 Sqrt[1 - y^2/x^2], {x, -20, 20}, {y/x, 1/Sqrt[3], 1}] However when I ...
0
votes
1answer
38 views

Asymptotic bode plot

Is it possible to plot an asymptotic bode plot. I am interested in verifying my straight line bode plot approximations done by hand by using mathematica but the bodeplot function generates the curved ...
2
votes
3answers
97 views

How to specify the domain of a parameter?

There is a similar post: How to specify the domain of a variable?, but it doesn't work well for me. I want to evaluate the integral below, with a parameter $\gamma$. The result is obviously different ...
0
votes
0answers
24 views

Currency Interpretation for VND

As I was helping an OP with a question involving Vietnamese currency, I didn't realize at the time that the currency amount was not being interpreted accurately (or so I think now). Apparently, the ...
0
votes
0answers
26 views

plotting simple harmonic oscillator problem [closed]

1.3 A simple harmonic oscillator consists of a mass m and a spring with stiffness constant k. It moves in one dimension x(t) with velocity v(t) where x(t) = A cos(wt + φ) and v(t) = -x(t) = −wA sin(wt ...
0
votes
0answers
45 views

Needs in Vector Analysis Version 11.3 [closed]

Please tell me What is the right command for needs Vector Analysis in 11.3. The Vector Statements are not working
0
votes
0answers
42 views

Derivation of the inequality [migrated]

For positive integer k, for any c>0, does there exist k_0>0 that depends on c, such that:
0
votes
0answers
37 views

how to exclude some points which are not well-defined in NIntegrate? [closed]

I have obtained the following plot from a NIntegrate as you can see, some points are not well-defined (between 0.01 and 0.02) and have produced anomalies in the ...
0
votes
1answer
39 views

how can I show these legends in a single row? [duplicate]

I have extracted the following code from my legends plots because I need them individually ...
0
votes
0answers
25 views

Find DL in given paths [migrated]

I wanna just say that DL is the tangential vector at every point, but I'm not sure. Any help is greatly appreciated.
4
votes
1answer
124 views

Why my piecewise function is not working

It says Part 1 of {} does not exist when I try to plot the vector fields of this piecewise function. ...
0
votes
0answers
34 views

Single-press TemplateBox deletion

One of the handy things about TemplateBox is that it can be used to define an alias for a more "natural symbol" (by having an empty list first argument ...
3
votes
1answer
473 views

Why is Mathematica unable to solve this integral equation?

How to solve the following integral equation in Mathematica? eqn = y[x, z] == z + x*Integrate[y[t, v], {t, 0, 1}, {v, 0, 1}] sol = DSolveValue[eqn, y[x, z], {x, z}] ...
0
votes
0answers
60 views

Can I compile wolfram code into latex like sagemath does with the sagetex package?

I'm trying to use mathematics inside latex. Just as it is done with sagetex. I have the suspicion that it cannot be done since mathematica is not open source, but hope is the last thing that I'm lost. ...
2
votes
0answers
64 views

Mathematica secretly plotting vector graphics outside the axis range

I have code to plot the zero contour of a function. This function is symmetric about the x=0 axis, but I only want to display it in the first quadrant. Additionally, I currently set up the axes as a ...
3
votes
0answers
81 views

Keep Mathematica 12.3 from auto-formatting double square brackets?

I just updated to Mathematica 12.3.1. Whenever I use the double square brackets used to specify Part, Mathematica now auto-formats them. While the readability is nice, when I go to edit the code, I ...
1
vote
2answers
70 views

How can I label the plots inside a Graphic grid?

I have some plots as images. I import them in a notebook and arrange them using GraphicGrid as follows Now I want to label each one in the empty space of the plots,...
1
vote
0answers
62 views

How to solve ODEs using deep learning in Mathematica [closed]

I have a number of ODEs (58) with 16 parameters and 9 variables. I want to solve the ODEs to obtain the analytical relationship between the parameters and variables. It is obviously that the ODEs ...
3
votes
2answers
112 views

Making a list of variables

Consider the following code, which give a Manipulate object that returns the "total" of a certain variable var 1 ...
0
votes
0answers
36 views

NDSolve a system of PDEs with Periodic Boundary Conditions

I would like to analyse the system of differential equations $\begin{equation} \begin{split} \partial_tf_0(\mathbf{r},t)&=f(\partial^2_{\mathbf{r}\mathbf{r}}f_0,\partial_{\mathbf{r}}f_0,\partial_{\...
1
vote
1answer
65 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 ...
1
vote
0answers
24 views

Exclusions in NIntegrate automatically uses GlobalAdaptive method?

I tried to integrate a function using LocalAdaptive method. However, if I add Exclusions option in addition to ...
0
votes
1answer
60 views

Mapping data from 2 files imported

I'm not in prog major. This course is needed as an elective for another major. Thus any help is appreciated. DataA and DataB ...
4
votes
1answer
115 views

How to import equations from a pdf

Here is a pdf I am trying to import: https://i.stack.imgur.com/J2e0z.png Its a photo so that I can upload it here easily. I am trying to extract the formulas from this pdf but to no avail. Plaintext ...
0
votes
1answer
51 views

automatic extracting number from a text with given signs

I am trying to get a number from a plaintext with the staring sign of "Nho xanh không hạt" and ending sign of "đ" automatically with different method but it doesn't work. In detail,...
-3
votes
1answer
68 views

Combining a BubbleChart with a MatrixPlot

Is there a way I can combine a BubbleChart with a MatrixPlot? I already plotted a MatrixPlot ...
2
votes
2answers
330 views

How can I plot x sin^2[1/x] on [Pi/4,Pi]?

And I want this plot to be discrete into 100 equal rectangulars which topmid of them have a line joined together. Something like this, but for the mentioned equation:
13
votes
0answers
96 views

How to Develop Paclets in Workbench Considering the Recent Changes in PacletInfo.wl Format and Supporting Functions?

Preamble So far I am using Wolfram Workbench (i.e., a plugin to the Eclipse IDE) to develop packages collecting often used Wolfram Language functionality. For some time now, the way to go about ...
1
vote
0answers
32 views

Calculating the Laplacian operator using xCoba

I would like to attempt to calculate the laplacian operator using index notation and shoow that it gives the usually expected laplacian in spherical coordinates. I am able to do most of the steps ...
0
votes
0answers
53 views

This expression isn't simplifying [closed]

Consider: expr = -(((s β - γ - ν) (s (β - γ) - i γ - ν))/(s β)); I tried: 1) ...
1
vote
0answers
44 views

Quickly Generating A List of of Ordered Lists [closed]

I'm looking for a quick way to do this. Define an integer $M$. Function $f[M]$ will output a list of all ordered selections of integers from $1$ to $M$ without repetition. For example: $f[1] = \{\{1\}\...
1
vote
1answer
35 views

Plotting a 3D plane function and a cylinder in the same figure [closed]

I'm very new to mathematica and I can't figure out this extremely simple thing that I see even in my Multivariable Calculus textbook. Basically I want to take the two plots below, one of a cylinder ...
0
votes
0answers
82 views

Non linear first DE with lot of parts

I want to know how I can solve this equation in Mathematica I guess I missed something!! DSolve[ {a (h[a])^2 h'[a] +(nh[a]/ a^2) + m(h[a])^3 - l (h[a])^2 - t == 0}, h, a] h[a] is my function and n,m,l,...
3
votes
1answer
175 views

Fit: Experimental`NumericalFunction error when fitting a black-box function

I'm trying some multidimensional Chebyshev fits. First, define a wrapper to prevent premature symbolic evaluation (I don't want a power series result): ...
6
votes
1answer
244 views

A way to contract input in Mathematica

If I input a giant matrix in Mathematica, and it is contained in a cell, is there a way to contract it so that it uses up significantly less space in the notebook?
3
votes
0answers
50 views

How can I save the output from AudioRecord?

I'm trying to save a recording using AudioRecord. My recording gets overwritten even if I save the output in a fresh cell. This illustrates the issue: ...
0
votes
0answers
40 views

How to speed up the multiple sums and integration?

I want to numerically calculate a sum with multiple variables and then integrate the whole expression. Any solutions to speed up the process? ...
4
votes
1answer
62 views

Plotting a sequence of functions with cases

How can I plot functions like this $$f_{2^n+j}(x)=\begin{cases}0, x\in [\frac{j}{2^n},\frac{j+1}{2^n}]\\1, x\in x<\frac{j}{2^n} \text{ or } x>\frac{j+1}{2^n}\end{cases}$$? I tried something like ...
0
votes
0answers
40 views

Lanczos method to tridagonalize a matrix

I want to tridagonalize a sparse matrix using the Lanczos algorithm. I am working with a very large sparse matrix and I need some speed. In the following for example ...
2
votes
0answers
51 views

PlotRange is not applied after text image conversion is moved

I converted the text image using Rotate and Translate functions. ...
0
votes
0answers
41 views

Strange behavior of the Exponential Integral formula [closed]

I am trying to figure out why Mathematica is telling me a formula for the exponential integral doesn't converge, even though it gives me the very same integral by means of the function ExpIntegralE ...
0
votes
0answers
70 views

How to use variables in mathematica? [closed]

I have in a notebook: my_val = 10 my_val^2 but this returns $\text{my_val}^2$ instead of $100$. Why doesnt it return 100? More confusingly, if I try: ...
1
vote
1answer
62 views

Finding coefficients where part of the coefficient may appear in the terms

A minimal example is given below. My goal is that given a algebraic expression such as: expr = a^2 + a b + a^3 b + 2 a^2 b^2 + a b^3 I'm trying to find a command, ...

15 30 50 per page
1
2 3 4 5
1601