from a poor family, knar graduated from the university of graz at the age of 19 after studying mathematics and law. in 1821, he became a full professor, a position which he held until his death from a stroke in 1864. he published several books including a two-volume textbook "lehrbuch der elementarmathematik" on elementary mathematics.