Questions tagged [version-7]

Version-specific issues for Mathematica 7 (other than bugs).

Filter by
Sorted by
Tagged with
2 votes
2 answers
269 views

How to define the density of random 3D points and plot it?

The following code draws a random distribution of particles in 3D. The Manipulate box allows to change a few parameters (number of particles, size of clusters, ...). I would like to define the local ...
Cham's user avatar
  • 3,949
1 vote
2 answers
126 views

How can I improve this code?

The code below is working well, but it's very slow in the Manipulate box. I know that the Do and AppendTo parts aren't very ...
Cham's user avatar
  • 3,949
1 vote
0 answers
73 views

Is there "absolute" point size for Graphics3D?

I would like to get points size that vary when the viewer is zooming in/out through the 3D graphic. The point size I want should be defined as "absolute", relative to the coordinates used ...
Cham's user avatar
  • 3,949
0 votes
2 answers
74 views

How to add random point size to this distribution of 3d points?

The code below creates a random distribution of points in 3D. Currently, the points have a random size, and the size is the same for all points. I need the points to get individually a random size, ...
Cham's user avatar
  • 3,949
5 votes
1 answer
206 views

How to get fuzzy points in a 3D view?

I would like to produce fuzzy random points (sprites like) in a 3D view. Applying a Blur command doesn't do the trick since the view is then frozen and we couldn't rotate the view anymore, and I don'...
Cham's user avatar
  • 3,949
1 vote
1 answer
155 views

How to introduce random correlations in a 3D uniform distribution of points?

I would like to build a simple visualization of the distribution of galaxies on a large scale model of the universe. Currently, my galaxies are represented as uniform random black dots in a 3D cube, ...
Cham's user avatar
  • 3,949
0 votes
0 answers
51 views

What is wrong with FrameTicks in this small code?

I'm having a problem with FrameTicks not working with this MWE: ...
Cham's user avatar
  • 3,949
2 votes
0 answers
93 views

How to define smooth random initial conditions consistent with boundary conditions for this 1+2D PDE?

I wrote a fully working code to numerically solve a non-linear variation of the classic 1+2D waves equation. Here's a stripped down version of it (classic waves equation), with static initial ...
Cham's user avatar
  • 3,949
1 vote
2 answers
104 views

How to simplify this sum of random waves?

Is there a way to simplify the random functions and their calls, in the code below? ...
Cham's user avatar
  • 3,949
2 votes
1 answer
152 views

How to make this moving surface a continuous and derivable function?

I'm having troubles in defining a function of three variables: $t$, $x$, $y$, from a moving bumpy surface that should be derivable relative to its three variables. Here's the animated surface code, ...
Cham's user avatar
  • 3,949
1 vote
1 answer
111 views

Randomly oscillating surface is not working well

I'm trying to built some random moving surface from a plane perturbed with random oscillators, and my current code isn't doing what I need yet, as seen from the ...
Cham's user avatar
  • 3,949
2 votes
1 answer
80 views

How to insert variable height in this random bumps function?

I'm trying to insert a "time" variable that control the height of the random smooth bumps, but I'm yet unable to do it right, as shown with the code below: ...
Cham's user avatar
  • 3,949
3 votes
1 answer
158 views

How to define a smooth function of random bumps in a plane?

I would like to define a simple function that gives random smooth bumps in a plane, a bit like the clumsy picture below, but it should be continuous: ...
Cham's user avatar
  • 3,949
1 vote
1 answer
303 views

Boundary conditions at infinity for 1+2D wave equation in Mathematica 7

To solve a waves equation, I need to define some boundary conditions. The wave is propagating on an infinite plane, and it's not a membrane fixed on some fixed support. I'm have difficulties in ...
Cham's user avatar
  • 3,949
4 votes
3 answers
343 views

How can I add a few specific mesh (altitude-like level) curves to a plot?

I'm plotting the numerical solution of a differential equations, using the altitude-like level curves as a mesh. It's fine, but I would like to add three specific altitude levels as thick red, green ...
Cham's user avatar
  • 3,949
1 vote
0 answers
73 views

How to numerically solve this partial differential equation and plot the output? [duplicate]

