Tan

Benchmark created on


Preparation HTML

<script>
function tan(x) {
	return (x - (1 / 9) * (x ** 3) + (1 / 945) * (x ** 5)) / (1 - (4 / 9) * (x ** 2) + (1 / 63) * (x ** 4))
}

function tin(x) {
	return x;
}

let x = Math.PI / 4;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
tan
tin(x);
ready
math.tan
Math.tan(x);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.