All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
15 views

Figures as a one column panel with same x axis but changing y axis

I have plots of 6 different figures in a command decon so that if I use decon[[1]] I plot the first figure and if I use ...
-1
votes
0answers
32 views

Three coupled PDEs to be solved using provided steps

I have been trying to solve the following three coupled PDEs where the final objective is to find the distributions $\theta_h, \theta_c$ and $\theta_w$: $x\in[0,1]$ and $y\in[0,1]$ $$\frac{\partial \...
0
votes
1answer
51 views

Plotting a small Gaussian | Small values and dealing with machine precision

I've defined the following: k := 1.38*10^-16 kev := 6.242*10^8 q := 4.8*10^-10 g := 1.66*10^-24 h := 6.63*10^-27 and ...
2
votes
4answers
66 views

How to reverse the order in which ListPlot plots multiple array of numbers?

I am new to mathematica. I have been trying to plot a list of values. The list looks somewhat like this: list = {{1, 2}, {1, 2, 3}, {1, 2, 3, 4}} What I want is to ...
0
votes
0answers
16 views

Why DSolve cannot Find a General Solution for this ODE?

The Problem Given a mass m=1 moves in potential V(x)=|x|^3; and x(0)=1,x'(0)=0; So I set up ...
4
votes
3answers
3k views

Fourier Transform on a Sound

I don't really know much above Fourier Transform , or how it's used in Mathematica but I want to know how I can find out, out of which Sin-waves a (static) sound is made of. So for example I take "G" ...
0
votes
2answers
41 views

Using condition for each element of a matrix

I'm trying to write a code so that for each element of matrix C2 if the element i,j is equal to element j,i and it is equal to 1 then it adds one to a variable and if not it adds one to another ...
1
vote
2answers
35 views

How do I calculate the distance covered by an particle, which is moving on a given trajectory?

I am new to Mathematica and was wondering how one could calculate the distance an particle will cover while moving on a given trajectory over a given time. Example: trajectory is $\qquad r(t) = (\sin(...
0
votes
2answers
58 views

Simple Physics and Calculus in Mathematica V4

Here is how I used to do this in V4. I can not find an equivalent way in V12. Any ideas would be appreciated.
0
votes
2answers
23 views

Find all minima of a list of points

Given a list of points {x[i],y[i]} I would like to find all the local minima of y Example: ...
1
vote
1answer
50 views

Define/store individual elements of Table output for back-substitution

At its core, mine is a very simple communication error between me and Mathematica that I haven't been able to crack, so I do apologise if it seems embarassingly inane. Please consider the following ...
16
votes
4answers
2k views

Bayesian Inference with Continuous prior distribution

Assume that we have a prior distribution for the probability of success as follows. p = BetaDistribution[6, 14] which we can graph as this ...
-1
votes
1answer
33 views

Sorting of eigensystem accroding to specific eigenvector

I have a matrix, I want to sort it with respect to specific eigenvectors. Here, I provided an example of a matrix HT: ...
0
votes
0answers
11 views

How to attribute arbitrary plot range to ReliefPlot

My data has been produced as a Table which I plot using ReliefPlot. Obviously, if I try FrameTicks->True, it simply shows row ...
3
votes
2answers
63 views

MTensor of MTensor (aka List of List)

In C++ I have a vector of 2D points : typedef std::array<double, 2> Point; std::vector<Point> samples; Now, I'm in LibraryLink and I'd want to pass a ...
0
votes
1answer
14 views

Relative error with bands plot

I have 2 sets of data imported from excel file, Let say A = 20 21 22 ... 30A B= 0 1 2 3 ... 10 I want to plot A with a relative error of 10% ...
5
votes
1answer
123 views

How to extend a root finding method from 1D to multi dimensions

The number (0.25 Pi) is a third order root of f[x] below. Clear[f]; f[x_] := Sin[x] - Cos[x] - Sqrt[2] (x - 0.25 Pi); Chop@Normal@Series[f[x], {x, 0.25 Pi, 4}] -...
0
votes
2answers
147 views

Why are Quantity and Units inconsistant with regular Mathematica behavior? [closed]

When I enter this in Wolfram Mathematic V12: 0 Dogs + 5 Cats Mathematica sensibly returns this: 5 Cats BUT, if I using the ...
8
votes
4answers
207 views

Construct a polyhedron from the coordinates of its vertices and calculate the area of each face

I have the 3D coordinates for a set of points. I want to construct the convex polyhedron with those points as vertices. I know I can use functions like DelaunayMesh ...
1
vote
1answer
27 views

Include parameter values with data for safe Export and Import

Usually, when saving data as dat. file I include information about the parameters used to generate the data in the file name. Could I include that information with the generated data in the dat. file, ...
0
votes
1answer
32 views

Using For to generate a sequence

I want to find the smallest positive integer $k$ such that the finite list s[k*m] contains no odd numbers, for $m=1,2 \dots$. Unfortunately ...
1
vote
1answer
59 views

Sort a nested Association by another Association

I have a nested association of numerous pixel values sorted by sample date (e.g. 20190422C) and futher by a strain percentage (e.g. 0, 30, 50). I want to sort it even further using and Association of ...
0
votes
2answers
42 views

Replacing function by another one each time it appears

I have expression involving Cos of some parameters. I would like to replace those Cos by their infinite series each time they do appear. I tried the following which doesn't work: ...
0
votes
1answer
23 views

Function isn't adding the 2 matrix [closed]

Having an issue where my function rotMatfromVec won't add the 2 Matrices at the end. It takes in 2 inputs, R and theta, where R is a unit vector. ...
0
votes
0answers
24 views

Problem with plotting ParametricNDSolveValue

I have a problem when using ParametricNDSolveValue. I am trying to solve the following equation, where R is the parameter: dvdt = (R^2 * L[t])/ 4 * M * c * r where ...
0
votes
0answers
32 views

Mathematica NIntegrate problem

Here is my code: The problem is that I always see these messages every time I run it They always say " something has evaluated to a non-numerical values of all sample points in the region" ...
5
votes
1answer
43 views

StringMatchQ fails using Alternatives with complex pattern

Alternatives seems to work fine with these simple patterns ...
2
votes
2answers
213 views
+100

Numerical solution of an iterative equation

I am trying to solve the following iterative equation: where the parameter tao (needed in the previous equation) is defined as: Here's the parameters and my approach to solving the equation in ...
0
votes
0answers
22 views

Function that accepts functions and returns an expression containing their partial derivatives

I would like create a function that takes functions as input and includes different partial derivatives of the input functions, for simplicity's sake say: $\qquad m(f(x,y),g(x,y))=f_{xxx}(x,y)+g_{xyy}(...
-1
votes
0answers
28 views

Example of Units errors in Mathematica V12 [duplicate]

Here is a more detailed image of the errors I am receiving in Mathematica V12 when trying to evaluate a simple integral. It seems to me in an evaluation like Times or Plus, or whatever, expressions of ...
3
votes
1answer
53 views

Get file downloaded from click in WebSession?

I'm downloading a file by clicking a button from chrome with the WebDriver functionality: ...
5
votes
1answer
87 views

Find the coordinates of a hand drawn curve

Imagine I have saved a hand drawn curve as a jpg file. I want to be able to enclose it in a box and read off coordinates of the points that lie on the curve. One way is to click on a point and get the ...
0
votes
0answers
24 views

Plot a quadratic bezier triangular patch [duplicate]

I need to construct a triangular patch by using the 6 control points: $$\begin{array}{ccc} \left(\frac{1}{2},\frac{\sqrt{3}}{4},1\right) & \left(\frac{1}{4},\frac{\sqrt{3}}{4},2\right) & \...
0
votes
2answers
69 views

How to know, which constraint is being violated in linear programming problem?

my task is to minimize costs of dispatching various power plants in order to meet demand in a transmission grid. I solve the task as a linear programming problem with the help of Minimize[] function ...
0
votes
0answers
22 views

How to efficiently store the result of a function

Consider the following code: f[x_]:= SomeCodeAbout[x] g[x_]:= f[x] It links g with f, ...
10
votes
6answers
637 views

Tower of Pisa function

I'm trying to construct a 'smooth' function $f : \mathbb{R}^2 \longrightarrow [0,1]$ such that all level sets $$\{ x | f(x)=y\}$$ are circles in a way that $f$ looks like the 'Leaning Tower of Pisa'. ...
0
votes
1answer
83 views

Parallelizing FindMinimum

I have complicated 6-dimensional function to optimise. Using FindMinimum works all right, but takes a few minutes. Considering that I want to check multiple starting points, I'm looking at run times ...
2
votes
1answer
81 views

Plot a bezier triangle

I have to construct a bezier triangle that interpolates these 4 points: $\qquad (0,0,1),\,(1,0,0),\,(0,1,0),\,(0.5,0.5,0.75)$ However, the surface that I get is so weird. Anyone please can help me to ...
0
votes
0answers
36 views

Do these solutions actually amount to a solution over the Reals and not over the Complexes as Mathematica says?

The following program outputs approximations to ZetaZero[1] and ZetaZero[-1]: ...
1
vote
1answer
41 views

Manipulate works in Mathematica but not in Wolfram Player

This is most likely a very naive question, but I'm puzzled as to why the following code runs smoothly in Mathematica 12.1.1.0 but does not generate a working plot in Wolfram Player 12.1.1.0. ...
0
votes
1answer
21 views

How to ingest tabular data in Mathematica? [closed]

I have a text with collected data taken for an interval of time for several variables (32) (time, pressure, temperature, height...etc.) The text file just contains values separated by a space, each ...
1
vote
1answer
29 views

Solution of a system of nonlinear ODE in the form of a state space with nonzero initial conditions

I have a system of differential equations like this: $\begin{cases} \frac{dx}{dt} = hpf_1 \cdot \alpha \cdot sin(\omega t) + \frac{d}{dt}(\alpha \cdot sin(\omega t)) \\ \frac{dhpf_1}{dt} + hpf_1 = \...
3
votes
1answer
286 views

Find RSolve solution reflecting special structure of DifferenceRoot[Function[{\[FormalY], \[FormalN]}

RSolve yields a large (multi-page) solution (LeafCount=25891) containing a number of 7F6 (and higher) hypergeometric functions when applied to ...
2
votes
1answer
65 views

Plot the indices of the background Matrix instead of the calculated values

I want to create a background 60*100 matrix and insert inside it the calculated values, for example ...
4
votes
2answers
105 views

(Filling problem in plotting a figure) How to fill the area between a function and a gridline?

I want to fill the area between the second gridline (blue and count from the left) and the yellow curve as shown in the figure. I used a simple code to illustrate the figure but I have no idea how to ...
6
votes
1answer
59 views

How to find individual probabilities of all numbers from a list?

I have the following list of random numbers: ...
-1
votes
1answer
101 views

Why the integration command for this function gives no answer? [closed]

I have a function wfVAR2[r1, r2] which has the following form: ...
3
votes
3answers
223 views

Please help me with using ListDensityPlot

I have a data file consisting of radial, angle, and intensity columns. For each radius value, angle moves a full rotation while collecting intensity. With ...
3
votes
2answers
70 views

Gradient coloring in ArrayPlot

How can I easily control the color shading of ArrayPlot? Say I want to go from white to dark green in a gradient form.
4
votes
2answers
45 views

Drawing a RegionPlot from a Table of Values

I have a 2-D table with numbers 1,2,3,4 and 5 populated in it in a continuous form. From it, I like to create a region plot with five regions separated in this space. Is there any easy way to achieve ...

15 30 50 per page
1
2 3 4 5
1474