Questions tagged [parametric-equations]

A parametric equation is a mathematical definition of a set of values defined by a function of one or several parameters. They are frequently used for defining curves by using a parametrized function defining the coordinates of the curve's points.

A parametric equation is a mathematical definition of a set of values defined by a function of one or several parameters. They are frequently used for defining curves by using a parametrized function defining the coordinates of the curve's points.

External reference:

101 questions
1
vote
1 answer

How to interpret the partial effect plots for parametric terms while using gratia::draw()?

I am asking a question akin to this one: What does the y-axis "effect" mean after using gratia::draw for a GAM but am wondering the same question for parametric terms not smooths. My data looks like this: df<-structure(list(spreg = structure(c(2L,…
David Smith
  • 305
  • 1
  • 8
1
vote
1 answer

THREE.JS, change default index of buffer geometry, converting a geometry designed for a THREE.PointsMaterial to a THREE.MeshBasicMaterial (or other)

In this code pen, you'll find a parametric flower that is using a red THREE.MeshBasicMaterial with a wireframe, it looks like this: with wireframe: false, it looks like this: Basically, I just want it to be a solid geometry I tried to set the…
1
vote
1 answer

gnuplot : parametric equation, positive variable OK, negative variable confusing

Using gnuplot (5.4 patchlevel 2 - see script below), I plotted the parametric equation from this Wikipedia entry: https://en.wikipedia.org/wiki/Cyclocycloid If the given epicycloid variables R=3, r=1, d=0.5 are used (see below), the result matches…
1
vote
1 answer

Butterfly Curve with all the folds of the wings of different levels have different colors

I have plotted the Butterfly curve with the following code: def butterfly_curve(timestamps): x=np.zeros(timestamps.size) y=np.zeros(timestamps.size) for k in range(0,timestamps.size): x[k] =…
ghxk
  • 33
  • 4
1
vote
1 answer

Tweaking the constant values of a parametric equation with sliders in matplotlib

I'm trying to plot this parametric equation and use Slider widget from matplotlib to make the plot interactive. I want to be able to tweak the value of the constants a and k and see how the plot changes. I have been able to produce this so far, but…
user16492384
1
vote
1 answer

How should I be implementing a view clipping plane in a 3D Engine?

This project is written entirely from scratch in Java. I've just been bored ever since Covid started, so I wanted something that would take up my time, and teach me something cool. I've been stuck on this problem for about a week now though. When I…
1
vote
0 answers

Changing the steepness of a parametric equation

I have a working Octave script the creates a spiral Script: clc close all clear all u=linspace(0,4*pi,100); v=linspace(0,pi,100); [u,v]=meshgrid(u,v); x=u.*sin(u).*cos(v); y=u.*cos(u).*cos(v); z=-u.*sin(v) .- sin(60/180 * pi)*(sqrt((x).^2 +…
Rick T
  • 3,349
  • 10
  • 54
  • 119
1
vote
2 answers

Using If Statements To Check If Something Raises An Error

I'm trying to write a program that will solve questions about parametric equations for me. I'm trying to do the following: I'm trying to find 2 answers to a parametric equation. The first answer will be the positive square root. The second answer…
Mario8494
  • 15
  • 3
1
vote
1 answer

parametric plot using matplotlib Python

I would like to write a program which draw parametric plot. I have to use matplotlib and sympy with n steps, n is the number of segments approximating the curve. I have a problem with using n. I put a program that doesn't use n and library…
stickyjack
  • 39
  • 5
1
vote
1 answer

Gnuplot and banana curve

I am new user of gnuplot software. I can built a simple parametric curve, with this template: set size square set parametric set trange [MIN:MAX] fx(t) = ... fy(t) = ... plot fx(t),fy(t) Now, i attempted to apply this template for plot a banana…
PavelDev
  • 579
  • 4
  • 12
1
vote
0 answers

Symbolically solving equation for a given variable in Maxima

I can solve an equation using Maxima by using the commands below. kill(all); A:A; phase:phase; solve(A*cos(2*pi*f*t+phase)=y,phase); And it gives me the correct answer. phase=acos(y/A)-2*f*pi*t But when I try and solve for just the top portion of…
Rick T
  • 3,349
  • 10
  • 54
  • 119
1
vote
0 answers

Plotting a Parametric Spline Curve Using a Periodic Spline

I want to plot a curve like this using a periodic spline: I have the following values: And so, I have created the following matlab code to plot this function: %initializing values t = [1,2,3,4,5,6,7,8,9,10,11,12,13]; tplot = [1:0.1:13]; x =…
SeePlusPlus
  • 147
  • 1
  • 8
1
vote
1 answer

Maxima: How can I get a variable as the sum of the function of other variables from a system of equations?

The problem is this; I have a system of equations, which describes the workings of a system. (In this case, an electronic system.) The system has inner variables, as well as input and output variables. What I would want, is to get the output…
1
vote
1 answer

Plot two functions in one plot in rstudio

I have two functions fun1 <- function(x) -(2 * (sin(x) * cos(x))) fun2 <- function(x) 2 * (cos(x) * sin(x)) I want to plot them both in one diagram. I have the parametrization \gamma (x) =(-2*sin(x)*cos(x),2*cos(x)*sin(x)) And actually if it was…
schwartz
  • 189
  • 8
1
vote
1 answer

How to estimate the parameters of an exponential truncated power law using Python?

There is an equation of exponential truncated power law in the article below: Gonzalez, M. C., Hidalgo, C. A., & Barabasi, A. L. (2008). Understanding individual human mobility patterns. Nature, 453(7196), 779-782. like this: It is an exponential…