The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Assign a polygon (or any shape) to a variable and view it with Geometry App
01-03-2024, 01:29 AM
Post: #1
Assign a polygon (or any shape) to a variable and view it with Geometry App
Can anyone help me?

I'm trying to create a simple code that requires the input of a complex number and create a polygon with the real e imaginary parts, so I can view it with the Geometry App.

The following code kinda works, just for the input part...

EXPORT Polygon1;

EXPORT PolygonalDraw()
BEGIN

INPUT({{ComplexA,[3]}});

Polygon1:= polygon(
point(0,0),
point(0,RE(ComplexA)),
point(2*RE(ComplexA),
2*RE(ComplexA)),
point(RE(ComplexA),0));

END;

I was hopping that by running this, I can simply click the Plot button and it would be there...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Assign a polygon (or any shape) to a variable and view it with Geometry App - Filipe - 01-03-2024 01:29 AM



User(s) browsing this thread: 1 Guest(s)