0
votes
0answers
8 views

function as argument in a package

I would like to customize the function DensityPlot and use it in a package as a function called MyDensityPlot: The functions ...
0
votes
0answers
22 views

How to speed up NDSolve?

I have a program where I need to iterate NDSolve thousands of times for different configurations of a diffusion problem. The thing is, I only need about 3 digits of accuracy. I looked thru previous ...
2
votes
1answer
30 views

Replace pattern for exponentials

Ultimately, I want to replace every Exp[(const) w[i,j]] to T[i,j] and Exp[-(const) w[i,j]] to 1/T[i,j] in the following expression ...
0
votes
0answers
18 views

Lyapunov exponent of non-autonomous differential equation

I am trying to calculate the Lyapunov exponent for a non-autonomous system using M Sandri code, but it always shows me error "infinite expression 1/0 encountered". Does anyone know about this? Mr. ...
0
votes
1answer
22 views

Maclaurin Series Help

My problem is to numerically approximate the series (1 - Cos[x])/x over the interval [0,1]. I typed it into Mathematica as so: ...
0
votes
0answers
19 views

All Graphics3D commands crash

Recently updated from Mathematica 8.0 to 10.2 running on Windows 7 (8.0 was uninstalled before installing 10.2). Anytime a 3d graphics is rendered, the first rendering in a notebook is completely ...
0
votes
0answers
21 views

NDSolve kernel crash, affected by variable naming

The following isolated example cannot be further simplified much to reproduce a crash. I've already submitted the issue to TechSupport, but it seems this is not an easily reproducible case, so I'm ...
-1
votes
0answers
32 views

Pumping Lemma - non regular [on hold]

Can everyone help me to show that: the language L = {a,b}* \ {a^m b^2 m a^n | m,n >= 0} is not regular. I don't know what is the meaning for the proof.
-1
votes
0answers
32 views

MMA giving me error when I rum the folllowing MMA script

I have the following MMA code. However, when I run it, I am getting some error. But I am unable to trace it. Note that the 0< AverageProbSuccess <1 ...
3
votes
1answer
57 views
1
vote
1answer
35 views

Input in Manipulate

Plot[Evaluate[ Input["Please input a function of x to plot with one parameter \ \[Alpha] to manipulate"]], {x, 0, 1}] This work without doubt. But ...
1
vote
0answers
25 views

Using TraditionalForm to express equations

I have a notebook in which a couple of partial derivatives are calculated. At the time of publishing this notebook, I'd like to make the resulting equations look the way they would in standard ...
0
votes
0answers
23 views

Bezier curves function in mathematica [on hold]

I need help urgently, for next monday I need to write the name ALAN using BEZIER CURVES programming it on mathematica, but I'm not allowed to use the bezier curves function that mathematica already ...
5
votes
1answer
175 views

Is there a way to make a bihistogram plot?

Is there a way of making a bihistogram plot in mathematica? There is a reference to it at http://mathworld.wolfram.com/Bihistogram.html but no suggestions as to how to do it.
1
vote
1answer
47 views

how to apply Alternatives command to delete cases from a list?

I have two lists let say listF = {{7, 2}, {2, 6}, {8, 1}, {1, 7}, {11, 8}, {6, 11}}; and ...
0
votes
1answer
75 views

Dynamical system problem x(t+1) = Ax(t)

I have a problem that have been trying to solve but it's not going so good. I would like some guidelines on how to work myself around this problem: Two neighboring countries spy on each other and ...
0
votes
0answers
46 views

How to calculate the slope in a data set plotted in ListPlot?

I am working with a large set of data that follows an exponential behaviour. My challenge is to create a function in Mathematica with these objectives: Retrieve the information from an Excel File ...
1
vote
1answer
44 views
0
votes
0answers
44 views

Animation of the wavefield

I was trying to animate contour plot as a function of time. Basically, it is contour plot of wavefield that is changing throughout the time. Here is my attempt: ...
0
votes
1answer
50 views

NIntegrate[] Gamma Function

Gamma Function is known to be : Source first i plot the function z = 1; f[t_] := (t^(z - 1))/Exp[-t]; gamma = Plot[Gamma[g], {g, 1.0, 5.0}] then, i ...
0
votes
0answers
52 views

Root of a cubic is not always real [on hold]

In my Mathematica output, the following root object occurs ...
0
votes
1answer
23 views

Displaying each element of a varying sized list one at a time [duplicate]

I am trying to take a user's input, which will determine as list of results. I would like to show that list to the user, one result at a time. Something like the following (which is broken): ...
0
votes
0answers
27 views

Image Processing : Detect wall from image for painting application [on hold]

I am new in image processing, I am working on a demo application for wall painter app. Can we detect wall from uploaded image of room or house to paint color on it ? Please help for the same I am zero ...
0
votes
1answer
19 views

Find a independent variable value from the numerical solutions of a system of differential equations

I have calculated the solutions for the following system of differential equations using NDSolve ...
0
votes
0answers
20 views

How to make an expression in this case evaluated one step and stop there? [duplicate]

I wonder how to make Symbol@"m" evaluated once so that it becomes a symbol m which is ready to be assigned again. ...
0
votes
1answer
36 views

How to write a similar “for loop” with table?

