All Questions

3
votes
3answers
113 views

Can I generate matrices with a constraint?

Say I want a way to generate matrices with the following properties, All non-diagonal elements are either $0,1,-1$ The diagonals are either $k$ or $k+1$ for some $k \in \mathbb{Z}^+$ for some $k$ ...
2
votes
2answers
90 views

Can't use my own discontinuous coefficient within NDSolve

I want to evaluate the pendulum's motion with changing equilibrium state given by eqilValue[t]: ...
0
votes
0answers
48 views

Plotting A Function Using A Given Number Of Points [closed]

i'm new to mathematica and am trying to figure out how I can plot something and specify the number of points on the plot. I want to plot the real root of an equation from a=0..1 using 500 points of ...
1
vote
0answers
32 views

Simplifying an inequality inside an answer by parts

I have the following piece of code where I'm evaluating a probability of a variable v being greater than some threshold under a Uniform distribution. ...
5
votes
1answer
83 views

How to implement kvo in Mathematica 10? [duplicate]

Key value coding and observing is something that other languages do well, like objective-c for instance. What's the best way to achieve something similar in Mathematica (if at all possible)? That is, ...
0
votes
2answers
52 views

Show legend on plot [duplicate]

I have a series of curve I'm plotting using ListPlot. For each plot I'm changing a variable called X. Is there anyway I could ...
0
votes
2answers
54 views

DSolve bvlim error due to Boundary condition at infinity

I am solving an Ode using Mathematica that has boundary condition at infinity which is why Mathematica is showing error message. Please help to tackle this problem. ...
0
votes
0answers
34 views

plotting the stable and unstable manifolds of a difference equation

I have a 2D non-linear system of difference equations for variables x and y defined as follows: ...
2
votes
3answers
137 views

Deleting missing data with CountryData

I need to delete all of the missing entries after executing this line: ...
0
votes
0answers
22 views

Probability of occurrence of an event [closed]

If n positive integers are taken and multiplied together then the probability that the product has 1,3,7 or 9 as it's last digit ?
-2
votes
0answers
23 views

How to define a function with more than one equation in? [closed]

How do I define the first function where there are more than one equations in it with each with an inequality? And for the second question how do I graph the periodic extension, what is it?
5
votes
2answers
68 views

Using gamepad without dynamic

I am a novice using Mathematica. I program regularly using c like languages though. Now i work on a simulation of a vehicle. I have a loop that calculates the next state of the physical model every dt ...
6
votes
2answers
202 views

Negative integral of a positive function

For a parameter $t\in (0,1)$ $Assumptions = t ∈ Reals && t > 0 && t < 1 I define an obviously positive function $f(x)=\left| \Re ...
1
vote
1answer
79 views

Merging documentation from Workbench with handed-coded package

On the one hand, I have been writing my package (directly into the .m file) separately using the standard Mathematica front-end. My source .m files and the init.m files have the appropriate folder ...
15
votes
2answers
183 views

