Execute and Track Math

Ever needed to run engineering calculations but got stuck setting up Python? Or wanted to iterate on analysis without losing track of changes?

In this tutorial, we'll create and modify a Bode plot for an RC filter, showing how Dystr makes complex calculations simple and trackable.

Creating Your First Calculation

  1. Click the "+ New Compute" button
  2. In the input box at the bottom, describe what you want to calculate and hit Enter:
Create a bode plot for a passive low pass RC filter. R = 700, C = 1uF. Print the -3dB frequency for the filter (in Hz) above the plot. Also, draw a vertical red dashed line at the -3dB frequency

  1. Click "Run Compute"

Dystr automatically:

  • Wrote the necessary Python code
  • Started a new compute environment in your Workspace
  • Created the Bode plot
  • Calculated and displayed the cutoff frequency
  • Added the vertical marker

Iterating on Your Analysis

Want to compare different resistor values? Simply describe the change:

Lets overlay a comparison between 700 and 900 ohms

The code updates automatically to show both filter responses. You can continue refining by:

  • Adjusting parameters
  • Adding new comparisons
  • Modifying the visualization

Fine-Tuning Parameters

Need to try a different value?

  1. Click into the code
  2. Change parameters directly (e.g., R from 900 Ω to 1200 Ω)
  3. Click "Save + Run Compute"

Tracking Changes

Every run is automatically tracked in the Activity Log. Your team can:

  • See when calculations were run
  • Review parameter changes
  • Compare results over time
  • No version control needed!

Understanding the Math

Click "Math View" to see:

  • Clear explanations of the calculations
  • Mathematical equations in standard notation
  • Step-by-step breakdown of the analysis

This helps team members understand the computation regardless of their coding experience.

Next Steps

Now that you know how to create and modify calculations, try:

Start Simple:

  • Create calculations for your common engineering tasks
  • Try different types of plots and visualizations
  • Experiment with parameter variations

Build Complexity:

  • Combine multiple analyses in sequence
  • Create parameter sweep studies
  • Build optimization routines
  • Import and analyze real data

Integrate with AI Assistants:

  • Use Chat to help write complex calculations
  • Create Workers that run computations on a schedule
  • Build automated analysis pipelines that:
    • Process incoming data
    • Run calculations
    • Generate reports
    • Alert the team to important results

Related Links