I have a code to replace the z coordinate of one point A(x,y,0) on the xy plane: ...
0
votes
0answers
33 views

How to Simplify Complex numbers Sqrt[1 - i] Sqrt[i + 1] [on hold]

I tried FullSimplify and PowerExpand to simplify Sqrt[1 - i] Sqrt[i + 1] but nothing happen. Help me to simplify this expression
-3
votes
2answers
68 views

Plot of a function w.r.t x^2

I want to plot a function with respect to x^2 i.e., Plot[f(x),{x^2,0,1}], but mathematica is giving error. Suggestions please
1
vote
2answers
69 views

Delete rows and columns in a matrix based on the element index

This is a follow-up question from here: Define a 4d matrix without for loop I have a 400x400 2d matrix reshaped from a 4d matrix H(i,j,k,l), ...
0
votes
0answers
22 views

Recursion and Its Stoppage Criteria

Let there be a recursive function V whose first value is set at 0. How can I find its converged value in such a way that the recursion stops when the difference between the newest and the one before ...
2
votes
1answer
42 views

recursively structuring a multivariate numerical optimization

Suppose that I want to partition the unit interval [0..1] into four subintervals whose max length is as short as possible. I can ask Mathematica to: ...
0
votes
0answers
31 views

Silly question about linear transformation [on hold]

I define a $3 \times 3$ matrix tran tran = 1/Sqrt[3] {{1, 1, 1}, {1, ζ, ζ^2}, {1, ζ^2, ζ}} Then to do the linear transformation, I use the following code ...
0
votes
0answers
41 views

How to find first quartile?

I have this set: {131, 130, 130, 126, 125, 125, 123, 123, 121, 121}. I need to find some values, and one of these values is first quartile (...
0
votes
0answers
31 views

Unable to write to MM3000, stepper motor

Serial interface RS232 control I am using a stepper motor connected with RS232 protocol. But I am unable to write or read. I don't get any errors and I have waited after I open the device and then ...
6
votes
1answer
99 views

Constrain Locator to specified region

How can I constrain the locator to stay within the region defined by RegionPlot? When the Locator remains within the region, ...
1
vote
1answer
41 views

Does NDSolve iterate faster in a region where the system being solved is in equilibrium?

I was wondering how exactly the time it takes for NDSolve to iterate through a certain region of the domain depends on the local behaviour of the given system being solved. My guess would be the ...
12
votes
2answers
516 views

Is there any harm or benefit to Removing unneeded private symbols in packages?

One of the things I noticed is that in typical medium-to-large sized packages, a huge number of symbols are created in the myPackage`Private context. You can see a ...
0
votes
0answers
23 views

How to find the longest diagonal if you fold a piece of rectangular paper in half? [migrated]

An 8-inch by 12-inch paper napkin is folded in half three times with each fold resulting in a smaller rectangle. What is the longest possible diagonal for the final rectangle? Express your answers in ...
0
votes
1answer
61 views

Faster code for calculat in Integral include derivative

I saw this question How I can get faster I tried help that. But I can not understand. I want to write a faster code for: ...
0
votes
1answer
33 views

Sum over abstract value

My plan is to write a sum over an index. Currently I write Sum[f[OverTilde[q]], OverTilde[q] ∈ Subscript[l, i]] but Mathematica always tells me that "The ...
0
votes
0answers
15 views

How to stop the kernel between the two input dialog box? [on hold]

I have a code which you could see below and I want the kernel not to pass to the second dialog box until the first dialog box input is entered and hitting OK button. CreateDialog[ Grid[{{"Sonlu ...
2
votes
1answer
46 views

Duplicate rows with multiple entries

I have a huge dataset, which looks similar to this: ...
0
votes
0answers
27 views

CDF Player and CloudObject`Private` Problem

I'm trying to generate a simple Manipulate[] example showing Taylor expansion. However, the following code shows ...
3
votes
1answer
78 views

OptionsPattern[] taken as a Replacement Rule

I was trying to write my own plot function taking as unit size cm instead of points. I've tried ...
2
votes
1answer
29 views

Existence of edge in graph

I want to know whether an edge exist between two specific vertex? Is there any function like EdgeExist[g,{v1,v2}]?
0
votes
0answers
22 views

Hold assumption in Simplify [on hold]

If you type this into Mathematica, PrimeQ[x] It will return False. However, ...
2
votes
2answers
81 views

Good way to create a similarity / distance matrix for a large dataset

I have a large dataset with rows (100k+) for products and columns for features. Now I want to create a similarity matrix with NormalizedSquaredEuclideanDistance. ...
0
votes
1answer
33 views

Trying to solve ODE. Need help with error messages [on hold]

With this code I get an error-message: Equation or list of equations expected instead of True in the first argument. Apparently y'[0] == v0 gives ...
1
vote
1answer
41 views

Create a Dataset object, Association or SparesArray from a matrix [on hold]

I need to make queries and operations on a large dataset. What is the easiest way to add keys to matrix so that it is transformed to a dataset, which can later be used to make queries? Let's take ...
0
votes
0answers
30 views

Mathematica doesn't save my work [on hold]

When I save my work and close Mathematica, usually it's not saved, it won't save a my work,despite that it asks where to save the file. Sometimes it creates an empty notebook only.

15 30 50 per page