# Mathober2025_Jacobian

# OctoVsHeptaPolar

For my 8th sketch of **Mathober2025** coded in **LiveCodeLab**, **OctoVsHepta** takes the prompt of ***“Octagonal/Heptagonal”*** and showcases side by side, a figure that has 8 sides and another that has 7 sides and how they slightly differ.

For My 24th Sketch of Mathober2025, I used the same images and added a polar distortion. Which follows the 23rd prompt of **Jacobian as** Jacobian matrix is involved with *cartesian coordinates* to *polar coordinates*.

## Poetry

```ocaml
Octagonal with slightly more
Heptagonal with slightly less
Similar in the creation process
But differences can be seen as the time soars
```

## Images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761010370100/2438ce98-806d-4f8c-ba76-25b01a8e1494.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761010371497/7aa31e47-8fd0-4a35-9789-a7a38a655f24.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761010373339/4c437b69-ccd7-454a-bcd6-f4e80b5c2f74.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761010376630/bef84296-f440-4492-8ed2-231874d8909f.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761010382739/f9ab8d29-4cef-4792-86ae-f94d760ebdf9.png align="center")

## Code

```javascript
//Octagonal
pushMatrix()
move -1.5,0
8 times with i
	rotate sin(time % i),Math.hypot(time %6, cos(time)*5)/10,wave(Math.hypot(sin(time),cos(time)))/10
	if time % 30 > 15
		rect i/(time % 10 + 1)
	else
		line i/(time % 10 + 1)
popMatrix()


//Heptagonal
pushMatrix()
scale 0.5
move 1.5,0,5
7 times with i
	rotate sin(time %i),Math.hypot(time %6, cos(time)*5)/10,wave(Math.hypot(sin(time),cos(time)))/10
	if time % 30 > 15
		rect i/(time % 10 + 1)
	else
		line i/(time % 10 + 1)
popMatrix()
```
