# All Questions

6 views

### ScientificForm problem

Consider this code: ...
11 views

### Plotting bug? or am I missing something?

I would like to plot some functions in a family such as the following set of functions: Table[(n/(1 - 2 x))^2, {n, 1, 29}] And this works wonderfully: ...
39 views

### efficient way to give nearest neighbour and next nearest neighbour of every point in a point set

Suppose we have a point set, the points are labeled 1,2,3,....n. And p[i] is the coordinate of the point. Now I want the label of nearest and next nearest point (maybe several) corresponding every ...
24 views

I'm trying to get LinkSnooper up and working on a Windows 7 machine to monitor the interaction between the Mathematica front end and MathLink. I'm facing great troubles following the instructions ...
43 views

Problem: In the context of quantum harmonic oscillator the eigenfunctions are given by: $u_n(x) = (N_n/\sqrt{b}) H_n(x/b) \exp\left[-x^2/(2b^2)\right]$, where $N_n$ is the normalization factor: $... 0answers 22 views ### Store results of inequality I eveluated some values using Reduce commend and I store them in a Table ... 2answers 74 views ### Manually adjust graph vertex location by dragging? Is there any way to manually adjust graph vertex location by dragging? Sometimes I have a graph and I want to make tweaks to the vertex locations. If I double click to edit I can move around the ... 1answer 41 views ### How to keep$FrontEnd options from resetting?

I'm trying to get Mathematica to look in a different, version-tracked folder for the 'TextResources' files that it uses to build the Front End. I've prepended my version-tracked folder path to the ...
48 views

### calculating a sequence of functions using iteration

I am trying to compute a sequence of functions using iteration and keep running into problems trying to use built in looping commands because of the recursive nature of the definition. The code below ...
25 views

### Using Rosenbrock's function to find the minimum of another function? [on hold]

Using Rosenbrock function : clc; clear all; a=(-2:0.01:2); b=(-1:0.01:3); for x=1:401 for y=1:401 z(x,y)=(1-a(x))^2+100*(b(y)-a(x)^2)^2; end end %disp(z); mesh(z); n=401; % ...
45 views

### Manipulation of InterpolatingFunction

Suppose that $q[t]$ is obtained by NDsolve as an InterpolatingFunction, and I want to define Q[t] to be some function of $q[t]$, say $\sqrt{q[t]}$. How can I define it in such a way that I become able ...
19 views

147 views

### Plotting equations of motion of a baseball

So I went through the physics of a baseball and I got the exact same equations as shown here on page 8. I input all of the same parameters into my code, and I don't get the same thing. Any idea ...
45 views

### How to find the leaders in order to apply The Meggitt algorithm [on hold]

For example, a generator polynomial g(x) generates a cyclic code with length n=15, dimension k=7 and minimum distance d=5. (p=2) -> p = |(d-1)/2| degree 14 -> r=n-1=15-1 weight <= 2 -> weight ...
48 views

### GraphPlot with black edges no rendering function

Is there any way to make the edges of a GraphPlot black without tediously writing out a long "EdgeRenderingFunction"? I guess you could ask the same kind of question about vertex labeling. For ...
91 views

### Discrete inequality plotting

I have an equation like this: $${20 \choose k}\cdot \sum_{i=0}^k {k \choose i}\cdot i \leq 1+f$$. I want to plot this inequality as the dependency between k and ...
74 views

### How to apply GraphLayout option to part of vertex?

I'm trying to sketch polymers. Here is how I do it. How can I make the left part to a regular hexagon? This is the unit so for polymers there are more. Is there a general way to do so?
69 views

### Reduce of a table [duplicate]

I have a table for example: t = Table[k,{k,5}] which returns {1,2,3,4,5} and for every element in this table I want to check ...
65 views

### Selecting expressions from a sequence that are not subexpressions of earlier elements

I have a While loop that generates and prints an expression on each iteration (there can be thousands of iterations). UPDATE: Some expressions are generated in ...
70 views

### Code for a Pocket Calculator [on hold]

I need to have a Mathematica simple pocket calculator with press-able buttons, with the ability to disable some of the buttons. I want to use it in "broken calculator" activities in teaching ...
78 views

### How to highlight overlapping regions in RegionPlot according to the overlapping times?

I want to plot the overlapping regions of several inequalities. For example, ...
35 views

### Optimization of one portfolio of stocks

Please can you help me??? I have a project to do in Math.. To pick 10 stocks, and to do optimization for them. I did the first part to compute yields and expected yields, but i don't know how to ...
127 views

### Plotting two functions against each other

I have two functions which are functions of t. Let's just say x1[t] and x2[t]. I want to ...
92 views

### Solar system simulation (n-body physics) with OpenCL

I would like to simulate a n-body solar system in Mathematica. I have found the following example: ...
39 views

### Multiplot colors [on hold]

If I have a multiplot like for example: ListPlot[{function1, function2},...] the colors of first is blue and the second one is purple. How can I change to have ...
731 views

### How to replace an element in a list based on the value of the next element?

I use Mathematica a little bit. I try to understand it, but it is hard I have a list of 5 numbers selected randomly from 0 and -1. I have to replace a 0 with a 1 when the 0 is followed by -1. My ...
102 views

### Prime factor counting function

Is there any way I can speed up this prime factor counting function? (I am looking for all numbers in a range with 3 prime factors (counted with multiplicity).) ...
89 views

### Does Mathematica know if an integral is convergent or not?

Consider the following integrals that I asked Mathematica to do, ...
28 views

### How should I integrate a function with variable specifically defined already?

I'm going to do a transform in the form of but here, what I have is the y values (discrete), the f(y) values at each y, so I can't choose random y but have to input y values myself. So this is a ...
211 views

### Different results for integration using Mathematica and MATLAB

I have the following integration: $$\text{y}=2 \sqrt{\frac{1}{\pi }} \int_0^{\infty } \frac{e^{-z} \left(1-e^{-\frac{z}{b}} \left(\frac{a}{a+c z}\right)^L\right)}{\sqrt{z}} \, dz$$ I get different ...
85 views

### How to calculate expected return, row by row in matrix?

Please help me, I'm writing my project and dont know how to solve this big matrix: I have to compute return row by row: 1st row: (18.32-17.14)/17.14 ; (19.17-18.32)/18.32 .... ...
18 views

### Repeated ANOVA unbalanced data [migrated]

I am a master's student, and I need your help. I did experiment on one group of rats, the group was tested during 8 days, this is the first stage. The same group was also tested again but this time ...
I have a numerical solution from a differential equation that is in the form of a list, in $(x,z)$-plane. I would like to rotate the 2D ListPlot around the $z$-axis ...