All Questions

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
76 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
29 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
33 views

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

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
0answers
36 views

How to define the block matrix and calculate it's inverse

How to define the following block matrix $$ A=\begin{bmatrix} H-G_1 & -G_1 & \ldots & -G_1 \\ -G_2 & H-G_2 & \ldots & -G_2 \\ \vdots & \ldots & \vdots & \vdots ...
0
votes
1answer
29 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
32 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
35 views

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

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
152 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
76 views
+50

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
75 views

How to compare Histogram Data?

I'm using a Dataset ...
2
votes
2answers
141 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? [on hold]

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
133 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
72 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
97 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 [on hold]

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 ...
3
votes
2answers
339 views

Finding minimal distance between two surfaces

This code will display two parametric surfaces: ...
1
vote
2answers
64 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
35 views

Coefficients of a DiffEq [on hold]

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 [on hold]

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
40 views
5
votes
2answers
131 views

Using a held option

Woud there be an elegant way to use a held option ? For example if I need to pass by reference several variables but I don't always need all of them, it can be useful. For example if I want to append ...
1
vote
1answer
100 views

For loops in Mathematica [duplicate]

I'm actually the first time using loops in Mathematica. For example, I have: For[i = 1, i <= n, i++, For[j = 1, j <= n, j++, ....] How it is possible now ...
3
votes
1answer
82 views

Troubles with FindFit for ODE

I need to use FindFit for ODE with arbitary number of parameters. This code (from documentation) works: ...
5
votes
3answers
123 views

Missing control for depth of Inner

Working on a mechanics problem, I stumbled on something peculiar: Since Inner is a generalisation of Dot, it changes its ...
1
vote
0answers
29 views

Capturing error message information

Error messages returned from SendMessage occasionally have useful information in them. For example: ...
0
votes
1answer
70 views

Recursive functions taking list arguments

I wish to create a function that takes lists (e.g. {plus,plus,minus,0,minus,plus}) and uses the input list to calculate a corresponding value using a set of ...
2
votes
0answers
53 views

Choosing a List as VertexWeight for a TreeGraph

I would like to map every vertex of my TreeGraph to an List. ...
0
votes
0answers
57 views

My own discrete probability distribution [on hold]

I have probability distribution in the table form. For example: X 2 3 6 -------------------- P(X) 1/2 1/3 1/6 How can I create this distribution ...
0
votes
1answer
61 views

Plotting and Analysing derivatives of solution of differential equation [on hold]

Using NDSolve I found the solution for the differential equation that governs the dynamics of a simple pendulum. How do I plot the derivatives of the solution? Also, I would like to find the ...
0
votes
1answer
69 views

Fitting data with inclusion of constraints

How do I find a fit for the dataS (see below) with the constraint that the parameter np is an integer, and that the parameters la+lc = 100. A weak attempt at this is provided below for a specific ...
0
votes
1answer
55 views

how to read an excel file using mathematica? [closed]

I have to do some data analysis and i have data in an excel file. Please tell me how to read an excel file in mathematica.
3
votes
1answer
118 views

Visually Separating Cliques in Graphs

I have a graph with 189 vertices, more than 10,000 edges and 20 cliques. As one can imagine, this graph is a mess when trying to display it. I'd really like to display the graph, separated into ...
0
votes
0answers
36 views

Transform NMinimze into LinearProgramming formulation

I have the following maximization problem that I currently try to solve with Minimize/NMinimize. Unfortunately, this kind of solution method takes really long for large systems of equations and ...
0
votes
0answers
38 views

I'm trying to use ParametricPlot but my graphs keep coming up blank [closed]

I'm just trying to do: ParametricPlot[{cos[t], sin[t]}, {t,0,2pi}] When I use 2pi, it says: Limiting value 2pi in ...
0
votes
1answer
46 views

Single formula for this sequence [closed]

Consider the following sequence. 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8 We can express this sequence by (an) where an=n/2 when n is even and an=0 when n is odd. Find a single formula for an ...
1
vote
2answers
90 views
14
votes
2answers
255 views

Efficient way to compare animated images to tell if they are the same

I have a Student license for Mathematica, and felt like I wasn't making full use of the wonderful toolkit that it is; so I looked into things like its image processing capabilities. Now, I made and ...
1
vote
2answers
44 views

How to add a part of a list to a function?

I want to be able to add a specific portion of a list to a part of a function but this fucntion intakes 6 variables where as the list is of example: ...

15 30 50 per page