User:Barellor/sandbox/graph

= $$\pi^n$$ = {	"version": 2, "width": 400, "height": 200, "data": [ {			"name": "table", "values": [ {					"x": 0, "y": 1 },				{					"x": 1, "y": 3.141593 },				{					"x": 2, "y": 9.869604 },				{					"x": 3, "y": 31.00628 }			]		}	],	"scales": [ {			"name": "x", "type": "linear", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x" },		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "line", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"interpolate": { "value": "monotone" },					"stroke": { "value": "#f0f" },					"strokeWidth": { "value": 3 }				}			}		}	] } = $$\sqrt[n]{\pi}$$ = {	"version": 2, "width": 400, "height": 200, "data": [ {			"name": "table", "values": [ {					"x": 1, "y": 3.141593 },				{					"x": 2, "y": 1.772454 },				{					"x": 3, "y": 1.464592 },				{					"x": 4, "y": 1.331335 }			]		}	],	"scales": [ {			"name": "x", "type": "linear", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x" },		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "line", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"interpolate": { "value": "monotone" },					"stroke": { "value": "#f50" },					"strokeWidth": { "value": 3 }				}			}		}	] }

= $$n^2 \bmod 1$$ = {	"version": 2, "width": 400, "height": 200, "data": [ {			"name": "table", "values": [ {					"x": 0, "y": 0 },				{					"x": 0.25, "y": 0.0625 },				{					"x": 0.5, "y": 0.25 },				{					"x": 0.75, "y": 0.5625 },				{					"x": 0.999, "y": 0.998001 },				{					"x": 1, "y": 0 }			]		}	],	"scales": [ {			"name": "x", "type": "linear", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "x", "scale": "x" },		{			"type": "y", "scale": "y" }	],	"marks": [ {			"type": "line", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"interpolate": { "value": "monotone" },					"stroke": { "value": "steelblue" },					"strokeWidth": { "value": 3 }				}			}		}	] }