Questions tagged [dynamic]

Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.

Filter by
Sorted by
Tagged with
2
votes
1answer
17 views

Plotting eigenfunctions as functions of parameters in the hamiltonian

I'm finding eigenfunctions using NDEigensystem of various hamiltonians. For example, the hamiltonian with Shcrödinger's equation: $$ H u(x)=-\hbar^2 u''(x) + A x^2 u(x). $$ I would like to be able to ...
0
votes
0answers
41 views

Computing of Lyapunov spectrum [closed]

I intent to compute the Lyapunov spectrum of several nonlinear dynamic systems to determine their stability. To do so, I implemented the algorithm from the picture below in MATLAB and obtained some ...
-2
votes
0answers
57 views

Mathematical particle collision problem

There are three types of particles in the container, A, B, and C. If two particles of the same type collide, it will become a B particle; if two particles of different types collide, it will become ...
0
votes
1answer
33 views

Manipulate: variable localization inside nested `Control`

Below is a piece of my code I have trouble with: ...
1
vote
0answers
50 views

Strange behavior of NumberForm with ScientificNotationThreshold option inside Dynamic

Using the ScientificNotationThreshold option inside NumberForm causes erroneous behavior and generates a mystifying error message when used inside Dynamic. For example, running ...
0
votes
1answer
33 views

Why is my dynamic slider no longer working?

This used to work but I accidentally made some unrecoverable edits and it stopped displaying. It supposed to adjust the background color of the current notebook. Please have a look and see what is ...
2
votes
1answer
123 views

Approximate solution of a nonlinear ODE in the form of a Fourier series containing the coefficients of the initial ODE

In this topic we considering nonlinear ODE: $\frac{dx}{dt}= (x^4) \cdot a_1 \cdot sin(\omega_1 \cdot t)-a_1 \cdot sin(\omega_1 \cdot t + \frac{\pi}{2})$ - Chini ODE https://www.maplesoft.com/support/...
0
votes
0answers
37 views

Solving a system of ODEs over a Dynamic Graph

I want to solve a system of ODEs over a dynamical graph. That is, vertices and edges might be added or removed over time and I want to keep solving it. Is it possible to do it using ...
4
votes
1answer
70 views

Modern methods for ODE with complex harmonic oscillations and phasors

We have a differential equation of the following form: $\frac{dx}{dt}=f(x) \cdot a \cdot \sin(\omega \cdot t)-a \cdot \sin(\omega \cdot t + \frac{\pi}{2})$ where $f(x)$ - arbitrary function from state ...
0
votes
0answers
52 views

Using Manipulate with inequality constraint

I'm trying to manipulate the plot of the following function: ...
3
votes
3answers
66 views

A DistanceFunction for use with a mouse in a DynamicModule

I need to have a mouse cursor that identifies points that are close to the mouse position on a graphics plot. The difficulty is that the scaling of the plot makes this difficult. I think I am missing ...
0
votes
0answers
31 views

How to plot the stable and unstable manifolds of a hyperbolic fixed point of a nonlinear system of a map?

I would like to plot the stable and unstable manifold of the Hénon map x_{n+1} = 1 - a*x_n^2 + by_n, y_{n+1} = x_n. I believe that iterate the inverse map i would get the stable curve, and for the ...
1
vote
2answers
38 views

How to save the values of a dynamic variable constantly?

Suppose I have: x = Dynamic[MousePosition[]] How can I save all the values of x when I move the mouse? Using the code below add the positions even if the mouse ...
4
votes
0answers
35 views

GeoListPlot - How can I create edges between points on a GeoGraphic object by clicking on them?

I'm attempting to use Mathematica to manually create a graph from a set of GPS coordinates (vertices). This graph will define the paths an autonomous rover will travel along. Here's what I have so far ...
0
votes
0answers
23 views

Dynamically fixing a Control within Manipulate

Consider the following code Manipulate[x, Control[{{y, 0, "y"}, {1, 0}}], Control[{{x, 0, "x"}, {1, 0}, Enabled -> Dynamic[y == 1]}]] where ...
2
votes
0answers
31 views

Is there some way to make Dynamic track only a part of a variable [duplicate]

I often run into a situation like the one exemplified by the code below. The basic idea is to use a single DynamicModule variable as a list or association of values ...
2
votes
2answers
39 views

How can I optimize the Manipulate function in plotting?

Ahoy! I'm trying to create a Fourier series visualization tool that allows me to interactively view a Fourier series as a function of the number of terms using ...
3
votes
0answers
24 views

AutoAction not working with Locator and LocatorPane

This code is from the "Neat Examples" part on the LocatorPane page of the documentation: ...
0
votes
0answers
21 views

How to retrieve variables in the Manipulate's 'dynamic' controller environment

I'm trying to code to generate 'dynamic' controllers and to set initial values (initStart and initEnd): ...
4
votes
1answer
51 views

AnimationRunning option of Animate misbehaving

This simple example gives a strange error. ...
1
vote
1answer
72 views

Dynamic updating and editing of matrix

I am trying to create a user interface for a demo project that uses matrix as an input. I provide user with a default matrix (as an example) for a start, but user can edit it or add extra row to it ...
0
votes
0answers
38 views

How to set an initial value of slider?

So I have Slider[Dynamic@x, {0,3}] Dynamic@Plot[1-Cos[2*x*t],{t,0,Pi}] And I'd like x presents on the slider at x=1 value in the beginning and from that point I ...
5
votes
1answer
222 views

What is Westworld's Rehoboam Thinking? How to generate its graphical interface?

