All Questions
83,873
questions
0
votes
0
answers
36
views
A problem with ParametricPlot
I have a problem with rendering d3 (blue color)), at the points of intersection of the red red curve it makes vertical blue stripes, how do I fix it? Picture: https://i.stack.imgur.com/E0ztC.png
...
0
votes
0
answers
20
views
VideoJoin changes phone videos from portrait to landscape
After using VideoJoin on two phone videos, the aspect ratio changes from portrait to landscape. How can I keep the portrait mode?
0
votes
1
answer
47
views
Reduce or Limit to have positive value!
I would like to see where this function is positive ??!!
Reduce[{Tanh[x]/Sqrt[-1 + Tanh[x]^2] > 0}, x, Reals]
thank you.
2
votes
1
answer
44
views
Draw phase line associated to slope field
I have an autonoous differential equation dx/dt = x(1-x)
dxdt[x_] := x*(1 - x)
I plotted the slope field with a few solutions (left) and the constant solutions (...
0
votes
0
answers
25
views
Execute wolfram command from java & j/link along with set of variables
I have been trying to execute some expression/formula which may have multiple variable, and I want to set values(like how we do on kernel command tool). We are using J/Link to connect kernel from java....
0
votes
0
answers
19
views
Use of Part alters line colours in Plot
I stumbled upon some odd behaviour in Plot that does not really make sense to me. I stumbled on it with a more complicated scenario, but a distilled demo is below.
...
4
votes
1
answer
83
views
Problem with Spectrogram
Some time ago I wrote a program to analyse a short segment of music and plot as a spectrogram in Mathematica. It allows one to find the notes in a weird chord for example. The example below is from ...
3
votes
1
answer
79
views
FourierCosTransform bug?
FourierCosTransform[Cos[(k + p) z], z, q]
gives correct result
...
0
votes
1
answer
30
views
3d Contour Plotting
I would like to plot three 3D-contour plots in the region $x,y,z >=0$ and $x+y+z<1.$ The functions which I would like to plot are as follows
...
2
votes
0
answers
20
views
How to turn off File Browser prompt?
Is there a way to turn off this feature?
It is very slow and totally unnecessary for me. I have tried to look for a setting in preferences but I couldn't find the right box to untick.
1
vote
1
answer
165
views
Is it possible to separate two signals in Mathematica?
I have asignal and I would like to decompose it into two..
this is the datasetTot of both signals
ListPlot[datasetTot, PlotStyle -> {Black, Black}]
I know ...
0
votes
0
answers
23
views
How can I change fractions as tick labels with real numbers?
When using HorizontalGauge or VerticalGauge the scale divisions are frequently labels with fractions (1/5, 2/5) etc., which looks terrible and is hard to read. I have not found a way to force labels ...
1
vote
1
answer
56
views
How to make warning and errors messages on console print in RED? so easy to see them?
When I run large computation with 1,000's of iterations, then later look at the console looking for any errors or warnings generated, it is hard to locate them scrolling up and down, as the color of ...
0
votes
0
answers
44
views
Combine two contour plots with region function in one with common bar legend
I have the following two contour plots
...
0
votes
1
answer
49
views
How to plot 3D spherical graph using x y data?
I have a problem in which the temperature is given at different radius for spherical ball.
The temperature does not vary in theta and phi direction. The 2D representation is shown below:
The radius ...
0
votes
1
answer
47
views
gen 2 and 3 surface generation [closed]
Is there someone who uses Mathematica, and can help me to generate these images for a project? We don't have free access from the university and I can't find other free generators to be able to ...
5
votes
4
answers
168
views
Modify one list according to degeneracies of another
I have two lists, each with four elements, let's say
listA = {0.3, 0.6, 0.6, 0.9}
listB = {0.1, 0.2, 0.3, 0.4}
Notice that the second and third element of ...
2
votes
2
answers
68
views
Piecewise based on the length of the list
I want to create a piecewise function that depends on the length of the list.
Let's say I have a list, and a corresponding piecewise function:
...
0
votes
0
answers
46
views
Syntax for parallel processing
I have a Do[] loop that references a few global variables but doesn't modify anything. The only output is appending data to an external file. The order of appending doesn't matter, I just can't have ...
2
votes
1
answer
74
views
Plotting, Integrating two variable function with cross-restricted domain
Hello, I have two problems.
the first is plotting 3D function, the domain is "0<x<y<1". (I could find examples like integrating function with domain 0<x<1, 0<y<1, but I ...
4
votes
0
answers
78
views
FEM: modelling 2D flow under periodic forcing
Despite many examples of periodic boundary conditions being presented, it remains difficult to obtain a periodic solution. Let us consider a simple example of a flow in a two-dimensional channel under ...
0
votes
1
answer
60
views
Custom frame ticks in listplot
i am trying to ListPlot some data extracted from the approximation of a complicated function. The minimal code is the following
...
3
votes
1
answer
71
views
1
vote
1
answer
116
views
Integral of orthogonal Bessel functions
This is the basic form of the problem i am solving.
The main difference with the integral on the photo and my example is that i have my integral defined from b to c instead of 0 to a, and Bessel ...
3
votes
1
answer
69
views
Imported macOS screenshots display differently
When I take a screenshot in macOS (cmd-shift-4) and then import into a notebook, the colors tend to look washed out. Can anyone reproduce this behavior, and is there a workaround?
For example let's ...
0
votes
0
answers
45
views
NSolve just spits out the input functions
I was trying to solve 3 equations with 3 variables with NSolve, however, NSolve didn't really do anything but spitting out the ...
0
votes
0
answers
27
views
Notation package problem [duplicate]
I am using Mathematica 12.3.1 on Windows 10. I am trying to load the Notation package:
Needs["Notation`"]
and I get the following:
It seems the package ...
3
votes
1
answer
47
views
GraphDiameter for molecule graphs error [closed]
I was looking into GraphDiameter for molecules and ended up on this [page][1], which gives examples in various modalities to calculate the graph diameter for this molecule.'CC(C)C(C(=O)NC(=O)C1CCCN1C(=...
0
votes
0
answers
46
views
Integral with triangular functions in exponential and numerator
I am trying to find the solution of an integral with a triangular function in the numerator and in an exponential, but after an hour Mathematica has not given me an answer. I wondered if there is a ...
0
votes
1
answer
44
views
How to write divided differences in Mathematica? [closed]
The question is : use newton's interpolatory divided difference formula or to construct interpolating poly of degree one , two and three for the following data: f(8.4)=f(8.1)=16.944 ,f(8.3)=17.564 ,f(...
3
votes
1
answer
166
views
Geogebra spline command in Mathematica
Spline(pts, order, Weight Function)
Creates a spline with given order through all points. The weight function says what should be the difference of t values for point $P_i$ and $P_{(i+1)}$ given ...
3
votes
3
answers
89
views
How to make a table with three columns?
I am trying to make a table with three columns containing the values of p, q and W. I have written the following code which gives multiple columns. I have tried Flattening the table. but I could not ...
0
votes
0
answers
52
views
How do I switch around the axes?
I imported a csv file (in the long format) in a nested list format where each nested list is a row in the data frame
I used ListPlot3D but I want the x & y axes to start from 0 and 0 (I want to ...
1
vote
0
answers
114
views
What's the command for high approximation up to 50 digits?
I am trying to find the numerical value of $\displaystyle \sum_{n=1}^\infty \frac{e^{-n^2/\pi^2}}{n^2}$ up to 50 digits. I used
...
2
votes
2
answers
103
views
A problem of nonlinear multi-objective optimization
I have two variables x1 and x2 and I use them to calculate 4 metrics y1,y2,y3, and y4. now I want to solve for the value of x1 and x2 so that these four metrics are as large as possible. Can anyone ...
5
votes
4
answers
296
views
Finding the periodicity (or wavelength) in approximately periodic data irregularly sampled
I have irregularly sampled data that looks as in the picture.
Is there a function in Mathematica that allows me to find an approximate or average period or wavelength?
I know beforehand that the data ...
5
votes
1
answer
357
views
How to use PlusMinus properly?
As an easy exercise, I would like to define a function
$$f(x)=\pm x$$
and be able to ListPlot the function for some discrete values.
Here is what I tried
...
2
votes
2
answers
86
views
Definite Integral of Probability Distributions
Suppose at each value of $x$ I define a normal distribution
dist[x_] := NormalDistribution[Sin[4 x], Cos[10 x]^2]
Now I want to find the distribution
$$ \mathcal{D}...
0
votes
0
answers
52
views
Useless and incorrect result of AsymptoticIntegrate
In version 13 on Windows 10 I try to find asymptotic of the integral used in potential theory
...
0
votes
0
answers
41
views
How to mimic Expand with Thread?
I want to mimic Expand[(a + b) (c + d)] with Thread.
My attempt below does not provide the correct result:
...
1
vote
0
answers
41
views
Looking for an appropriate method of NDSolve for dynamical system
I am dealing with the numerical solutions of a variety of dynamical systems with integrals of motion.
As the example, let me consider the Kuramoto model, which equations of motion are
...
1
vote
0
answers
46
views
How to take a derivative of a function with respect to another function inside the function?
I have these two equations:
...
1
vote
0
answers
24
views
WolframClient output convert to python complex array
I encountered the following issue with WolframClient. I have a my.function file which contains some function that takes some ...
2
votes
0
answers
85
views
Filling the space with rectangles
The problem concerns filling the matrix m x n with rectangles.
...
13
votes
10
answers
3k
views
Fastest way to generate {{a,a},{a,b},{a,c},{b,b},{b,c},{c,c}} from {a,b,c}
What is the fastest way to generate {{a,a},{a,b},{a,c},{b,b},{b,c},{c,c}} from l={a,b,c}? I've tried
...
0
votes
0
answers
28
views
Inline labels in a plot
Not quite sure if this is even possible, but I assume this is the right place to ask. In Python, as discussed on this question, it is possible to add the corresponding labels directly over each line, ...
2
votes
1
answer
163
views
Goodness of fit [closed]
I want to evaluate the goodness of two sets or more fitting parameters, using Rsquared and RMSE (root mean square error), Then how to code?)
...
14
votes
1
answer
208
views
Which Mathematica versions have changed WolframLibraryVersion?
A LibraryLink library compiled with headers having a certain WolframLibraryVersion will not work with Mathematica versions that support only earlier ...
7
votes
2
answers
223
views
Scalloped edges to Plot3D with Disc domain
I'm running into problems with a weird edges to my Plot3D with a Disc domain. MWE:
...
1
vote
1
answer
41
views
Boolean constraint in an interval for FindMinimum
I have a function with a large number of variables that I am trying to minimize subject to some constraints, but for simplicity let us say that it only has two variables, f[x, y]. The constraint is ...