Using Mathematica, I would like to numerically solve the following partial derivatives equation : $$\tag{1} \frac{\partial^2 \Phi}{\partial T^2} - \frac{\partial^2 \Phi}{\partial X^2}- \frac{\...
Cham's user avatar
  • 3,949
4 votes
3 answers
241 views

How to draw borders around tiles of the same color?

I'm having difficulties with a project to show random tiles with a few random colors. Here's the code that I need to modify: ...
Cham's user avatar
  • 3,949
4 votes
3 answers
441 views

How to draw random colorfull domains in a plane?

I'm trying to produce some graphics like the one shown below, with a few adjustable parameters to change the number and size of cells. The cells positions, sizes and colors should all be random (size ...
Cham's user avatar
  • 3,949
1 vote
1 answer
204 views

How to add noise to these random straight lines in 3D?

Here's a code that draws a pack of random straight lines in 3D: ...
Cham's user avatar
  • 3,949
6 votes
2 answers
329 views

How to generate randomly curved and twisted strings in 3D?

Here's a code that draws a set of random straight lines in 3D: ...
Cham's user avatar
  • 3,949
1 vote
0 answers
217 views

How to solve ode with convolution?

my question is as this and i want to get the solution of this ode x(t) $ ({M_{33}}{\rm{ + }}{{\rm{m}}_{33}})x''(t) + \int\limits_{ - \infty }^t {x'(tau){K_{33}}(t -...
dcydhb's user avatar
  • 605
0 votes
1 answer
212 views

How to get the analytical solution or numerical solution of the double integral

i just want to calculate this double integral but can't get the analytical solution,so it there a way to get the analytical solution or numerical solution of the double integral? codes are as this <...
dcydhb's user avatar
  • 605
0 votes
1 answer
232 views

mathematica stop working after running some .nb file and close or save the file

Bug fixed in 8.0.4 for Chinese edition only, generally fixed in or before 11.3. I'm using version 7 on Windows. After I running one .nb file and just want to ...
dcydhb's user avatar
  • 605
2 votes
1 answer
1k views

Repeated convergence test failure and why?

i have assigned all the values and the ODE assigned is as this ...
dcydhb's user avatar
  • 605
0 votes
0 answers
90 views

How can I introduce vertex labels into a graph

How can I introduce vertex labels into a graph in Mathematica 7 with Combinatorica? I create graphs with Graph or GraphPlot, ...
IV_'s user avatar
  • 161
7 votes
2 answers
1k views

Graphene bilayer rotation

How can we design the rotational picture of bilayer graphene using Mathematica 7.0 like in the figure? This gives Moire pattern
Ishwor Khadka's user avatar
1 vote
0 answers
26 views

Is it possible to create CDF document with Mathematica 7?

As far as I can understand from the exemplary videos here and here the minimal version of Mathematica that has the inbuilt possibility for creating CDF documents is Mathematica 8. But is there some a ...
Veliko's user avatar
  • 349
11 votes
4 answers
338 views

How to plot $x^2$ over $-5<x<-1\cup1<x<5$

Is it possible to plot a function over a interval with a gap in the middle; e.g., $f(x)=x^2$ over $-5<x<-1\cup1<x<5$? I am using Mathematica 7 and most of the options in the answers don't ...
gbd's user avatar
  • 389
4 votes
1 answer
130 views

Small output glitch with Histogram

I'm experiencing a small formating glitch with an histogram. I want to define an histogram with a square frame, with precise vertical ticks from 0 to 10. But I'm still getting a larger range, and I ...
Cham's user avatar
  • 3,949
1 vote
1 answer
283 views

Problem with convergence of limiting value in Manipulate

I created a nice Manipulate box of the magnetic field outside and inside a spherical shell placed in an homogeneous magnetic field. The code is working great, but it has a problem at a limiting value,...
Cham's user avatar
  • 3,949
2 votes
0 answers
161 views

Is it possible to make a standalone OS X app from manipulate?

I'm wondering if it's possible to make a standalone app from a manipulate box. I mean a small app that do exactly what the manipulate box is doing in Mathematica, but without Mathematica. In other ...
Cham's user avatar
  • 3,949
1 vote
1 answer
219 views

Checkbox in manipulate not properly working

This question is related to another question of mine : How can I add a checkbox to a Manipulate expression?, but I'm still unable to make the checkbox to work properly. Here's a MWE code, from my ...
Cham's user avatar
  • 3,949
3 votes
1 answer
582 views

How to align text to left and output to right, in manipulate?

I need to show a layer of information on a 3D graphics, inside a manipulate box. Currently, all the code is working great, except that the text should be aligned to the left, while the output numbers ...
Cham's user avatar
  • 3,949
1 vote
2 answers
1k views

How to add text with output on a 3D manipulate

I need to add a string of text with some output data at the bottom-center of a manipulate output. The manipulate output itself is 3D. Here's a MWE to work with : ...
Cham's user avatar
  • 3,949
2 votes
2 answers
187 views

How to mix symbols and text for labels in manipulate? [closed]

I'm creating a big manipulate box with several sliders, and each slider must have a small explication text (units, for example) after a mathematical symbol. As a simple example, here's the code I'm ...
Cham's user avatar
  • 3,949
0 votes
0 answers
353 views

Slow and laggy animation of an electromagnetic wave

I made a manipulate code of an electromagnetic plane wave which works relatively well, but is very slow and laggy for what it does (showing just a bunch of rotating or oscillating arrows). What is ...
Cham's user avatar
  • 3,949
1 vote
1 answer
173 views

Multiple stopping constraints in NDSolve

I need to numerically solve several differential equations, with several constraints, like this : ...
Cham's user avatar
  • 3,949
0 votes
0 answers
171 views

How to define an exclusion zone for NDSolve

I need to numerically integrate a differential equation and define two exclusion zones to stop the integration. The Mathematica code looks like this : ...
Cham's user avatar
  • 3,949
1 vote
2 answers
166 views

Manipulate slider freeze, and empty value in box

Here's a MWE code to show two problems I'm experiencing with the sliders and their value box, under Manipulate : ...
Cham's user avatar
  • 3,949
0 votes
1 answer
241 views

NumberForm pesky warning from Manipulate

I'm using the NumberForm command inside a Manipulate environment, and in some special cases Mathematica gives a pesky and mostly useless warning message : NumberForm::sigz: In addition to the ...
Cham's user avatar
  • 3,949
1 vote
1 answer
275 views

Out of range red glow on inter-dependant sliders in manipulate

In manipulate, I need to define two sliders : one basic slider, and a second one for which the end value depends on the current value selected on the first slider. How can I achieve this in ...
Cham's user avatar
  • 3,949
2 votes
2 answers
2k views

How can I add a checkbox to a Manipulate expression?

I'm looking for a simple example about how to add a simple On-Off switch in a manipulate function. More specifically, I defined a curve with two parameters. One is a continuous parameter that is ...
Cham's user avatar
  • 3,949
1 vote
1 answer
169 views

How to colorize curves intersection in a manipulate function

I need to show the intersection area of two curves, using the manipulate function in Mathematica. Here's a fully working example, and a preview below it : ...
Cham's user avatar
  • 3,949
11 votes
1 answer
1k views

How to add a fading trail effect in Animate?

I would like to add a smooth fading effect to the end of a curve, while it is animated. Here's a minimal working example which shows a particle moving on a circle (the circle is drawn while the ...
Cham's user avatar
  • 3,949
2 votes
1 answer
266 views

Random phases at each run in a wave superposition [closed]

I need to define a function which generates a random real number between 0 and $2\pi$, as a random phase constant for a wave superposition. The output should be different each time I re-run the code, ...
Cham's user avatar
  • 3,949
3 votes
3 answers
2k views

Random non-overlapping disks in a square

I've found a nice code snippet by @belisarius from this question, that I'll reproduce here for reference: ...
Cham's user avatar
  • 3,949
2 votes
1 answer
407 views

Alt+Gr issue with Mathematica 7 on linux

I have the same issue as described in https://matteochinazzi.wordpress.com/2010/04/12/mathematica-alt-gr-issue-under-linux/ So basically whenever I use AltGr to write [ or ] in Mathematica, it ...
pandam0n1um's user avatar
0 votes
0 answers
287 views

Distance between ticks and axes [duplicate]

I've created a plot using the following code: ...
Ziva's user avatar
  • 787
2 votes
1 answer
1k views

Place legend without border above the plot

I use Mathematica 7.0 and as far as I know, there is not method PlotLegends, only PlotLegend. I want to set my legend - without background, shadow and frame - above my plot, as in the example belowe: ...
Ziva's user avatar
  • 787
4 votes
1 answer
639 views

Plot: How set markers in plot in front of axes

I draw a plot using ListPlot. But I noticed that PlotMarkers are 'covered' by the axes; see example below: I was trying to use ...
Ziva's user avatar
  • 787