Westworld season 3 is another science fiction show containing a circular motif.The supercomputer Rehoboam predicts and controls human behaviour, and is shown physically as a large sphere. The ...
3
votes
0answers
52 views

Simple neural network with feedbacks in state-space form

Having studied more or less in detail the mechanisms of working with the state-space that Mathematica provides us with, I asked myself: can these tools be applied to neural networks? This article ...
2
votes
1answer
31 views

Understanding strange behavior with ToExpression in DynamicModule: Losing Apply

Short Version Consider the following code: ...
2
votes
1answer
30 views

How can I show the value of a function on Manipulate alongside the plot?

Suppose I have the following Manipulate function, Manipulate[Plot[Sin[a x + b], {x, 0, 6}], {a, 1, 4}, {b, 0, 10}] running ...
2
votes
1answer
30 views

How to enforce size of a ClickPane inside a Column

I would like to use an image as a ClickPane, inside a column. I want the image to appear at its native size. Outside of the column, this works: ...
5
votes
0answers
38 views

How to monitor progress with external language code?

I'm trying to figure out how to get tqdm (a python progress monitoring tool) to work with ExternalEvaluate and "ExternalLanguage"...
8
votes
2answers
115 views

How to pause an Animator with Mouseover?

I would like my Animator to pause when the mouse is not over it. For example, here it continues to update even when it's not moused-over: ...
0
votes
0answers
33 views

Error in CDFDeploy

I'm deploying a Manipulate code to a CDF using CDFDeploy. Everything was going fine until now. All of a sudden, I'm getting the ...
1
vote
0answers
54 views

Troubles With Dynamic,Panel in Riemann Sum Program

Tl:DR: Scroll all the way down General overview : This program aims to construct a demonstration of the Riemann sum by summing up the area of rectangles under the graph of a function....
7
votes
1answer
97 views

TableView interactive use

I am attempting to use TableView (added in version 12.1) interactively to edit data and save the edited data. The following works. ...
2
votes
1answer
76 views

Use the InteractiveTradingChart style slider in IntervalSlider

I want to combine IntervalSlider with a small plot,just like the InteractiveTradingChart. https://reference.wolfram.com/language/ref/InteractiveTradingChart.html I can only find the closest example ...
0
votes
0answers
34 views

transparent plots flash white when updating

As my university moves to online instruction, I am trying to make high-quality video presentations using Mathematica slide shows. I can easily get the content I want, but it seems tricky to display ...
0
votes
1answer
18 views

How to set variable range for Slider2D in DynamicModule?

I would like to have a Slider2D for a variable x but at the same time I have RadioButtonBar for another variable U. I want the Slider2D's range to change as I change U. I wrote this code but it doesn'...
2
votes
0answers
62 views

Interactive Graph Construction

I'm interested in constructing an interactive GUI graph generator, where I can add and delete vertices and edges. I'm aware of this question, and this is but a quick follow-up to this answer. I would ...
4
votes
1answer
617 views

My Computer crashes every time after I run this - Abort Dynamic Evaluation error

This code makes my computer crash, every time I run it. ...
1
vote
1answer
76 views

Table of Dynamic Disks

I'm trying to create a dynamic interface to generate disks depending on 3 parameters : x-coordinate, y-coordinate and radius. The disks are generated as soon as the "export" button is pressed. I'm ...
1
vote
3answers
70 views

DynamicModule: Assign Initial Values to Variables as List of Strings

Working within DynamicModule, how can a list of strings as be used to assign initial values to variables? For example, what nested functions can be used as ...
0
votes
0answers
31 views

A trouble localizing variables with DynamicModule

I have created an application that simulates a random sample for the experiment of rolling a dice three times and recording the outputs as $(a,b,c)$. The code is the following ...
0
votes
0answers
17 views

How to show two (or more) plots, but only evaluate one in Manipulate? [duplicate]

I have a lot of spectral data in .csv format and I need to assign each spectral line to the respective sinusoid. The general idea was to load the dataset in Mathematica, ListPlot the data and then use ...
0
votes
0answers
14 views

Flipping diagonals in a regular polygon

Say, I have a triangulation of an octagon: ...
1
vote
1answer
32 views

Extracting the output of FlipView and then updating

Say I have a triangulation of an octagon: ...
2
votes
2answers
70 views

Changing a diagonal inside a regular $n$-gon when clicked

I am trying to understand the use of Dynamic, DynamicModule, EventHandler, etc. I created an ...
3
votes
2answers
69 views

Too much space after Slider

In part of a dynamic module I have a slider and I wish to put the units after the value. So I have done this: ...
2
votes
0answers
73 views

How to smoothly zoom into GeoGraphics without label flicker?

I would like to animate zooming into maps in a smooth fashion while showing labels - but without them flickering or jumping: ...
3
votes
1answer
66 views

Nested front-end-only EventHandler

Bug introduced in 11.3 or earlier, and persisting through 12.0 CASE:4372001 confirmed I am running into an issue trying to improve the performance of my user interface by moving as much of the ...
5
votes
1answer
59 views

Creating a dynamic list of parameter defined functions

I'm trying to create a list of functions that is dynamic in size and defines function names like so: ...
1
vote
1answer
68 views

Defining functions in a CDF and Manipulate [closed]

I want to deploy an interactive CDF that may depend on several functions. How do I define those functions? I'm using Manipulate, I defined the function inside it ...
8
votes
2answers
85 views

Avoid clipping label in IntervalSlider?

For custom appearances IntervalSlider seems to clip on the right side: ...

1
2 3 4 5
25