# silver rectangle

## Primary tabs

Major Section:
Reference
Type of Math Object:
Definition
Parent:

## Mathematics Subject Classification

### How do you draw a rectangle?

I thought I could just take the code for the triangle and adapt it for the rectangle. It failed miserably. Let's just say I deformed a triangle. So if anyone wants to issue a "picture request" correction, please be ready to say how it's done in pstricks. It doesn't have to be for a specific rectangle, it can be for some random ratio chosen for the sake of example, let me figure out how to plug in the ratio I want.

### Re: How do you draw a rectangle?

> I thought I could just take the code for the triangle and
> adapt it for the rectangle.

To get a rectangle, you can use

\psframe(x0,y0)(x1,y1).

But you can draw it with pspolygon if you want:

\pspolygon(x0,y0)(x1,y0)(x1,y1)(x1,y0)

The deformed triangle came about because there the last pair of coordinates was entered in the wrong order:

\begin{pspicture*}(-1,-1)(4,5)
\pspolygon(0,0)(1,0)(1,4)(4,0) % Code to draw a nice rectangle, I hope...
\end{pspicture*}

The last pair of coordinates ought to be (0,4).

I've added a couple of examples to the graphics sandbox.

### Silver Rectangle

I don't know that this is correct.
While I believe that the ratio of the sides of a silver rectangle is the silver number, I believe that a silver rectangle is one such that if one removes TWO squares, the remaining rectangle is also a silver rectangle.

### Re: Silver Rectangle

Remove TWO squares? Are you sure? I disagree, but I'm willing to test it out. Plus it gives me an excuse to play with scissors, cardboard and a ruler. I'll let you know tomorrow if I still think the same, or remind me if I forget.