	public void testDeg() throws Exception {
		final JsclMathEngine mathEngine = JsclMathEngine.instance;
		Assert.assertEquals("2.0", mathEngine.evaluate("deg(0.03490658503988659)"));
		Assert.assertEquals("-2.0", mathEngine.evaluate("deg(-0.03490658503988659)"));
		Assert.assertEquals("π", mathEngine.evaluate("deg(" + String.valueOf(Math.PI) + ")"));
		for (int i = 0; i < 1000; i++) {
			double value = Math.random() * 100000;
			assertEquals(value, Double.valueOf(mathEngine.evaluate("rad(deg(" + value + "))")));
			assertEquals(value, Double.valueOf(mathEngine.evaluate("deg(rad(" + value + "))")));
		}
	}

	public void testDeg() throws Exception {
		final JsclMathEngine mathEngine = JsclMathEngine.instance;
		Assert.assertEquals("2.0", mathEngine.evaluate("deg(0.03490658503988659)"));
		Assert.assertEquals("-2.0", mathEngine.evaluate("deg(-0.03490658503988659)"));
		Assert.assertEquals("180.0", mathEngine.evaluate("deg(" + String.valueOf(Math.PI) + ")"));
		for (int i = 0; i < 1000; i++) {
			double value = Math.random() * 100000;
			assertEquals(value, Double.valueOf(mathEngine.evaluate("rad(deg(" + value + "))")));
			assertEquals(value, Double.valueOf(mathEngine.evaluate("deg(rad(" + value + "))")));
		}
	}
