Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
taylor_expand function for Taylor1 and TaylorN (#121)
* Added function and macro `taylor_expand` for expanding arbitraty functions. * Deleted macros and set order as keyword argument so methods doesnt clash `taylor_expand(f,x0::Int64)` and `taylor_expand(f,order)` clashed. * Added some tests for `taylor_expand`. * un-exported taylor_expand macros. * Updated taylor_expand tests. * Added taylor_expand method for TaylorN and warning if number of variables is changed. * Fix travis issue for taylor_expand (hopefully). * Added taylor_expand! and tests for Taylor1. Followed suggestion from @lbenet. * Add function-like behavior for Taylor1, TaylorN, HomogeneousPolynomial (#118) * Add function-like behavior for Taylor1 * Relocate new code * Add function-like behavior for TaylorN * Fix TaylorN functor methods * Add tests for Taylor1 * Add more Taylor1 tests * Add TaylorN tests; more Taylor1 tests; add missing evaluate methods * Add function-like behavior for HomogeneousPolynomial and corresponding tests * Add missing tests for HomogeneousPolynomial * Add another test for Taylor1s * Fix test * Add extra evaluate method for Taylor1 (suggested by @blas-ko) * Add an evaluate test for mixtures (more to come) * Add tests for mixtures; add/fix evaluate methods * A small fix * Add missing evaluate methods for mixtures and tests * Update docs * Add evaluate method and tests * Fix new method * Update docstrings * Changes suggested by @lbenet 's review * Added method for evaluating a TaylorN with an array of TaylorNs. * Added taylor_expand! method for TaylorN * Added some test for taylor_expand! * Documentation for taylor_expand and taylor_expand! * Added function and macro `taylor_expand` for expanding arbitraty functions. * Deleted macros and set order as keyword argument so methods doesnt clash `taylor_expand(f,x0::Int64)` and `taylor_expand(f,order)` clashed. * Added some tests for `taylor_expand`. * un-exported taylor_expand macros. * Updated taylor_expand tests. * Added taylor_expand method for TaylorN and warning if number of variables is changed. * Fix travis issue for taylor_expand (hopefully). * Added taylor_expand! and tests for Taylor1. Followed suggestion from @lbenet. * Add function-like behavior for Taylor1, TaylorN, HomogeneousPolynomial (#118) * Add function-like behavior for Taylor1 * Relocate new code * Add function-like behavior for TaylorN * Fix TaylorN functor methods * Add tests for Taylor1 * Add more Taylor1 tests * Add TaylorN tests; more Taylor1 tests; add missing evaluate methods * Add function-like behavior for HomogeneousPolynomial and corresponding tests * Add missing tests for HomogeneousPolynomial * Add another test for Taylor1s * Fix test * Add extra evaluate method for Taylor1 (suggested by @blas-ko) * Add an evaluate test for mixtures (more to come) * Add tests for mixtures; add/fix evaluate methods * A small fix * Add missing evaluate methods for mixtures and tests * Update docs * Add evaluate method and tests * Fix new method * Update docstrings * Changes suggested by @lbenet 's review * Added method for evaluating a TaylorN with an array of TaylorNs. * Added taylor_expand! method for TaylorN * Added some test for taylor_expand! * Documentation for taylor_expand and taylor_expand! * Corrected silly mistake from rebasing. * Rearanged taylor_expand tests to another place. They use set_variables internally. * called coeff_table directly so it doesn't make a copy. * changed docs for taylor_expand * Changed taylor_expand for TaylorN. * It doesn't use set_variables() anymore. * typeof(x0) is preserved if possible. * Changed taylor_expand! for update! * Added 1 more test... * Little performance and compatibility fix for taylor_expand
- Loading branch information
Showing
5 changed files
with
160 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters