mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 09:00:34 +00:00
added some exports
This commit is contained in:
parent
1ee6b1eace
commit
2bdda23bc8
6
hyper.h
6
hyper.h
@ -551,7 +551,7 @@ struct cell : gcell {
|
||||
// do not add any fields after connection_table (see tailored_alloc)
|
||||
};
|
||||
|
||||
namespace arcm { int degree(heptagon *h); }
|
||||
namespace arcm { int degree(heptagon *h); int valence(); }
|
||||
|
||||
int heptagon::degree() { if(archimedean) return arcm::degree(this); else return S7; }
|
||||
|
||||
@ -4152,6 +4152,10 @@ struct bignum {
|
||||
return leading() * pow(BASE, isize(digits) - 1);
|
||||
}
|
||||
|
||||
ld log_approx() const {
|
||||
return log(leading()) * log(BASE) * (isize(digits) - 1);
|
||||
}
|
||||
|
||||
ld operator / (const bignum& b) const {
|
||||
return leading() / b.leading() * pow(BASE, isize(digits) - isize(b.digits));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user