User profile: JLBorges

User info
User name:JLBorges
History
Joined:
Number of posts:8202
Latest posts:

Unused Variable
> you can't declare a variable inside an if-condition. The condition in [tt]if( condition )[/tt] ca...

Symbolic variables
See: http://www.ginac.de/tutorial/#Expressions http://www.ginac.de/tutorial/#Polynomial-division

Symbolic variables
Use a library, perhaps. For instance, GiNaC http://www.ginac.de/

Function to always round up to the nearest tenth
[code]#include <iostream> #include <cmath> #include <iomanip> #include <random> // invariant: p < s...

Function to always round up to the nearest tenth
[code]unsigned long long ipow10( unsigned int p ) { return p == 0 ? 1 : 10 * ipow10(p-1) ; } double...