# All Questions

55 views

### Nothing happens when I click the mouse clicked on my graphics

I wrote codes to record list of coordinates when mouse clicked. It is expected that the coordinates should be plotted dynamically. But actually nothing happened. Can anybody help me to find the ...
55 views

### How do I get a Do function to create a list?

I have a Do function which gives me a column of expressions. How can I get the Do function to give me these expressions in a list. i.e The do function gives me this: a b c d I would like it do give ...
63 views

### Rotate points by 60° in 2D

I wrote this code, to rotate a list of points 60° about the first point in the list in 2D, but Mathemtica says: "Recursion depth of 1024 exceeded."
108 views

### Vertex displacement/merging in graph?

Given a Graph such as the one produced with the following code ...
88 views

### How to define multiple functions using a for command

Let's say I want to plot 10 graphs of those following functions. Since they are recursive functions, I cant make a table with 10 different initial conditions because Mathematica stores each value ...
191 views

### How to join two strings one of which is Subscript?

If I write this one str=Subscript["x","y"]; StringQ[str] False How can I get str as string?
29 views

### Plots to check all assumptions of linear regression

I'm running a linear regression with LinearModelFit and would like to plot graphs to check the assumptions of linear regression: linearity, independence of the ...
95 views

### How does Mathematica use system environment variables?

Is there a common way in which environment variables are accessed, stored, or used by the kernel? There are built-in functions for querying and setting vars in the system environment, but there are ...
69 views

### Open a .txt file in Mathematica [closed]

i have a .txt file written for Mathematica, but wenn I open it with Mathematica, there is just an unreadable text and no graphs and simulations like it should actually be, could you tell me how to ...
59 views

### Tooltip with ListLinePlot and interpolation

Is it possible to get the coordinates of any point on a graph using Tooltip, ListLinePlot and interpolation ? For example on this simple example ...
697 views

### Check if two lists are equal in any order

Suppose I have two lists, how can I efficiently check if the two lists are identical up to permutations of the elements? For example I would like the function to output: ...
76 views

60 views

### Is there a way to stop Export if the file size is too big?

I've got code that's exporting a file, but the file might be so big that it will take up too much space on the cluster I'm using and crash other users' processes. Is there anything like ...
49 views

### Identically styled cells from ToBoxes and Cell do not align

I'm trying to generate some worksheets using NotebookWrite so that I can control the page breaks, but have got stuck on the alignment as there appears to be a ...
226 views

### How do I generate cross sections of a 3D graphic?

I would like to approximate the volume of a bottle by summing up the volume of the individual disks. I have obtained code references from a demonstration. But how do I generate the cross sections? The ...
81 views

### Mean curvature of Sphere

I am trying to calculate mean curvature of a parametric surface(like sphere), and I wrote this code based on this discussion. Here is my code: ...
180 views

### Plane Geometry Diagrams With Labels

I can make some basic diagrams in Mathematica (stolen from their pages, for example see the below: LaminaData["FilledIsoscelesTriangle", "Diagram"] However, I'm ...
52 views

### How to calculate minimum positive solution of a equation?

Equations with triangular function usually have multiple solutions, like Solve[Sin[x] == 1/10, x] returns a solution like ...
72 views

### Problem using Compiled Function within NProbability

I've built a very simple function to estimate the probability for a Long Straddle (derivative strategy) to be positive at expiration. ...
41 views

### How to make an effective use of Mathematica to evaluate integrals, series, recognize closed forms, and do other manipulations [closed]

I would like to know if there are resources to learn how to use the functions of Mathematica in the most effective way in order to evaluate difficult integrals and series or find possible closed forms ...
46 views

### How can I stop the integration of NDSolve with a condition?

I try to solve a partial differential equation by NDSolve. At some point, I want to stop the integrating by a condition that compares the min value of the function ...
113 views

### Apply Trig Identity to Transform Sum of Sinusoids into Phase-Shifted Cosine Function

I'm trying to solve for the output of a simple RC low-pass filter, with Cos[w t] input. The convolution of the input with the RC transfer function gives me the right output, but I'd like to be able to ...
93 views

### What is the algorithm behind Mathematicas Reduce in this equation?

Mathematica can use Reduce to arrive at an answer in this equation ...
166 views

### Higher-order, nonlinear differential equation with Initial Values

I tried to solve for an non-Hookean spring's motion, but the output from Mathematica is weird. It seems that there is inverse functions involved. ...
74 views

### Mathematical operation on two lists by a “key” [duplicate]

I'm a complete newb here. Just looking for direction. I've got two lists like this... ...
16 views

### Size and Power of Test: Poisson Distribution [migrated]

In a homework problem, I am given a Poisson distribution with lambda = 1 as null hypothesis, lambda greater than or equal to 2 as an alternate hypothesis, and 3 as a test statistic. I am instructed to ...
69 views

### Image background subtraction using parallel computing

I am developing a program for pattern recognition. I want to use the parallel computing to get a real time application. I have two cameras where each one gives n frames/second. I need to process the ...