Why Infinity /. _?(# < 6 &) -> 0 replaces Infinity with ComplexInfinity?

Suppose I define a matrix: mat = { {Infinity, 4, 9}, {6, Infinity, 10}, {8, 9, Infinity} }; Now I want to replace all values smaller than ...
0
votes
2answers
36 views

Fix the position of the axes label [duplicate]

How can I set the position of the axes labels (X,Y,Z), so that, among other things, they do not overlap with the numbers in the axes? Here an easy example: ...
4
votes
1answer
86 views

Non-separable partial differential equation in polar coordinates

I'm trying to solve the Schroedinger equation in 2D for a system interacting via a dipole potential. This means, in effect, I'm trying to solve the nonlinear PDE $$ -\frac{1}{r} ...
2
votes
1answer
60 views

Community detection on weighted graphs?

The documentation says that FindGraphCommunities works with weighted graphs. I've been playing around with a complete graph with weighted edges, and FindGraphCommunities always returns a single ...
0
votes
0answers
20 views

Symbol definition in parallel kernels

Suppose I have a reasonably large number of floating point arrays, obtained from prior numerical simulations. These are stored as binary files named data_#####.dat ...
0
votes
1answer
50 views
0
votes
2answers
87 views

Help Please : Error in plotting the solutions of FindRoot

I want to find the roots of an equation using FindRoot as a function of a real parameter K and then plot the real and imaginary solutions vs. the parameter K. The function I'm trying to find the ...
-1
votes
1answer
78 views

Shells with Mathematica

I am a beginner, so please bear with me. I would like to get this plot with Mathematica: In fact, both mathematical background of such plot, and its implementation in Mathematica are here. This ...
1
vote
0answers
30 views

Resolve not accepting equations involving factorial

If I take , Resolve[ForAll[x,x!>=0],Integers] True But if I make slight modification, ...
0
votes
0answers
35 views

How to change the scale on the x axis using Plot? [closed]

I need to plot the function $f(x)$ on the $x/x_0$ scale, where $x_0$ is some constant. Is it possible to change the $x$ axis scale on the graph using the function Plot[f[x],{x, xmin, xmax}]? Thanks.
0
votes
1answer
31 views

How to find the Nth zero of a function

It's an almost same question with "a multiple roots finding" but, the order of roots is important in my case. Basically, I'm trying to find Nth crossing point of the following graph: ...
0
votes
1answer
38 views

Count intersections of two non-polynomial functions [duplicate]

I have two Bessel functions, and I need to be able to count the number of intersections if both functions are plotted dependent upon the same variable. I can use FindRoot or FindInstance to get one ...
2
votes
1answer
33 views

Plot several columns of table with variable number of columns and display the legend accordingly

I use this command to plot all values from the 1st column of Table "results" against all values from the 2nd column: ListLinePlot[{results[[All, {1, 2}]]} Now, ...
3
votes
1answer
37 views

How to define patterns to filter lists of replacement rules? [closed]

I have a list of replacement rules like list˘of˘replacement˘rules = {a -> 1, b -> 2, c -> 3} and I want to filter all the elements where ‘b’ is replaced ...
3
votes
3answers
155 views

How to detect outlier in data of an unknown function $f(x)$

Suppose I have an unknown function $f(x)$ that is monotonic, convex and nonlinear by definition. I somehow evaluated it at 1000 nonuniform $x$ points. By ploting these data, I found a very obvious ...
2
votes
1answer
79 views

Renaming projects in Wolfram Workbench

I write my whole package by using Mathematica front end, and I am currently in the process of writing the documentation using Workbench. I'm about 50% done, but realized I need to change the name of ...
1
vote
2answers
44 views

How to get the outermost command evaluated first?

I have an expression like ToString[Stuff[...]]. I plan on having the Stuff[...] be manipulated as a string according to the output of other parts of the program. The problem is that Mathematica tries ...
1
vote
0answers
42 views

Crosscorrelation for nonperiodic signals

I want to detect patterns (of an absorption spectrum which is nonperiodic) with Mathematica automaticly. I have found CorrelationFuncion but as far as I understand, ...
3
votes
1answer
78 views

How to compare Histogram Data?

I'm using a Dataset ...
2
votes
2answers
142 views

How to Map each cell in a matrix to another and solve the system?

tab1 = {{a1, a1 + a2}, {b1, b2*b2}} tab2 = {{2, 5}, {5, 2}} I want to map like this ...
0
votes
0answers
29 views

Maple-like tasks? [closed]

Is it possible to somehow add shortcuts to insert a "template" for one or more cells. Like, adding a shortcut to enter predefined text and functions. Someone showed me Maple tasks recently and I was ...
3
votes
3answers
186 views

String pattern defined by number of characters

I want to extract non-overlapping substrings from strings with only four possible characters a,b,c,d. These strings will always have equally many "a" and "d" characters. The substrings x I want satisy ...
7
votes
1answer
134 views

Momentary Checkbox

I'm trying to create a demonstration in Mathematica where a checkbox will show an answer, but I only want the answer to be shown while the mouse button is pressed. There seems to be a ...
2
votes
0answers
74 views

Trouble with Datasets in Version 10.0.1

Almost every morning, when I start my work, I observe the same problem as already mentioned here: Dataset Mathematica 10.0 and here: Dataset: cannot reproduce a basic example. A bug? I opend this new ...
0
votes
2answers
79 views

manipulating the X axis notation in mathematica graph [duplicate]

I plotted a graph in mathematica that displays the function M/1480 = (4*Pi*G*r)/(3c^2) R^3 here , ...
-1
votes
0answers
40 views

Calculating genus of graph

How to calculate genus of graph in Mathematica 10? I could not find a built-in function to calculate this value.
-1
votes
0answers
27 views

Solving Symbolically in Mathmatica 10.1- [duplicate]

I'm trying to solve this equation symbolically for x :sqrt[29991348*x^2 - 13958305552*x + 992000000 + ((a - b)/x)/(0.02 + c - a) = 0. However, when I try ...
2
votes
1answer
99 views

How to get a more compact form of this probability calculation?

Inspired by the probability calculation here, I am trying to solve a little general one: $$\mathbb{P} (\sum_{i=1}^{m-1} A_i + \sum_{i=1}^{m} S_i < L < \sum_{i=1}^{m} A_i + \sum_{i=1}^{m+1} ...
0
votes
2answers
45 views

How to discern the different curves?

When we plot many curves, due to repeated colors it becomes difficult to discern that which curve belongs to which equation. For instance, ...
0
votes
0answers
20 views

batch processing proof of the number of jobs' relationship with service time and waiting time [closed]

The classical batch processing system ignores the cost of increased waiting time for users. Consider a single batch characterized by the following parameters: M average mounting time T average ...
0
votes
1answer
27 views

definitions and usages of options such as “Count” ,”Area”, “ConvexCount”, and “ConvexArea”

I would like to use ComponentMeasurements to do image analysis on porus materials. However definitions andusages of options such as “Count” ,”Area”, “ConvexCount”, and “ConvexArea” are not well ...
4
votes
2answers
351 views

Finding minimal distance between two surfaces

This code will display two parametric surfaces: ...
1
vote
2answers
68 views

How to create an effective PlotLegend when plotting many ListPlots?

I'm creating a ListPlot where I plot many data sets simultaneously. Currently, my code that produces it is something like this: ...
0
votes
1answer
36 views

Coefficients of a DiffEq [closed]

I'm attempting a Do[] recursion on Coefficient[] with the end goal to use it to find the coefficients of an nth order diffeq. The following is a basic example of what I'm trying to do, subbing a ...
0
votes
0answers
40 views

I have the best fit, How can wiggle a plane between the max and min errors [closed]

I have a table representing 3 dimensional data, I have found the plane of best fit but I now want to move the plane of best fit through the maximum and minimum error and display the planes current RSS ...
2
votes
1answer
41 views

15 30 50 per page