All Questions

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

Is it possible to plot a function's value along a curve using different color?

I have a curve in 3D space which is green curve in the following picutre The code for generating the curve is as follows: ...
1
vote
1answer
34 views

Combining graphics twice

I have a for loop that produces a few line plots. After it is produced, it is appended together, and I'm using the "Show" command to combine the plots together. As shown in the example code below: <...
1
vote
1answer
23 views

Compile string cases into list

I have a html formatted string: ...
2
votes
2answers
44 views

Drawing line in notebook with Mathematica command

I have a for loop that makes plots iteratively, in between the plots, I would like to draw a line in the notebook. Is there a command that is the equivalent of doing this: https://reference.wolfram....
0
votes
0answers
26 views

What are the differences between Nonlinear ModelFit and GeneralizedLinearModelFit, and how to get MLE out of each?

I would like to know the practical differences and implications between NonlinearModelFit and GeneralizedLinearModelFit. As I ...
0
votes
0answers
36 views

Writing to ElasticSearch

Could someone kindly direct me to suitable documentation, Wolfram or otherwise, to connect Mathematica to an ElasticSearch instance. I don't need anything complicated just sufficient to write a record ...
1
vote
1answer
19 views

Subtracting one list from another nested list

I have a nested list and I want to subtract from that list based on elements of another list, where each element of each nest subtracts the other list. For example, getting from A and B to C A = {{...
1
vote
2answers
40 views

frame tick label

I am making a framed plot. I want to remove some of the tick labels but display all the ticks. For example, I want {-1,0,1} as the the tick labels on the y axis but want to display all the ticks ...
0
votes
1answer
27 views

Facing error while solving a determinants with the use of NSolve inside module

I have written a small program to find the natural frequencies of some system using an energy approach. v1 and t1 are the potentials and kinetic energy of the beam. v2 and t2 are the potentials and ...
1
vote
2answers
41 views

Replacing elements of a list

I have a list with n occurrences of a certain element. I have a second list with Length[lis2] = n I would like to replace the nth occurrence of the certain ...
0
votes
1answer
52 views

How to solve set of linear differential equation in Mathematica?

I have a set of linear differential equations and are written in this format [X']=[Y]-[R] where [P][Y]=[Q] My actual P matrix size is of 20x20 and Q is of 20x1 and Y is of 20x1. I have written this ...
2
votes
1answer
89 views

Why would Evaluate[] in Plot give me warning about precision?

I have a code:- Plot[Evaluate@PDF[NormalDistribution[1.6, 0.2], x], {x, -6, 6}] And then I got the warning: ...
0
votes
0answers
35 views

An Elementary Introduction - Problem 22.13 VertexLabels [duplicate]

Problem 22.13 Make raster images of the letters of the alphabet at size 20, then make a graph of the 2 nearest neighbors of each one. My solution ...
1
vote
0answers
48 views

FindMinimum where variables are Integers

I wish to find the minimum of a function where the variables are integers. Here is a simple minimum working example (my actual function is much more complicated). ...
0
votes
2answers
44 views

Better fit for points with exaggerated deviations

I used the InterpolatingPolynomial function to get a polynomial that meets my points. But I noticed that there is a deviation in the final intervals. ...
3
votes
1answer
117 views

Wrong result by FindRoot

Slight background: I am trying to find the coexistence reduced pressure ($p_r$) of a Van der Waals fluid at a reduced temperature of 0.85, this requires finding the solution to the following system of ...
5
votes
1answer
112 views

Transforming 2D points on to a regular grid or lattice

I have a set of points in 2D generated by doing a DimensionReduce on a list of colors: ...
0
votes
0answers
32 views

WSTP from Wolfram mathematica to nodejs [on hold]

Can someone please help me how to connect from Wolfram Mathematica to Nodejs through WSTP?
2
votes
1answer
43 views

Code not working when I'm breaking it up into different lines

The following code works perfectly For[i=1,i<4,i++,Print[i]] However, when I break this into different lines, it stops working. Moreover, the braces appear to ...
1
vote
2answers
46 views

Provide a list of colours for the points of ListPlot

I want to colour the points in a ListPlot with a list of colours, i.e. something like ...
2
votes
1answer
47 views

Methods for ListPlot3D

In the documentation for ListPlot3D we see that there is the option Method, but which methods are avalaible? I cannot find a documentation page for it. If that is ...
1
vote
1answer
30 views

Convert a dateobject to list

Im trying to extract a list of times from a list of Dates from the Sunrise function ...
0
votes
0answers
30 views

what is the difference between /. and /; in mathematica? [duplicate]

What is the difference between /. and /; in Wolfram Mathematica How would you apply them both and what situations are each of them appropriate to use?
5
votes
3answers
133 views

Canonical ordering of days of week

The entities representing the days of the week sort alphabetically: ...
4
votes
1answer
35 views

How to return JSON from APIFunction without string encapsulation?

I am trying to get an APIFunction to send valid JSON. This is my demo function. ...
0
votes
0answers
46 views

Solve implicit equations, input and plot the solution in a different equation

I have two implicitly defined variables, $\sigma_D$ and $\sigma_M$ one of which is a function of the parameter $v$. In particular, $\sigma_D = F(\sigma_D,v)$ where $F(\sigma_D,v)=0$ if $ c_D < -0....
0
votes
0answers
48 views

How to transfer a function between two Mathematica modules and how to encapsulate these modules in packages

I have a huge module which outputs a function G I want to transfer to another module. The specific function is G= (72 (97 + 57 s))/(55 (55 + 96 s + 36 s^2)) The second module is short (the ...
1
vote
2answers
39 views

How to replace a sub-expression when it implicitly exists in an expression

In order to make my question clear, I would like to use a simple expression as an toy example. Suppose we have an expression, which is, f = a + 2*b + c Now I ...
-1
votes
1answer
84 views

Can I numerically solve these equation in Mathematica?

I have this couple of equations : $ \partial_\mu \partial^\mu z^i + G^{i\bar{p}} (\partial_j G_{k\bar{p}} ) \partial_\mu z^j \partial^\mu z^k + G^{i\bar{j}} (\partial_{\bar{j}} G_{k\bar{l}} ) \...
2
votes
2answers
59 views

How to shorten the length of the tangent line

I have all the equations down to manipulate the tangent line on the graph... but the tangent line is too long, what would be the best way to shorten it? ...
3
votes
3answers
56 views

How to delete the matrices which contain specific elements

I have a list which contains some matrices. Some of the matrices contain Overflow[] elements. I want to delete these matrices. ...
0
votes
1answer
28 views
0
votes
0answers
35 views

How can I fit two out of phase data sets to an envelope?

My situation is similar to having a Cos and Sin functions that would combine to the profile of the envelope but the envelope is offset horizontally by some dt. It would be something like aCos(t+dt)+ ...
0
votes
0answers
38 views

How do you find the number that has the most different writings from a list? [on hold]

I answered part 1 but need help in part 2 and 3. Please help..
1
vote
0answers
26 views

Replacing factors that are only dependent on a single specific variable

I have expressions with terms that are products of factors. Some of the factors are expressions that depend on a single specific variable. I would like to replace those factors with constants and ...
1
vote
1answer
43 views

How can I find the minimum and maximum output of a function and specify the valid ranges and steping of each variable?

I am a software developer, and it has been far too long since the last time I've needed to do any math this complicated. I've forgotten a lot of the proper terminology, which has made finding answers ...
1
vote
0answers
31 views

Integrate Twice over Symbolic Interval [on hold]

I would like to solve: $$ \int _0^1\int _y^11dxdy $$ In one function call to Integrate[]. However, evaulating Integrate[1, {x, y, 1}, {y, 0, 1}] (*1-y*) Gives ...
0
votes
0answers
24 views

Find arctan(cos(3x/4)) [migrated]

I am in Honors Math Analysis and I got an inverse trig problem, but it has a variable in it. I'm not sure what the answer is. arctan(cos(3x/4))
0
votes
0answers
28 views

Solving differential forms equations

I have this couple of equations in differential forms language: $ \Delta z^i \star {\bf{1}}+ G^{i\bar{p}} (\partial_j G_{k\bar{p}} ) dz^j \wedge \star dz^k + G^{i\bar{j}} (\partial_{\bar{j}} G_{k\bar{...
2
votes
2answers
98 views

Figuring out the frequency components using FFT

The function defined below has three frequencies 2, 4 and 10. How to use the Fourier transform (FFT) to show these frequencies? ...
6
votes
1answer
67 views

Are the lists from “BondList” and EdgeList for a molecule guaranteed to be aligned?

Consider the following: ...
3
votes
3answers
222 views

Using the Disk graphics primitive

Please be kind enough to give me some indication on how to use the Disk graphics primitive in any of these cases: I want to calculate the area and perimeter of the ...
4
votes
2answers
96 views

Is there a builtin function to turn selective Echos off?

Suppose I have a code block EchoOff[CompoundExpression[ ..., Echo[...,"echo 1",f], Echo[...,"echo 2",g], ... ]] Is there a function ...
3
votes
5answers
296 views

Repeat elements in list, but the number of times each element is repeated is provided by a separate list

I'm trying to repeat each element of a list x number of times, where x is the corresponding element of the same position in ...
2
votes
1answer
35 views

Efficient Linear Operators on SparseArrays

I have a rank four SparseArray of dimension {40, 40, 40, 40}. I wish to apply a linear operator to it, whose form I know abstractly. That is, I have a simple closed form for the action of the operator ...
0
votes
2answers
31 views

Solving a simple differential equation and trying to plot the trace of the solutions

I am trying to run a simple code on Mathematica. However, it is not running for some reason. What mistake am I making? ...
1
vote
4answers
50 views

Area-colored phase diagram for various ranges of f(a,b), given the ranges of a and b

Is there a way to plot a simple diagram in Mathematica with colored areas, like a phase diagram, for the different ranges of values of a function such $f(a,b)=(1-a)/(b+2)$, for various combinations of ...
3
votes
1answer
53 views

Coupling DirichletCondition of one dependent variable to the value of the second

Maybe due to my limited experience with PDEs solving I could not find the answer to the following issue. Let's say we have a simple advection along a line: ...
0
votes
1answer
40 views

Asymptotic solution of a second-order ODE containing InverseFunction

Essentially, I have a second-order differential equation given by ode below. In order to solve it, I need to obtain an asymptotic solution where $g(x)$ must vanish at infinity which will be used after ...

15 30 50 per page