How can i use this higher dimmensional equation in p5

decided to start a math script

it reads

x^2 + y^2 = 1


in the reference please find
add can use java math lib

ok, for P5.js find reference here:

1 Like

heres a good example

<!DOCTYPE html>
    <script        </script>
      function updateLabels(x, y){
        var xLabel = document.getElementById('x-label');
        xLabel.innerHTML = 'X: ' + x;
        var yLabel = document.getElementById('y-label');
        yLabel.innerHTML = 'Y: ' + y;
			function setup(){
				var canvas = createCanvas(200, 200);
			function draw(){
				ellipse(mouseX, mouseY, 20, 20);
        updateLabels(mouseX, mouseY);
    <div id="sketch-div"></div>
    <p id="x-label"></p>
    <p id="y-label"></p>

I this a graphic for 2D or for 3D ?

two d first its supposed to be a circle centered on a x and y axis like they example.

Research was done for this topic, for the shape lay out don’t forget the example in p5

Heres a math equation displaying the universe in four-d it should show that there is something missing how can i enter this into a p5 physics generator of some sort

image collected from…0…1…gws-wiz…6…0i71j35i39j0j0i131j0i67j0i10j0i8i13i30.eBpX0Ep8Ya0

Please format all code posts on the forum by either:

  1. highlight your code and using the </> button


  1. using three tick marks ``` before and after your code

When you type html and raw code in your posts, it breaks your posts.

Instead, do it like this:

<em>my code</em>

so that we see it like this:

<em>my code</em>

…and not like this:

my code