4
votes
1answer
70 views

Can I make IsomorphicGraphQ consider other properties besides the EdgeRules?

Consider two graphs, which are isomorphic to each other based on the vertices and edges, ...
1
vote
1answer
71 views

Tensors constructed using KroneckerDelta's - and/or displaying KroneckerDelta as a matrix

I am doing some work in elasticity and as a result am working with tensors. In particular, I would like to calculate the contraction of a fourth order tensor (the stiffness tensor) with a second order ...
1
vote
0answers
16 views

How can I distribute redefinitions of system functions to parallel kernels?

I'm having some trouble getting my parallel kernels to get wind of user redefinitions of system packages, and I'm looking for the cleanest way to do this - preferably using DistributeDefinitions. To ...
1
vote
1answer
68 views

Dynamic Plot of non-linear function within DynamicModule yields dynamically changing constant line instead of expected behavior

I'm having a problem with DynamicModule; the code below produces a plot with a line that changes value, based on the slider positions of the parameters, which is very nearly what I want; I would ...
1
vote
1answer
50 views

Fastest way to import a large undirected graph from .ncol format

Problem: I have a large undirected graph in the .ncol format, and want to get it in to Mathematica. I understand that Mathematica doesn't natively support the ...
4
votes
1answer
101 views

Mass distribution in NDSolve

I'm trying to model the solar system with NDSolve, basically a numerical n-body solution. I model the initial positions of bodies from a data set thusly: ...
-2
votes
0answers
37 views

Programing the Euler characteristic

The Euler characteristic theorem is a wonderfull theorem not only from the mathematical point of view but also from the scientific view point. Here is a version that I would prefer to program by ...
2
votes
1answer
40 views

How to read import VRML (.wrl) into Mathematica

