Librairy Math, cpp + java