All Questions

15 views

Counting flops to compare to operations

I know there is a Timing approach, but I am wondering if there is a Mathematica command that will count the number of flops (floating point operations). For example, if I do: ...
8 views

Matrix multiplication over noncommutative rings

I've got to multiply out some nasty matrices for some research I'm doing, and I'm curious as to whether or not there's a way to multiply matrices with noncommuting elements; that is, a multiplication ...
41 views

Neat way to apply Newton's Method [duplicate]

What are different and elegant ways of applying Newtons method to $f(x)=x^3-x-1$? Newton's Method is: $x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}$ Being a beginner I can't really figure out how to create ...
21 views

Refresh plot during heavy calculations

I have some heavy calculations with generates huge list of {x,y} points. I want to dynamically update plot during calculations. Or update it after calculations complete. I cant use simple Dynamic@Plot,...
19 views

I would like to know how to plot the Dirac Delta result of the Fourier transform of the following typical expression

tf = FourierTransform[(A Sin[[Omega]1 t]) + (A2 Sin[[Omega]2 t]), t, [Omega], FourierParameters -> {1, -1}] // TraditionalForm
36 views

Dividing a list into more, smaller, lists

If I have the list {3,5,4,2}, is there a way to divide this list into smaller lists of the form {3},{5},{4},{2}?
16 views

How to wait a Cell in a Notebook to be executed until another Notebook's Cell expressions executed?

I have two Notebooks and I call the second Notebook from the main but main Notebook's expressions continue executing. I want them to wait until the second Notebook's expressions execution is finished! ...
29 views

Solving equation containing integration

I am struggling with solving an equation which is not simple but nothing particularly sophisticated either. I get the mistake like ...
83 views

My code uses ClebschGordan but Mathematica is using ThreeJSymbol

I'm using a function that calculate CG coefficients with the function ClebschGordan but instead, I've got the following error because Mathematica is using ...
21 views

Nested lists replacing of elements

I have a list of the form SpecialCycle12={{{1, 2, 0, 0, 0, 0, 0}}, {{3, 2, 1, 0, 0, 0, 0}}} And the list ...
36 views

Plotting with Logarithmic Scale

Perhaps this is trivial but I would like to plot the following function: $$p(t)=e^{\left( -\frac{d}{1-c}\right)\left[ W_0\left[B(1+x/r)^{1/d}\right]-W_0[B] \right]}$$ ...
71 views

How can I get exact solutions of this system of equations?

I want to solve system of equations \begin{cases} 2 x^2-5 x y-y^2=y \left(\sqrt{x y-2 y^2}+\sqrt{4 y^2-x y}\right),\\ \sqrt{3 y}+\sqrt{x^2+2 x}-x-x \sqrt{2+9 y^2}=0. \end{cases} ...
198 views

Is the renaming mechanism of With` flawed?

I'm confused about the renaming mechanism of With: ...
25 views

converting a named graph into a graph object

I am seeking the edge lists of the complements of named graphs on n vertices. At first sight I would use ...
33 views

Picking a dimension from an interpolating function

I have an interpolation function. Lets think of it as f={fx,fy,fz}. I would like to operate on the fx part of interpolation and say, multiply it by five and plot ...
39 views

Is pattern matching just systematic guessing and checking?

How does the pattern matcher work? how does it match this example? f[3, h[4]] /. f[x_, z_[y_]] :> {x, y, z} My guess is that the pattern matcher collects all ...
44 views

Manipulating of non linear differentials equation

I want to manipulate non linear differential equations $\dot{x}= x + g\, xy\quad \dot{y}= 1-2x^2-g\, y^2$ where g as parameter.but I don't get any curve on display. Plz help me
49 views

Plotting the solution of a Chini differential equation

In DIFFERENTIAL EQUATION SOLVING WITH DSOLVE by D. Kapadia, there is a Chini differential equation : sol = DSolve[x'[t] == 5 x[t]^4 + 3 x[t]^(-4/3), x[t], t] ...
91 views

Getting Area of a region transformed by GeometricTransformation

I tried this: Clear[b1, b2, A, p] b1 = {-1, 1}; b2 = {1, 1}; A = {{2, 1}, {-1, 1}}; p = Parallelogram[{0, 0}, {b1, b2}]; Then drew this: ...
35 views

Plotting a dataset and its fit dynamically

I have the dataset ...
38 views

Can you unpack a list of values into variables in a With expression?

For instance, if I am trying to draw a graph with 5 vertices labeled a through e, and I want to draw edges connecting a and b, a and c, a and d, a and e, b and c, b and d, and c and e, I would run the ...
136 views

Replacing elements in lists of a nested list

I have the following nested list ...
35 views

Create movies from data files

I've done some simulations of a trajectory of a particle and I have that trajectory saved in ".dat" files. Now I want to make an animation/movie and save it as GIF to include it on a presentation. I ...
74 views

Solving Partial Differential Equations using NDSolve

I'm trying to solve the following partial differential equation: With the boundary conditions: I could use another way to resolve this, like the finite volume method, but after I solve the ...
81 views

101 views

Solve returns empty list

I want to solve these equations but Mathematica gives no answer. ...
31 views

VectorPlot3D in cylindrical coordinates

I am using VectorPlot3D to plot fluid flows (in the form of a velocity field), however, I go through quite an involved process to convert flows in Cylindrical ...
29 views

How to Extract Continuous .png Graph by Constant Piecewise Velocity? [on hold]

Time-Potential Data where the where the absolute values of axis do not matter but the points have possibly an equidistant piecewise velocity when comparing to the thread because regular jumps in the ...
337 views

how to get $n$ equidistributed points on the unit sphere

We can get $n$ equidistributed points in the unit circle using CirclePoints. But how do you get $n$ equidistributed points on the unit sphere(surface of a ball)? ...
59 views

How can I draw ternary plot by these data?

I have these data and want to draw similar fifures in mathematica. any one can help me? ...
91 views

Expanding a matrix in a set of matrices

Consider a vector $a=\{a1,a2,a3\}$. I computed $e^{i a\cdot \sigma}\qquad \sigma: {\rm Pauli\ matrices}$ and then applied the command ExpToTrig. Now I want to expand the above result in terms of ...
168 views

Samuel inverse graphing calculator

Samuel Inverse Graphing Calculator (http://www.xamuel.com/inverse-graphing-calculator.php) is a amazing tool. Whichever be your language, you can transform a sentence in an equation. I hav try with Yo....
77 views

Solving 2D Laplace equation for irregular boundaries

I want to solve Laplace equation in 2D with $x$ and $y$ coordinates with the boundary conditions $V(0,y)=-180$; $V(x,0)=50x-180$; $V(x,6)=50x-180$; $V(453.595-\sqrt{450.05^2 - (y - 3)^2},y)=0$ The ...
661 views

How to create this spikey in Mathematica?

I came across this post while messying around the StackExchange mobile. I think this thing can be easily done by Mathematica as well but I'm not an expert in geometric field. Can anyone give some ...
145 views

How to do this 3D grid drawing?

The idea is to make axes 3d, with a more subdued in black mesh, and shafts with their respective numbers with a maximum of 10 in each (black to print after the size of half a sheet craft, vine also ...
167 views

Efficient way to compute a complement while respecting multiplicities

Suppose I have list2 which is a subset of list1. I want to get a res by deleting an element ...