I wonder if there is a way to Import VRML objects, e.g. here. The Export of These formats is provided but I did not found a way to Import it. Can anyone help here? (The Goal is to build a model of ...
0
votes
1answer
60 views

Underflow occurring in computation

I've got an "Underflow occurred in computation" problem. Here's a simplified version of the code: ...
1
vote
1answer
23 views

Can mathematica's GraphDistance handle complex weights? Or unknown parameters eg. 'x'?

The EdgeWeight property states that the EdgeWeight can be any expression and the GraphDistance function states that in a weighted graph, it will return the minimum of the sum of the weights. So if I ...
2
votes
0answers
56 views

Rationalize error

The docs state that "Rationalize[x,dx] yields the rational number with smallest denominator that lies within dx of x." However, testing this out it appears to be false. ...
0
votes
0answers
6 views

Please help with this C calculation [migrated]

Why I can not get a result of 2 while giving input of 2.2 as a float. With logic that 2.2 gets converted to 220, than when it goes through the first for loop I am going to get a remainder of 20(which ...
1
vote
1answer
67 views
0
votes
0answers
33 views

Parametric region instead of 3D plot when using parametric plot [on hold]

I want to draw a parametric region, that is, a 2d-graph using 2 parameters. However, each time I use ParametricPlot with 2 parameters, Mathematica interprets it as 3D plot. Not even the examples ...
0
votes
0answers
40 views

Solving linear system with non-commuting coeffcients

Is there a way to solve a linear system of equations where the coefficients do not commute? (Warning: my two-days of looking so far suggest this may be an unsolved math problem, but I figured I could ...
6
votes
3answers
106 views

Inflate and unite a list of 0D to 2D regions

I've got a List of BoundaryMeshRegions, created via ConvexHullMesh: ...
1
vote
0answers
127 views

What is the symbol FE`None for?

I have run into the symbol FE`None multiple times. What is this symbol, and what is it designed to indicate? All I could find is that FE indicates the front-end, but it's unfortunately a very ...
2
votes
2answers
192 views

Curve fitting with this modified integrated log-normal function and extracting fitted?

The data to be fitted is for y vs x. We have y and x points. We do not have data for w. In fact, w variable is being varied during integration from 1e-9 to 100e-9. The fitting parameters are Ms,sigma,...
0
votes
1answer
59 views

Coupled differential equation using NDSolve

I am using mathematica to solve a coupled differential equation using NDSOlve and stuck with it. Could you please help me out to figure out the solution. My problem is $$ A[\omega]:= A''[r]+\frac{f'[...
0
votes
0answers
38 views

Montgomery Modular reduction

I saw a Mathematica Implementation of Montgomery reduction at Montgomery Modular Exponentiation, a beautiful one by Simon Woods. I ran this in Mathematica and it was fast, but it does not give the ...
0
votes
0answers
24 views

How to get the numerical result of inverse CDF?

This is my code. And I want to solve the function which contains both Q and L. But Mathematica only gives me a result with "InverseCDF" function, but not a number? I'm not sure whether I use the code ...
0
votes
0answers
46 views

Line Curvature and Gaussian Curvature [closed]

Use Mathematica to calculate the curvature of the line: Then calculate the Gaussian curvature of the plane Ax+By+Cz=D, in which A, B, C, and D are constants and C≠0 Here are some ...
1
vote
0answers
44 views

Does Mathematica interprets representations of Dirac's Delta? [duplicate]

Hello I'm trying to take the limit of this expression in Mathematica I know this is a representation of Dirac's Delta (more precisely pi times Delta), but when I do this, the answer is 0. So my ...
9
votes
2answers
490 views

How to access “Choose Color Scheme” Programmatically

I am designing an App and I want to use the "Choose Color Scheme" tools inside Button. I am looking to have this tool in popup window when the Button is clicked but I can't find the command to get ...
0
votes
0answers
25 views

Nest function with an incremental parameter? [closed]

Usually, if we use the Nest[] command, it nests the function directly as in Nest[f,x,3] ...
0
votes
2answers
80 views

Sampling a continuous function to create sequence of discrete values

My question is straightforward: How do I convert a continuous function into a discrete-valued function? The function I want to convert is the JacobiAmplitude function: ...
1
vote
1answer
72 views

Switching direction of y-axis

I'm trying to reverse the direction of the y-axis on a parametric plot, with a frame. I'm using ParametricPlot because it was an easy way to switch the x-axis with the y-axis. I have seen many ...
0
votes
0answers
21 views

Change Density/Number of Vectors in a Vector Field Plot [closed]

Just wondering if there's a way to change the number of vectors shown in a 3D vector field plot. I can't seem to find any options.
1
vote
1answer
42 views

How do I extract religion fractions data from CountryData?

In this code: data = CountryData["UnitedStates", "ReligionsFractions"] I need to extract all of the names of the various religions as a variable and the fraction ...
0
votes
0answers
53 views

Why is the Output of Mean and StandardDeviation an expression, and not a value? [closed]

I'm using Mathematica for the first time, and to practice, I want to manipulate a matrix of data. My problem is that when I use the Mean function on the matrix, or the StandardDeviation function, I ...
2
votes
3answers
75 views

Getting directly a packed array of repeated packed arrays

Consider this code: Needs["Developer`"]; N@Range[5]; PackedArrayQ@% Table[%%, 5]; PackedArrayQ@% which prints True, ...
7
votes
1answer
150 views

Weird behaviour of HighlightImage—bug or not?

For background, check my answer under this question. It is clearly stated in the documentation of HighlightImage that the 2nd argument,...
1
vote
0answers
38 views

Adding a global SU(3) flavor-symmetry in FeynRules

I would like to add the operators $$ \bar{d}_R \gamma^\mu T^F d_R G^F_\mu $$ $$ \bar{d}_R \gamma^\mu T^FT^C d_R G^{FC}_\mu $$ in a model of FeynRules, where $F$ is the adjoint index of the $SU(3)_F$...
0
votes
1answer
63 views

Numerical integration of a numerical integration [closed]

I have a complicated function $f(x)$ whose analytical form does not exist for the following integral $$g(x)=\int_0^x\mathrm{d}x'\,f(x'). $$ I finally need to evaluate the following integral $$\int_0^...
0
votes
0answers
27 views

Pass list title as argument? [duplicate]

I have a function that works with a list and outputs it. Is it possible to also get the name of the list as an argument? Right now my code is ...
0
votes
1answer
86 views

Making a bouncing ball simulation interactive [closed]

Problem A ball initially at height $h_0$ above a horizontal surface is dropped at time $t = 0$ with zero initial velocity. When it arrives at the surface, the ball bounces in the vertical ...
3
votes
1answer
44 views

ErrorListPlot - Problem with PlotRange

Consider the following example: ...
0
votes
0answers
27 views

Reevaluate a cell when using manipulate

I am trying to use a manipulate, but one of the plots inside requires that a lengthy cell (group) is evaluated again. Basically I have a variable 'intensity' which depends on the function I start ...
3
votes
1answer
97 views

Getting a function/solution for an ODE over 2 dimensions

I am trying to calculate the laminar flow field within a tubular reactor. The relation between axial velocities, viscosity and pressure drop is given by this differential equation with the axial ...
1
vote
1answer
55 views

Framed Background and ImageMargins

I want to make some description on my plots, but I can't make it good. First I tried this: ...
10
votes
1answer
2k views

Programming the fiver game

Obviously, even if I ask a lot of question I am, obviously, still a dummy!!!! I want to program the fiver game. It's a very simple game played solitary on a $5 \times 5$ the rule is elementary : if ...
3
votes
2answers
151 views

Finding eigenvalues for Laplacian operator for 3D shape with Neumann boundary conditions

I've just begun to use the Mathematica so my question may seem to be naive. To get a solution for my problem I looked at the example provided in help. ...
1
vote
3answers
239 views

How to fit a Distribution to data that already looks like a distribution?

I have a set of data that is already ordered as a distribution. Here is a picture worth 999 words: I tried FindDistributionParameters, and ...
-5
votes
0answers
41 views

Fibonacci Sequence (Home Work) [closed]

3. The Fibonacci sequence F0, F1, F2, F3,... is an infinite sequence defined by the two initial values F0 = 0, F1 = 1 and the rule Fk = Fk - 2 + Fk - 1 for all k ≥ 2. Let M = (1 1 ...
0
votes
0answers
6 views

Find least number of radial-subgraph of a graph [migrated]

Background: Here is a group G of a people, one maybe another's friend. How to select least number of people to be a leader of a subgroup, so that everyone in the group G has a friend as a leader? ...
12
votes
2answers
263 views

Fractal basins of attraction in a Magnetic Pendulum

I am trying to write a Mathematica program that realizes a graphical approximation of the basins of attraction in a Magnetic pendulum subject to friction and gravity, in which the three magnets are ...
3
votes
2answers
177 views

ColorFunction with the function of luminance

I want to have a DensityPlot or ListDensityPlot, whose color function is a rainbow but whose luminance is given by another ...
6
votes
0answers
52 views

Finish(Asynchronous)Dynamic[]

I have a question deriving from a recent topic Synchronizing Dynamics with EventActions. tl;dr; How to authoritatively explain the influence of ...
2
votes
1answer
32 views

Replacing expressions with variables [closed]

I have a large matrix where the entries are rational in Jacobi elliptic functions e.g. I'd like to replace the elliptic functions by variables, e.g. ...
0
votes
1answer
76 views

Integration of harmonic function

I am trying to calculate the average distance of electron above the surface. However when I did the Integral, for the first couple of state(n from 1 to around 15) the results are pretty good. However, ...

15 30 50 per page