Added support for negative powers in algo
This commit is contained in:
parent
c1f1cf5a38
commit
ada4626131
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ int main(int argc, char **argv)
|
|||
cout << square(2.1f) << endl;
|
||||
cout << cube(2.1f) << endl;
|
||||
|
||||
cout << spower<-2>(2.1f) << endl;
|
||||
cout << spower<2>(2.1f) << endl;
|
||||
cout << spower<3>(2.1f) << endl;
|
||||
cout << spower<4>(2.1f) << endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue