repo.or.cz
/
liba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
python/src/liba.pyx: fix array for sqrt_u32 and sqrt_u64
[liba.git]
/
tests
/
trajtrap.rs
blob
0097f2a6987d9fdbbaccb65e6352d5f0af9709fd
1
#[test]
2
fn trajtrap() {
3
let x = 0.5;
4
{
5
let mut a = liba::trajtrap::new();
6
std::print!("{} ", a.gen(2.0, 2.0, -2.0, 0.0, 2.0, 0.0, 0.0));
7
std::println!("[{}, {}, {}]", a.pos(x), a.vel(x), a.acc(x));
8
}
9
}