marc
b68e6a7979
Spelling correction: covert => convert
2019-09-26 21:38:19 +02:00
Gagandeep Singh
ca53aee927
Merge pull request #12485 from amiller27/remove-asserts
...
Replaced some asserts in non-test code with exceptions (#5090 )
2019-09-27 00:19:41 +05:30
Francesco Bonazzi
84db1c1d59
Merge pull request #17516 from drybalka/tensor_subs_ind
...
Tensor substitute index implemented properly
2019-09-26 06:50:25 +02:00
Aaron Miller
586fa0b1ca
Added tests
2019-09-25 17:43:42 -04:00
Aaron Miller
fd148d3d8f
Corrected check for None
2019-09-25 17:43:02 -04:00
Aaron Miller
5ab71a826c
Changed exception types, updated error messages
2019-09-25 17:43:02 -04:00
Aaron Miller
0f109a9773
Fixed line length
2019-09-25 17:43:02 -04:00
Aaron Miller
d7e82197af
Replaced some asserts in non-test code with exceptions ( #5090 )
2019-09-25 17:43:02 -04:00
Oscar Benjamin
f5e965947a
Merge pull request #17495 from oscargus/Sreplace
...
Change S(0) to S.Zero etc
2019-09-25 10:51:12 +01:00
Oscar Gustafsson
1f88a07f34
Fixed test failures
2019-09-25 01:29:05 +01:00
Oscar Gustafsson
66e53e2121
Fixed some issues
2019-09-25 01:29:05 +01:00
Oscar Gustafsson
0ddf09eaeb
Everything pass locally
2019-09-25 01:24:37 +01:00
Oscar Gustafsson
26e6850053
More rewrites
2019-09-25 01:23:33 +01:00
Oscar Gustafsson
ea0540fe8c
Partial fixes
2019-09-25 01:08:25 +01:00
Oscar Gustafsson
a915843e9a
Replaced -S.Infinity with S.NegativeInfinity
2019-09-25 01:05:43 +01:00
Oscar Gustafsson
e58004d7d9
Removed S-expressions from relationals
2019-09-25 01:05:42 +01:00
Oscar Gustafsson
cb5546ab4b
Change S(0) to S.Zero etc
2019-09-25 01:02:57 +01:00
Oscar Benjamin
5b8ea7b1e7
Merge pull request #17539 from oscargus/sincdiff
...
Updated sinc derivative
2019-09-25 00:34:28 +01:00
Oscar Benjamin
557a212082
Merge pull request #17584 from sylee957/fix_symbolic_sets_iter
...
Fix iteration for symbolic set objects
2019-09-25 00:07:28 +01:00
Oscar Benjamin
ded4cd210f
Merge pull request #17637 from sylee957/fix_pow_mod
...
Extend modular exponentiation capability
2019-09-24 23:20:53 +01:00
S.Y. Lee
5b589f797d
Merge pull request #17630 from sylee957/fix_block_collapse_zero
...
Fix zero matrix added with zero matrix giving zero
2019-09-24 07:35:33 +09:00
S.Y. Lee
121ea47da4
Use unevaluated power for better recursion
2019-09-23 10:39:36 +09:00
S.Y. Lee
f2f5ed2add
Fix typo in docstring
2019-09-23 09:51:48 +09:00
S.Y. Lee
1ea2b2045c
Merge pull request #17635 from czgdp1807/fix_rust_printer
...
rust_code now executes correct methods
2019-09-23 07:22:06 +09:00
S.Y. Lee
24c66c0522
Add tests
2019-09-22 23:54:08 +09:00
S.Y. Lee
90db355806
Reorganize test cases
2019-09-22 23:13:44 +09:00
S.Y. Lee
f80e654e2b
Add notes about discovered issues
2019-09-22 23:10:25 +09:00
S.Y. Lee
dec1e0fb05
Add return type checking
2019-09-22 23:03:23 +09:00
S.Y. Lee
19d6a18544
Fix type issues with modular power, and extend the algorithm for nested powers
2019-09-22 22:57:10 +09:00
czgdp1807
8d58b1cc7f
rust printer now executes correct method
2019-09-21 12:51:56 +05:30
S.Y. Lee
5a7d6d78bc
Add tests for matrix addition
2019-09-19 07:48:23 +09:00
S.Y. Lee
a35bcc4559
Fix block collapse with zero block matrix
2019-09-19 07:44:05 +09:00
Aaron Meurer
58e78209c8
Merge pull request #17623 from cbm755/dollars_stirling
...
docs: stirling: try dollar signs instead of ticks
2019-09-18 00:45:42 -05:00
S.Y. Lee
6404315caf
Fix sphinx error
2019-09-18 13:52:04 +09:00
S.Y. Lee
1873c28798
Update docs
2019-09-18 12:25:34 +09:00
Oscar Benjamin
30b12bacf3
Merge pull request #17589 from sylee957/fix_gram_schmidt
...
Fix gram schmidt for complex numbers
2019-09-18 01:32:20 +01:00
S.Y. Lee
75cb5409e9
Merge pull request #17266 from stevenleeS0ht/add_maple_code_printer
...
Add maple code printer
2019-09-18 09:15:43 +09:00
S.Y. Lee
304ebde37e
Merge pull request #17617 from czgdp1807/rail_fence
...
Added Rail Fence Cipher
2019-09-18 08:26:28 +09:00
S.Y. Lee
7f112ef631
Fix print_maple_code settings kwargs, and review the docstrings
2019-09-18 06:31:49 +09:00
S.Y. Lee
664f3969df
Add doc for maple code
2019-09-18 06:21:21 +09:00
S.Y. Lee
6b93f40be5
Add autodoc directive in rst
2019-09-18 06:03:44 +09:00
Aaron Meurer
6dd8447c5e
Merge pull request #14396 from 3nr1c/issue_2709
...
Fix "Poly(domain='RR[y,z]') doesn't work" (#2709 )
2019-09-17 15:54:36 -05:00
Colin B. Macdonald
a3354324c4
docs: maybe math mode more appropriate here?
...
`S^d(n,k)` isn't code so makes sense to typeset as mathematics. But
`n`, `k` and `d` here also refer to input parameters to the Python
function. There are ambigious cases around: would be a good to have
a style guide that deals with this...
2019-09-17 11:11:44 -07:00
Colin B. Macdonald
1f4ae05f38
docs: stirling: try dollar signs instead of ticks
2019-09-17 10:52:02 -07:00
Colin B. Macdonald
afb5c5f1ec
docs: add commas and full-stop
...
In ascii source this looked nice, but the html rendering needs either
bullets or punctuation. I went with punctuation.
2019-09-17 10:49:48 -07:00
czgdp1807
b0bb47b963
rebased work
2019-09-17 22:55:00 +05:30
Jashanpreet Singh
def1c20c22
Merge pull request #17345 from ishanaj/beam_diagram_2
...
A method to plot beam diagram using sympy's own plot()
2019-09-17 16:43:43 +05:30
Francesco Bonazzi
61240415c1
Merge pull request #17614 from Upabjojr/rubi_code_generation
...
Rubi edits to make code generation easier
2019-09-17 11:07:13 +02:00
Steven Lee
a03911b2fd
Fix several test case for improved parentize
2019-09-17 17:04:02 +10:00
Steven Lee
54c3f6d4d5
Add parentize ability in several function of maple printer
2019-09-17 17:01:05 +10:00
Francesco Bonazzi
bca636452b
doctest fix
2019-09-17 08:25:02 +02:00
S.Y. Lee
70936137ff
Resolve merge conflict
2019-09-17 14:21:41 +09:00
S.Y. Lee
4f3dc3dc6c
Add documentation for set iteration
2019-09-17 09:53:42 +09:00
S.Y. Lee
048cd3230f
Efficient evaluation
2019-09-17 09:53:42 +09:00
S.Y. Lee
fc6fff8421
Fix doctest
2019-09-17 09:53:42 +09:00
S.Y. Lee
370630906b
Use return
2019-09-17 09:53:42 +09:00
S.Y. Lee
e7bbc8eac2
Use consistent error
2019-09-17 09:53:42 +09:00
S.Y. Lee
eeabf0ae4e
Use StopIteration for exit
2019-09-17 09:53:42 +09:00
S.Y. Lee
4e6e8e16df
Exhaustive intersection computation
2019-09-17 09:53:42 +09:00
S.Y. Lee
010ebc9d0b
Omit type errors and fix python 2 test
2019-09-17 09:53:41 +09:00
S.Y. Lee
4e3c2d6a7a
Add __iter__ for symbolic set objects
2019-09-17 09:53:36 +09:00
Francesco Bonazzi
a657725cb4
doctest fix
2019-09-17 00:00:29 +02:00
Aaron Meurer
484963c868
Add sphinx-math-dollar to the docs installation instructions
2019-09-16 15:29:36 -06:00
Francesco Bonazzi
e3ef476576
remove list of rules applied
2019-09-16 22:48:38 +02:00
Aaron Meurer
f154b667e9
Install sphinx-math-dollar as a separate Sphinx extension
2019-09-16 11:55:16 -06:00
Steven Lee
431aa052c0
Fix a bug of id matrix printer of maple printer
2019-09-16 10:50:19 +10:00
Steven Lee
e5b1622ad9
Improve maple printer for id matrix and add extra test case for id matrix
2019-09-16 10:48:22 +10:00
Francesco Bonazzi
580c727dc5
missing doctest dependency
2019-09-15 17:40:13 +02:00
Francesco Bonazzi
69e45229ed
doctest dependency
2019-09-15 17:02:39 +02:00
Francesco Bonazzi
a7ff1ed3d7
Rubi Loader object
2019-09-15 16:02:52 +02:00
Ishan Joshi
cca3f76c9f
removed error which occured in draw() function when end condition of the load was not applied, corrected documentation and added comments
2019-09-15 15:44:19 +05:30
Steven Lee
a21c61ddf2
Add ability to print undetermined size identity Matrix
2019-09-15 15:49:04 +10:00
Steven Lee
615a205878
Merge branch 'master' into add_maple_code_printer
2019-09-14 19:10:17 +10:00
Steven Lee
78631b2bca
Add testcase for noninline
2019-09-14 16:54:25 +10:00
Steven Lee
3d9edc991b
Add [not supported] test case
2019-09-14 12:56:24 +10:00
Steven Lee
46bcb7e12e
Add some testcase for special function printting
2019-09-14 12:52:17 +10:00
Steven Lee
ee56244122
Remove all FIXME marks in both maple printer implementation and maple printer test case
2019-09-14 08:25:59 +10:00
Francesco Bonazzi
5676c896bd
minor fix
2019-09-13 23:56:54 +02:00
Francesco Bonazzi
0a594d28b3
reshuffled
2019-09-13 22:34:31 +02:00
Francesco Bonazzi
64cd5e8928
working on
2019-09-13 22:30:24 +02:00
Francesco Bonazzi
e43ee054e9
work in progress
2019-09-13 19:26:11 +02:00
Steven Lee
48d2d9cd3f
All test pass, all # PROBLEM removed
2019-09-13 14:33:20 +10:00
Steven Lee
ae3b80565c
Allow unknown function in maple
2019-09-13 14:32:20 +10:00
Steven Lee
5a427d2dec
Adjust some matrix indexing test case
2019-09-13 14:03:27 +10:00
Steven Lee
06d7e70a6d
add just test case for test containers
2019-09-13 13:59:06 +10:00
Steven Lee
9e3d6c8416
bugfix about some matrix related printing issue of maple printer
2019-09-13 13:57:06 +10:00
Steven Lee
b93aae554f
Some adjustment in test case for maple printer, remove not important test and improve some testcase
2019-09-13 13:42:18 +10:00
Steven Lee
ef8dc709c5
Bugfix piecewise function printing issue in maple printer
2019-09-13 13:37:12 +10:00
Steven Lee
6688d799d4
Bugfix: fix bug of matpow of maple printer
2019-09-13 13:24:30 +10:00
Steven Lee
255985f5a0
Bugfix: fix a bug in print pow in maple printer
2019-09-13 13:14:03 +10:00
Steven Lee
3df43111e8
relocate the problem test case of maple printer
2019-09-13 13:04:48 +10:00
Steven Lee
5f19756616
Fix bugs of printing Identity Matrix Symbol
2019-09-12 19:35:46 +10:00
S.Y. Lee
2d700c4b3c
Merge pull request #17557 from oscarbenjamin/unflatten
...
Don't flatten ProductSet args
2019-09-12 10:18:04 +09:00
Aaron Meurer
a4e79dad82
Skip the latex() docstring in math_dollar
2019-09-10 17:18:25 -06:00
Aaron Meurer
ab79f54eb3
Don't match $ as math if the first character is a space
...
This makes it not match commandline examples like
$ cd dir
$ ls
We do want to support math with a newline so that docstrings can be line
wrapped.
2019-09-10 16:51:45 -06:00
Aaron Meurer
8f14ae42a7
Merge branch 'master' into math_dollar
2019-09-10 16:30:42 -06:00
Aaron Meurer
b498465b30
Fix an example in the math_dollar documentation
2019-09-10 16:27:33 -06:00
Aaron Meurer
1894e48b7f
Use $$ for math in the bessel.py docstrings
...
This is just to demonstrate the math_dollar Sphinx extension. I don't have
plans to update every docstring at this time.
2019-09-10 16:23:59 -06:00
Aaron Meurer
b4a6ac2884
Enable the math_dollar Sphinx extension
...
I did a grep of the codebase and there don't seem to be any instances of $$ in
docstrings which would produce false positives for this.
2019-09-10 16:23:16 -06:00
Aaron Meurer
c614f154d7
Merge pull request #17504 from sylee957/github_link
...
Use linkcode instead of viewcode
2019-09-10 16:15:51 -06:00
Aaron Meurer
dec3cfef38
Add support for math in docstrings to the math_dollar Sphinx extension
2019-09-10 16:03:12 -06:00
Aaron Meurer
eeff6790c5
Add the math_dollar Sphinx extension from https://github.com/certik/sphinx-jax/blob/master/exts/math_dollar.py
...
See issue #13519
2019-09-10 16:02:14 -06:00
Oscar Benjamin
e53c5b7f14
Merge pull request #16581 from RituRajSingh878/bessel_airy
...
Add solvers for Bessel and Airy differential equations
2019-09-08 19:24:35 +01:00
Ritu Raj Singh
0199be7788
clean code
2019-09-08 11:33:44 -04:00
Francesco Bonazzi
fcf84d99dd
Merge pull request #17583 from Upabjojr/matdiff_more_fixes
...
Bug fixes on matrix derivatives
2019-09-08 15:51:52 +02:00
Denys Rybalka
c104d215af
Added substitute_indices() static method
2019-09-08 15:05:48 +02:00
Ritu Raj Singh
a639533c5c
cleaned code, test and added hint to doc
2019-09-08 08:58:42 -04:00
Francesco Bonazzi
31d8cf3c16
Merge branch 'matdiff_more_fixes' of https://github.com/Upabjojr/sympy into matdiff_more_fixes
2019-09-08 11:08:13 +02:00
Francesco Bonazzi
5a4cfb7f1a
use .is_identity
2019-09-08 11:06:49 +02:00
Ritu Raj Singh
6e18d7df77
removed series test
2019-09-08 03:50:41 -04:00
Ritu Raj Singh
044a903935
updated bessel match and added test case
2019-09-07 22:11:35 -04:00
S.Y. Lee
7f484970fd
Add test for conjugate dot
2019-09-08 11:03:03 +09:00
S.Y. Lee
e3cb5dc9ef
Use conjugate for dot
2019-09-08 10:46:33 +09:00
Ritu Raj Singh
a6ba6a3d35
Merge branch 'master' into bessel_airy
2019-09-07 21:08:13 -04:00
Oscar Benjamin
1459b63f08
Merge pull request #17586 from RituRajSingh878/factorable
...
removed bug and added corresponding test cases
2019-09-07 22:18:01 +01:00
Ritu Raj Singh
2aa8030cf6
modified code and added test cases
2019-09-07 11:34:41 -04:00
Ishan Joshi
7244849171
made draw() accept length as a symbol for both simple and composite beams. Also optimized parts of the code.
2019-09-07 13:47:56 +05:30
Ritu Raj Singh
5ce7d34337
removed bug and added corresponding test cases
2019-09-06 20:19:29 -04:00
Ritu Raj Singh
ba7d7391dc
Merge branch 'master' of https://github.com/sympy/sympy into bessel_airy
2019-09-06 19:17:28 -04:00
Oscar Benjamin
6b3db876f2
Evaluate Complement of different size ProductSets
2019-09-06 22:16:51 +01:00
Oscar Benjamin
982efb5bf6
Merge pull request #17582 from RituRajSingh878/match
...
removed bug from match and added test case
2019-09-06 19:02:15 +01:00
Francesco Bonazzi
166c6ad043
Update matmul.py
2019-09-06 19:30:28 +02:00
Ritu Raj Singh
ac5d002675
modified factorable method
2019-09-05 21:33:51 -04:00
Ritu Raj Singh
9316c4bf4d
cleaned code and removed small bug from factorable
2019-09-05 21:17:24 -04:00
Ritu Raj Singh
1de8a9b46f
removed bug and added test case
2019-09-05 21:05:26 -04:00
Oscar Benjamin
bc7c55dbef
Capitalise error messages
2019-09-06 01:41:01 +01:00
Oscar Benjamin
0e1b207fd1
Check both sets in ProductSet Complement
2019-09-06 01:40:03 +01:00
Francesco Bonazzi
d399c575c8
Bug fixes on matrix derivatives
2019-09-06 00:37:35 +02:00
S.Y. Lee
609cc738a4
Run with sdist
2019-09-05 07:58:35 +09:00
Oscar Benjamin
38a17c4854
Merge pull request #17574 from sylee957/fix_could_extract_minus_sign
...
Fix canonical relationals for set equality
2019-09-04 23:26:47 +01:00
Ritu Raj Singh
f2e035f772
Merge branch 'bessel_airy' of https://github.com/RituRajSingh878/sympy into bessel_airy
2019-09-04 13:31:48 -04:00
Ritu Raj Singh
bd705cab34
modified match_2nd_linear_bessel function
2019-09-04 13:31:06 -04:00
Ritu Raj Singh
1a78b8b3ff
Merge branch 'master' into bessel_airy
2019-09-04 12:40:10 -04:00
Oscar Benjamin
cd39c1f32d
Merge pull request #17576 from sympy/moorepants-patch-1
...
Added doc build instructions for Mac.
2019-09-04 14:12:41 +01:00
S.Y. Lee
8ea5488756
Fix tests
2019-09-04 18:32:57 +09:00
S.Y. Lee
c3bc771899
Update gitignore file
2019-09-04 17:22:55 +09:00
S.Y. Lee
dc453b0d37
Create tarball with commit_hash.txt and make the doc builder look up for the specific hash
2019-09-04 17:06:07 +09:00
Oscar Benjamin
c3d16ec830
Add missing imports
2019-09-04 02:27:08 +01:00
Jason K. Moore
c990b10b8b
Added doc build instructions for Mac.
2019-09-03 18:18:17 -07:00
Oscar Benjamin
f21353b34c
Don't evaluate Eq(Tuple, AppliedUndef)
2019-09-04 01:59:56 +01:00
Oscar Benjamin
e813afc8fa
Return unevaluated Eq for ProductSets
2019-09-04 01:51:57 +01:00
Oscar Benjamin
7255c67ab7
Merge pull request #17573 from ethankward/unused
...
Remove some unused imports
2019-09-04 00:15:41 +01:00
S.Y. Lee
9faecb32ce
Change to Ne
2019-09-04 06:47:06 +09:00
S.Y. Lee
00be1ca8ae
Add tests
2019-09-04 06:44:39 +09:00
S.Y. Lee
1e9b85b7e4
Check before calling the method
2019-09-04 06:29:26 +09:00
eward
d58666f92f
remove unused imports
2019-09-03 12:12:00 -07:00
Ritu Raj Singh
671ecb27da
modified test case of series method
2019-09-03 14:08:48 -04:00
Ritu Raj Singh
67146d0b55
modified matching
2019-09-03 13:55:29 -04:00
Ritu Raj Singh
86977e8f13
modified bessel matching method
2019-09-03 12:36:36 -04:00
Oscar Benjamin
ade4ebc63e
Merge pull request #17572 from sylee957/add_complement_symmetricdifference_relational
...
Add as_relational for Complement and SymmetricDifference
2019-09-03 11:55:53 +01:00
Kalevi Suominen
1e9844a749
Merge pull request #17496 from maurogaravello/factorial-leading-term
...
Wrong results for as_leading_term()
2019-09-03 12:51:33 +03:00
S.Y. Lee
9162bc48dd
Use Xor
2019-09-03 15:48:49 +09:00
S.Y. Lee
36bdae20a6
Add as_relational for Complement and SymmetricDifference
2019-09-03 14:26:39 +09:00
Ritu Raj Singh
b5406e8a4e
Merge branch 'master' into bessel_airy
2019-09-03 00:07:54 -04:00
Oscar Benjamin
8f8a1db261
Merge pull request #17338 from RituRajSingh878/lie_group
...
added method to solve factors independently in dsolve
2019-09-03 01:12:36 +01:00
Oscar Benjamin
671a12ad41
Add whitespace
2019-09-02 23:46:36 +01:00
Oscar Benjamin
b10ff7325f
Clean up more XFAILs
2019-09-02 23:43:57 +01:00
Oscar Benjamin
eb9acb13df
Move nth_algebraic up in classify_ode
2019-09-02 23:27:24 +01:00
Oscar Benjamin
230df1854a
Remove unnecessary check and remove XFAILs
2019-09-02 23:04:02 +01:00
Ritu Raj Singh
d62c3cfdf5
modified redundant method
2019-09-02 12:13:14 -04:00
Ritu Raj Singh
f37ed88248
added test case for the coverage and modifed factorable method
2019-09-02 08:17:13 -04:00
Oscar Benjamin
3a80050d3d
Add tests for ProductSet.contains
2019-09-02 12:13:41 +01:00
Oscar Benjamin
5a905353b5
Add tests for Tuple._eval_Eq
2019-09-02 11:55:28 +01:00
Oscar Benjamin
33787592c2
Fix ProductSet.as_relational and Tuple._eval_Eq
2019-09-02 11:45:36 +01:00
Ritu Raj Singh
3ad0b0bef5
added tests and modifed factorable method
2019-09-02 01:45:24 -04:00
Oscar Benjamin
714a5081c9
Fix ImageSet test
2019-09-02 02:25:13 +01:00
Oscar Benjamin
0b03a0bf94
Add tests for ProductSet
2019-09-02 02:15:22 +01:00
Oscar Benjamin
5cf8b37e4e
Fix joint_rv_types after changing ProductSet
2019-09-02 02:14:12 +01:00
Oscar Benjamin
385e0bd9b1
Comment failing test...
2019-09-02 02:14:12 +01:00
Oscar Benjamin
acd171d448
Add test for pretty printing unary ProductSet
2019-09-02 02:14:12 +01:00
Oscar Benjamin
1819f7f850
Fix printing of unary ProductSet
2019-09-02 02:14:12 +01:00
Oscar Benjamin
acec8ee629
Deprecate iterable arguments to ProductSet
2019-09-02 02:14:12 +01:00
Oscar Benjamin
71a90c9965
Fix Eq handling of Tuple
2019-09-02 02:14:12 +01:00
Oscar Benjamin
5bc7c7fa0f
Add tests for ProductSet
2019-09-02 02:14:12 +01:00
Oscar Benjamin
8d65f85871
Sympify set arguments to ImageSet
2019-09-02 02:14:12 +01:00
Oscar Benjamin
170280fadf
Don't flatten ProductSet args
2019-09-02 02:14:12 +01:00
S.Y. Lee
0aa3d116b0
Merge pull request #17526 from oscarbenjamin/intersect_finiteset
...
Improved handling of intersections involving FiniteSet
2019-09-02 09:46:13 +09:00
Ritu Raj Singh
3304051b74
corrected formate of equation
2019-09-01 18:33:27 -04:00
Ritu Raj Singh
2d290dfd5d
modified factorable method and _preprocess method
2019-09-01 18:20:17 -04:00
Ritu Raj Singh
63d2708c66
added factorable into ode.rst file
2019-09-01 10:38:52 -04:00
maurogaravello
82aaa03f9e
Changed the returned value in a case
2019-09-01 14:18:56 +02:00
Steven Lee
41bd9302b4
Mark the problemic tests (need help from core team of Sympy)
2019-09-01 22:12:09 +10:00
Steven Lee
6332100a99
Merge https://github.com/sympy/sympy into add_maple_code_printer
2019-09-01 21:40:00 +10:00
Oscar Benjamin
edd9f10f8f
Merge pull request #17503 from sachin-4099/15947_xReplace
...
Core: Fixes _xreplace error while differentiating function of function
2019-09-01 11:10:46 +01:00
Oscar Benjamin
ac72d1c51d
Merge pull request #15905 from oscargus/simplifyrelational
...
[WIP] Improved simplification of Relational
2019-09-01 11:09:43 +01:00
Kalevi Suominen
b10bf37ce4
Merge pull request #17554 from maxencemayrand/quaternion_operations
...
Quaternion: Fix bug where operations are left unevaluated
2019-09-01 09:27:03 +03:00
Oscar Gustafsson
f8d160d0fb
Fixed test failure
2019-09-01 02:36:40 +01:00
Oscar Gustafsson
64eda898d2
Better(?) compatison
2019-09-01 02:36:40 +01:00
Oscar Gustafsson
c4bf10aaf1
Code cleanup
2019-09-01 02:36:40 +01:00
Oscar Gustafsson
eed6eb41ff
Generalized test responses
2019-09-01 02:33:42 +01:00
Oscar Gustafsson
15c9e3190a
Improved consistency in output and added tests
2019-09-01 02:33:42 +01:00
Oscar Gustafsson
e65d3fd200
Fixed issue with non-polynomial relations
2019-09-01 02:33:42 +01:00
Oscar Gustafsson
91d4a8996f
Fixed issue with non-polynomial relations
2019-09-01 02:33:41 +01:00
Oscar Gustafsson
1bc69342a5
Added support for multivariate linear functions
2019-09-01 02:33:41 +01:00
Oscar Gustafsson
d1df845ea2
Improved comment
2019-09-01 02:33:41 +01:00
Oscar Gustafsson
1b5f52c921
Corrected issue and added support for univariate polynomials
2019-09-01 02:33:41 +01:00
Oscar Gustafsson
d32bb92163
Intermediate non-working version
2019-09-01 02:31:54 +01:00
Oscar Gustafsson
8c45deb790
Version (almost) taking care of potentially complex symbols
2019-09-01 02:31:22 +01:00
Oscar Gustafsson
b9e85d58a5
Improved simplification of Relational
2019-09-01 02:29:32 +01:00
Sachin Agarwal
4277186fb4
Error Message Improved
2019-09-01 06:23:20 +05:30
Oscar Benjamin
b3243ed6a4
Merge pull request #17474 from oscarbenjamin/lambda_unpack
...
Generalise Lambda function signature to allow tuple unpacking
2019-09-01 01:39:46 +01:00
Sachin Agarwal
bee7edefda
Error Message Improved
2019-09-01 05:39:41 +05:30
Oscar Benjamin
097914e145
Correct Lambda docstrings
2019-08-31 23:56:13 +01:00
Oscar Benjamin
8c32870a53
Deprecate non-tuple Lambda signatures
2019-08-31 23:56:13 +01:00
Oscar Benjamin
0a7d6a0b26
Revert to is_symbol in Lambda
2019-08-31 23:52:07 +01:00
Oscar Benjamin
7b9984ce46
Fix __eq__ for Lambdas with different signatures
2019-08-31 23:52:07 +01:00
Oscar Benjamin
a8f3786ff6
Fix Lambda.__eq__ for dummy symbols
2019-08-31 23:52:07 +01:00
Oscar Benjamin
f721983527
Convert Lambda signature to tuple frmo list
2019-08-31 23:52:07 +01:00
Oscar Benjamin
020c37ae88
Add is_Symbol to IndexedBase
2019-08-31 23:52:07 +01:00
Oscar Benjamin
f904adf5da
Pass tuple for Lambda signature in sets
2019-08-31 23:52:07 +01:00
Oscar Benjamin
ebc5d829e1
Convert symbol set/list to tuple for Lambda
2019-08-31 23:52:06 +01:00
Oscar Benjamin
25ccc2d260
Add Lambda.__hash__ back
2019-08-31 23:52:06 +01:00
Oscar Benjamin
37900248b3
Convert Lambda argument list to tuple in polys
2019-08-31 23:52:06 +01:00
Oscar Benjamin
dcbe4dec3e
Add tests for generalised Lambda signature
2019-08-31 23:52:06 +01:00
Oscar Benjamin
7e8fbd8849
Cleanup of Lambda
2019-08-31 23:52:06 +01:00
Oscar Benjamin
aa0a0ec4a9
Generalise Lambda function signatures
2019-08-31 23:52:06 +01:00
Maxence Mayrand
f1f2b0a3fa
Quaternion: test ValueError for mul/add with non-commutative expr
...
Put back tests for the cases where an instance of Quaternion is
multiplied or added with an object which is not an expression with
`is_commutative` set to `True`. The test verify that this gives a
ValueError.
2019-08-31 17:44:38 -04:00
Maxence Mayrand
b35239959c
Quaternion: ValueError when mul/add with non a commutative expression
...
Raise a ValueError when an instance of Quaternion is multiplied or
added with an object which is not an expression with `is_commutative`
set to `True`.
2019-08-31 13:49:51 -04:00
Oscar Benjamin
c842c1aff9
Merge pull request #17553 from ethankward/f841
...
Removing unused variables from codebase
2019-08-31 18:29:31 +01:00
Maxence Mayrand
539473f117
Quaternion: Fix bug where operations are left unevaluated
...
There are several operations on quaternions which are left unevaluated
in some common situations. One of the most obviously problematic one
is the following, which is actually part of the tests on this module.
```python
>>> from sympy import Quaternion, symbols
>>> x, y, z, w = symbols('x y z w')
>>> q = Quaternion(x, y, z, w)
>>> q.normalize()
x + y*i + z*j + w*k/sqrt(w**2 + x**2 + y**2 + z**2)
>>> type(q.normalize())
<class 'sympy.core.mul.Mul'>
```
Here, `q.normalize()`, instead of returning a quaternion, returns an
unevaluated `Mul` object. The expected output would have been an
instance of `Quaternion` whose arguments are `x/sqrt(w**2 + x**2 +
y**2 + z**2)`, `y/sqrt(w**2 + x**2 + y**2 + z**2)`, etc.
The test for this is `assert q.normalize() == Quaternion(x, y, z, w) /
sqrt(w**2 + x**2 + y**2 + z**2)`. It passes, but both sides of the
equation are not quaternions, which is not what we would expect.
There are two reasons for this bug:
1. Division for quaternions is not implemented. For instance, `q / 2`
is left unevaluated.
2. Operations between a quaternion and an expression which is neither
a quaternion nor a complex number is left unevaluated. For example, `q
* q.norm()**-1` is left unevaluated since `(q.norm()**-1).is_complex`
is `None`.
Both problems have been corrected.
2019-08-31 09:50:02 -04:00
Ritu Raj Singh
4a0e4c4bf2
Merge branch 'master' into lie_group
2019-08-31 08:27:34 -04:00
Oscar Benjamin
e3c76d044f
Merge pull request #17527 from RituRajSingh878/lie_bug
...
modified lie_group method
2019-08-31 11:22:27 +01:00
eward
0ff2b6bab2
remove variables that are assigned and not used / update tests
2019-08-30 13:50:32 -07:00
eward
54f8cbfda0
remove variables that are assigned and not used
2019-08-30 12:11:06 -07:00
Ritu Raj Singh
cfaddd699d
modified _ode_lie_group method
2019-08-30 14:35:32 -04:00
Ritu Raj Singh
ae1b5de4fc
modified lie_group method
2019-08-30 13:25:30 -04:00
Ishan Joshi
9166efaee4
corrected the error message
2019-08-30 18:26:21 +05:30
Kalevi Suominen
6c03115c5c
Merge pull request #17551 from maxencemayrand/quaternion_mul
...
Quaternion: Fixed the order of multiplication with a complex number
2019-08-30 14:54:43 +03:00
Oscar Benjamin
7cedc37cfd
Merge pull request #17414 from oscargus/sumproductassumptions
...
Added assumption methods to Sum and Product
2019-08-30 04:51:20 +01:00
Oscar Benjamin
c5a7235c44
Merge pull request #17549 from ethankward/undefined_names
...
Fix some undefined names
2019-08-30 04:30:18 +01:00
Maxence Mayrand
3a0c748504
Quaternion: Fixed the order of multiplication with a complex number
...
Fixed an issue that when a complex number on the left is multiplied by
a quaternion on the right, the multiplication is performed in the
reversed order.
Example before the fix:
-----------------------
In [1]: from sympy import Quaternion, I
In [2]: J = Quaternion(0, 0, 1, 0)
In [3]: K = Quaternion(0, 0, 0, 1)
In [4]: I * J == K
Out[4]: False
In [5]: I * J == -K
Out[5]: True
-----------------------
I also added a test to make sure that multiplying a complex number by
a quaternion is performed in the correct order. (And I corrected a
typo.)
2019-08-29 21:53:55 -04:00
Oscar Benjamin
e4f2e08f81
Merge pull request #16612 from sylee957/rewrite_sign_heaviside
...
Rewriting signum to heaviside theta
2019-08-30 02:44:04 +01:00
Oscar Benjamin
fe2ff6ac23
Remove trailing whitespace
2019-08-30 01:52:10 +01:00
Oscar Benjamin
02ea6c9a0b
Merge pull request #17548 from asmeurer/abc-lint
...
Move the code in clashing() in abc.py to the module level
2019-08-30 01:48:49 +01:00
Oscar Benjamin
771515535b
Merge branch 'master' into sumproductassumptions
2019-08-30 01:47:00 +01:00
Oscar Benjamin
a94bd27833
Merge pull request #17385 from sylee957/css_style
...
Fix HTML rendering of parameters and returns section
2019-08-30 01:32:55 +01:00
Oscar Benjamin
be65c83376
Merge pull request #16508 from sylee957/fix_hadamard_power
...
Fix matrix-matrix hadamard power
2019-08-30 01:22:27 +01:00
Aaron Meurer
9dbe4bba05
Fix redefined name in abc.py
2019-08-29 17:12:47 -06:00
eward
b0e1ac21a1
test more simple_roots
2019-08-29 16:11:28 -07:00
eward
907b4ee732
use self.basic_root
2019-08-29 16:11:13 -07:00
eward
0475925bfb
i_.is_zero branch can never be reached
2019-08-29 16:10:50 -07:00
eward
8a37e12556
import I
2019-08-29 16:10:30 -07:00
eward
82feab6345
input
2019-08-29 16:10:07 -07:00
eward
c172fcf4a3
import os
2019-08-29 16:09:55 -07:00
eward
15e41b8b0a
DE.case
2019-08-29 16:09:47 -07:00
eward
992ba4ac5b
test_are_coplanar
2019-08-29 16:09:35 -07:00
eward
926a0fb549
add missing GeometryEntity import
2019-08-29 16:09:16 -07:00
Aaron Meurer
58dd2b6c7e
Move the code in clashing() in abc.py to the module level
...
This makes linters such as pyflakes not complain about undefined names in the
function. This way is preferable regardless because the doctests for the
function, which have been moved to the module docstring, can actually be run.
Previously, clashing was deleted at the end of the module, so it was
impossible for the doctester to run it.
See https://github.com/sympy/sympy/pull/17544#issuecomment-526373164 .
2019-08-29 16:46:46 -06:00
Ritu Raj Singh
c580aabdaa
break ode_lie_group functions into different functions
2019-08-29 17:35:53 -04:00
Ritu Raj Singh
fa00a5aa70
modified lie_group method
2019-08-29 15:02:51 -04:00
Oscar Benjamin
c755769f6a
Fix FiniteSet._eval_Eq for symbolic elements
2019-08-29 17:09:36 +01:00
Oscar Benjamin
31c2dfa2ed
Improve is_subset for sets of arbitrary symbols
2019-08-29 16:12:10 +01:00
Oscar Benjamin
72482f363b
Fix corner case in FiniteSet intersection
2019-08-29 16:12:10 +01:00
Oscar Benjamin
040828760b
Fix corner case in FiniteSet intersection
2019-08-29 16:12:10 +01:00
Oscar Benjamin
2e72e90d8b
Cleanup in _handle_finitesets
2019-08-29 16:12:10 +01:00
Oscar Benjamin
4dd67488e8
Remove XFAIL for issue 9808
2019-08-29 16:12:09 +01:00
Oscar Benjamin
9e887431ae
Add test coverage for FiniteSet Intersection
2019-08-29 16:12:09 +01:00
Oscar Benjamin
59dcdd344e
Fix tests for new FiniteSet Intersection output
2019-08-29 16:12:09 +01:00
Oscar Benjamin
ca16c55e0a
Change/comment failing test in test_solveset
2019-08-29 16:12:09 +01:00
Oscar Benjamin
d635509acd
New algorithm for FiniteSet intersections
2019-08-29 16:12:09 +01:00
Oscar Gustafsson
215b9ee31f
Merge pull request #17538 from sylee957/fix_latex_set_op
...
Fix latex printing of set operators
2019-08-29 16:18:53 +02:00
Christopher Smith
d8ab3166e8
Merge pull request #17512 from smichr/Range2
...
Range accepts symbolic arguments
2019-08-29 08:08:43 -05:00
Christopher Smith
61610e4b7e
Merge pull request #17533 from smichr/subpre
...
powsimp correctly handles sign extraction from signed base
2019-08-29 07:44:37 -05:00
Christopher Smith
2353f05b8e
make len an int
2019-08-29 06:50:03 -05:00
Christopher Smith
f8c2e78ccf
Merge pull request #17534 from smichr/shortc
...
allow And/Or.subs to short-circuit
2019-08-29 05:31:15 -05:00
Oscar Gustafsson
811be78c93
Updated sinc derivative
2019-08-29 10:29:57 +02:00
Chris Smith
dc80e71a60
capture TypeError
2019-08-28 22:24:56 -05:00
S.Y. Lee
595374f416
Add proper parenthesis
2019-08-29 09:21:57 +09:00
Christopher Smith
25e4e1f41f
Merge pull request #17490 from Soniyanayak51/remove_interval_inconsistency
...
Remove interval inconsistency
2019-08-28 15:36:13 -05:00
Chris Smith
7336902339
fix tests
2019-08-28 15:19:35 -05:00
Christopher Smith
c0a065f15c
Update pycode.py
2019-08-28 13:43:50 -05:00
Christopher Smith
591d2ab3be
Update test_pycode.py
2019-08-28 13:42:06 -05:00
Chris Smith
024857754c
17530: allow And/Or.subs to short-circuit
2019-08-28 11:38:52 -05:00
Chris Smith
f7328a021d
correct powsimp when extracting sign
2019-08-28 10:58:47 -05:00
Ritu Raj Singh
85ac26fc35
updated lie_group and added test cases
2019-08-28 11:26:56 -04:00
Oscar Benjamin
5c643041e2
Merge pull request #17499 from harsh9200/master
...
FIXED : Make the Sphinx modules headers match the filenames
2019-08-28 12:11:15 +01:00
Chris Smith
906ef3799c
allow for symbols in Range
2019-08-28 01:13:20 -05:00
Ritu Raj Singh
64a273048b
modified lie_group method
2019-08-27 13:39:13 -04:00
Oscar Benjamin
3d8a56298c
Merge pull request #17491 from gschintgen/emptyset
...
Sets: Replace is_EmptySet by a new is_empty attribute
2019-08-27 00:38:43 +01:00
Harsh Agarwal and S.Y. Lee
95c54310b4
Update doc/src/modules/plotting.rst
...
Co-Authored-By: S.Y. Lee <sylee957@gmail.com >
2019-08-27 03:24:07 +05:30
Ritu Raj Singh
2af2122df1
modified redundant method and added test case for factorable
2019-08-26 16:09:38 -04:00
Gilles Schintgen and Oscar Benjamin
712410110c
pickling tests: Move deprecation handling for is_EmptySet.
...
Co-Authored-By: Oscar Benjamin <oscar.j.benjamin@gmail.com >
2019-08-26 19:23:29 +00:00
Ritu Raj Singh
73cff37872
modified factorable method and _remove_redundant method
2019-08-26 10:53:16 -04:00
Harsh Agarwal
d7379970cd
Removed All Indexes
2019-08-26 19:59:37 +05:30
Denys Rybalka
73c9af216b
Tensor substitute index implemented properly
2019-08-26 12:34:14 +02:00
S.Y. Lee
a29cb79dcf
Merge pull request #17501 from sylee957/fix_math_lambdify
...
Reorder allow_unknown_functions handling
2019-08-26 19:12:01 +09:00
Gilles Schintgen
3f92af9593
Remove unneeded unchanged import in test_sets.py
2019-08-26 07:43:42 +00:00
Gilles Schintgen
8c2491555e
Sets: simpler test for ProductSet.is_empty == None
2019-08-26 07:41:41 +00:00
Ishan Joshi
864a0a099b
made plot limits relative, handled the case where length and magnitude
...
of loads are symbols
2019-08-26 12:42:32 +05:30
S.Y. Lee
c0590db745
Use cdots
2019-08-26 10:31:07 +09:00
Gilles Schintgen
74b7727be8
Sets: some more .is_empty improvements
2019-08-25 20:33:55 +00:00
Ritu Raj Singh
de930efdbc
Merge branch 'master' into lie_group
2019-08-25 11:49:39 -04:00
Oscar Benjamin
f88589f451
Merge pull request #17419 from RituRajSingh878/dsolve_redundant
...
modified _nth_algebraic_redundant method for general dsolve
2019-08-25 15:25:55 +01:00
Harsh Agarwal
f609860aee
Indent
2019-08-25 19:39:03 +05:30
Harsh Agarwal
75df23f506
Indentation error
2019-08-25 18:28:49 +05:30
Harsh Agarwal
e6d31428d7
edited for index change
2019-08-25 15:21:09 +05:30
Harsh Agarwal
a3db50eb55
added index.srt
2019-08-25 15:19:29 +05:30
S.Y. Lee
4a8103d0db
Fix typo
2019-08-25 17:28:02 +09:00
Harsh Agarwal
079f859169
duplicate error
2019-08-25 13:08:55 +05:30
Kalevi Suominen
fa1b3f9788
Merge pull request #17476 from divyanshu132/add-parameters-section-to-docs
...
Extended Polycyclic Group docstrings
2019-08-25 09:08:48 +03:00
Divyanshu
a541de7121
update
2019-08-25 07:57:35 +05:30
Gilles Schintgen
0af2b4078b
Sets: Add proper docstring for .is_empty property
...
Also fixes one typo and two broken LaTeX formulas.
2019-08-24 21:18:49 +00:00
Gilles Schintgen
dfa1c480e0
Sets: .is_empty fixes and improvements (from code review)
2019-08-24 20:37:20 +00:00
Harsh Agarwal
773a8e7178
typo error
2019-08-25 01:58:24 +05:30
S.Y. Lee
0a3eb6cce2
Add a dot
2019-08-25 05:25:52 +09:00
S.Y. Lee
708c3839a5
Fix scalar power documentation and added missing doc for HadamardProduct and HadamardPower doc for sympy website
2019-08-25 05:09:32 +09:00
Divyanshu
fa5d6a9475
minor-update
2019-08-25 01:32:43 +05:30
S.Y. Lee
772d27cf5d
Extend hadamard power
2019-08-25 05:00:42 +09:00
S.Y. Lee
ccb1a826af
Remove workaround and change inheritance scheme
2019-08-25 04:49:32 +09:00
S.Y. Lee
d7057858c5
Fix typo
2019-08-25 04:18:42 +09:00
S.Y. Lee
1d698707a7
Fix crypto doc
2019-08-25 04:18:42 +09:00
S.Y. Lee
cfce843296
Experiment with a new css
2019-08-25 04:18:42 +09:00
S.Y. Lee
c45c637307
Use linkcode instead of viewcode
2019-08-25 03:25:12 +09:00
Harsh Agarwal
0de580c7f8
Added index for solvers and core
2019-08-24 23:05:03 +05:30
Ritu Raj Singh
a35dd6639d
corrected doc
2019-08-24 23:04:05 +05:30
Ritu Raj Singh
d5053b7bba
removed doit
2019-08-24 20:31:55 +05:30
Sachin Agarwal
37f5b9ac54
FIXES#15947:_xreplace error differentiating function of function
2019-08-24 20:02:05 +05:30
S.Y. Lee
188fa7a06d
Reorder handling of allow_unknown_functions
2019-08-24 23:10:15 +09:00
Soniya Nayak
cf9b34726d
Added tests for intevals involving oo and -oo.
2019-08-24 18:20:18 +05:30
Soniya Nayak
8d31298482
Minor fix for intervals ending with -oo.
2019-08-24 18:20:10 +05:30
Soniya Nayak
61207f2876
Removed interval inconsistency involving oo as opening point.
...
Returned empty set if starting point is infinity in an inteval.
2019-08-24 18:20:01 +05:30
Kalevi Suominen
9c900ebf41
Merge pull request #17494 from sachin-4099/17479_NonLinSolve
...
Solvers: Fixed Attribute Error in NonLinSolve
2019-08-24 13:56:46 +03:00
Harsh Agarwal
e1b0e32278
FIXED : Make the Sphinx modules headers match the filenames #17493
2019-08-24 13:46:33 +05:30
Ishan Joshi
37007e6356
Merge branch 'master' into beam_diagram_2
2019-08-24 13:21:24 +05:30
Gilles Schintgen
0a11c51f17
Reinstate .is_EmptySet as a deprecated Set property
2019-08-23 21:56:00 +00:00
Gilles Schintgen
5705dd3f9a
Fix compact case in Interval.is_empty; add UniversalSet.is_empty
...
- Compact case in Interval.is_empty can now actually be reached...
- Add proper test for it.
- Add UniversalSet.is_empty == False
2019-08-23 21:08:20 +00:00
Gilles Schintgen
232cef8942
Fix #17471 : ImageSet with baseset=EmptySet; add ProductSet.is_empty
...
ImageSet with a constant/variable-free Lambda will check if baseset
is_empty before returning either EmptySet or FiniteSet.
ProductSet.is_empty is also added in this commit (otherwise one of
the existing tests fails).
2019-08-23 20:39:39 +00:00
Aaron Meurer
30c90c3c23
Merge pull request #17379 from ShubhamKJha/rcall_branch_2
...
Improvement in satask: Reduce the need of costly rcall() on SymPy expression
2019-08-23 14:26:02 -06:00
Divyanshu
ee96143ff6
update
2019-08-24 00:13:24 +05:30
Divyanshu Thakur and Oscar Gustafsson
18a1602f66
Apply suggestions from code review
...
Co-Authored-By: Oscar Gustafsson <oscar.gustafsson@gmail.com >
2019-08-23 23:53:27 +05:30
Divyanshu Thakur and Oscar Gustafsson
258dced306
Apply suggestions from code review
...
Co-Authored-By: Oscar Gustafsson <oscar.gustafsson@gmail.com >
2019-08-23 23:53:02 +05:30
Christopher Smith
f76caaffba
Merge pull request #17343 from oscargus/regressions
...
Added some tests and fixed some bugs
2019-08-23 11:58:45 -05:00
Sachin Agarwal
7ab2194032
Fixes#17479: Attribute Error in nonlinsolve
2019-08-23 18:28:01 +05:30
Christopher Smith
472ca67f56
Merge branch 'master' into regressions
2019-08-23 07:46:33 -05:00
Shubham Kumar Jha
dd12ec6102
Simplified sathandlers. Now new sathandlers require only an apply() method (returning an NNF object) to work. Also simplified logic for rcall on CNF object
2019-08-23 17:46:41 +05:30
maurogaravello
c4698d4c55
Wrong results for as_leading_term()
...
The as_leading_term() for both factorial and gamma functions
return wrong result whenever the arguments tend to infinity.
Indeed gamma(2 + 1/n).as_leading_term() and factorial(2 + 1/n).as_leading_term()
return respectively gamma(1/n) and factorial(1/n), which are wrong results.
In this pull request, _eval_as_leading_term() functions are implemented
for both gamma and factorial functions.
This is in the direction of issue 17463.
Now the return values, when the arguments tend to infinity, are the
original functions. Probably the correct return value should be None, but
for compatibility conditions it is for the moment better the former one.
Incidentally, this PR corrects also the wrong results of issue 17431.
2019-08-23 14:04:58 +02:00
Sachin Agarwal
a8ded05108
Fixes#17479: Attribute Error in nonlinsolve
2019-08-23 13:24:18 +05:30
Oscar Gustafsson
f472a8cdcd
Merge pull request #17457 from oscargus/testexamples
...
Testing examples
2019-08-23 08:51:45 +02:00
Oscar Gustafsson
3b1ff8f719
Merge pull request #17278 from oscargus/atan2_zero_complex
...
Added evaluation of atan(0, complex) and fixed issue with re/im in Piecewise
2019-08-23 08:50:22 +02:00
Oscar Gustafsson
2bbb2c09b4
Merge pull request #17375 from ethankward/polygamma_evalf
...
polygamma improvements (evaluation, real and positivity determination)
2019-08-23 08:49:23 +02:00
Oscar Gustafsson
d852a08ad5
Merge pull request #17477 from smichr/equals
...
use equals as fallback in solve
2019-08-23 08:08:52 +02:00
Christopher Smith
2c581ccde8
Merge pull request #17489 from sachin-4099/17473_InvalidComparisonError
...
Integrals: Fixed InvalidComparison Error from Integrate
2019-08-22 22:09:44 -05:00
Gilles Schintgen
4a6994057e
Sets: Replace is_EmptySet by a new is_empty attribute
...
Rationale: Checking for is_EmptySet can be achieved via isinstance(),
but it can't properly handle the unknown case, generally resulting
in "None" in the assumptions system. Also, a set may well be empty
even though it's not recognized as such by SymPy.
is_empty correctly returns True, False or None.
Specific code, particularly for the "False" case, is added to
EmptySet, Naturals, Naturals0, Rationals, Reals, Interval, Union.
2019-08-22 20:57:39 +00:00
Soniya Nayak
6f53ef72aa
Merge branch 'master' of https://github.com/sympy/sympy
2019-08-23 01:23:10 +05:30
Aaron Meurer
99c6670e65
Merge pull request #17440 from ShubhamKJha/pycosat
...
Add pycosat as an optional dependency.
2019-08-22 13:21:29 -06:00
eward
928625c76f
Merge remote-tracking branch 'origin/polygamma_evalf' into polygamma_evalf
2019-08-22 11:15:38 -07:00
eward
d72a730fe6
more polygamma.rewrite(zeta) tests
2019-08-22 11:14:41 -07:00
eward
e05bddaa72
update _eval_rewrite_as_zeta
2019-08-22 11:14:26 -07:00
Chris Smith
74a6a35f3e
use equals as fallback in solve
2019-08-22 12:14:21 -05:00
Shubham Kumar Jha
f972983761
Added back examples in docstring and made changes as suggested
2019-08-22 22:05:05 +05:30
sachin-4099
13213aa51c
InvalidComparison error from integrate
2019-08-22 21:53:01 +05:30
Divyanshu
ba19b0ae30
update
2019-08-22 21:03:45 +05:30
Ritu Raj Singh
bef75b7a39
added test case
2019-08-22 11:27:46 -04:00
Oscar Gustafsson
cf9cef7a2c
Merge pull request #17468 from asmeurer/funcmatrix-doc
...
Show examples of FunctionMatrix using a symbolic shape
2019-08-22 16:58:07 +02:00
Christopher Smith
0f0939e4fa
Merge pull request #17472 from oscargus/rewriteabsasconjugate
...
Rewrite Abs as conjugate
2019-08-22 08:49:04 -05:00
Christopher Smith
bc8fb694a3
Merge pull request #17475 from oscargus/doctests
...
Enabled Doctests (and fixed a small bug)
2019-08-22 08:47:35 -05:00
Shubham Kumar Jha
2d70eb58e0
Added tests for optional dependency (pycosat) as suggested
2019-08-22 16:25:56 +05:30
Divyanshu
aaef2db8f4
make-docstrings-raw
2019-08-22 14:54:50 +05:30
Oscar Gustafsson
c6466d7cfe
Fixed review comments
2019-08-22 11:06:17 +02:00
Oscar Gustafsson
aec641e1fc
Fixed merge failures
2019-08-22 10:17:53 +02:00
Oscar Gustafsson
7cb488c609
Fixed minor issues
2019-08-22 10:14:23 +02:00
Oscar Gustafsson
bfc42a2fc7
Merge pull request #17469 from Geektrovert/master
...
add missing 'return' keyword in atan2._eval_evalf. closes #17461
2019-08-22 09:02:26 +02:00
Samnan Rahee
30e7f9f4f2
add test for sympy.functions.atan2._eval_evalf
2019-08-21 23:47:19 +06:00
Divyanshu
13b974249b
improve-pc-group-docstrings
2019-08-21 22:43:13 +05:30
Oscar Gustafsson
758acd317e
Moved example tests to doctests
2019-08-21 18:49:43 +02:00
Oscar Gustafsson
0dea4a4b7f
Corrected test output
2019-08-21 18:43:39 +02:00
Oscar Gustafsson
c2e306606f
Fixed merge conflicts and added test
2019-08-21 18:15:55 +02:00
Oscar Gustafsson
f2fc6cb1a7
Reverted changes
2019-08-21 17:30:02 +02:00
Oscar Gustafsson
ece0efe8c6
Fixed missing symbol
2019-08-21 13:58:38 +02:00
Oscar Gustafsson
06446e1455
Enabled doctests and fixed bug
2019-08-21 13:35:05 +02:00
Oscar Gustafsson
c2c68aa7a0
Rewrite Abs as conjugate
2019-08-21 11:55:41 +02:00
Oscar Gustafsson
2a7e798b42
Removed blacklisted doctests
2019-08-21 11:39:25 +02:00
Oscar Gustafsson
af6f342094
Revert "Fixed #17461 "
...
This reverts commit 8327b1bd00 .
2019-08-21 09:59:54 +02:00
Oscar Gustafsson
8327b1bd00
Fixed #17461
2019-08-21 09:55:05 +02:00
Oscar Gustafsson
b80f461c17
Merge branch 'master' into atan2_zero_complex
2019-08-21 09:33:21 +02:00
Christopher Smith
261c6c3f33
Merge pull request #17439 from oscarbenjamin/abs_rewrite_imaginary
...
Add Abs(imaginary).rewrite(Piecewise) and use in solve
2019-08-20 23:24:22 -05:00
Christopher Smith
d6f82dc283
Merge pull request #17466 from oscargus/solvefix
...
Solve fixes and tests
2019-08-20 23:22:39 -05:00
Christopher Smith
d55fe166d3
Merge pull request #17467 from ethankward/issue_14590
...
Test issue 14590
2019-08-20 23:19:56 -05:00
Shubham Kumar Jha
c1aca37b41
Merge branch 'master' into pycosat
2019-08-21 09:47:32 +05:30
Shubham Kumar Jha
c81750b514
minor fixes
2019-08-21 09:43:38 +05:30
Amit Kumar
4960cc8122
Merge pull request #16976 from jmig5776/handle_mod
...
[GSOC] Added _solve_modular for handling equations a - Mod(b, c) = 0 where only b is expr
2019-08-21 09:12:11 +05:30
Shubham Kumar Jha
5688c89865
Added tests for optional dependency of pycosat
2019-08-21 09:11:18 +05:30
Shubham Kumar Jha
a9c305c2c7
Added tests for optional dependency of pycosat and added ImportError if algorithm is defined pycosat explicitly in satisfiable
2019-08-21 09:07:46 +05:30
Aaron Meurer
d7cecbc957
Show examples of FunctionMatrix using a symbolic shape
...
It wasn't clear from the docstring that they were allowed.
2019-08-20 17:12:27 -06:00
Oscar Benjamin
97b6c7cda6
Merge pull request #17460 from oscargus/piecewiseplotwitheq
...
Plotting Piecewise with Eq or Ne now works
2019-08-20 23:48:28 +01:00
Samnan Rahee
6603633cc4
add missing 'return' keyword in atan2._eval_evalf. closes #17461
2019-08-21 04:47:37 +06:00
Oscar Benjamin
f6b860b4a7
Merge pull request #17462 from ethankward/pow_is_real
...
Update Pow._eval_is_extended_real
2019-08-20 23:46:10 +01:00
Ethan Ward
acdf3c24b8
Merge branch 'master' into issue_14590
2019-08-20 15:39:12 -07:00
eward
6848824ced
test_issue_14590
2019-08-20 14:38:13 -07:00
Oscar Gustafsson
8e7646043a
Fixed merge conflict
2019-08-20 23:31:31 +02:00
Oscar Gustafsson
38a3b0088e
Added tests
2019-08-20 23:02:51 +02:00
RituRajSingh878
36cb38905d
modified code and test cases
2019-08-21 02:23:26 +05:30
Oscar Gustafsson
cd2799877b
Bug fix/improvement in solve
2019-08-20 22:19:55 +02:00
Christopher Smith
5747b5245b
Merge pull request #17464 from ethankward/tsolve
...
Fix invalid code in solvers._tsolve
2019-08-20 14:54:59 -05:00
eward
b09f7d9e88
add missing argument
2019-08-20 11:12:10 -07:00
eward
b267a56630
test_issue_17452
2019-08-20 11:06:54 -07:00
eward
e6a5010b91
update _tsolve when rhs.is_irrational
2019-08-20 11:06:41 -07:00
eward
5de485d71e
test_issue_17450
2019-08-20 09:50:07 -07:00
eward
fbbea523c8
update _eval_is_extended_real
2019-08-20 09:48:46 -07:00
Oscar Gustafsson
6da05a99ba
Added more tests
2019-08-20 17:24:37 +02:00
Kalevi Suominen
08cea08146
Merge pull request #17447 from maurogaravello/issue_4615_as_leading_term_exp
...
exp.as_leading_term() returns wrong results
2019-08-20 17:27:01 +03:00
Oscar Gustafsson
afce380cbf
Fixed issue with Piecewise plot with Eq and Ne
2019-08-20 15:16:31 +02:00
maurogaravello
eaba852bfb
Modified the behaviour
2019-08-20 13:49:37 +02:00
Oscar Gustafsson
50ee96512a
Fixed examples
2019-08-20 12:11:37 +02:00
Oscar Gustafsson
6d635be408
Testing examples
2019-08-20 11:41:29 +02:00
Jashanpreet Singh
7825b2d0a1
Merge pull request #17153 from ishanaj/geometry_properties
...
Added functionality to determine polar second moment of area and section modulus of a polygon
2019-08-20 08:37:13 +05:30
Oscar Benjamin
a10ef43f94
Merge pull request #17078 from ethankward/marcum_q
...
Add Marcum Q-function
2019-08-19 22:52:29 +01:00
Oscar Benjamin
673904a01a
Merge pull request #17429 from ethankward/acosh_eval
...
Add automatic evaluation for compositions of inverse hyperbolic functions
2019-08-19 22:47:05 +01:00
jmig5776
3323e9fd54
Added new solver _solve_modular for solving modular equation of following type:
...
A - Mod(B, C) = 0
A -> This can or cannot be a function of symbol.
B -> This is surely a function of symbol.
C -> It is an integer.
2019-08-20 00:50:18 +05:30
Oscar Benjamin
274be0590f
Merge pull request #17448 from oscargus/rpisarev-10651
...
Better is_constant
2019-08-19 18:40:32 +01:00
Oscar Benjamin
dc6b6070e8
Merge pull request #17295 from oscargus/fixesforstr
...
Made output from str more copy-pastable
2019-08-19 18:19:28 +01:00
Oscar Benjamin
0456f71fc0
Merge pull request #17410 from Soniyanayak51/test/doctest_scripts
...
Set cwd as the local sympy root in subprocess call to make tests run from different directory.
2019-08-19 17:45:08 +01:00
Ethan Ward
95e5997f02
Merge branch 'master' into polygamma_evalf
2019-08-19 09:42:22 -07:00
eward
0077dcdb74
marcum_q renamed to marcumq
2019-08-19 09:36:42 -07:00
eward
79fc4d7ed8
use is_Integer
2019-08-19 09:33:30 -07:00
eward
e010002b66
refactor
2019-08-19 09:24:41 -07:00
Oscar Gustafsson
0032cbac74
Merged with master
2019-08-19 17:33:54 +02:00
Oscar Gustafsson
a7878c5add
Removed solveset and fixed merge conflict
2019-08-19 17:22:41 +02:00
maurogaravello
566bb0b550
Issue 4615
2019-08-19 16:53:41 +02:00
Ishan Joshi
38328f9a8e
corrected minor errors and improved documentation
2019-08-19 17:26:25 +05:30
Soniyanayak51
69983786be
Merge pull request #1 from smichr/cwd
...
use cwd=get_sympy_dir()
2019-08-19 16:49:29 +05:30
Oscar Benjamin
fc6f766ab5
Merge pull request #17314 from sylee957/matexpr_check_dimension
...
Check the invalid dimensions for matrix symbol creation
2019-08-19 11:10:32 +01:00
maurogaravello
f387d025a3
exp.as_leading_term() returns wrong results (Issue 4615)
...
as_leading_term does not work properly on exponential function.
As noted in the issue 4615, `exp((x+1)/x**2).as_leading_term(x)`
returns `exp(x**(-2))`, which is not correct.
Indeed when the argument of `exp` tends to `oo`, then it is not
correct doing the leading term of the arg and then apply the exponential.
Also SymPy in the case
`exp((2*x + 3) / (x+1)).as_leading_term(x)`
returns `S(1)`, which is not correct here, since the argument
is closed to `3`.
In `test_exponential.py` the following tests are added
```
assert exp((x + 1) / x**2).as_leading_term(x) == exp((x + 1) / x**2)
assert exp((2*x + 3) / (x+1)).as_leading_term(x) == exp(3)
```
2019-08-19 11:50:57 +02:00
Francesco Bonazzi
f61022138b
Merge pull request #17268 from ritesh99rakesh/multivariateNormalSymbolic
...
Allow symbolic parameters in joint_rv_types
2019-08-19 10:24:14 +02:00
Francesco Bonazzi
557d88dedf
Merge pull request #17445 from ritesh99rakesh/sampleFinite
...
Added sample methods for finite RV
2019-08-19 10:22:40 +02:00
Kalevi Suominen
9aa631dda6
Merge pull request #17221 from sylee957/add_matrix_log
...
[WIP] Add matrix logarithm
2019-08-19 08:56:52 +03:00
Chris Smith
2df78904a2
use cwd=get_sympy_dir()
2019-08-19 00:55:57 -05:00
S.Y. Lee
ec93d8ab1d
Add additional test
2019-08-19 13:40:16 +09:00
Ritesh Kumar
529cb447d9
Use ArrayComprehensionMap for _sample_random
2019-08-19 08:39:43 +05:30
Ritesh Kumar
c4e2857d73
Corrected error
2019-08-19 08:22:58 +05:30
Ritesh Kumar
a84a4e9ef9
Added sample methods for finite RV
2019-08-19 08:22:58 +05:30
S.Y. Lee
0d8fb7f6f8
Add support for any sympy function objects
2019-08-19 10:58:42 +09:00
Oscar Benjamin
803d993ff7
Merge pull request #17313 from ethankward/round_eval_positive
...
floor and ceiling inequality simplification
2019-08-19 02:13:25 +01:00
Oscar Benjamin
468ada1d2e
Merge pull request #17371 from sylee957/improve_rsa
...
Extend RSA capability
2019-08-19 01:49:15 +01:00
Oscar Benjamin
cdf33ea878
Merge pull request #17390 from oscargus/regressions2
...
Series expansion for LambertW and a number of tests
2019-08-19 01:30:43 +01:00
Oscar Benjamin
273121b1b3
Merge pull request #17426 from oscargus/statsimprovements
...
Code cleanup in stats
2019-08-19 00:59:23 +01:00
Oscar Benjamin
272809809f
Fix bug in separatevars with Abs
2019-08-19 00:01:40 +01:00
Francesco Bonazzi
28ea72d8cb
Merge pull request #17304 from czgdp1807/circular_ensembles
...
Added circular ensembles
2019-08-18 22:24:48 +02:00
Oscar Gustafsson
984b07b333
Merge pull request #17444 from oscargus/logicerror
...
Fixed error in logic simplify
2019-08-18 22:24:24 +02:00
Francesco Bonazzi
0a7ae75b08
Merge pull request #17408 from kangzhiq/enable_lambda
...
Added support for lambda in ArrayComprehension
2019-08-18 22:23:22 +02:00
Kalevi Suominen
75d3e3fa9e
Merge pull request #17399 from divyanshu132/polycyclic-group-docs
...
Added Documentation for Polycyclic Groups
2019-08-18 20:46:09 +03:00
Oscar Gustafsson
25dfdbe5ad
Fixed error in logic simplify
2019-08-18 15:22:29 +02:00
Divyanshu
19d4814187
math-to-text
2019-08-18 18:42:27 +05:30
Ishan Joshi
f57344d0e0
corrected failing test by making plot handle case of empty plot case
2019-08-18 10:52:32 +05:30
Divyanshu
45713a893a
update
2019-08-18 09:53:30 +05:30
Ethan Ward
e4259125f6
Merge pull request #17436 from isuruf/snf
...
Fix missing import of zeros
2019-08-17 16:24:24 -07:00
Ishan Joshi
51f68221e2
used doctest_depends_upon to skip test when numpy not installed
2019-08-17 23:37:17 +05:30
Ishan Joshi
80901eb8ae
skipped doctest and raised ImportError if numpy is not imported
2019-08-17 20:58:25 +05:30
Ondřej Čertík
42c607dc11
Merge pull request #16974 from Sc0rpi0n101/c-parser
...
Creating a C parser
2019-08-17 09:00:09 -06:00
kangzhiq
571258bb64
Fixed error and ameliorated codes
2019-08-17 22:50:06 +08:00
Francesco Bonazzi
4f1115b877
Merge pull request #17416 from Upabjojr/fixing_pretty_printing_elementwise_apply2
...
elementwise apply function printer review
2019-08-17 16:05:10 +02:00
Divyanshu
a9673c6aed
minor-update
2019-08-17 16:37:43 +05:30
Oscar Gustafsson
22334c35a8
Merge pull request #17432 from oscargus/piecewisefix
...
Fixed issue with identical conditions in Piecewise
2019-08-17 12:24:33 +02:00
Francesco Bonazzi
0d2ebae777
minor fix
2019-08-17 12:08:49 +02:00
Francesco Bonazzi
887ab98793
Merge pull request #17433 from Upabjojr/kronecker_delta_assumptions
...
Added Range assumption to Kronecker Delta
2019-08-17 12:04:58 +02:00
Francesco Bonazzi
3f9a39373f
using low circ
2019-08-17 11:56:59 +02:00
Kalevi Suominen
b8c3f40bc1
Merge pull request #17317 from divyanshu132/add-induced-pcgs
...
Added induced pcgs and exponent-vector
2019-08-17 12:49:30 +03:00
Shubham Kumar Jha
ecfb27ccc6
Merge branch 'master' into pycosat
2019-08-17 14:05:37 +05:30
Ishan Joshi
5ae566c340
corrected documentation
2019-08-17 14:05:12 +05:30
Ishan Joshi
231c29f5d4
added tests for first moment and changed polar_modulus() to a more general
...
name polar_second_moment_of area() and improved documentation
2019-08-17 13:55:16 +05:30
Soniya Nayak
5e22b0dc1e
Added tests for _known_functions_mpmath
...
Added tests in test_MpmathPrinter() for loggamma, fresnels, fresnelc in
test_pycode.py
2019-08-17 13:05:38 +05:30
Soniya Nayak
3e1d6bfffc
Added loggamma to known_functions_mpmath
...
Lambdifying an expression now works for mpmath
2019-08-17 13:05:38 +05:30
RituRajSingh878
d5605bf9b1
modified code
2019-08-17 12:18:20 +05:30
Shubham Kumar Jha
9c38328f5e
Updated pycosat_satisfiable to return a generator object compatible with SymPy ( with new changes in the assumptions module )
2019-08-17 10:40:13 +05:30
Shubham Kumar Jha
908666d820
Updated code according to present requirements
2019-08-17 06:16:37 +05:30
Oscar Benjamin
29a6e2ddeb
Restore expression in error message
2019-08-17 01:30:45 +01:00
Oscar Benjamin
0804e23d1b
Use separatevars to expand Abs in solve
2019-08-17 01:28:08 +01:00
Isuru Fernando
e8920345aa
Remove extra whitespace
2019-08-16 16:48:16 -05:00
Isuru Fernando
93a73cbea4
Fix missing import of zeros
2019-08-16 16:33:12 -05:00
Francesco Bonazzi
aa551ce562
adding tests
2019-08-16 22:59:51 +02:00
Oscar Benjamin
1cae635484
Use rewrite(Piecewise) in solve
2019-08-16 21:59:22 +01:00
Oscar Benjamin
a554c2e8cb
Add abs(imaginary).rewrite(Piecewise)
2019-08-16 21:58:58 +01:00
Ishan Joshi
c550bffe69
added a method in polygon class to calculate first moment of area of a
...
polygon
2019-08-17 02:11:24 +05:30
Ishan Joshi
4943fdab5f
Merge branch 'master' into geometry_properties
...
i
2019-08-17 02:05:47 +05:30
RituRajSingh878
c7088d62f6
modified code for the checking of a solution and edited test cases
2019-08-17 01:58:39 +05:30
kangzhiq
8b6f8b030d
Added constraints
2019-08-17 03:01:41 +08:00
kangzhiq
e0612b201e
Simplified code
2019-08-17 02:45:17 +08:00
eward
efa294ddba
fix merge problem
2019-08-16 11:13:54 -07:00
Ethan Ward
067918db72
Merge branch 'master' into acosh_eval
2019-08-16 10:42:53 -07:00
kangzhiq
3fd70eff24
Modified constructor and enabled subs()
2019-08-17 01:02:54 +08:00
eward
0181df41f3
add automatic evaluation of atanh(tanh(x)), asinh(sinh(x)), acosh(cosh(x))
2019-08-16 09:54:10 -07:00
Divyanshu
04d5bfb9d1
fix-presentation-doc
2019-08-16 19:48:28 +05:30
Oscar Gustafsson and Christopher Smith
7e99f35423
Update sympy/functions/elementary/piecewise.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-08-16 14:57:00 +02:00
czgdp1807
c8bbd98a6b
raise NotImplementedError for absence Haar measure
2019-08-16 17:59:48 +05:30
Francesco Bonazzi
ca48538d33
Added Range assumption to Kronecker Delta; Sum is now aware of this assumptions
2019-08-16 13:56:57 +02:00
kangzhiq
6b803ef60f
Added ArrayComprehensionMap class and tests
...
- Added new class ArrayComprehensionMap
- Added tests
2019-08-16 17:51:18 +08:00
Divyanshu
ce39f455a9
fix
2019-08-16 15:05:04 +05:30
Oscar Gustafsson
04d5510edf
Removed XFAIL
2019-08-16 11:21:09 +02:00
Oscar Gustafsson
94f0f9831e
Fixed merge conflicts
2019-08-16 11:17:53 +02:00
Oscar Gustafsson
1650c042a9
Generalized series generation
2019-08-16 11:15:45 +02:00
Divyanshu
2b51a5e4bb
update
2019-08-16 14:44:27 +05:30
Oscar Gustafsson
69585c1c76
Corrected doctest
2019-08-16 10:09:35 +02:00
Oscar Gustafsson
0bbcb2cd2b
Merge branch 'master' into fixesforstr
2019-08-16 09:47:53 +02:00
Oscar Gustafsson
8c3397694d
Fixed issue with identical conditions in Piecewise
2019-08-16 09:29:19 +02:00
Nikhil Maan
88554629d6
added sym_expr to blacklist when lfortran not imported
2019-08-16 12:23:50 +05:30
Nikhil Maan
7db7023701
Revert "improved sym_expr tests"
...
This reverts commit 48d694c657 .
2019-08-16 11:44:01 +05:30
Soniya Nayak
294e0b0cd5
Added os.path.abspath
2019-08-16 11:21:22 +05:30
Nikhil Maan
48d694c657
improved sym_expr tests
2019-08-16 10:39:36 +05:30
Nikhil Maan
306031f337
changed clang install instructions
2019-08-16 03:45:49 +05:30
Nikhil Maan
8fd9951cfe
Updated the tests and SymPyExpression
2019-08-16 01:54:26 +05:30
Soniya Nayak
b3dedef2a6
Removed unrequired formatting.
2019-08-16 01:19:05 +05:30
Soniya Nayak
ed48515258
Edited to get path from sympy package.
2019-08-16 00:38:52 +05:30
Nikhil Maan
4f6b30dee0
Refactored some code and improved tests
2019-08-16 00:10:18 +05:30
Nikhil Maan
ee394fb16e
Improved test coverage and revised documentation
2019-08-15 23:52:07 +05:30
Oscar Gustafsson
7176fd3e16
Updated test
2019-08-15 19:05:41 +02:00
Soniya Nayak
c485c62ffd
Discarded PYTHONPATH and used cwd to provide path to subrocess.Popen
2019-08-15 21:51:54 +05:30
Oscar Gustafsson
9291db5f5a
Improved dummy assumptions
2019-08-15 17:37:51 +02:00
Oscar Gustafsson
390c8219b6
Merge branch 'master' into statsimprovements
2019-08-15 16:37:09 +02:00
Francesco Bonazzi
40da07b3a8
Merge pull request #17412 from Upabjojr/log_product_expand_force
...
added support for Sum/Product expansion with exp/log
2019-08-15 14:39:43 +02:00
Oscar Gustafsson
b28eadab36
Merge pull request #17409 from oscargus/fix17405
...
Fixed #17405
2019-08-15 12:03:25 +02:00
Oscar Gustafsson
4a08b40fec
Merge pull request #17423 from Upabjojr/fix_latex_hadamard_power
...
Fix parenthesis in LaTeX printer for Hadamard Power
2019-08-15 12:02:18 +02:00
Oscar Gustafsson
7ab00879f5
Added failing test
2019-08-15 11:53:20 +02:00
Oscar Gustafsson
22deb15e08
Fixed merge conflict and added tests and documentation
2019-08-15 11:46:11 +02:00
Soniya Nayak
e89ecbb67b
Changed the path in PYTHONPATH to root
2019-08-15 15:10:39 +05:30
S.Y. Lee
fb275fc21c
Add more tests
2019-08-15 18:14:46 +09:00
Francesco Bonazzi
d1ba95b3fe
Fix parenthesis in LaTeX printer for Hadamard Power
2019-08-15 09:07:46 +02:00
S.Y. Lee
dfb885bf61
More code coverage
2019-08-15 15:55:44 +09:00
Oscar Gustafsson
8b8a4f529b
Improved handling of empty sequences
2019-08-15 08:52:02 +02:00
Francesco Bonazzi
f749dbb207
added support for HadamardPower pretty printer
2019-08-15 08:31:51 +02:00
Oscar Benjamin
fd13f9a9d3
Merge pull request #17346 from oscargus/comparisons1
...
Fixed some comparison issues
2019-08-15 01:50:37 +01:00
Oscar Benjamin
342971f2a5
Merge pull request #17259 from oscargus/sumproductimprovements
...
Improvements of Sum and Product
2019-08-15 01:45:33 +01:00
Oscar Benjamin
ff6ac038ba
Merge pull request #17394 from oscargus/gammacodegeneration
...
Fixed code generation for beta, fresnelc, fresnels, lowergamma, and uppergamma
2019-08-15 01:32:21 +01:00
Oscar Benjamin
1ad9c9f522
Merge pull request #17400 from oscarbenjamin/pytest_warnings
...
Make pytest tests work under pytest with -Werror
2019-08-15 01:29:13 +01:00
Oscar Benjamin
7bbc5cdb1a
Merge pull request #17406 from oscargus/concretecleanup2
...
Removed unused code and added tests for increased coverage
2019-08-15 01:21:39 +01:00
Oscar Benjamin
56bfcd3ba2
Merge pull request #17391 from ethankward/loggamma
...
Update loggamma._eval_is_real
2019-08-15 01:15:42 +01:00
Oscar Benjamin
22fce3298e
Merge pull request #17342 from RituRajSingh878/lie_groups_test
...
added test cases for lie_group type ode
2019-08-15 01:13:22 +01:00
Oscar Gustafsson
e66310d4c1
Minor fixes
2019-08-15 00:11:19 +02:00
Oscar Gustafsson
bae99157a9
Improve assumptions
2019-08-14 23:45:03 +02:00
Francesco Bonazzi
0987bc7097
Merge pull request #17413 from Upabjojr/fix_matrix_deriv_by_scalar
...
Fixing problems with derivative of matrix expressions by scalars
2019-08-14 22:54:22 +02:00
Francesco Bonazzi
9315cc8172
Merge pull request #17417 from Upabjojr/fix_simplify_elementwise_func
...
ElementwiseApplyFunction cannot be simplified
2019-08-14 22:51:13 +02:00
Oscar Gustafsson
3cc045190f
Fixed merge conflicts
2019-08-14 21:57:11 +02:00
Oscar Gustafsson
3cb40929a5
Better inconsistent assumptions checking
2019-08-14 21:55:38 +02:00
RituRajSingh878
dcd7c4bbf8
modified _nth_algebraic_redundant method for general dsolve
2019-08-15 01:16:45 +05:30
eward
8f75d8de96
test _eval_is_real
2019-08-14 11:52:38 -07:00
eward
ccd23037e5
add back _eval_is_real
2019-08-14 11:52:27 -07:00
Oscar Gustafsson
445053e50d
Added tests and fixed inconsistency
2019-08-14 19:42:45 +02:00
Francesco Bonazzi
d7a854fb78
Merge pull request #17393 from kangzhiq/fixed_slicing
...
Fixed bug of index with slicing in Array
2019-08-14 19:27:04 +02:00
Oscar Gustafsson
1ec51e4082
Improved docstring
2019-08-14 19:26:43 +02:00
Francesco Bonazzi
0a5b87efef
ElementwiseApplyFunction cannot be simplified
2019-08-14 18:41:26 +02:00
Francesco Bonazzi
65a4c26852
elementwise apply function printer review
2019-08-14 18:02:47 +02:00
Francesco Bonazzi
c3cb6d6dd1
fix errors; add _eval_derivative to ElementwiseApplyFunction
2019-08-14 17:04:00 +02:00
Shubham Kumar Jha
2cd25f91cb
Modified test_args as now UnevaluatedOnFree class doesn't return SymPy objects with apply() function
2019-08-14 20:11:33 +05:30
Oscar Gustafsson
6888f72042
Added assumption methods to Sum and Product
2019-08-14 16:32:34 +02:00
Francesco Bonazzi
f2e7528512
fixing problems with derivative of matrix expressions by scalars
2019-08-14 15:05:16 +02:00
Francesco Bonazzi
b58ae4b55c
minor fixes
2019-08-14 13:13:33 +02:00
Francesco Bonazzi
b8c2baac14
added support for Sum/Product expansion with exp/log
2019-08-14 12:10:28 +02:00
Shubham Kumar Jha
d359b48bac
Removed examples from sathandlers as they were failing after new changes
2019-08-14 13:39:49 +05:30
Steven Lee
485a30c3c3
remove bessel ... in test_spec_func since they have already been supported
2019-08-14 17:57:54 +10:00
S.Y. Lee
5fbc6e363c
Add an option to interpret python lambda semantics, and improve docs
2019-08-14 15:05:18 +09:00
S.Y. Lee
43f779e3f8
Fix test causing problem
2019-08-14 14:27:44 +09:00
S.Y. Lee
10aaf66b0a
Use check_assumptions
2019-08-14 14:24:05 +09:00
S.Y. Lee
c94f5c0861
Fix tree test
2019-08-14 14:24:05 +09:00
S.Y. Lee
7a500cffdf
Add tests for zero, one, and identity matrix
2019-08-14 14:24:05 +09:00
S.Y. Lee
8048518493
Add test for funcmatrix argument check
2019-08-14 14:24:05 +09:00
S.Y. Lee
135594e2a2
Add additional check for the length of variables
2019-08-14 14:24:05 +09:00
S.Y. Lee
33881e8729
Add test about arguments in DFT creation
2019-08-14 14:24:05 +09:00
S.Y. Lee
57d40c9cec
Check dimensions when creating matrix expressions
2019-08-14 14:24:05 +09:00
Ritu Raj Singh
ae3aea36df
Merge branch 'master' into lie_groups_test
2019-08-14 10:11:15 +05:30
Soniya Nayak
9576d56e2c
Edited the previous commit and added the env dictionary with PYTHONPATH as key
2019-08-14 05:12:21 +05:30
RituRajSingh878
e13aee6c66
added XFAIL test cases which are hanging
2019-08-14 03:30:17 +05:30
Jashanpreet Singh
053a8c5120
Merge pull request #17001 from ishanaj/cut_section
...
Added a new method cut_section() which would return a new polygon which lies above the given line that intersects it.
2019-08-14 02:51:33 +05:30
eward
47b4b92fcd
elif z.is_nonpositive
2019-08-13 14:20:47 -07:00
eward
33d565162d
more comprehensive tests
2019-08-13 14:20:33 -07:00
RituRajSingh878
2032c10e10
modified test case
2019-08-14 02:40:15 +05:30
Oscar Gustafsson
8afeb73f44
Fixed #17405
2019-08-13 22:21:55 +02:00
Soniya Nayak
ee5cf45121
Set PYTHONPATH environment variable in the subprocess call.
...
Fixed isuue #17369 . set the PYTHONPATH environment variable in the subprocess
call in run_in_subprocess_with_hash_randomization so that it imports from the
same sympy.
2019-08-14 01:51:16 +05:30
Nikhil Maan
67ffa261fc
removed extra_requires from setup.py
2019-08-14 00:16:47 +05:30
Kalevi Suominen
e0f45aea9f
Merge pull request #17272 from oscargus/noheurischonabssign
...
Do not try heurisch if integral contains abs or sign
2019-08-13 21:46:46 +03:00
kangzhiq
e2a07d2161
Added support for lambda in ArrayComprehension
...
- Added support for lambda expression in ArrayComprehension
- Added tests accordingly
2019-08-14 02:26:25 +08:00
Ishan Joshi
739d5d6619
removed extra imports and idented example in the docs which was causing
...
the build fail
2019-08-13 23:36:52 +05:30
eward
0956b0559e
use elif
2019-08-13 10:31:51 -07:00
eward
eee6609607
reorganize tests
2019-08-13 10:31:40 -07:00
eward
28356df4ff
loggamma(z).is_real is None
2019-08-13 09:47:50 -07:00
eward
b73c7dd162
update _eval_is_real
2019-08-13 09:47:16 -07:00
Oscar Gustafsson
a009654500
Removed unused code and added tests for increased coverage
2019-08-13 18:11:18 +02:00
Björn Dahlgren
fbcf583eaa
Merge pull request #17384 from bjodah/ast_node_printing_fix-17368
...
Fixes gh-17368: sympyrepr for Token was incorrect
2019-08-13 18:10:06 +02:00
Nikhil Maan
990b8aebb1
Removing pip isntall for clang
2019-08-13 21:33:23 +05:30
kangzhiq
4cee079e0b
Refactored codes
2019-08-13 23:27:26 +08:00
Oscar Gustafsson
87d52ccd2f
Changed name of argument and more functions that are ignored
2019-08-13 16:32:55 +02:00
Oscar Gustafsson
bf6beaff85
Updated doctests
2019-08-13 14:57:40 +02:00
Oscar Gustafsson
472ce131e4
Named different Python printers better
2019-08-13 14:50:13 +02:00
Oscar Benjamin
28ea0380bb
Make pytest tests work under pytest with -Werror
2019-08-13 13:46:04 +01:00
Oscar Gustafsson
0fbe6d0bff
Merge pull request #17398 from sylee957/fix_lambert_printing
...
Fix LambertW printing for LaTeX and Mathematica
2019-08-13 14:41:32 +02:00
Oscar Gustafsson
6a75034f45
Added support for beta and fresnel integrals
2019-08-13 14:32:49 +02:00
Oscar Benjamin
e486f1b794
Merge pull request #17374 from sameshl/tensor_warnings
...
Use warns rather than raises to test for warnings
2019-08-13 12:40:43 +01:00
Divyanshu
90aa827e2d
polycyclic-group-docs
2019-08-13 16:37:46 +05:30
S.Y. Lee
da0952ac09
Add tests about LambertW
2019-08-13 16:52:28 +09:00
S.Y. Lee
0993509b27
Fix LaTeX and Mathematica printing of LambertW
2019-08-13 16:45:43 +09:00
Shubham Kumar Jha
4a67779cf6
Fixed failing sathandlers tests: Now UnevaluatedOnFree class returns NNF objects when called with AppliedPredicate arguments, so changed all the result to NNF in tests
2019-08-13 10:34:29 +05:30
Samesh
2e6ad726d9
update the TensorType test
...
the test was failing because it was wrong because it did not take care of deprecation. Fixed it
2019-08-13 10:24:56 +05:30
Oscar Gustafsson
f627490099
Fixed code generation for lowergamma and uppergamma
2019-08-13 01:38:01 +02:00
Oscar Gustafsson
c1db1417d7
Added series expansion for LambertW
2019-08-12 22:43:36 +02:00
Oscar Gustafsson
499fef40e2
Merge pull request #17388 from drhagen/setup-py-versions
...
Update setup.py Python versions
2019-08-12 22:21:19 +02:00
Oscar Gustafsson
bf985d5701
Merge pull request #17386 from oscargus/prettysum
...
Fixed pretty printing of summations
2019-08-12 22:18:16 +02:00
Ishan Joshi
ff58c18b45
corrected failing tests
2019-08-12 23:42:21 +05:30
kangzhiq
40fae95011
Fixed bug of index with slicing
2019-08-13 01:01:46 +08:00
eward
a5289a6926
update loggamma _eval_is_real
2019-08-12 09:11:13 -07:00
eward
2917269b0a
update loggamma is_real tests
2019-08-12 09:11:00 -07:00
eward
df30aed635
check is_number first
2019-08-12 09:01:24 -07:00
Ishan Joshi
32a4f8b3cc
added documentation for draw function and the plot features
2019-08-12 21:11:08 +05:30
Ishan Joshi
26886ce899
Merge branch 'master' into beam_diagram_2
2019-08-12 21:05:49 +05:30
Oscar Gustafsson
0c6d1a415b
Fixed pretty printing of summations
2019-08-12 17:29:13 +02:00
Oscar Gustafsson
eb13904d9e
Added tests for issues
2019-08-12 17:22:56 +02:00
David Hagen
9add4d8ba9
Update setup.py Python versions
2019-08-12 10:14:47 -04:00
Oscar Gustafsson
0dc4b4f50d
Merge pull request #17329 from gschintgen/fix-13273-function_range
...
Check for infinite iteration in calculus.util.function_range()
2019-08-12 16:12:45 +02:00
Björn Ingvar Dahlgren
55abff849d
Update doctest
2019-08-12 09:58:19 +02:00
Kalevi Suominen
6557134e2f
Merge pull request #17359 from miguelmarco/manualrules
...
Extend quadratic_denom_rule in manual integration
2019-08-12 08:40:44 +03:00
czgdp1807
7ff6f7336e
fixed typos
2019-08-12 10:19:33 +05:30
S.Y. Lee
6300650aa6
Add index notation, and improve docs
2019-08-12 13:44:22 +09:00
Francesco Bonazzi
1b99ff5cc7
Merge pull request #17336 from czgdp1807/mat_handler
...
[WIP] Modifed sympy.assumptions.handlers for DenseMatrix
2019-08-11 22:03:43 +02:00
RituRajSingh878
66fb312220
added modified method for solving factor in classify_ode
2019-08-12 00:13:01 +05:30
Björn Ingvar Dahlgren
b7ff5945ec
Fixes gh-17368: sympyrepr for Token was incorrect
2019-08-11 20:23:30 +02:00
Miguel Marco
4efb6035d7
Fix newline at the end
2019-08-11 18:50:21 +02:00
Miguel Marco
77cecd65e3
Add tests
2019-08-11 18:42:41 +02:00
Kalevi Suominen
3b5e300822
Merge pull request #17348 from smichr/diop
...
diophantine: note re parametric soln; remove gcd
2019-08-11 13:36:16 +03:00
Francesco Bonazzi
5ec4afc7c4
Merge pull request #17308 from kangzhiq/new_iteration
...
New __iter__ for Array module
2019-08-11 12:19:02 +02:00
Shubham Kumar Jha
0b2d6e444e
fixed code quality
2019-08-11 11:35:23 +05:30
Shubham Kumar Jha
3f6dc59173
Merge branch 'master' into rcall_branch_2
2019-08-11 11:30:20 +05:30
Shubham Kumar Jha
9e8c674b38
Updated code
2019-08-11 11:13:11 +05:30
Shubham Kumar Jha
56c163bd34
Fixed logic of changes made in previous commit
2019-08-11 10:36:35 +05:30
Ishan Joshi
26ae752ec0
added functionality to scale the beam diagram using a parameter
...
pictorial=True, also modified plot.markers a bit
2019-08-10 23:16:59 +05:30
kangzhiq
d4f9920416
Removed try except and modified tests
2019-08-10 22:37:29 +08:00
Shubham Kumar Jha
367584c761
Modified sathandlers to return CNF objects when rcall is applied with a fast approach
2019-08-10 19:58:04 +05:30
czgdp1807
368973717e
import issues resolved
2019-08-10 17:19:58 +05:30
Steven Lee
95c04fd1f3
Add airy(ab)i as known function for maple printer
2019-08-10 21:20:48 +10:00
Steven Lee
f9aadcc2e7
Add bessel and hankelh as known function in maple printer
2019-08-10 21:10:52 +10:00
Steven Lee
17d627f012
Change zoo to ComplexInfinity in test case of not support feature
2019-08-10 20:50:14 +10:00
Gagandeep Singh
5fb38c1fee
Merge branch 'master' into circular_ensembles
2019-08-10 16:14:33 +05:30
czgdp1807
92db73009b
some minor modification
2019-08-10 15:42:17 +05:30
czgdp1807
d572d69a32
removed flaws
2019-08-10 15:40:07 +05:30
eward
b245676e34
polygamma improvements: prevent bad evaluation, update sign, real determination
2019-08-09 13:50:21 -07:00
Ishan Joshi
c028b32a4b
added functionality of filling colour in plot using matplotlib's
...
fill_between(), and used the same in representing higher order beam loads
2019-08-10 01:41:24 +05:30
Nikhil Maan
581ad0d987
updated clang install instructions in travis.yml
2019-08-09 23:30:13 +05:30
Samesh
36d0a18cc7
Use warns rather than raises to test for warnings
...
changed `raises(SymPyDeprecationWarning)` to `with warns_deprecated_sympy():`
in `sympy/tensor/tests/test_tensor.py`
2019-08-09 19:45:00 +05:30
S.Y. Lee
2f200b7016
Define notation for mapping, and misc documentation changes
2019-08-09 18:16:38 +09:00
Nikhil Maan
60e2a0f6ea
Fixed errors in Travis.yml
2019-08-09 13:15:17 +05:30
Nikhil Maan
9a533453e6
Updated Travis.yml
2019-08-09 13:12:53 +05:30
S.Y. Lee
8f866ef306
Py2 compatibility
2019-08-09 16:22:03 +09:00
S.Y. Lee
f1e0267ede
Fix py2 error
2019-08-09 16:15:19 +09:00
S.Y. Lee
36c2e2abec
Merge pull request #17352 from oscargus/plotfix
...
Fixed issue with showing empty plot
2019-08-09 16:12:25 +09:00
S.Y. Lee
2aaa94648f
Refine links
2019-08-09 14:17:20 +09:00
S.Y. Lee
14d397edff
Refine the tests and add multipower test
2019-08-09 13:49:28 +09:00
S.Y. Lee
257110b688
Add example for CRT and improve docs for CRT
2019-08-09 13:44:41 +09:00
Nikhil Maan
a02a4cee54
testing Travis with clang
2019-08-09 09:57:06 +05:30
S.Y. Lee
34db9a1c9e
Amend the tests
2019-08-09 12:13:27 +09:00
Nikhil Maan
564c5c9deb
removed clang installation from travis
2019-08-09 02:27:10 +05:30
Nikhil Maan
096943f9b3
testing travis without clang
2019-08-09 00:19:34 +05:30
Francesco Bonazzi
7b38873406
Merge pull request #17306 from czgdp1807/mat_rand
...
Matrices with random expressions
2019-08-08 20:26:12 +02:00
S.Y. Lee
ae401e4931
Reduce the duplicate doc
2019-08-09 03:04:31 +09:00
Nikhil Maan
fc720bf52b
Made changes to C parser
...
* Added use of tempfile for parsing c source string
* Added sym_expr tests
* Improved fortran and c parser tests
* Improved documentation
2019-08-08 23:32:18 +05:30
S.Y. Lee
27a19eef48
Reformat docs
2019-08-09 02:47:11 +09:00
S.Y. Lee
ce03f0fc50
Add quick methods for reduced_totient
2019-08-09 02:17:51 +09:00
Ishan Joshi
00bb90623a
added features in the plotting module for plotting annotations, markers, and
...
rectangles, and modified the beam.draw() function to use these to plot
the beam diagram
2019-08-08 22:25:45 +05:30
S.Y. Lee
25dbbb75e1
Add examples using CRT
2019-08-09 01:49:48 +09:00
kangzhiq
040c93abb7
Fiexed bug about generator
2019-08-09 00:10:25 +08:00
RituRajSingh878
49a69c4ac4
modified code and added test cases
2019-08-08 21:25:14 +05:30
S.Y. Lee
324027fdb2
Add an option to encipher or decipher using chinese remainder theorem
2019-08-09 00:25:28 +09:00
S.Y. Lee
df57670815
Improve docs for CRT
2019-08-08 23:52:57 +09:00
S.Y. Lee
a76f0535e3
Make CRT more easy to use
2019-08-08 23:38:19 +09:00
czgdp1807
a8b500515b
some trivial failures resolved
2019-08-08 19:55:40 +05:30
S.Y. Lee
175413f07b
Refine the docs
2019-08-08 22:59:05 +09:00
czgdp1807
3bda59ce45
applied reviews
2019-08-08 18:56:10 +05:30
S.Y. Lee
a8ee88937b
Refine the docs
2019-08-08 22:17:20 +09:00
kangzhiq
eb7707a5b5
Fixed bug with generator
2019-08-08 20:55:54 +08:00
Christopher Smith
245a6c5683
move comments about parametrized solution to Notes
2019-08-08 08:50:12 -04:00
S.Y. Lee
d26ed13cda
Fix typo
2019-08-08 21:37:48 +09:00
S.Y. Lee
319d59eb70
Update warning message
2019-08-08 21:36:32 +09:00
S.Y. Lee
f5d3e87305
Add error handling for invalid args
2019-08-08 21:21:16 +09:00
S.Y. Lee
d6e2ba0383
Add totient option
2019-08-08 21:19:16 +09:00
S.Y. Lee
84a9539eb6
Redesign the structure of rsa_key
2019-08-08 21:16:29 +09:00
Sartaj Singh
ecd30247fd
Merge pull request #17134 from ArighnaIITG/test_branch
...
[GSoC] Introduction of FiniteFormalPowerSeries Class, which is returned by compose and inverse functions
2019-08-08 17:19:30 +05:30
czgdp1807
9f8b0c953c
a typo
2019-08-08 16:21:24 +05:30
Oscar Gustafsson
db8d2da26c
Merge pull request #17273 from CameronKing/17264_hbar_value
...
Updated value for hbar, G, kB to reflect current standards
2019-08-08 12:00:14 +02:00
Ritu Raj Singh
7c357f8bee
Merge branch 'master' into bessel_airy
2019-08-08 14:56:52 +05:30
kangzhiq
53bd35fc76
Bug fixed for py2.7
2019-08-08 17:20:16 +08:00
Oscar Benjamin
3541b2a09b
Merge pull request #16707 from RituRajSingh878/checkodesol_bessel
...
modify checkodesol for bessel type function
2019-08-08 10:13:58 +01:00
S.Y. Lee
f72aad5e09
Raise valueerror when CRT may not work
2019-08-08 17:50:44 +09:00
S.Y. Lee
4094815821
Add additional CRT test and fix CRT
2019-08-08 17:43:31 +09:00
S.Y. Lee
655a62258d
Add exhastive RSA-CRT test
2019-08-08 17:23:32 +09:00
S.Y. Lee
155cccf40c
Add documentation for CRT method
2019-08-08 17:15:55 +09:00
S.Y. Lee
065e0476be
Fix CRT algorithm
2019-08-08 17:07:28 +09:00
S.Y. Lee
aee14555bd
Generalized CRT method for multiprime RSA
2019-08-08 16:57:25 +09:00
S.Y. Lee
07b1ec930e
Add examples of output difference of generating private key using different totients
2019-08-08 16:40:00 +09:00
S.Y. Lee
e106d93894
Fix tests
2019-08-08 16:37:10 +09:00
S.Y. Lee
a772f7c28d
Copypaste docs about totient
2019-08-08 16:34:38 +09:00
S.Y. Lee
8a2afb8bba
Add option to use different totient, and add basic draft for RSA using chinese remainder theorem
2019-08-08 16:31:27 +09:00
S.Y. Lee
8729d9b95a
Remove usage of ambiguous keys
2019-08-08 15:55:59 +09:00
S.Y. Lee
84dc283bf8
Fix rsa key
2019-08-08 15:12:43 +09:00
Arighna Chakrabarty
ce9c668cd5
Removed redundant code
2019-08-08 11:37:14 +05:30
Arighna Chakrabarty
1673962aa5
Modified API of three subclasses
2019-08-08 11:34:30 +05:30
S.Y. Lee
6af5a608c2
Add shared utility for totient
2019-08-08 13:24:15 +09:00
S.Y. Lee
7321e63fcc
Add another test example
2019-08-08 13:06:53 +09:00
S.Y. Lee
df471e8650
Add RSA example test
2019-08-08 13:00:05 +09:00
Nikhil Maan
b595e72512
Improved C parser and tests
2019-08-08 09:20:44 +05:30
S.Y. Lee
34d7eb23af
Simplify docs
2019-08-08 12:39:51 +09:00
kangzhiq
38bf6965f6
Refactored codes
2019-08-08 11:39:32 +08:00
kangzhiq
899ac5a8e1
Added args test
2019-08-08 10:47:05 +08:00
Christopher Smith
4365b31628
Merge pull request #17367 from oscargus/unslowassumptiontests
...
Unmarked earlier slow assumption tests
2019-08-07 21:21:54 -04:00
Oscar Gustafsson
9ab1f2e2c3
Unmarked earlier slow assumption tests
2019-08-07 23:38:09 +02:00
RituRajSingh878
fff287513d
added test cases
2019-08-08 02:13:46 +05:30
Oscar Gustafsson
fd288ff99d
Fixed some comparison issues
2019-08-07 20:44:23 +02:00
RituRajSingh878
4a497aecc1
modified code and test cases
2019-08-07 23:11:40 +05:30
S.Y. Lee
2bb3cdca36
Fix tests
2019-08-08 02:24:26 +09:00
Oscar Gustafsson
86420282b3
Merge pull request #17361 from sylee957/add_flag_to_tree
...
Add flag to control verbosity to print_tree
2019-08-07 18:42:05 +02:00
S.Y. Lee
5df0fda61a
Fix doctests
2019-08-08 01:24:38 +09:00
S.Y. Lee
38d73763f9
Improve docs for private key
2019-08-08 01:15:08 +09:00
S.Y. Lee
b3a2121308
Improve docs for rsa_public_key
2019-08-08 01:08:50 +09:00
S.Y. Lee
501e56db50
Extend RSA capability to multiprime RSA
2019-08-07 23:32:01 +09:00
Shivani Kohli
7daedaadea
Removed trailing whitespace
2019-08-07 22:53:20 +09:00
hannah-kari
de319a27ab
Update crypto.py
2019-08-07 22:53:20 +09:00
hannah-kari
95dde332b4
Update crypto.py
2019-08-07 22:53:20 +09:00
Hannah Kari
38611e51fb
RSA Documentation Improvements
2019-08-07 22:53:20 +09:00
Nikhil Maan
18ce1576e3
Modified parser according to sym_expr
2019-08-07 18:56:19 +05:30
Nikhil Maan
2f308904ae
Added option to parse a string of source code
2019-08-07 18:55:53 +05:30
Nikhil Maan
1417a69e10
Modified clang import and installation for travis
2019-08-07 18:55:07 +05:30
Nikhil Maan
9ae5d2f597
Added Documentation for c_parser and modified travis setup files
2019-08-07 18:55:07 +05:30
Nikhil Maan
0e6371d366
Improved C parser
...
* Modified transform functions
* Improved conversion function
* Changed Writer class
* Improved parser using codegen AST
* Added Tests and functions for C parser
* imported specific functions for C parser
* Fixed exceptions in the parser
* Added init file
* Fixed parse_test
2019-08-07 18:54:31 +05:30
Nikhil Maan
7aaa4e26c5
Added C Parsing module
2019-08-07 18:53:52 +05:30
Oscar Gustafsson
484ddddd0e
Added tests and fixed empty plot
2019-08-07 12:23:15 +02:00
Miguel Marco
6ebad0bda5
Catch possible corner case
2019-08-07 09:29:48 +02:00
S.Y. Lee
ebaa5946e8
Merge pull request #17357 from ethankward/trig_rewrite_private
...
Refactor trigonometric rewrite functions
2019-08-07 16:15:59 +09:00
RituRajSingh878
37cf956e25
modified docs example of ode
2019-08-07 10:57:55 +05:30
kangzhiq
273d77c74a
Resolved conflict with master
2019-08-07 10:25:24 +08:00
S.Y. Lee
4bb87419bd
Add assumptions flag to tree printing
2019-08-07 10:30:31 +09:00
S.Y. Lee
0136232943
Add assumptions flag
2019-08-07 10:13:40 +09:00
Miguel Marco
a90e00fa99
Make sure we don't catch the case with linear denominator
2019-08-07 01:01:07 +02:00
Miguel Marco
dc1106e082
Deleted trailing spaces
2019-08-06 23:59:33 +02:00
Miguel Marco
30fffbd248
Extend quadratic_denom_rule in manual integration
2019-08-06 23:33:12 +02:00
Kalevi Suominen
1e211112f4
Merge pull request #17326 from Pristine-Cat/17325_Limit
...
bidirectional Limit.doit() implemented
2019-08-06 22:30:45 +03:00
Ondřej Čertík
277d34dc76
Merge pull request #17356 from Sc0rpi0n101/fort-compl
...
Fortran Parser using Codegen AST
2019-08-06 13:17:14 -06:00
kangzhiq
ed58428250
Updated code and added doctest and tests
...
- Updated code for simplification
- Added documentation
- Added tests for Flatten
_ Updated test_tensor
2019-08-07 01:40:47 +08:00
eward
ba5648c638
additional test_csc_rewrite
2019-08-06 10:18:14 -07:00
eward
1908ddb2b8
rewrite methods don't use private _eval_rewrite_as methods
2019-08-06 10:18:03 -07:00
Nikhil Maan
b5ed8d4e54
Added Tests and Documentation for parser
...
* Added documentation and examples for all the modules
* Added tests for the parser and tested on Travis
* Set up Travis and fix any build errors
2019-08-06 22:37:00 +05:30
Nikhil Maan
1626b096ef
Updated Fortran parser to use Codegen AST
...
* Modified parser to use codegen AST for output
* Added sym_expr module
* Added documentation refence for the module
* Set up Travis for the parser
2019-08-06 22:37:00 +05:30
Nikhil Maan
fb98cc391b
Added Fortran Parser for Sympy
...
* Added Fortran parser using lfortran
* Created fortran parsing module
* set up import_module for lfortran
2019-08-06 22:37:00 +05:30
Oscar Benjamin
3ba92f8b4c
Merge pull request #17353 from Pristine-Cat/17247_misc
...
misc changes from matrix mul testing
2019-08-06 15:56:19 +01:00
Tomasz Pytel
dbcafee550
misc changes from matrix mul testing
2019-08-06 09:11:19 -03:00
Oscar Gustafsson
23a15ec3a3
Fixed issue with showing empty plot
2019-08-06 13:36:37 +02:00
Sartaj Singh
a387ec6519
Merge pull request #17167 from ArighnaIITG/aseries_branch
...
[GSoC] Added aseries function
2019-08-06 12:43:27 +05:30
Steven Lee
ea67e384d9
Fix bugs in piecewise printer, which is origined from the difference built-in True and S.BooleanTrue
2019-08-06 15:27:46 +10:00
RituRajSingh878
a0aa8ca5db
modified test cases
2019-08-06 09:50:39 +05:30
S.Y. Lee
c60fec5263
Merge pull request #17254 from sylee957/fix_diagonal_solve_sparse
...
Sparse triangular and diagonal solve bug
2019-08-06 07:05:47 +09:00
Cameron King
c7385c8005
Performed a full update of physical constants to 2018 CODATA values
...
This pull request finishes a full update of the physical constants
to reflect the current 2018 CODATA standard including adding a physical
constant representing the elementary charge. In addition, derived
constants were modified so that they use their underlying definition
rather than their numerical values e.g. von Klintzing constant
is now defined as planck/elementary_charge^2.
2019-08-05 12:56:44 -07:00
RituRajSingh878
866e986dc1
modified the test case
2019-08-06 01:02:05 +05:30
Francesco Bonazzi
9a1a4ed076
Merge pull request #17124 from drybalka/tensor_refine_code
...
Tensor module code refinement
2019-08-05 21:07:35 +02:00
Chris Smith
260b324db7
11697: note re parametric soln; remove gcd
2019-08-05 14:06:28 -05:00
Cameron King
7eb1071824
Updated value of atomic mass constant to be consistent with 2018 CODATA value.
2019-08-05 11:27:10 -07:00
eward
679ff6c7f9
floor and ceiling inequality functionality
...
test positive and negative evaluation
nonnegative and nonpositive
add all combinations of tests
fix logic
do explicit inequality testing in __lt__, __le__ methods
update inequality tests
add missing inequality methods
additional inequality tests
additional comparison tests
fix comparison logic
additional comparison tests
move integer tests first; additional logic if number
check is_real
additional real check
additional tests for real, nonreal, integer cases
2019-08-05 09:51:05 -07:00
Oscar Gustafsson
ea42b20315
Fixed review comment
2019-08-05 18:01:46 +02:00
Ishan Joshi
9a0a27dfa1
a method to plot beam diagram using sympy's own plot()
2019-08-05 20:03:25 +05:30
Oscar Gustafsson
74581b9dae
Added some tests and fixed some bugs
2019-08-05 16:27:34 +02:00
kangzhiq
42e0f9de9e
Modified heritage to Basic
2019-08-05 22:25:23 +08:00
kangzhiq
b51ac0583b
Test passed
...
Fixed error in diff()
2019-08-05 22:15:38 +08:00
Shubham Kumar Jha
e2391aef40
Removed @slow decorator from tests that have become faster after #17144
2019-08-05 19:12:22 +05:30
RituRajSingh878
7548ab18b1
added test cases for lie_group type ode
2019-08-05 18:05:29 +05:30
Kalevi Suominen
a4297a11fd
Merge pull request #17340 from sylee957/make_permutation_atom
...
Make permutation atom
2019-08-05 12:26:05 +03:00
S.Y. Lee
f1ca9e8f4b
Fix array_form
2019-08-05 17:01:07 +09:00
S.Y. Lee
c21362aeca
Use array_form for printer
2019-08-05 16:12:50 +09:00
S.Y. Lee
6f7ada508b
Fix ordering
2019-08-05 14:55:02 +09:00
S.Y. Lee
e4f4addac5
Add test about finite set
2019-08-05 14:53:12 +09:00
S.Y. Lee
6404c8db7c
Remove unused import
2019-08-05 14:11:07 +09:00
S.Y. Lee
f1475f6e7a
Make permutation atom
2019-08-05 14:09:01 +09:00
Steven Lee
5970185136
Merge branch 'master' into add_maple_code_printer
2019-08-05 14:23:59 +10:00
S.Y. Lee
4a9bdbc72d
Merge pull request #17310 from sylee957/scipy_numeric_test
...
SciPy numeric test failing.
2019-08-05 08:35:24 +09:00
Oscar Gustafsson
5ab1594689
Merge pull request #17010 from oscargus/laguerrefixes
...
Fixed some issues with negative indexes for Laguerre polynomials
2019-08-05 00:31:34 +02:00
Ritu Raj Singh
75e9d66539
Merge branch 'master' into lie_group
2019-08-05 00:15:34 +05:30
Oscar Gustafsson and Christopher Smith
fbd947d475
Apply suggestions from code review
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-08-04 20:32:54 +02:00
RituRajSingh878
9e3eff9b6c
added method to solve factors independently
2019-08-04 21:01:37 +05:30
Christopher Smith
351d478d61
Merge pull request #17307 from smichr/abs
...
Abs arg handling
2019-08-04 07:10:11 -05:00
Arighna Chakrabarty
e68a39262d
Removed unnecessary diff_code.py
2019-08-04 17:30:11 +05:30
Arighna Chakrabarty
6977c01df0
Removed linkage between series and aseries functions
2019-08-04 17:28:23 +05:30
Arighna Chakrabarty
1a07ef6445
Fixed the docstring
2019-08-04 17:25:36 +05:30
Arighna Chakrabarty
a8a5f766f1
Changed the api of the various subclasses
2019-08-04 17:07:45 +05:30
czgdp1807
f46d1abc22
modified handler for matrices
2019-08-04 16:07:25 +05:30
Chris Smith
40e0368d86
remove cloaking; fix tests
2019-08-04 05:23:12 -05:00
S.Y. Lee
c218303c7c
Show numeric difference in message, and specify tolerance as 1e-9
2019-08-04 17:21:55 +09:00
czgdp1807
033844cc1b
canonical order of eigen vals
2019-08-04 13:49:23 +05:30
Jason K. Moore
81e8777650
Merge pull request #17335 from sylee957/fix_masses_doc
...
Make masses tutorial doctestable
2019-08-03 20:09:17 -07:00
S.Y. Lee
111ee03131
Make examples doctestable and correct some outputs
2019-08-04 09:29:36 +09:00
Denys Rybalka
7dbf7d5728
Minor corrections
2019-08-03 17:42:37 +02:00
Kalevi Suominen
a7988f0e6e
Merge pull request #17144 from ShubhamKJha/speed_up_cnf_3
...
Improvement in satask
2019-08-03 14:11:05 +03:00
Ishan Joshi
1710d3ad9e
corrected error and used subs() instead of evalf(subs={})
2019-08-03 09:32:58 +05:30
S.Y. Lee
4c57a10098
Merge pull request #17320 from JosephRedfern/docs-import-typo-fix
...
Fixed package import typo in documentation
2019-08-03 13:01:09 +09:00
Chris Smith
6d0a4e9624
cloak args during simultaneous replace
2019-08-02 21:01:03 -05:00
Steven Lee
cd67a5cf74
Add print derivatives ability and some other improvement
2019-08-03 07:36:32 +10:00
Ondřej Čertík
2d052567c6
Merge pull request #17223 from anpandey/match_noncomm
...
Rewrite of non-commutative multiplication matching
2019-08-02 14:19:34 -06:00
Ishan Joshi
025dfa630d
handled the case of line coinciding with edge, added tests and improved
...
documentation
2019-08-03 01:44:38 +05:30
kangzhiq
eab20bfb85
Renamed class to Flatten
...
- Renamed class to Flatten
- Fixed a bug of index
2019-08-03 02:10:41 +08:00
czgdp1807
845851f7f4
made eigenvals canonical
2019-08-02 19:55:48 +05:30
Ritesh Kumar
efbf66ab05
Minor changes
2019-08-02 19:35:46 +05:30
Ritesh Kumar
8b278a3929
Correct error
2019-08-02 19:29:13 +05:30
Ritesh Kumar
b8826df646
Allow symbolic parameters in joint_rv_types
2019-08-02 19:29:13 +05:30
Gilles Schintgen
0d9964df97
Check for infinite iteration in calculus.util.function_range()
...
Fixes 13273.
2019-08-02 11:34:10 +00:00
Chris Smith
ecb1090242
simplify processes deeply
2019-08-02 05:39:17 -05:00
Chris Smith
a4eefe6a1c
update Abs handling of solve
2019-08-02 05:39:13 -05:00
Chris Smith
045c96ac52
allow separatevars to separate abs
2019-08-02 05:39:08 -05:00
Chris Smith
0f053ccf0c
keep symbolic fractions together in abs
2019-08-02 05:38:58 -05:00
czgdp1807
0ca390e832
some minor changes
2019-08-02 13:58:06 +05:30
Kalevi Suominen
c91f596b65
Merge pull request #17045 from oscargus/complexconstantintegration
...
Fixed issue with complex constants in manual integration
2019-08-02 10:57:42 +03:00
Oscar Gustafsson
ed6e6772db
Merge pull request #17294 from oscargus/gbernardino-master
...
Mathml content printing of Piecewise
2019-08-02 09:47:58 +02:00
Oscar Gustafsson
1e7245b2b8
Updates based on comments
2019-08-02 09:26:08 +02:00
Oscar Gustafsson
302964dfc7
Merge branch 'sumproductimprovements' of https://github.com/oscargus/sympy into sumproductimprovements
2019-08-02 09:12:35 +02:00
Oscar Gustafsson
131ef3b9ef
Merge branch 'master' into sumproductimprovements
2019-08-02 09:11:09 +02:00
Oscar Gustafsson
c039e2b61b
Made output from str more copy-pastable
2019-08-02 09:10:04 +02:00
Kalevi Suominen
3866c3c59a
Merge pull request #17327 from sylee957/fix_travis_lambdify_fail
...
Travis test failing after numpy 1.17
2019-08-02 09:48:14 +03:00
S.Y. Lee
59c2f96043
Make numpy test version aware
2019-08-02 10:06:44 +09:00
S.Y. Lee
01af15a136
Exception changed after numpy 1.17
2019-08-02 07:50:49 +09:00
Tomasz Pytel
90849e5c4d
bidirectional Limit.doit()
2019-08-01 18:09:17 -03:00
kangzhiq
b7bce6ec25
Fixed bug of list(Array())
2019-08-02 01:18:17 +08:00
Oscar Gustafsson and Christopher Smith
3403b790d0
Apply suggestions from code review
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-08-01 19:01:33 +02:00
Joseph Redfern
e69bdcaa3e
Fixed package import typo in documentation
2019-08-01 17:05:29 +01:00
Oscar Gustafsson
de0a1a72e4
Merge pull request #17311 from ethankward/periodicity_index_error
...
Fix possible IndexError in periodicity
2019-08-01 16:01:07 +02:00
Oscar Gustafsson
f9f5882dd4
Merge pull request #17315 from johanbluecreek/lambdify_Exp1_fix
...
Fixing that lambdify fails when a single occurence of `E` is present
2019-08-01 15:59:54 +02:00
Oscar Gustafsson
f99ed644c4
Merge pull request #17318 from gschintgen/fix12420-sqrtdenest
...
Fix sqrtdenest raising IndexError
2019-08-01 15:59:35 +02:00
Shubham Kumar Jha
85bf545479
Updated code in sathandlers and added tests for satask queries related to prime and composite
2019-08-01 18:37:03 +05:30
Christopher Smith
3a2d88d4fc
Merge pull request #17301 from gschintgen/fix-17208-log-exp
...
Add simplification for log(exp())
2019-08-01 07:45:40 -05:00
Divyanshu
afa90a4873
small-fix
2019-08-01 17:20:27 +05:30
Gilles Schintgen
feef99aa41
Fix _sqrt_match: add check before calling _split_surds
...
Fixes issue #12420 .
2019-08-01 11:49:41 +00:00
Divyanshu
c3a4a87784
added-induced-pcgs-and-exponent-vector
2019-08-01 16:30:39 +05:30
S.Y. Lee
c185e77540
Make tolerance larger
2019-08-01 10:14:53 +09:00
eward
70e31066a6
remove unused import
2019-07-31 13:47:29 -07:00
eward
753d715144
test periodicity(sin(expint(1, x))/expint(1, x), x)
2019-07-31 13:46:01 -07:00
eward
094af4c659
update _periodicity if no period can be found
2019-07-31 13:43:58 -07:00
S.Y. Lee
783f64bedc
Add function key
2019-08-01 05:23:48 +09:00
S.Y. Lee
4770d9dd68
Add func keyword
2019-08-01 05:22:29 +09:00
S.Y. Lee
a505b4c9ae
Experiment : More trials to see the failing
2019-08-01 05:13:59 +09:00
S.Y. Lee
840b58504d
Reduce additional brackets
2019-08-01 05:13:25 +09:00
S.Y. Lee
c6e71abdd6
Use more descriptive error message for random numeric testing
2019-08-01 05:11:35 +09:00
kangzhiq
3e6e777f89
Remove changes for iterating list
2019-08-01 02:27:22 +08:00
kangzhiq
e1b6c6ddcc
New Iteration for Array
...
- Modified iteration function inside Array
- Added nditer object to iterate every element
- Modified _getitem_ to fix the case of A[:]
- Modified code and tests accordingly
2019-08-01 02:21:07 +08:00
S.Y. Lee
d4e0231b08
Merge pull request #17297 from sylee957/fix_block_collapse_blockdiagmatrix
...
Fix BlockDiagMatrix becoming BlockMatrix after block_collapse
2019-08-01 02:25:23 +09:00
czgdp1807
ed21b1f690
added tests
2019-07-31 19:57:23 +05:30
czgdp1807
47c8dc5023
circular ensembles added
2019-07-31 19:43:22 +05:30
Johan Blåbäck
a29b40873d
Adding test to make sure lambdify works with E
...
Test seems important, as this worked at around v1.0, but was now broken.
Test has been executed, and the added test passes.
2019-07-31 16:05:43 +02:00
Johan Blåbäck
47baf524e3
Fixes missing known constant in pycode.py
...
Before this fix the if one tried to lambdify an expression containing
`E` one got the following error:
```
>>> fun = lambdify(x, E)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/user/github/sympy/sympy/utilities/lambdify.py", line 754, in lambdify
funcstr = funcprinter.doprint(funcname, args, expr)
File "/home/user/github/sympy/sympy/utilities/lambdify.py", line 996, in doprint
funcbody.append('return ({})'.format(self._exprrepr(expr)))
File "/home/user/github/sympy/sympy/printing/codeprinter.py", line 107, in doprint
lines = self._print(expr).splitlines()
File "/home/user/github/sympy/sympy/printing/printer.py", line 287, in _print
return getattr(self, printmethod)(expr, **kwargs)
File "/home/user/github/sympy/sympy/printing/pycode.py", line 74, in _print_known_const
known = self.known_constants[expr.__class__.__name__]
KeyError: 'Exp1'
```
current commit fixes this error, and instead gives the expected output:
```
>>> fun = lambdify(x, E)
>>> fun(23) - exp(1.0)
0
```
2019-07-31 15:39:30 +02:00
Gilles Schintgen
f1f7c237df
Add short note about principal branch to log() docstring
2019-07-31 12:42:51 +00:00
czgdp1807
dbd29b3e3b
matrices with random elements
2019-07-31 17:52:08 +05:30
Gilles Schintgen
b763aaa7e4
Limit log(exp()) simplification to numeric arguments
...
- Check arg.is_number before simplifying log(exp())
- Fix _match_real_imag for plain Integers
- Add tests for _match_real_imag
2019-07-31 12:20:05 +00:00
Arighna Chakrabarty
a8cfd2bfc9
Added code to link series and aseries
2019-07-31 16:43:02 +05:30
Arighna Chakrabarty
dd3ed02a4c
Added comments
2019-07-31 15:03:18 +05:30
Arighna Chakrabarty
36beba7e34
Fixed requested changes
2019-07-31 12:13:41 +05:30
S.Y. Lee
4d4e97cdb1
Add test about rewriting Heaviside with Heaviside(0) arg
2019-07-31 14:59:36 +09:00
S.Y. Lee
d0074c1c3f
Add test about Heaviside(0) arg
2019-07-31 14:56:54 +09:00
S.Y. Lee
e4f65898c3
Flatten heaviside zero if H0=Heaviside(0)
2019-07-31 14:53:05 +09:00
S.Y. Lee
9fa4b26a53
Fix doctest
2019-07-31 11:50:17 +09:00
S.Y. Lee
187c91fab4
Modified tests
2019-07-31 11:43:49 +09:00
S.Y. Lee
ca0e609add
Add spacing
2019-07-31 11:29:35 +09:00
S.Y. Lee
6c7b28e94b
Return full piecewise specification with H0
2019-07-31 11:24:14 +09:00
S.Y. Lee
2bbdaaac64
Update delta_functions.py
2019-07-31 10:48:27 +09:00
Nikhil Maan and sylee957
76667f69da
Add S to import
...
Co-Authored-By: sylee957 <sylee957@gmail.com >
2019-07-31 10:48:27 +09:00
S.Y. Lee
ea2256b591
Fix doctests
2019-07-31 10:48:27 +09:00
S.Y. Lee
bf4ca8aa49
Change test
2019-07-31 10:48:27 +09:00
S.Y. Lee
e5f978b2f2
Resolve merge conflict
2019-07-31 10:48:21 +09:00
S.Y. Lee
8328d7260d
Resolve merge conflict
2019-07-31 10:46:44 +09:00
Gilles Schintgen
1cd386e1c7
Add tests for log(exp()) simplification
2019-07-30 21:56:57 +00:00
Gilles Schintgen
7b042f1c2c
Add auto-simplification for log(exp())
...
Before:
>>> log(exp(3*I*pi/4))
log(exp(3*I*pi/4))
>>> x = Symbol('x', real=True)
>>> log(exp(x + 7*I))
log(exp(x + 7*I))
After:
>>> log(exp(3*I*pi/4))
3*I*pi/4
>>> x = Symbol('x', real=True)
>>> log(exp(x + 7*I))
x - 2*I*pi + 7*I
This commit also factors out some code as a new helper:
_match_real_imag(expr)
2019-07-30 21:49:13 +00:00
Chris Smith
9ddb85e532
add collect_abs
2019-07-30 13:22:55 -05:00
S.Y. Lee
5192b90f6d
More equivalent logic
2019-07-31 00:13:23 +09:00
Christopher Smith
d3c1050bae
Merge pull request #17296 from sylee957/fix_block_collapse_sparse
...
Sparse matrix block_collapse fix
2019-07-30 09:49:40 -05:00
Oscar Gustafsson
015c1290d9
Bypassed inside heurisch instead and added more functions
2019-07-30 15:58:20 +02:00
Christopher Smith
0ddeeea520
Merge pull request #17290 from oscargus/svgprinting
...
Added SVG LaTeX rendering
2019-07-30 06:36:15 -05:00
Christopher Smith
289aa1e776
Merge pull request #17298 from oscargus/latexderivativeprinting
...
Fixed printing of non-trivial derivative count
2019-07-30 06:35:14 -05:00
Oscar Gustafsson
83a724d410
Fixed printing of non-trivial derivative count
2019-07-30 11:52:50 +02:00
Steven Lee
2bc01105dd
Mark all problemic test
2019-07-30 19:42:47 +10:00
Oscar Gustafsson
d0e07d6d54
Fixed printing
2019-07-30 11:13:10 +02:00
Steven Lee
31e56ec185
Remove unnecessary _print_Function in maple printer
2019-07-30 18:46:42 +10:00
Oscar Gustafsson
023f37195a
Added symbolic derivative count to Derivative.free_symbols
2019-07-30 10:24:25 +02:00
S.Y. Lee
3ca0d4dbee
Add newline
2019-07-30 17:05:12 +09:00
Steven Lee
f12167cae6
Fix some bugs in Function print in maple printer
2019-07-30 17:56:23 +10:00
S.Y. Lee
5d4bd66702
Add test about type conversion
2019-07-30 16:41:40 +09:00
S.Y. Lee
40733d06f6
Properly check type
2019-07-30 16:36:48 +09:00
S.Y. Lee
8e0bdb866e
Fix type mismatch for block diag matrix inverse
2019-07-30 16:30:21 +09:00
S.Y. Lee
313cef8c85
Fix type conversion from bc_transpose
2019-07-30 16:21:35 +09:00
S.Y. Lee
3057c153c1
Fix type conversion from transpose
2019-07-30 16:11:55 +09:00
S.Y. Lee
1b5510dc61
Handle block diag matrix separately
2019-07-30 16:04:20 +09:00
Steven Lee
b61db9c200
Fix some bugs
2019-07-30 16:23:21 +10:00
Steven Lee
9884d568f2
Modify a test case to use another way to display complex number
2019-07-30 16:15:25 +10:00
Steven Lee
6ce11be9a3
Fix some problem when printing object related to Matrix
2019-07-30 16:14:49 +10:00
Steven Lee
8159f70010
Some improvement and fix some problem
2019-07-30 15:19:23 +10:00
Steven Lee
cf87646d63
Fix a bug in _print_Assignment in maple printer
2019-07-30 14:48:01 +10:00
Steven Lee
2ef602d6e8
fix some problem on MatMut
2019-07-30 14:39:15 +10:00
Steven Lee
eb7a7e53c2
fix test case extra space in printing of complex number
2019-07-30 14:35:55 +10:00
Steven Lee
8da5839555
Fix MatMul printing problem
2019-07-30 14:34:19 +10:00
S.Y. Lee
3c5ef520e8
Make name more suggestive
2019-07-30 13:16:57 +09:00
S.Y. Lee
f1095fe4c8
Add test for sparse matrix
2019-07-30 13:12:14 +09:00
S.Y. Lee
5a646118c5
Use expr_fns for less volatile construction
2019-07-30 13:12:14 +09:00
Steven Lee
48ad66bf78
Add test case for maple printer to print tuple
2019-07-30 13:52:48 +10:00
Steven Lee
93b48cc6a7
Add ability for maple printer to print tuple
2019-07-30 13:52:30 +10:00
Steven Lee
e69a3932d0
Correct test case for print container in maple printer
2019-07-30 13:26:10 +10:00
Steven Lee
bdd7e95156
Add printing ability for indentity matrix for mapler printer and related test case
2019-07-30 13:12:37 +10:00
Steven Lee
1f55046af2
Fix a test case test_Pow for maple printer
2019-07-30 13:05:37 +10:00
Steven Lee
2119ad82a8
FIX error in _get_matrix
2019-07-30 13:03:31 +10:00
Steven Lee
92115472f5
Add _print_MatMul for maple printer
2019-07-30 12:32:17 +10:00
Steven Lee
e99c33b43c
Merge branch 'master' into add_maple_code_printer
2019-07-30 06:33:14 +10:00
Steven Lee
63fff8ec7f
make _print_Matrix use self._print to print element in maple printer
2019-07-30 06:30:03 +10:00
Steven Lee
0f5e37b030
Add test for specfun for maple printer, but there might be slight problem
2019-07-30 06:24:52 +10:00
Steven Lee
d488fd390a
Add test case for piecewise times const for maple printer
2019-07-30 06:21:26 +10:00
Steven Lee
aea4f26e18
Add test case for piecewise for maple printer
2019-07-30 06:19:25 +10:00
Steven Lee
b0e6ef6139
Add printer for piecewise function for maple code.
2019-07-30 06:13:31 +10:00
Steven Lee
5addbc061d
Add test case for haramard product in maple printer
2019-07-30 06:00:13 +10:00
Steven Lee
5beddc8f3d
Format Improvement in Maple printer
2019-07-30 05:59:28 +10:00
Steven Lee
babaf25247
Add _print_MatrixElement in maple printer
2019-07-30 05:53:18 +10:00
Steven Lee
11d0df6925
Add test case for not supported in maple printer
2019-07-30 05:46:14 +10:00
Cameron King
271a1f7532
Updated electronvolt scale factor
...
The value of the elementary charge was set to a fixed value as in
the 2018 revision of the CODATA accepted values. This sets the
conversion factor to the full precision of that value.
2019-07-29 10:39:07 -07:00
Oscar Gustafsson
acf20b71f8
Added test
2019-07-29 18:12:40 +02:00
Oscar Gustafsson
1f97819b27
Merge pull request #17201 from gschintgen/fix4612-log-values-v1
...
Make log() recognize some exact values
2019-07-29 18:05:55 +02:00
Oscar Gustafsson
3217fd859c
Removed debug printing...
2019-07-29 16:35:26 +02:00
RituRajSingh878
0a1af8a0b7
modified some linear 2nd order test
2019-07-29 19:46:39 +05:30
Oscar Gustafsson
041b673a6a
Merge branch 'master' of https://github.com/gbernardino/sympy into gbernardino-master
2019-07-29 16:05:18 +02:00
Oscar Gustafsson
aeeef39bc8
Removed empty line at end of file
2019-07-29 15:26:22 +02:00
Oscar Gustafsson
2e2b9edeae
Merge pull request #17291 from sylee957/fix_mathematica_tribonacci
...
Fix precedence control for tribonacci constant in mathematica code
2019-07-29 14:46:50 +02:00
Oscar Gustafsson
4e43dd4bf8
Added some tests for summation with MatrixSymbol
2019-07-29 13:49:45 +02:00
Oscar Gustafsson
1b01f87f92
Used as_coeff_mul instead of as_independent
2019-07-29 13:22:30 +02:00
Oscar Gustafsson
af994da97e
Used as_independent and renamed dummy generation
2019-07-29 12:35:47 +02:00
Shubham Kumar Jha
ca616d90c5
Some minor fixes
2019-07-29 15:22:11 +05:30
Steven Lee
7eab7b3524
self._print to str in maple printer to print matrix
2019-07-29 19:37:02 +10:00
Steven Lee
28703b35ed
Add some test case in test_maple.py
2019-07-29 19:35:49 +10:00
Steven Lee
163c964aca
Add test case for matrix in maple printer
2019-07-29 17:59:14 +10:00
Steven Lee
a6b990061b
Fix matrix printing for empty matrix
2019-07-29 17:43:38 +10:00
Steven Lee
404d372360
Merge branch 'add_maple_code_printer' of github.com:stevenleeS0ht/sympy into add_maple_code_printer
2019-07-29 17:37:57 +10:00
Steven Lee
ac13bb8884
Add some improvement in test_maple
2019-07-29 17:37:52 +10:00
Steven Lee
b7513049de
Add _print_Assignment for maple printer
2019-07-29 17:36:12 +10:00
RituRajSingh878
160e17c544
modify some tests
2019-07-29 11:48:52 +05:30
S.Y. Lee
28ff5bc8d9
Fix matrix printing
2019-07-29 14:56:33 +09:00
RituRajSingh878
48493fc347
modify test cases
2019-07-29 11:18:04 +05:30
Shubham Kumar Jha
001674841f
Simplified the code in _extract_all_facts from ask module
2019-07-29 10:21:51 +05:30
S.Y. Lee
b93b367dea
Add baked formula to number_symbols
2019-07-29 13:32:58 +09:00
S.Y. Lee
909dedd5d8
Fix precedence control for tribonacci constant
2019-07-29 11:58:04 +09:00
S.Y. Lee
e640d58818
Fix goldenratio precedence and other test failings
2019-07-29 11:25:54 +09:00
Steven Lee
baea3166da
Merge branch 'add_maple_code_printer' of github.com:stevenleeS0ht/sympy into add_maple_code_printer
2019-07-29 12:07:23 +10:00
Steven Lee
86e300f0e5
Merge branch 'master' into add_maple_code_printer
2019-07-29 12:06:58 +10:00
S.Y. Lee
773034fb94
Add golden ratio printing, and parenthesize power printing
2019-07-29 10:54:14 +09:00
S.Y. Lee
b8a272c358
Fix escape sequence and trailing space failing from the ascii art
2019-07-29 10:31:33 +09:00
Francesco Bonazzi
9406dcdc04
Merge pull request #17174 from czgdp1807/rand_mat
...
Added random matrices(Gaussian Ensembles only)
2019-07-28 23:47:45 +02:00
Francesco Bonazzi
6cb1812203
Merge pull request #17282 from kangzhiq/fix_getitem
...
Fixed bug of __getitem__ for single item array
2019-07-28 23:46:52 +02:00
Oscar Gustafsson
04cb4f89e0
Evaluate for any negative integer power
2019-07-28 22:44:32 +02:00
Oscar Gustafsson
94e13848d7
Added SVG LaTeX rendering
2019-07-28 21:40:59 +02:00
RituRajSingh878
844baad513
added more tests for besselsimp
2019-07-29 00:42:29 +05:30
Oscar Gustafsson
2297f568d5
Abs(1/x) is now evaluated to 1/Abs(x)
2019-07-28 18:21:15 +02:00
Christopher Smith
694bbcc84f
Merge pull request #17277 from oscargus/latexscaling
...
Add scaling to LaTeX output
2019-07-28 10:57:45 -05:00
Christopher Smith
d26ebde9fa
Merge pull request #17271 from oscargus/oocomparison
...
Better comparison for frac, floor, and ceiling
2019-07-28 10:01:23 -05:00
Oscar Gustafsson
899695dc35
Fixed review comments
2019-07-28 16:03:44 +02:00
Christopher Smith
391a3a40c9
Merge pull request #17288 from oscargus/derivativelatexprinting
...
Fixed LaTeX printing of derivative symbol with superscript
2019-07-28 08:01:50 -05:00
Christopher Smith
470d7f50a3
Merge pull request #17074 from oscargus/stieltjes_printing
...
Printing of Stieltjes and Mathieu functions, improved printing of integer polynomials
2019-07-28 08:00:44 -05:00
Oscar Gustafsson and Christopher Smith
784f6f1470
Apply suggestions from code review
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-07-28 13:51:06 +02:00
Oscar Gustafsson and Christopher Smith
6c1fda5e39
Update sympy/concrete/summations.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-07-28 13:49:55 +02:00
Oscar Gustafsson
2b4b915d7a
Merged with master
2019-07-28 13:24:26 +02:00
Oscar Gustafsson
6c8c16474a
Fixed LaTeX printing of derivative symbol with superscript
2019-07-28 12:47:16 +02:00
Steven Lee
8162b47d9a
Correct NaN output from NULL to undefined
2019-07-28 20:09:13 +10:00
Steven Lee
67dcf34168
Merge branch 'master' into add_maple_code_printer
2019-07-28 20:07:25 +10:00
Oscar Benjamin
2c5dbb45e2
Merge pull request #17215 from ethankward/kronecker_simplify
...
KroneckerDelta simplification and rewrite(Piecewise)
2019-07-28 10:58:56 +01:00
Oscar Gustafsson
82a10e752b
Fixed merge conflicts and updated LaTeX printing of exponents
2019-07-28 11:58:40 +02:00
RituRajSingh878
4f16d435d2
modify test case
2019-07-28 14:29:50 +05:30
Oscar Gustafsson
6e02ac3a87
Fixed ODE test issue
2019-07-28 10:39:28 +02:00
S.Y. Lee
32e6de8b95
Merge pull request #17275 from sylee957/fix_dot_product
...
Dot product multiplied with matrix is giving an error
2019-07-28 11:54:37 +09:00
Christopher Smith
f49895cc79
Merge pull request #17248 from vezeli/master
...
Improve finite difference approximation for non-equidistant discretization step
2019-07-27 19:30:45 -05:00
Oscar Gustafsson
8b14e4d092
Reverted test properly
2019-07-27 23:41:05 +02:00
Gilles Schintgen
27cfe5c359
log() exact values: handle multiplicative coefficient
...
- Properly handle arguments given as coeff*(r + i*I)
instead of just r + i*I.
- Add some more tests in test_log_exact().
- Fix an unfortunate typo in log()'s atan_table.
2019-07-27 21:28:12 +00:00
Oscar Gustafsson
a35b8bf6c8
Reverted test
2019-07-27 23:27:28 +02:00
Oscar Gustafsson
39aff0a4c9
Renamed to scale
2019-07-27 22:14:25 +02:00
Oscar Gustafsson
a978e22b88
Fixed weird issue in a single ODE test
2019-07-27 22:08:26 +02:00
Oscar Gustafsson
d0ea3991a7
Use special handling for Piecewise in simplify
2019-07-27 21:36:39 +02:00
Oscar Gustafsson
02396c2210
Rewrote Piecewise result
2019-07-27 21:17:45 +02:00
Oscar Gustafsson
ce9c749092
Restored test
2019-07-27 20:31:18 +02:00
Oscar Gustafsson
02b1432afb
Added final piecewise_fold to avoid Piecewise simplification growth
2019-07-27 20:28:26 +02:00
kangzhiq
2011de8a58
Fixed bug of getitem and add tests
...
- Fixed bug of __getitem__
- Added tests for single item Array for sparse array
2019-07-28 01:13:42 +08:00
Ankit Pandey
9777d7a6e0
Rename matpows to just pows
2019-07-27 22:56:44 +05:45
Ankit Pandey
e685d19049
Some docstring and comment updates
2019-07-27 22:55:52 +05:45
Ishan Joshi
5d51cdb748
added section and polar modulus functions for ellipse class
2019-07-27 21:30:06 +05:30
Oscar Gustafsson
a23e500d86
Updated failing test
2019-07-27 16:24:44 +02:00
Oscar Gustafsson
9072e6f6bd
Added original issue from #16417
2019-07-27 15:35:49 +02:00
Oscar Gustafsson
4d172ec412
Do not evaluate atan2(0, x) for non-number x
2019-07-27 15:25:01 +02:00
Oscar Gustafsson
83d2f6114b
Added evaluation of atan(0, complex) and fixed issue with re/im in Piecewise
2019-07-27 15:18:41 +02:00
czgdp1807
aa901b51e5
docs complete
2019-07-27 16:31:04 +05:30
czgdp1807
d3edffd669
code complete
2019-07-27 16:08:00 +05:30
Oscar Gustafsson
79bae71a3d
Improved documentation
2019-07-27 12:06:43 +02:00
Oscar Gustafsson
e983b4a207
Add scaling to LaTeX output
2019-07-27 11:57:30 +02:00
Steven Lee
54489230d5
Some progress on test_maple.py
2019-07-27 19:29:37 +10:00
Steven Lee
f95e9aadff
Add test for maple: test_maple.py
2019-07-27 19:14:44 +10:00
Steven Lee
2437ad3c0f
Finished Matrix related maple printer function
2019-07-27 19:06:56 +10:00
Steven Lee and S.Y. Lee
33a6662cca
Update sympy/printing/maple.py exp(1) to Exp1
...
Co-Authored-By: S.Y. Lee <sylee957@gmail.com >
2019-07-27 18:32:17 +10:00
Steven Lee
8205128bec
Add gitigore rule for venv.
2019-07-27 18:29:19 +10:00
czgdp1807
fbfedb6c62
joint_eig_dist complete
2019-07-27 12:12:54 +05:30
S.Y. Lee
0023b06552
Add proper tests for dotproduct
2019-07-27 15:33:33 +09:00
S.Y. Lee
2a5de4d6d3
Fix unevaluated dot product becoming matrix expression without shape
2019-07-27 15:30:57 +09:00
czgdp1807
5d9f59b887
removed trivial bug
2019-07-27 10:34:32 +05:30
Steven Lee
6002f15daa
Add _print_NaN for maple code printer
2019-07-27 11:58:17 +10:00
Steven Lee
b25f5ff0e8
Make some progress in maple printer for NumberSymbol printing.
2019-07-27 11:54:13 +10:00
Steven Lee and S.Y. Lee
0178ac8172
Update sympy/printing/maple.py, I tp ImaginaryUnit
...
Co-Authored-By: S.Y. Lee <sylee957@gmail.com >
2019-07-27 11:30:00 +10:00
S.Y. Lee
53162f810e
Flatten example matrix
2019-07-27 09:45:41 +09:00
S.Y. Lee
f32ebf9821
Remove positive definite tests
2019-07-27 09:44:38 +09:00
S.Y. Lee
cfe62ae9ae
Add exponential
2019-07-27 09:32:49 +09:00
S.Y. Lee
4d48d1b9cf
Add simplify flag
2019-07-27 09:32:48 +09:00
S.Y. Lee
caaabeb7a1
Add tests for matrix logarithm
2019-07-27 09:32:48 +09:00
S.Y. Lee
1e65bc3d96
Remove principal flag
2019-07-27 09:32:48 +09:00
S.Y. Lee
832b36c7c8
Add principal flag
2019-07-27 09:32:48 +09:00
S.Y. Lee
de97505974
Add examples for non-positive definite matrices
2019-07-27 09:32:47 +09:00
S.Y. Lee
d422be6239
Add test of zero eigenvalue
2019-07-27 09:32:47 +09:00
S.Y. Lee
4c4a71d9e5
Add examples
2019-07-27 09:32:47 +09:00
S.Y. Lee
e503c0eef7
Add matrix logarithm
2019-07-27 09:32:47 +09:00
Steven Lee
2d86c08458
define _format_code for maple printer
2019-07-27 06:44:25 +10:00
Steven Lee
2c2e22e2d4
Merge branch 'master' into add_maple_code_printer
2019-07-27 06:39:24 +10:00
Oscar Gustafsson
203c796084
Removed test that was already moved
2019-07-26 22:37:40 +02:00
Oscar Gustafsson
9da22461d0
Fixed conflicts
2019-07-26 22:35:39 +02:00
Steven Lee
b9198219ec
Improved the format of source code of maple printer
2019-07-27 06:31:23 +10:00
Steven Lee
d17522c903
Fixed relational ops printing and some other problem.
2019-07-27 06:29:09 +10:00
Oscar Gustafsson
5fa3be624b
Added final doit back
2019-07-26 22:25:36 +02:00
Steven Lee and S.Y. Lee
f7691cbc8e
Update sympy/printing/maple.py
...
Co-Authored-By: S.Y. Lee <sylee957@gmail.com >
2019-07-27 05:52:39 +10:00
Christopher Smith
858825b73a
Update test_exponential.py
2019-07-26 14:11:20 -05:00
Cameron King
a2fa4f641f
Updating amu and doc-tests based on updated physical constants
...
Updating hbar and G caused a knock-on effect where the definition
of amu changed, so that was updated. In addition in the doc-tests,
solving for the period of Venus was updated to reflect the change
in the value of the Newtonian gravitational constant.
2019-07-26 10:37:12 -07:00
Cameron King
b33dabf9f2
Updated value for hbar to reflect current standard
...
In June 2019, the recommended value for the reduced Planck's
constant was set to a fixed quantity. Updating this quantity
necessitated updating the value of G, the Newtonian gravitational
constant, and kB, the Boltzmann constant, for internal consistency.
Furthermore, the unit consistency tests were updated. The values
for the tests were based on the 2018 CODATA values.
2019-07-26 09:08:43 -07:00
Oscar Gustafsson
67c7e76ea4
Do not try heurisch if integral contains abs or sign
2019-07-26 17:55:31 +02:00
Christopher Smith
952475e485
Merge branch 'master' into fix4612-log-values-v1
2019-07-26 10:53:16 -05:00
Christopher Smith
12c50d4004
Merge pull request #17251 from gschintgen/fix17216-exp-period
...
Reduce exp() argument modulo 2*I*pi
2019-07-26 10:07:08 -05:00
Christopher Smith
7950150610
Merge pull request #17270 from gschintgen/fix-asec-docstring
...
Fix asec and acos docstrings
2019-07-26 10:05:51 -05:00
Oscar Gustafsson
6cdabb3543
Removed is_extended_real checks
2019-07-26 17:05:04 +02:00
Oscar Gustafsson
ca03b21c5a
Added LaTeX printing for frac
2019-07-26 17:02:25 +02:00
Oscar Gustafsson
220e160da0
Improved comparisons and assumption checking for frac
2019-07-26 16:36:03 +02:00
S.Y. Lee
52641f02c7
Merge pull request #17193 from Abhi58/7710_diop_solve_docstring_consistent_output
...
diop_solve docstring updated
2019-07-26 23:27:06 +09:00
S.Y. Lee
de762980ae
Merge pull request #17022 from anpandey/numpy_identity
...
NumPy print support for identity matrices
2019-07-26 23:25:55 +09:00
S.Y. Lee
79c6b64808
Merge pull request #17255 from sameshl/import_plot_parametric
...
add plot_parametric to global namespace
2019-07-26 23:08:28 +09:00
Kalevi Suominen
d7e8cbfb5b
Merge pull request #16991 from divyanshu132/polycyclic-group
...
Added Polycyclic Group Class
2019-07-26 16:16:38 +03:00
Gilles Schintgen
e08f1adcdf
Fix up asec and acos docstrings
...
- Fix a formula given in asec docstring.
- Fix a reference to the above docstring in acos docstring.
2019-07-26 12:35:12 +00:00
Steven Lee
0d984eb97e
Some improvement on maple printer, merge infinity, pi and I into atomic expr.
2019-07-26 22:03:35 +10:00
Gilles Schintgen
3a9a5f24e1
Enable exp() simplification for symbolic argument
...
- Simplify exp() automatically if it results in 1, -1, I or -I (also
symbolically).
- Add more tests for exp() simplification.
2019-07-26 11:48:21 +00:00
Oscar Gustafsson
5bcbada73d
Added cases when comparing floor/ceiling with oo
2019-07-26 11:41:32 +02:00
Oscar Gustafsson
b5a349d9c3
Merge pull request #17245 from oscargus/testcleaning
...
Moved, marked, and enabled tests.
2019-07-26 10:53:53 +02:00
Oscar Gustafsson
a4905dac85
Merge pull request #17253 from smichr/neg
...
optimize __neg__ routines
2019-07-26 10:50:55 +02:00
Shubham Kumar Jha
320c608295
Merge branch 'speed_up_cnf_3' of https://github.com/ShubhamKJha/sympy into speed_up_cnf_3
2019-07-26 13:54:50 +05:30
Shubham Kumar Jha
34f073d823
Fix some minor mistakes
2019-07-26 13:53:35 +05:30
Shubham Kumar Jha
0c57bc3065
Fix some minor mistake
2019-07-26 13:45:31 +05:30
Steven Lee
064d46d5b6
Some improvement and additional comment on printing/maple.py
2019-07-26 16:30:48 +10:00
Steven Lee
f4834778ac
Add printer for Maple, the overall structure established
2019-07-26 16:11:51 +10:00
Ondřej Čertík
7b3c026937
Merge pull request #17263 from sympy/certik-patch-1
...
Create FUNDING.yml
2019-07-25 20:16:22 -06:00
Shubham Kumar Jha
bcf8af9caa
Removed unnecessary __lt__ function from Literal
2019-07-26 05:51:20 +05:30
Shubham Kumar Jha
2e085344c3
Removed literal_store in order to avoid memory leak and reduced encoding of Literals happening in the constructor itself. Instead encoding now happens at EncodedCNF only
2019-07-26 05:48:59 +05:30
Gilles Schintgen
914fada119
Adapt a doctest in physics/matrices.py to new exp() simplifications
2019-07-25 22:45:10 +00:00
Ondřej Čertík
26364474b2
Create FUNDING.yml
...
Add a link to a NUMFocus donate page for SymPy.
2019-07-25 15:49:56 -06:00
Francesco Bonazzi
3295b02c61
Merge pull request #17226 from kangzhiq/new_iter
...
Modified behavior of __getitem__ for arrays
2019-07-25 22:58:34 +02:00
Ankit Pandey
5a55d519fa
Add mismatch and positive exponent tests
2019-07-26 02:36:11 +05:45
Chris Smith
a1048cbe1b
move Add handling in Expr.__neg__ to Add
2019-07-25 15:40:59 -05:00
Ankit Pandey
a910af65c1
Check if matches contradict eachother
...
If a wildcard is more than once in a pattern, make sure that it matches
the same subexpression every time
2019-07-26 02:22:15 +05:45
Chris Smith
85586dc9f2
fix abs recursion error
2019-07-25 15:33:54 -05:00
Chris Smith
5c66c60d71
make sure extract_multiplicatively is canonical
2019-07-25 15:33:54 -05:00
Chris Smith
5c32dd5b00
optimize __neg__
2019-07-25 15:33:54 -05:00
Ankit Raj Pandey and Aaron Meurer
cc2d728866
More precise error message
...
Co-Authored-By: Aaron Meurer <asmeurer@gmail.com >
2019-07-26 01:41:26 +05:45
Oscar Gustafsson
aae0b0c5cf
Fixed failing slow tests
2019-07-25 20:34:25 +02:00
Ankit Pandey
5ff930617c
Use indices in wildcard dictionary
2019-07-26 00:05:34 +05:45
Oscar Gustafsson
8db6f02825
Updated tests
2019-07-25 19:06:32 +02:00
Oscar Gustafsson
3b8777c6f0
Fixed issue in piecewise_simplify
2019-07-25 18:06:27 +02:00
Oscar Gustafsson
1b8c8af37b
Fixed issue with inheriting assumptions
2019-07-25 17:58:13 +02:00
Oscar Gustafsson
397b3f971b
Added test for xreplace on Sum with Range
2019-07-25 16:29:25 +02:00
czgdp1807
491dd8fb6a
Merge branch 'rand_mat' of https://github.com/czgdp1807/sympy into rand_mat
2019-07-25 19:24:05 +05:30
Oscar Gustafsson
0675aa7efc
Added test for non-commutativity in Sum
2019-07-25 15:53:02 +02:00
czgdp1807
1bfdcb072c
test_args extended
2019-07-25 19:22:41 +05:30
czgdp1807
161cfa051a
work joint_eig_prob_dist started
2019-07-25 19:20:02 +05:30
Ankit Pandey
087cf663c9
Two more assertions
2019-07-25 19:06:49 +05:45
czgdp1807
19f534a1fe
some arch changes
2019-07-25 18:47:43 +05:30
Oscar Gustafsson
00105f3947
Fixed bug with using xreplace on ExprWithLimits using Range
2019-07-25 14:59:23 +02:00
S.Y. Lee
5f3a646dee
Fix upper and lower triangular solve for sparse matrix not working with second column
2019-07-25 21:31:55 +09:00
czgdp1807
c8a70b0369
some work
2019-07-25 16:11:15 +05:30
Oscar Gustafsson
6d5debc466
Fix simplify and tests
2019-07-25 12:31:17 +02:00
Velibor Zeli
9738389c64
Change documentation
...
Since `_as_finite_diff` is a private function it is better to remove the
documentation and move it to `sympy/core/functions.py`. Additionally,
documentation for the deprecated function `as_finite_diff` is changed so
that the SymPy website no longer shows misguided doc.
2019-07-25 10:46:20 +02:00
Divyanshu
86b8fe7247
update
2019-07-25 12:12:25 +05:30
Samesh Lakhotia
fbadd84238
add plot_parametric to global namespace
...
closes #17252
2019-07-25 11:15:27 +05:30
Gagandeep Singh
1083ceadba
Merge branch 'master' into rand_mat
2019-07-25 10:57:44 +05:30
S.Y. Lee
d92e6db863
Fix sparse diagonal solve truncating columns
2019-07-25 10:54:19 +09:00
Divyanshu
4c9ca8ad85
update
2019-07-25 06:54:16 +05:30
Divyanshu
d80c0edd1d
update-add-doc
2019-07-25 06:50:57 +05:30
Velibor Zeli
de51d884b6
Modify logics in if loop
2019-07-24 21:11:41 +02:00
kangzhiq
62fce6f64c
Updated code and tests
...
- Changed the way to convert integer to tuple
- Changed tests
2019-07-25 01:32:07 +08:00
Oscar Gustafsson
4b1ee122bc
Added some methods to improve summations and products
2019-07-24 19:23:11 +02:00
Divyanshu
7d9e3e497c
minor-fixes
2019-07-24 21:41:15 +05:30
Gilles Schintgen
5bad41867b
Add tests for exp() periodicity handling
2019-07-24 14:39:28 +00:00
Gilles Schintgen
0283551a97
Reduce exp() argument modulo 2*pi*I
...
exp() arguments with an imaginary part that is a rational multiple of pi
will now be reduced mod 2*pi*I.
Before:
In [8]: exp(9*I*pi/4) - exp(I*pi/4)
Out[8]: -exp(I*pi/4) + exp(9*I*pi/4)
In [9]: simplify(_)
Out[9]: -(-1)**(1/4) + exp(9*I*pi/4)
After:
In [4]: exp(9*I*pi/4) - exp(I*pi/4)
Out[4]: 0
2019-07-24 14:33:14 +00:00
Oscar Gustafsson
ba24fa4f24
Fixed tests
2019-07-24 15:32:44 +02:00
Gilles Schintgen
04df71083e
log(): Add more tests for auto-eval of exact values
2019-07-24 13:21:56 +00:00
Oscar Gustafsson
a26b3bbd5c
More cleanups of tests
2019-07-24 14:54:21 +02:00
Gilles Schintgen
4836afb7dd
Refactor log.eval for exact values (rational multiples of pi)
...
- Only basic matching of a+b*I is done, in order to avoid potentially
expensive expansion by re, im or as_real_imag.
- log(b*I) with algebraic b is now evaluated/expanded automatically.
- For some angles two different tangent expressions (im/re) are
recognized: the completely simplified value and the one obtained by
(sin/cos).cancel().
- In exp._eval_nseries ratsimp may introduce unexpanded (-1)**Rational
which ultimately can lead to unsimplified values for limit() or fps().
These powers are now expanded in some cases (exponent n/3, n/4, n/6).
2019-07-24 12:29:38 +00:00
Oscar Gustafsson
da01b6d20d
Fixes from comments
2019-07-24 13:17:47 +02:00
Divyanshu
e210b27807
modify-class-structure
2019-07-24 14:21:15 +05:30
Velibor Zeli
2b2c755353
Correct dependency issue
2019-07-24 08:43:34 +02:00
Velibor Zeli
cc1587f685
Improve discretization for non-equidistant step
...
Adds a possibility of using undefined functions for finite difference
approximation.
2019-07-23 23:23:12 +02:00
Oscar Gustafsson
e8b5009fef
Moved, marked, and enabled tests.
2019-07-23 21:21:11 +02:00
S.Y. Lee
8ca4a683d5
Merge pull request #17241 from sylee957/fix_matrix_sum
...
Matrix summation improvements
2019-07-23 20:33:07 +09:00
Shubham Kumar Jha
eb5eaaec42
Revert some changes since zip_longest is not available in Python 2
2019-07-23 13:57:35 +05:30
Shubham Kumar Jha
524397494c
Fixed sorting in literals
2019-07-23 12:29:23 +05:30
Christopher Smith
8dbd9dcc15
Merge pull request #17243 from smichr/dop
...
small diophantine optimization
2019-07-23 01:34:38 -05:00
Shubham Kumar Jha
3bd73d8e51
Modified the code for ask_generated to produce sorted version of precompiled CNF object
2019-07-23 11:59:16 +05:30
Chris Smith
ac284c8e7d
small diophantine optimization
2019-07-22 21:51:01 -05:00
Arighna Chakrabarty
40b07eb875
Added docs and some more tests
2019-07-23 02:16:18 +05:30
eward
ca94a5f9a9
refactor to single rewrite function
2019-07-22 11:10:00 -07:00
eward
ed00c96270
test Not
2019-07-22 10:22:58 -07:00
eward
b125f40ecb
handle Not
2019-07-22 10:22:31 -07:00
Sidhant Nagpal
56dceb1974
Merge pull request #17077 from ritesh99rakesh/factorialMoment
...
Added Factorial Moment
2019-07-22 22:52:20 +05:30
kangzhiq
95426484e5
Ameliorated codes and added tests
...
- Ameliorated codes
- Added tests for new features of __getitem__()
2019-07-23 00:36:39 +08:00
S.Y. Lee
0731fe23c8
Add failing test for future work in matrix summation
2019-07-23 00:56:04 +09:00
Francesco Bonazzi
24750c67d9
Merge pull request #17070 from ritesh99rakesh/generalizedNormal
...
Added Exponential Power distribution
2019-07-22 13:47:42 +02:00
Francesco Bonazzi
65e6dbbc19
Merge pull request #17099 from ritesh99rakesh/skellam
...
Added Skellam distribution
2019-07-22 13:44:34 +02:00
S.Y. Lee
306b55bfbe
Add tests
2019-07-22 18:55:48 +09:00
S.Y. Lee
488c9e56d0
Fix matrix expression summation error and possible recursion error
2019-07-22 18:24:10 +09:00
Oscar Benjamin
ffabbdaf18
Merge pull request #17206 from Pristine-Cat/17203_matrix_pow
...
matrices: cleaned up A**n cases
2019-07-22 01:23:11 +01:00
Francesco Bonazzi
8a11ca40ba
Merge pull request #17163 from czgdp1807/ct_markov
...
Added continuous time Markov chain
2019-07-21 23:50:40 +02:00
Tomasz Pytel
2c1d5613cd
misc requested changes
2019-07-21 17:38:00 -03:00
S.Y. Lee
26c8a21f32
Merge pull request #17239 from ritesh99rakesh/17238
...
Added relational operator printer for various languages
2019-07-22 05:10:58 +09:00
Ritesh Kumar
bacae7e432
Corrected symbolic poisson
2019-07-21 23:40:53 +05:30
riteshkumar
13f7e48d99
Minor changes
2019-07-21 23:40:53 +05:30
riteshkumar
5b199e891b
Changed name to factorial_moment, added symbolic tests
2019-07-21 23:40:53 +05:30
riteshkumar
43ffca6b06
Added Factorial Moment
2019-07-21 23:40:53 +05:30
Ritesh Kumar
630a6d3bcd
Added skellam distribution
2019-07-21 23:39:29 +05:30
etkewa@gmail.com
3d8ed14e2c
update rewrite_ne
2019-07-21 10:58:06 -07:00
Christopher Smith
e6a5b6cb70
Merge pull request #16890 from jmig5776/complete_lambert
...
[GSoC] Fixing lambert in bivariate to give all real solutions
2019-07-21 12:53:09 -05:00
Ritesh Kumar
d26e5a6f58
Remove unnecessary code from fcode
2019-07-21 22:54:09 +05:30
etkewa@gmail.com
c80e7256fa
remove is_mul_with_kronecker
2019-07-21 10:22:49 -07:00
etkewa@gmail.com
06a6258c74
test unrecognized conditions
2019-07-21 10:16:26 -07:00
etkewa@gmail.com
2bbb88d3d2
use custom exception for unrecognized conditions
2019-07-21 10:16:13 -07:00
etkewa@gmail.com
c5b179d0b2
add missing test
2019-07-21 10:07:04 -07:00
etkewa@gmail.com
8bd681b7c5
fix error in rewrite_or and remove branches that can never be reached
2019-07-21 10:06:44 -07:00
Ritesh Kumar
7f853f28be
Minor changes
2019-07-21 21:43:40 +05:30
Arighna Chakrabarty
beb0e58fcc
Added three new derived classes and modified test cases
2019-07-21 21:38:25 +05:30
jmig5776
23202c8ea3
Fixed problem of not returning all solutions of Lambert(@jmig5776 + @smichr)
...
This PR solves these following problems existing in lambert specifically.
1. Not considering all branches of equation while taking log both sides.
2. Calculation of roots should consider all roots in case having rational power.
For more explanation checkout the PR #16890 or this blog (https://jmig5776.github.io//gsoc-weel-7 )
2019-07-21 20:39:05 +05:30
Ritesh Kumar
1bcffd9714
Added relational operator printer for languages
2019-07-21 19:57:58 +05:30
Shubham Kumar Jha
725ad5dedb
Updated code in sympify.py module, reduced the need of catching AttributeError, TypeError and KeyError. Update code in core.py made __sympy__ a property for SymPy objects so as to avoid changing its value.
2019-07-21 16:15:55 +05:30
Christopher Smith
a60642454d
Update diophantine.py
2019-07-21 05:33:45 -05:00
Christopher Smith
8a37557864
Merge pull request #17234 from sameshl/16904_special_topics
...
DOC:cliffhanger in special topics 'finite_diff_derivatives.rst'
2019-07-21 05:08:13 -05:00
Shubham Kumar Jha
dd7c2f677d
Minor changes for ask_generated
2019-07-21 11:17:48 +05:30
Shubham Kumar Jha
21d4d1025f
Fixed the failing tests in ask module. Created function _extract_all_facts to mimic the _extract_facts function but with CNF objects and changed the code in ask function accordingly.
2019-07-21 10:42:07 +05:30
Samesh
a8c6f51863
DOC:cliffhanger in special topics 'finite_diff_derivatives.rst'
...
Fix typo
2019-07-21 10:23:13 +05:30
etkewa@gmail.com
ee16439821
rewrite recursively to handle nested conditions
2019-07-20 15:27:21 -07:00
etkewa@gmail.com
7e8649e5e6
expand test_eval_rewrite_as_KroneckerDelta
2019-07-20 15:27:03 -07:00
S.Y. Lee
2bcc7c1be5
Merge pull request #17235 from luzpaz/misc-typos
...
Fix misc. source comment typos
2019-07-21 06:18:59 +09:00
Samesh
6bf3493c6b
DOC:cliffhanger in special topics 'finite_diff_derivatives.rst'
...
change doc link to directly point to subsection of finite-differences
2019-07-21 02:33:29 +05:30
Tomasz Pytel
96642c1ab7
removed redundant calculations in jordan_cell_power()
2019-07-20 17:42:02 -03:00
etkewa@gmail.com
5ff0c44071
move expr.has(Piecewise) outside loop
2019-07-20 13:12:28 -07:00
Samesh
e5e605523b
DOC:cliffhanger in special topics 'finite_diff_derivatives.rst'
...
fixed typo
2019-07-21 01:08:21 +05:30
luz.paz
3d8e8fc9f8
Fix misc. source comment typos
...
Found via `codespell -q 3 -I ../sympy-whitelist.txt`
2019-07-20 14:28:27 -04:00
Samesh
8f31d9b329
DOC:cliffhanger in special topics 'finite_diff_derivatives.rst'
...
add link to doc/src/tutorial/calculus.rst and sympy/calculus/finite_diff.py in finite_diff_derivatives.rst.
closes #16904
2019-07-20 23:03:20 +05:30
Tomasz Pytel
73a1a35bf9
added 1 more case to matrix_pow_by_jordan
2019-07-20 14:05:26 -03:00
Tomasz Pytel
f14a7480f0
changed handling of jordan block of size 1
2019-07-20 13:45:53 -03:00
Tomasz Pytel
08549a2c9d
changed to NonInvertibleMatrixError
2019-07-20 11:45:54 -03:00
Tomasz Pytel
98bf613c47
last tweaks hopefully
2019-07-20 11:16:27 -03:00
kangzhiq
81bc997dc2
Fixed bugs of tests
2019-07-20 18:26:35 +08:00
Divyanshu
ecfbb7d43d
update-group-to-free_group
2019-07-20 14:31:46 +05:30
eward
8b5e1d71ee
refactor test_simplify_kroneckerdelta
2019-07-19 11:38:50 -07:00
eward
6111a97e67
use .equals
2019-07-19 11:38:32 -07:00
eward
1ba226c134
expand test_eval_rewrite_as_KroneckerDelta
2019-07-19 11:29:28 -07:00
eward
21df114ebc
_eval_rewrite_as_KroneckerDelta deals with And and Or
2019-07-19 11:29:18 -07:00
Shubham Kumar Jha
f04bcbb51a
Changed module name to lower case
2019-07-19 23:30:27 +05:30
czgdp1807
59f525425d
added references
2019-07-19 22:10:28 +05:30
czgdp1807
95b7e19d8f
MarkovProcess added, refactoring complete
2019-07-19 22:04:59 +05:30
eward
d00845d986
move has(Piecewise) check
2019-07-19 09:10:18 -07:00
Tomasz Pytel
554e747d37
added requested tests
2019-07-19 12:52:50 -03:00
kangzhiq
fcf9b2f2eb
Modified behavior of __getitem__
...
- Changed the way with which the arrays access the elements. Taking
example of NumPy
- Modified tests to avoid: A[0], this kind of accessing item
- Modified accordingly the functions in which __getitem__ is being used
2019-07-19 23:32:31 +08:00
Tomasz Pytel
478ee5b93e
test and should be ready to merge
2019-07-19 11:07:16 -03:00
Gagandeep Singh
e4d3d7d4df
Merge branch 'master' into ct_markov
2019-07-19 16:31:07 +05:30
czgdp1807
59a2b9f398
some trivial import fix
2019-07-19 16:27:28 +05:30
Gagandeep Singh
8de4aaff75
Merge branch 'master' into rand_mat
2019-07-19 16:17:08 +05:30
Kalevi Suominen
fa8328d1cd
Merge pull request #17213 from sylee957/faster_matrix_exp
...
Faster matrix exponential computation
2019-07-19 10:12:30 +03:00
S.Y. Lee
6c98c5b670
Use dict comprehension
2019-07-19 08:53:21 +09:00
Oscar Benjamin
dd54ffc419
Merge pull request #17222 from ritesh99rakesh/RandomSymbolCorrection
...
Corrected error in from sympy.stats import *
2019-07-19 00:30:14 +01:00
eward
4a7f33f137
kroneckersimp attempts to deal with Piecewise
2019-07-18 15:43:03 -07:00
eward
a1eafb475a
expand test_simplify_kroneckerdelta
2019-07-18 15:42:44 -07:00
eward
476c105755
test_eval_rewrite_as_KroneckerDelta
2019-07-18 15:20:52 -07:00
eward
3cd94604cb
add _eval_rewrite_as_KroneckerDelta
2019-07-18 15:20:40 -07:00
Ankit Pandey
c82d5bf343
Add additional non-commutative tests
2019-07-19 01:33:30 +05:45
Ankit Pandey
6cde8d7b24
Rewrite of non-commutative matching
...
Rewrite of matching of non-commutative expressions that:
- Respects expression structure (A*w matches A*B but not C*B)
- Accounts for non-commutativity (A*B*w matches A*B*C but not B*A*C)
- Enables non-commutative wildcards to match any subsequence (A*w*D
matches A*B*C*D)
2019-07-19 01:33:30 +05:45
Ritesh Kumar
520330d8a4
Corrected error in from sympy.stats import *
2019-07-18 23:58:05 +05:30
eward
1c16bbef7a
refactor cancel_kronecker_mul
2019-07-18 10:14:31 -07:00
Tomasz Pytel
0eb6c667f9
added KroneckerDelta method for defective jordan blocks
2019-07-18 13:04:38 -03:00
Tomasz Pytel
bb4b555ea5
still working on matrix power
2019-07-18 11:27:52 -03:00
Shubham Kumar Jha
d9243a93a0
Fixed code in satisfiable
2019-07-18 19:41:01 +05:30
Ritesh Kumar
d63618cbad
Added Exponential Power distribution
2019-07-18 18:36:47 +05:30
S.Y. Lee
30a0130b46
Merge pull request #17211 from ritesh99rakesh/imports
...
Optimise imports for stats module
2019-07-18 19:44:33 +09:00
S.Y. Lee
72bd36b38e
Refine loop
2019-07-18 17:00:06 +09:00
Arighna Chakrabarty
381f47cc8a
Removed unnecessary logic
2019-07-18 13:23:40 +05:30
Arighna Chakrabarty
e9bfea475e
Added tests
2019-07-18 13:22:56 +05:30
Shubham Kumar Jha
0981368956
Fixed some errors in satisfiable
2019-07-18 08:55:08 +05:30
Shubham Kumar Jha
1b6bf87141
Fixed some failing tests
2019-07-18 07:46:58 +05:30
eward
49c9957031
fix docstring
2019-07-17 16:27:41 -07:00
eward
bcc655a3aa
add kroneckersimp
2019-07-17 16:25:36 -07:00
eward
be10e13b80
add kroneckersimp docstring example
2019-07-17 16:25:25 -07:00
eward
ed5bb932e3
export kroneckersimp
2019-07-17 16:24:54 -07:00
eward
67702b9a69
explicitly test true and false when testing equality
2019-07-17 14:54:02 -07:00
eward
bd40ff39bf
update test_simplify_kroneckerdelta with matrix example
2019-07-17 14:40:12 -07:00
eward
7548bd5e1c
add kroneckersimp instead of going through Piecewise
2019-07-17 14:39:56 -07:00
Tomasz Pytel
74fc20435c
working on matpow, not ready yet but progress
2019-07-17 18:29:26 -03:00
Shubham Kumar Jha
847860c73a
Created file sympy/assumptions/CNF.py to hold the code related to the generation and handling of CNF objects
2019-07-18 01:10:20 +05:30
Shubham Kumar Jha
d31a5302ee
Added proper attribution to the original commits made in PR #11789 by @rlamy.
2019-07-18 00:02:52 +05:30
Tomasz Pytel
323ee8c77d
working on matrix pow
2019-07-17 14:33:23 -03:00
eward
feaeeb633f
move has(KroneckerDelta) check earlier
2019-07-17 10:32:21 -07:00
Shubham Kumar Jha
c4a3fe88df
Some minor issues
2019-07-17 23:00:20 +05:30
eward
0905ad40df
add case for simplifying KroneckerDelta
2019-07-17 09:54:31 -07:00
eward
ff488e97f2
test_simplify_kroneckerdelta
2019-07-17 09:53:50 -07:00
eward
d3db82bfc6
test KroneckerDelta.rewrite(Piecewise)
2019-07-17 09:53:39 -07:00
eward
539b716d20
KroneckerDelta _eval_rewrite_as_Piecewise
2019-07-17 09:53:22 -07:00
Shubham Kumar Jha
ebed84d892
Created a function to_NNF to first convert the boolean expression into NNF and created a function Distribute that will convert the NNF expression to Conjunctive Normal Form
2019-07-17 21:32:07 +05:30
S.Y. Lee
87d0559be1
Add jordan block exponential tests
2019-07-18 00:18:47 +09:00
S.Y. Lee
8ef6b7d44d
Refine the tests
2019-07-18 00:17:28 +09:00
S.Y. Lee
acb935e387
Improve documentation
2019-07-18 00:10:34 +09:00
S.Y. Lee
c9ed9df988
Use banded diagonal matrix creation instead of computing naive power
2019-07-17 23:46:09 +09:00
Divyanshu
415d476d8d
add-tests-and-presentation-docs
2019-07-17 19:25:06 +05:30
Shubham Kumar Jha
00c5e2525f
Attempt to reduce time taken
2019-07-17 18:56:46 +05:30
Ritesh Kumar
2b4e7c9900
Optimise imports for stats
2019-07-17 10:12:26 +05:30
Tomasz Pytel
bbe74297c6
tweaks as requested
2019-07-16 21:34:42 -03:00
Tomasz Pytel
c7b6b3b36c
moved jordan_pow=getattr to top
2019-07-16 20:50:18 -03:00
Tomasz Pytel
0b94812b14
Changed except AttributeError to getattr (,, None)
2019-07-16 20:39:25 -03:00
Gilles Schintgen
894d2644a6
Recognize exact log values only if arg.is_algebraic
...
re(arg) and im(arg) on some complicated expressions can lead to
uncontrolled/runaway computations. Case in point: without this
restriction, the meijerg=True integrations in test_messy() will not
finish in a reasonable time.
2019-07-16 21:26:06 +00:00
Oscar Gustafsson
a2d65f2a9c
Merge pull request #17196 from gschintgen/fix-17106-v2
...
Improve handling of exact trig values (rational multiples of pi)
2019-07-16 22:12:08 +02:00
Tomasz Pytel
0947723e88
matrices: forgot possible case of exception
...
Left out case where matrix object does not have the
_matrix_pow_by_jordan_blocks() method.
2019-07-16 16:56:31 -03:00
Tomasz Pytel
c2641c05ea
matrices: cleaned up A**n cases
...
Cleaned up some not well defined cases in MatrixArithmetic.__pow__()
which would sometimes give erroneous results such as raising an error
on a matrix raised to a valid positive integer symbol. Syncronized
this with MatPow.doit() so they are consistent. Added tests for
zero-determinant matrices to negative power as well as verifying
A**n == MatPow(A, n).doit().
2019-07-16 15:07:21 -03:00
Oscar Gustafsson
cc6d08f8e2
Merge pull request #17173 from ethankward/issue_17166
...
Update RisingFactorial eval for k noninteger, x negative integer
2019-07-16 19:37:58 +02:00
Shubham Kumar Jha
769dbfaa84
Some changes to make to_CNF faster
2019-07-16 22:41:32 +05:30
czgdp1807
72ec321c46
some minor arch changes
2019-07-16 21:41:43 +05:30
Gilles Schintgen
7de8958173
Add an exact value example to log() docstring
2019-07-16 15:31:58 +00:00
Gilles Schintgen
c13e88c2a4
Improve exact value recognition for log(); add tests
2019-07-16 15:25:08 +00:00
czgdp1807
6ef6dee032
removed syntax errors
2019-07-16 16:59:27 +05:30
Kalevi Suominen
7336521615
Merge pull request #17200 from aaditkamat/16589_roots_incorrect
...
polynomials: Add zero roots after translation of non-trivial roots
2019-07-16 12:04:35 +03:00
Divyanshu
fbdc1ad7eb
update-pc_presentation
2019-07-16 13:20:33 +05:30
Gilles Schintgen
c04767a14c
Adapt a solve() test to the improved log() values
...
Both asserts in test_issue_2840_8155() were failing. This commit
updates the expected results to the simplified log() results.
(The numeric values of the solutions did not change, only their
presentation.)
2019-07-15 23:09:34 +00:00
Gilles Schintgen
90d2ef19f7
fix test for issue 6056 (nicer result even without simplify)
2019-07-15 16:41:02 +00:00
Gilles Schintgen
cd1af1577d
Make log() recognize some exact values
...
With these changes, log(a+b*I) will automatically evaluate
if the result is of the form I*pi/d, where d is in {3, 4, 6}.
2019-07-15 14:25:59 +00:00
czgdp1807
964c7c97c2
added test in test_args
2019-07-15 19:53:22 +05:30
Shubham Kumar Jha
135937a6f1
Used class.__name__ instead of class for speed
2019-07-15 19:52:56 +05:30
Christopher Smith
c21e8bb665
Merge pull request #17188 from Pristine-Cat/17165_piecewise_recursion
...
Piecewise recursively evaluates itself
2019-07-15 09:08:28 -05:00
Aadit Kamat
f710dfa4fa
Evaluate zero roots after non trivial roots
...
Signed-off-by: Aadit Kamat <aadit.k12@gmail.com >
2019-07-15 20:35:19 +08:00
Shubham Kumar Jha
adcebdb9d4
Minor fixes and commented a significant part of ask function's code which seems can be improved
2019-07-15 03:13:31 +05:30
Gilles Schintgen
f811cc4a31
Adapt test_harmonic_rational() to improved cot() results
2019-07-14 20:58:24 +00:00
Shubham Kumar Jha
3c1584a552
to_CNF a faster version of to_cnf made to work with CNF objects directly
2019-07-15 01:32:03 +05:30
Gilles Schintgen
bec165dc05
Add recognition of exact values to asec(), acsc()
2019-07-14 19:36:12 +00:00
Gilles Schintgen
92d39d9c4a
Refactor asin()/acos() code; add missing values
...
asin() and acos() now share a common constants table in
InverseTrigonometricFunction. Values that are redundant
due to asin being odd are eliminated.
This commit also makes sure, that exact values given by
sin() or cos() (for rational multiples of pi with a denominator
up to 12) are properly recognized by asin(), acos().
2019-07-14 19:34:58 +00:00
Gilles Schintgen
e886f8093b
Add atan(tan()) round-trip check for exact values
...
Test that atan properly recognizes exact values as given by tan,
e.g.:
>>> atan(tan(2*pi/5))
2*pi
----
5
2019-07-14 19:32:18 +00:00
Gilles Schintgen
9ad955ebb5
Add missing exact values for atan() and acot()
...
New tan() angles are: pi/5, pi/10, 3*pi/10, 5*pi/12.
(2*pi/5 and pi/12 were already implemented before
this commit.)
The constants table is factored out and moved to
class InverseTrigonometricFunction. It is now shared by
atan() and acot().
The docstring for acot() is updated to mention the used
branch cut. Fixes #13679 .
2019-07-14 19:30:05 +00:00
Gilles Schintgen
6e4ea74676
Adapt tests to improved tan(), cot() values
...
This commit
- removes a now duplicate test for tan()
- adapts test_harmonic_rational() to new cot() results
- updates tests for tan, cot simplification via ratsimp
(unfortunate regression due to ratsimp limitations)
2019-07-14 19:27:46 +00:00
Gilles Schintgen
12c5ad7808
Return simplified values for cot(n*pi/5) and cot(n*pi/10)
2019-07-14 18:53:31 +00:00
Gilles Schintgen
9b07db7640
Improve cot(n*pi/8) results by expanding
...
This commit replaces a formula in cot() computation by an expanded
form. The same change has already been made in tan().
See issue #15959 , commit 342081554a .
The relevant tests are adapted to the nicer expanded values.
2019-07-14 18:50:56 +00:00
Gilles Schintgen
99569fade4
Improve results given for tan(n*pi/10); remove @XFAIL
...
This commit special-cases the output for tan(n*pi/5) and tan(n*pi/10)
in order to return properly simplified expressions for these values.
Before:
>>> tan(pi/5)
___________
/ ___
/ 5 \/ 5
/ - - -----
\/ 8 8
----------------
___
1 \/ 5
- + -----
4 4
After:
>>> tan(pi/5)
_____________
/ ___
\/ 5 - 2*\/ 5
The commit also fixes an XFAIL test in test_wester.py.
2019-07-14 18:48:26 +00:00
Christopher Smith
04b4da7796
Update test_piecewise.py
2019-07-14 13:31:14 -05:00
Tomasz Pytel
857627e0cb
matrices: removed code accidentally included from other PR
2019-07-14 13:38:13 -03:00
Christopher Smith
548b5e8d83
Merge pull request #17194 from oscargus/mathmlarc
...
Added a few methods for MathML content printing
2019-07-14 09:41:12 -05:00
Shubham Kumar Jha
446c770996
An attempt to make sympify faster for sympy objects
2019-07-14 17:26:36 +05:30
Christopher Smith
6d471893bb
Merge pull request #17191 from Abhi58/17062_docs_multiset
...
using stirling instead of S2 function in multiset_partitions docstring
2019-07-14 06:33:56 -05:00
Christopher Smith
8e7dedd6f5
Merge pull request #17176 from sympy/fingmod
...
_finger detects diff btwn 3-arg Xor/~Xor
2019-07-14 06:20:44 -05:00
Oscar Gustafsson
f4f8f97b05
Added a few methods for MathML content printing
2019-07-14 11:49:23 +02:00
Ishan Joshi
83ee2c34cc
improved code
2019-07-14 14:38:04 +05:30
Abhi58
e283f95f0e
whitespace removed
2019-07-14 14:22:53 +05:30
Abhi58
87789ad9f5
diop_solve docstring updated to state that higher level method diophantine usage is recommended
2019-07-14 13:40:13 +05:30
Abhi58
b252c01b81
using stirling instead of S2 function in multiset_partitions docstring
2019-07-14 13:04:40 +05:30
Divyanshu
ed4f14220b
pc-group-methods
2019-07-14 12:22:35 +05:30
Sidhant Nagpal
fec5dc5fd0
Merge pull request #17185 from asmeurer/rm-tox
...
Remove the tox.ini.sample file
2019-07-14 10:43:26 +05:30
Christopher Smith
309369d870
Update boolalg.py
2019-07-13 14:13:45 -05:00
etkewa@gmail.com
75c44449f1
update RisingFactorial tests
2019-07-13 10:53:42 -07:00
etkewa@gmail.com
3e4df5b9c4
unindent condition
2019-07-13 10:53:21 -07:00
etkewa@gmail.com
1a4956786c
check k.is_integer == False
2019-07-13 10:52:27 -07:00
Tomasz Pytel
5d124d5168
piecewise: Changed doit() to avoid recursively evaluating itself
...
Made a small change to Piecewise.doit () so that expressions which
evaluate to the parent expression are left unchanged to avoid
unlimited Piecewise growth with repeated evaluations. Maybe a hint
should be introduced to allow this specifically? But in most cases
this would be undesired behavior.
Example:
>>> Sum(x**n, (n, -1, oo)).doit ()
Piecewise((1/(x*(1 - x)), Abs(x) < 1), (Sum(x**n, (n, -1, oo)), True))
>>> _.doit ()
Piecewise((1/(x*(1 - x)), Abs(x) < 1), (Piecewise((1/(x*(1 - x)),
Abs(x) < 1), (Sum(x**n, (n, -1, oo)), True)), True))
This could also happen within SymPy without user specified re-evaluation
of the Piecewise expression:
>>> Sum (x**(n-1), (n, 0, oo)).doit ()
Piecewise((1/(1 - x), Abs(x) < 1), (Piecewise((1/(1 - x), Abs(x) < 1),
(Sum(x**n, (n, 0, oo)), True)), True))/x
2019-07-13 14:33:11 -03:00
Christopher Smith
aa337b9c0b
Update boolalg.py
2019-07-13 12:31:18 -05:00
Aaron Meurer
effe9da05c
Remove tox.ini.sample from the rever script
2019-07-13 10:52:04 -05:00
Aaron Meurer
0c9e8087a8
Remove the tox.ini.sample file
...
The file is out of date and we don't even use or recommend to use tox for
testing anymore.
2019-07-13 10:49:28 -05:00
Christopher Smith
8e60957439
Merge pull request #17180 from asmeurer/sympy_dir
...
Don't call get_sympy_dir() at import time
2019-07-13 10:27:22 -05:00
Christopher Smith
bb018b7165
condense sorted tuples by showing multiplicity
2019-07-13 10:25:15 -05:00
Tomasz Pytel
9ab752e07a
matrices: modified fix to just call mat**exp when needed
...
I had unnecessarily put the call to jordan_pow function in the body of
MatPow.doit() when all I had to do was modify the conditional check for
a call out to mat**exp to let that function handle it, it is now changed
and more simple.
2019-07-13 12:02:10 -03:00
Divyanshu
cb4ee73f22
update-pc_presentation
2019-07-13 11:56:07 +05:30
Aaron Meurer
f6cc8e8b4c
Don't call get_sympy_dir() at import time
2019-07-12 16:52:52 -05:00
Christopher Smith
e1d8bcad40
Merge pull request #17178 from ethankward/issue_13112
...
Test issue 13112 (integral sin(t)**2 / (5 - 4*cos(t)))
2019-07-12 13:56:42 -05:00
Tomasz Pytel
96593e9aea
matrices: fixed MatPow.doit() so now == mat**x
...
MatPow.doit() did not use _matrix_pow_by_jordan_blocks() where it could
and sometimes did not arrive at the same result as mat**x for matrices
where this was possible. Added the appropriate check an usage.
Example:
Matrix ([[1,0],[0,1]])**x
Matrix([
[1, 0],
[0, 1]])
MatPow (Matrix ([[1,0],[0,1]]), x).doit ()
Matrix([
[1, 0],
[0, 1]])**x
Now:
MatPow (Matrix ([[1,0],[0,1]]), x).doit ()
Matrix([
[1, 0],
[0, 1]])
2019-07-12 15:04:52 -03:00
eward
04ff2cd9f3
test_issue_13112
2019-07-12 10:13:14 -07:00
czgdp1807
d02b06e499
probability for continuous chains completed
2019-07-12 20:58:09 +05:30
Christopher Smith
3ca6ec1908
Update test_boolalg.py
2019-07-12 09:20:39 -05:00
Christopher Smith
568eeda777
Update test_boolalg.py
2019-07-12 08:30:35 -05:00
Christopher Smith
968c528760
_finger detects diff btwn 3-arg Xor/~Xor
2019-07-12 08:25:20 -05:00
czgdp1807
6a72ecae99
base case of query handler ready
2019-07-12 18:32:39 +05:30
Shubham Kumar Jha
17c8f69c86
Some changes
2019-07-12 10:58:01 +05:30
Oscar Gustafsson
2c18fec389
Merge pull request #17126 from stevenleeS0ht/master
...
Change mpmath_version to min_mpmath_version in setup.py to reduce con…
2019-07-11 23:19:11 +02:00
Oscar Gustafsson
cff49934cc
Merge pull request #17164 from smichr/sdoit
...
use doit in simplify by default
2019-07-11 21:33:18 +02:00
Shubham Kumar Jha
ebb774e8a2
Sped up the ask module
2019-07-11 23:09:08 +05:30
Christopher Smith
d9bf84e7c3
Update test_ode.py
2019-07-11 12:05:05 -05:00
czgdp1807
7ddd227413
removed htmlcov
2019-07-11 21:45:02 +05:30
czgdp1807
8f941fbf23
random matrix init
2019-07-11 21:40:06 +05:30
eward
4b960cba42
assert unchanged(rf, -3, x)
2019-07-11 09:08:19 -07:00
eward
f91a4c0211
check k.is_number
2019-07-11 09:08:07 -07:00
eward
818fc3dbea
update test_rf_eval_apply
2019-07-10 15:01:52 -07:00
eward
d0a3f2801b
update RisingFactorial eval
2019-07-10 15:01:40 -07:00
czgdp1807
4cd4d63fbd
prob init
2019-07-10 21:45:11 +05:30
Divyanshu
a72ba44a04
add-presentation-tests
2019-07-10 13:13:41 +05:30
Divyanshu
feadb8ba5a
add-exp-vector-and-docs
2019-07-10 10:24:16 +05:30
Arighna Chakrabarty
f09a206211
Added aseries function
2019-07-09 18:29:24 +05:30
Chris Smith
71af783f69
fix ode test
2019-07-08 22:31:29 -05:00
Christopher Smith
0ed1ecb4d4
Merge pull request #17158 from luzpaz/misc-typos
...
Fix misc. typos
2019-07-08 21:35:21 -05:00
luz.paz
be546a2742
Reverted a previous commit
...
https://github.com/sympy/sympy/pull/17158#pullrequestreview-258597717
2019-07-08 16:23:20 -04:00
luzpaz and Christopher Smith
3e51be9c8f
Update sympy/calculus/finite_diff.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-07-08 16:23:20 -04:00
luz.paz
1cbe0dcaa3
Fix misc. typos
...
Found via `codespell -q 3 -I ../sympy-whitelist.txt`where wiltelist contains:
```
ang
ans
cas
dum
german
iff
ith
lightyear
lightyears
nd
numer
numers
ot
sinc
```
2019-07-08 16:23:20 -04:00
Chris Smith
e5b61136cc
make all simplify routines doit aware
2019-07-08 13:18:27 -05:00
Sudhanshu Mishra
0fdc617181
Calling doit in simplify()
...
controlled by a keyword argument doit.
Calls to simplify() will automatically call doit() on the final
expression. It can be avoided by passing doit=False in the arguments.
Also fixed a failing test which was occurring because of int.doit() post
this change. Fixes #6399 .
2019-07-08 12:05:48 -05:00
czgdp1807
32060a7456
added trans_probs
2019-07-08 19:53:41 +05:30
czgdp1807
61ada7775f
simplification
2019-07-08 18:13:38 +05:30
Arighna Chakrabarty
3f7a718370
Added FiniteFormalPowerSeries class to test_args.py
2019-07-08 17:36:44 +05:30
Arighna Chakrabarty
c19c3c9569
Modified code logic, and added other tests
2019-07-08 16:55:25 +05:30
czgdp1807
420e3995c6
resolved failure
2019-07-08 16:45:18 +05:30
czgdp1807
cf3229bbf5
continuous time markov chain init
2019-07-07 21:36:49 +05:30
Christopher Smith
99482c7931
Merge pull request #17154 from oscargus/imaginaryacos
...
Rewrite imaginary argument to acos as asin
2019-07-07 10:39:45 -05:00
Christopher Smith
0092ff3357
Merge pull request #17159 from Metloff/fix_intersect_parallel_ray_and_segment
...
fix intersect_parallel_ray_and_segment method
2019-07-07 10:38:59 -05:00
Christopher Smith
b2b1d4613b
Merge pull request #17107 from oscargus/cryptologicdoc
...
Improved documentation for crypto and logic
2019-07-07 07:59:50 -05:00
Oscar Gustafsson
3d2f4ef886
New attempt
2019-07-07 12:39:02 +02:00
Henry Metlov
bd96d94da7
Add test for intersection segment and ray
2019-07-07 13:12:38 +03:00
Arighna Chakrabarty
716b8b527c
Merge branch 'master' of https://github.com/sympy/sympy into test_branch
2019-07-07 15:12:46 +05:30
Sartaj Singh
de86581abc
Merge pull request #17064 from ArighnaIITG/operations_fps
...
[GSoC] Implementation of composition and inversion of formal power series
2019-07-07 14:03:44 +05:30
Henry Metlov
eeec0a0321
fix intersect_parallel_ray_and_segment method
2019-07-06 23:01:55 +03:00
Arighna Chakrabarty
9afa218cac
Updated tests
2019-07-07 00:04:08 +05:30
Arighna Chakrabarty
22dbcc66e5
Update logic of compose and inverse functions
2019-07-07 00:03:09 +05:30
Oscar Gustafsson
ddc1a2245e
Fixed spelling error and made minor improvement
2019-07-06 12:28:55 +02:00
Oscar Gustafsson
8a02dd2f92
Corrected LaTeX
2019-07-06 11:23:51 +02:00
Ishan Joshi
052b9c68dd
added tests for section_modulus() and polar_modulus()
2019-07-06 11:16:15 +05:30
Ishan Joshi
218d307303
made second_moment_of_area() capable of calculating second moment of an
...
object of RegularPolygon class
2019-07-06 10:45:13 +05:30
Sidhant Nagpal
ff7492fdfb
Merge pull request #16843 from ritesh99rakesh/multivariateGamma
...
Added multigamma function
2019-07-06 10:22:40 +05:30
Oscar Gustafsson
7a160a6ee0
Improved documentation
2019-07-05 23:52:28 +02:00
Francesco Bonazzi
9679e766d4
Merge pull request #17076 from ritesh99rakesh/exGaussian
...
Added Exponentially modified Gaussian distribution
2019-07-05 23:40:29 +02:00
Francesco Bonazzi
0e4975f64a
Merge pull request #17083 from czgdp1807/extend-markov
...
Extending scope of queries for DiscreteMarkovChain
2019-07-05 23:21:03 +02:00
Oscar Gustafsson
d969ca45ec
Made tests Python 2 compatible
2019-07-05 22:42:42 +02:00
Christopher Smith
3b39e5a601
Merge pull request #17151 from ethankward/issue_14567
...
Test and close issue 14567 (ValueError: gamma function pole)
2019-07-05 15:19:11 -05:00
Divyanshu
e5c9b1b238
update
2019-07-06 00:41:06 +05:30
Divyanshu
6935976cf8
add-tail-sequence-test-for-polycyclic_presentation
2019-07-06 00:33:05 +05:30
Ishan Joshi
4bd7bd1edf
added documentation and examples for polar_modulus() and
...
section_modulus()
2019-07-06 00:06:02 +05:30
eward
f7bccdceaf
update test_issue_14567
2019-07-05 09:49:17 -07:00
riteshkumar
09bbf5e254
Added test for mgf, characteristic function, removed simplify
2019-07-05 22:11:10 +05:30
riteshkumar
ed8635b0f2
Added Exponentially modified Gaussian distribution
2019-07-05 21:47:49 +05:30
riteshkumar
2eeb7a7cc9
Removed unecessary change, used dummy_eq
2019-07-05 21:14:20 +05:30
Oscar Gustafsson
96938437a0
Rewrite imaginary argument to acos as asin
2019-07-05 15:44:50 +02:00
Divyanshu
267af71012
added-pc_presentation
2019-07-05 13:21:46 +05:30
Kalevi Suominen
d2308e8eb5
Merge pull request #17150 from sympy/17148
...
17148: log(Rational, Integer) fix
2019-07-05 08:44:50 +03:00
Ishan Joshi
5c66c331a8
added functionality to determine polar modulus and section modulus of a
...
polygon.
2019-07-05 10:09:17 +05:30
etkewa@gmail.com
ab3534a7db
test_issue_14567
2019-07-04 12:42:23 -07:00
Christopher Smith
ad9b8b64e0
Update test_exponential.py
2019-07-04 11:09:16 -05:00
Christopher Smith
5b0654201d
17148: log(Rational, Integer) fix
2019-07-04 10:40:19 -05:00
czgdp1807
ed7a7642ea
newline added
2019-07-04 16:52:52 +05:30
czgdp1807
42981c989c
some cleaning
2019-07-04 16:49:55 +05:30
Christopher Smith
dcc4430810
Merge pull request #17145 from czgdp1807/fix-Range
...
as_relational added in Range
2019-07-04 05:33:21 -05:00
Arighna Chakrabarty
7d8e5bc2a5
Minor changes
2019-07-04 14:08:18 +05:30
Arighna Chakrabarty
c87e3adac8
Changes reverting those done mistakenly while solving merge conflicts
2019-07-04 14:07:06 +05:30
Arighna Chakrabarty
d4359d8d8f
Modified whitespaces
2019-07-04 14:03:09 +05:30
Arighna Chakrabarty
922536c920
Merge branch 'master' into operations_fps
2019-07-04 13:59:30 +05:30
Sartaj Singh
411757c159
Merge pull request #17017 from ArighnaIITG/convolution_fps
...
[GSoC] Implemented convolution operation of two formal power series
2019-07-04 12:41:33 +05:30
Gagandeep Singh and Christopher Smith
1a8470addb
Update sympy/sets/tests/test_fancysets.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-07-04 10:03:18 +05:30
Christopher Smith
1bb112f4d9
Merge pull request #17147 from ethankward/acsc_0
...
acsc(0) -> zoo
2019-07-03 23:31:35 -05:00
Francesco Bonazzi
21cbaeacac
Merge pull request #17035 from kangzhiq/fix_permutedims
...
Added cases in permutedims for sparse arrays
2019-07-03 23:14:05 +02:00
eward
7013081ba5
test acsc(0)
2019-07-03 09:41:49 -07:00
eward
52c645f49f
acsc(0) -> S.ComplexInfinity
2019-07-03 09:41:34 -07:00
czgdp1807
9874d64486
some modifications
2019-07-03 20:43:21 +05:30
czgdp1807
729c21cef3
tempo changes
2019-07-03 20:31:25 +05:30
czgdp1807
8d32be3954
expectation complete
2019-07-03 20:23:16 +05:30
Shubham Kumar Jha
e20f0defab
Merge branch 'speed_up_cnf_3' of https://github.com/ShubhamKJha/sympy into speed_up_cnf_3
2019-07-03 19:13:30 +05:30
Shubham Kumar Jha
2e7095c6cb
Made the code of dpll_satisfiable to work with standard input
2019-07-03 19:11:38 +05:30
Shubham Kumar Jha
ebcf0ed6f3
Fix for failing tests
2019-07-03 19:11:38 +05:30
czgdp1807
b69a54dc95
as_relational added in Range
2019-07-03 18:32:00 +05:30
Arighna Chakrabarty
c351017b7e
Removed code already written in other PRS, and added docs
2019-07-03 10:32:58 +05:30
Shubham Kumar Jha
94fb899019
Removed redundant whitespace
2019-07-03 09:08:22 +05:30
Shubham Kumar Jha
4a301315c8
Removed redundant whitespace
2019-07-03 09:05:01 +05:30
Shubham Kumar Jha
1601578338
Deleted extra function and changed ask_generated
2019-07-03 08:09:30 +05:30
Shubham Kumar Jha
d43ea32fcf
Initial commit
2019-07-03 07:27:59 +05:30
kangzhiq
a9853ab3d9
Updated tests
2019-07-02 22:35:04 +02:00
kangzhiq
f8d2b553c8
Added test and fixed bug of reshape sparse array
...
- Added test for both dense and sparse array in permutedims
- Fixed bug of reshaping a sparse array
2019-07-02 22:23:58 +02:00
czgdp1807
da6d75e5dc
probability complete
2019-07-02 21:44:33 +05:30
riteshkumar
b9061ba5df
Added multivariate gamma function
2019-07-02 21:20:48 +05:30
Christopher Smith
12d8f5354d
Merge pull request #17139 from ethankward/_TR56_is_real
...
Check exp is real in fu._TR56
2019-07-01 20:36:26 -05:00
Ethan Ward
e346786eeb
Merge branch 'master' into _TR56_is_real
2019-07-01 15:26:33 -07:00
kangzhiq
920ccc0ceb
Updated permutedims
...
- Simplified codes in permutedims to one line
- Added cases for dict of sparse array in _handle_ndarray_creation_inputs
2019-07-02 00:25:41 +02:00
eward
4729a80f0b
test_issue_17137
2019-07-01 13:15:22 -07:00
eward
4e910a7309
test__TR56 complex exponents
2019-07-01 12:14:08 -07:00
eward
d1c039406f
_TR56 test exp is real
2019-07-01 12:13:50 -07:00
Divyanshu
f290d62c38
convert-relative_order-to-list
2019-07-01 21:17:56 +05:30
Arighna Chakrabarty
3cf79302e0
Minor changes
2019-07-01 17:29:42 +05:30
Arighna Chakrabarty
2945eb3e05
Added FiniteFormalPowerSeries Class, and compose and inverse functions
2019-07-01 16:48:23 +05:30
Christopher Smith
1d3327b8e9
Merge pull request #17128 from gschintgen/fix9638-add-test
...
Add test for simplify(asin(sin(x)))
2019-06-30 10:50:57 -05:00
Christopher Smith
ab27ab6080
Update test_simplify.py
...
Without this assertion we don't know if asin(sin(x)) is already x (in which case simplify(x) == x would not be testing anything). There is no such assertion in the trig test suite.
2019-06-30 09:25:37 -05:00
Gilles Schintgen
c63db84d93
Add test for simplify(asin(sin(x)))
2019-06-30 11:35:53 +00:00
Arighna Chakrabarty
0c4c4463bb
Minor changes
2019-06-30 15:58:20 +05:30
Divyanshu
0033d11b9d
remove-s.infinity
2019-06-30 11:53:18 +05:30
Divyanshu
78af5dde9f
update
2019-06-30 09:44:48 +05:30
Denys Rybalka
5aaa486113
Additional corrections
2019-06-29 17:53:51 +03:00
Denys Rybalka
dba8036d30
Merge branch 'tensor_refine_code' of github.com:drybalka/sympy into tensor_refine_code
2019-06-29 15:23:17 +03:00
Denys Rybalka
6c2519d6ad
Minor corrections to physics module
2019-06-29 14:51:47 +03:00
Denys Rybalka
32a0d73230
Merge branch 'master' into tensor_refine_code
2019-06-29 10:39:56 +00:00
Denys Rybalka
4e956f235a
Adds partial backwards compatibility
2019-06-29 13:35:40 +03:00
Arighna Chakrabarty
6fce1f1fe4
Made args list instead of map
2019-06-29 16:01:29 +05:30
Arighna Chakrabarty
b91c21b553
Changed convolve to product
2019-06-29 15:28:18 +05:30
Arighna Chakrabarty
7e58b12321
Refactored the logic of compose and inverse functions
2019-06-29 15:14:13 +05:30
Divyanshu
c82cd23ce0
sympy/.
2019-06-29 11:24:59 +05:30
Divyanshu
1aa9ba5a20
change-order-inuncoll-add-s(3)-test
2019-06-29 11:10:56 +05:30
Steven Lee
1929b8e544
Change mpmath_version to min_mpmath_version in setup.py to reduce confusing. Since this is for minimum version requirement of mpmath. Make such change can mitigate misunderstanding of new contributor.
2019-06-29 14:19:31 +10:00
Denys Rybalka
ed785db9f1
Code refinement of tensor module
...
This commit deprecates TensorType class, tensorsymmetry method and
tensorhead method. Instead, several TensorSymmetry constructors
are added (.fully_symmetric, .no_symmetry, .riemann,
.direct_product), TensorHead constructor is reworked and
tensor_heads method is introduced. These changes led to multiple
stylistic changes in code, docstrings and tests. Logic, however,
stayed the same.
2019-06-29 01:28:56 +03:00
Francesco Bonazzi
1e87356141
Merge pull request #16962 from czgdp1807/sym_dim_frv
...
Symbolic dimensions allowed for Finite Random Variables
2019-06-28 21:01:09 +02:00
Oscar Gustafsson
f0a461c7a4
Encoded () in URL
2019-06-28 21:00:43 +02:00
Christopher Smith
7b7584c620
Merge pull request #17117 from czgdp1807/fix-uc
...
Made unchanged robust
2019-06-28 12:39:35 -05:00
Ritesh Kumar
d87788057d
Made tests generic
2019-06-28 21:55:11 +05:30
Ritesh Kumar
c671655e58
Corrected is_real function
2019-06-28 21:42:24 +05:30
Ritesh Kumar
c7da9fd450
Corrected is_real function
2019-06-28 21:42:24 +05:30
Ritesh Kumar
a233708aad
Corrected tests
2019-06-28 21:42:24 +05:30
Ritesh Kumar
4e6c9c6147
Changed name from multivariate_gamma to multigamma, corrected logic for .is_real in multigamma and gamma
2019-06-28 21:42:24 +05:30
Ritesh Kumar
d66f46e1d7
Removed replacing of symbol
2019-06-28 21:42:24 +05:30
Ritesh Kumar
f2e477edeb
Minor changes
2019-06-28 21:42:24 +05:30
Ritesh Kumar
f96d9d071a
Added check conditions
2019-06-28 21:42:24 +05:30
Ritesh Kumar
8c31631bc0
Replaced multivariate_gamma func with multivariate_gamma class
2019-06-28 21:42:24 +05:30
Ritesh Kumar
87bb67e033
Added evaluate parameter
2019-06-28 21:36:12 +05:30
Ritesh Kumar
f55eb8084d
Added multivariate_gamma function
2019-06-28 21:36:12 +05:30
Christopher Smith
4da546d5eb
Merge pull request #16762 from smichr/addpow
...
Add._eval_power extracts big Float
2019-06-28 10:22:51 -05:00
czgdp1807
95862d7401
final changes
2019-06-28 20:13:04 +05:30
czgdp1807
367a21e854
Merge branch 'master' into sym_dim_frv
2019-06-28 19:50:02 +05:30
Christopher Smith
331edf32fa
Merge pull request #17115 from czgdp1807/fix-pwise
...
Contains allowed in Piecewise
2019-06-28 09:18:16 -05:00
czgdp1807
c7b659c731
pre-final updates
2019-06-28 19:34:08 +05:30
Christopher Smith
ee1150a719
Update expr.py
2019-06-28 07:43:22 -05:00
Christopher Smith
c5b94b953e
Merge pull request #17121 from stevenleeS0ht/master
...
Add gitignore rule to ignore Jetbrains PyCharm (/.idea/)
2019-06-28 07:33:52 -05:00
Christopher Smith
2d8e4b9c40
revert Rational extraction
2019-06-28 07:24:53 -05:00
Christopher Smith
6dfba3d0d1
update docstring to show how unchanged works
2019-06-28 06:59:21 -05:00
czgdp1807
f1d4f40d76
updated unchanged
2019-06-28 17:24:33 +05:30
czgdp1807
a6038e2ff0
pdf->pmf
2019-06-28 17:19:51 +05:30
Christopher Smith
cd60243c3b
Update test_contains.py
2019-06-28 06:44:16 -05:00
Christopher Smith
41f1b42e3e
Update test_piecewise.py
2019-06-28 06:39:44 -05:00
Divyanshu
29ee81b20b
make-group-init-argument
2019-06-28 16:26:51 +05:30
Divyanshu
5f71423c05
make-collected_word-a-method-to-collector
2019-06-28 09:33:44 +05:30
Christopher Smith
5ca228b17a
Merge pull request #17120 from ethankward/integral_imports
...
Missing imports in integrals
2019-06-27 21:14:18 -05:00
Steven Lee
5e2ebc54c6
Add gitignore rule to ignore Jetbrains PyCharm (/.idea/)
2019-06-28 11:08:50 +10:00
eward
50c99d3b94
test_special_denom additional tests
2019-06-27 13:53:19 -07:00
eward
320f4ee5b7
test_manual_subs additional tests
2019-06-27 13:52:59 -07:00
eward
b162f3caf5
add some missing imports
2019-06-27 13:52:23 -07:00
eward
5bcb64e08a
import sympy.core.compatibility.iterable
2019-06-27 13:51:50 -07:00
Shubham Kumar Jha
a13fe19756
fix merge conflicts
2019-06-27 23:40:44 +05:30
czgdp1807
319063b523
fixed unchanged
2019-06-27 21:25:21 +05:30
czgdp1807
cdeeb94735
removed unused import
2019-06-27 21:11:45 +05:30
czgdp1807
c5fb611eed
some updates
2019-06-27 21:10:16 +05:30
Arighna Chakrabarty
cddc584a4f
Removed CoeffBell class and changed it into a FPS function
2019-06-27 19:14:13 +05:30
Oscar Gustafsson
e1dff4c293
Fixed a few minor documentation issues
2019-06-27 14:57:57 +02:00
czgdp1807
4d07a4ddcd
Contains allowed in Piecewise
2019-06-27 16:05:23 +05:30
Christopher Smith
26aa686a20
Merge pull request #17110 from smichr/7971
...
simplify tests Expr.is_zero before _eval_simplify
2019-06-26 23:36:00 -05:00
Divyanshu
f02f9c7ebc
test_and_correct_collector
2019-06-27 09:12:32 +05:30
Denys Rybalka
7e84293761
Deprecates tensorsymmetry()
2019-06-27 06:30:42 +03:00
Christopher Smith
7649a7c3f1
simplify tests Expr.is_zero before _eval_simplify
...
This only returns 0 for an object that is zero which,
when multiplied by zero, gives 0 (not an object like
Matrix.zeros(2).
2019-06-26 21:48:07 -05:00
Oscar Benjamin
a8fa31fcb2
Merge pull request #17086 from ethankward/issue_13575
...
Test limit(acos(erfi(x)), x, 1) (issue 13575)
2019-06-26 21:52:19 +01:00
Francesco Bonazzi
81ae802474
Merge pull request #17049 from drybalka/tensor_sym_doc
...
Edited and structurized documentation for tensor module
2019-06-26 22:43:11 +02:00
Oscar Gustafsson
fcf330acc2
Improved documentation
2019-06-26 19:12:15 +02:00
czgdp1807
a3b9692997
fixed variance bug
2019-06-26 20:46:14 +05:30
czgdp1807
d27019399e
Merge branch 'master' into sym_dim_frv
2019-06-26 20:39:12 +05:30
Christopher Smith
452ba8bc0f
Merge pull request #17093 from smichr/7334
...
use assumptions for integration variables
2019-06-26 09:52:31 -05:00
Christopher Smith
c7a29b06c6
Merge pull request #17095 from smichr/ppow
...
make perfect_power strict when candidates are given
2019-06-26 09:51:25 -05:00
Oscar Gustafsson
bf3689f729
Merge pull request #17101 from Upabjojr/fix_rubi_guide
...
correct wrong link to SymPy Wiki
2019-06-26 16:36:26 +02:00
Oscar Gustafsson
085a31d13b
Merge branch 'master' into laguerrefixes
2019-06-26 15:36:57 +02:00
czgdp1807
c610d59d92
made some trivial changes
2019-06-26 17:07:05 +05:30
Kalevi Suominen
c36eaa91c1
Merge pull request #17104 from sylee957/fix_tensorflow_failing
...
Fix tensorflow failing
2019-06-26 13:54:54 +03:00
Oscar Gustafsson
c310a3ce51
Resolved conflicts
2019-06-26 11:22:51 +02:00
Oscar Gustafsson
958e650735
Made a better fix, also for laguerre and chebychevu
2019-06-26 11:14:01 +02:00
S.Y. Lee
83bbc3874d
Fix failing test
2019-06-26 18:05:37 +09:00
Denys Rybalka
af2201d663
New constructors for TensorSymmetry
...
Adds from_direct_product and riemann TensorSymmetry class constructors,
obsoletes tensorsymmetry().
2019-06-26 11:48:07 +03:00
Francesco Bonazzi
36dc647224
added backticks to documentation
2019-06-26 10:26:00 +02:00
S.Y. Lee
171f4c17fa
tensorflow.__dict__ is not available after 1.14.0
2019-06-26 17:02:57 +09:00
Christopher Smith
0a4fc8b89a
Merge pull request #16934 from czgdp1807/bug_fixes
...
Some general bug fixes for sympy.stats
2019-06-25 21:50:36 -05:00
Chris Smith
1709de7cde
without sorting, check for real
2019-06-25 16:57:08 -05:00
Chris Smith
8abc7df780
update tests
...
The test for 15716 is replaced with a MWE that would fail
unless the ValueError is caught, but it does not require
integration.
The integration result is otherwise modified since the
real value of x used during integration allows the
log to be split so 3 instead of 2 terms are produced.
2019-06-25 16:57:00 -05:00
Chris Smith
2dd0a6966f
watch for separate=True result
2019-06-25 16:56:51 -05:00
Chris Smith
a8e23375f8
limits set assumptions of integration variable
2019-06-25 16:56:44 -05:00
Chris Smith
49a6b2d393
use integer_nthroot in is_square
2019-06-25 16:54:31 -05:00
Chris Smith
a4ccd5771b
add more annotations
2019-06-25 16:54:24 -05:00
Chris Smith
2617d163fb
strictly use candidates when given
2019-06-25 16:54:16 -05:00
Chris Smith
f8686d96e0
tidy up spherical_harmonics docs
2019-06-25 16:54:04 -05:00
Francesco Bonazzi
7b06abec01
correct wrong link to SymPy Wiki
2019-06-25 23:47:13 +02:00
Jason K. Moore
a009fcba21
Merge pull request #17055 from ishanaj/beam_with_geometry
...
Made Beam class accept cross-section geometries
2019-06-25 10:57:32 -07:00
Oscar Gustafsson
5f13febf52
Merge pull request #16194 from shubhamabhang77/logicequation
...
logic equation suggestions
2019-06-25 17:33:07 +02:00
Oscar Gustafsson
955cd7379e
Rewrote some tests to separate real constant cases
2019-06-25 17:30:13 +02:00
czgdp1807
479dd2f35b
fixed sum issues and tempo changes
2019-06-25 20:21:10 +05:30
czgdp1807
38e8cf5a17
corrected the output of set property
2019-06-25 19:17:05 +05:30
czgdp1807
cd997d2873
minor refactoring
2019-06-25 18:59:06 +05:30
Oscar Gustafsson
1a2d45df08
Actually merged with master
2019-06-25 12:54:12 +02:00
Oscar Gustafsson
c581f49861
Updated tests and merged with master
2019-06-25 12:51:26 +02:00
Oscar Benjamin
f216b9d10c
Merge pull request #17080 from oscargus/mathematiceandoctavefixes
...
Many different printing fixes
2019-06-25 11:21:31 +01:00
Oscar Gustafsson
19deb986da
Renamed test
2019-06-25 09:33:41 +02:00
Oscar Gustafsson
53ae6595d3
Merge pull request #16711 from rimibis/decimal_sep
...
added a decimal separator option for floats and lists, sets, and tupl…
2019-06-24 23:28:36 +02:00
Oscar Gustafsson
0b9f4dabe3
Resolved conflict
2019-06-24 23:15:07 +02:00
Oscar Gustafsson
926b806afb
Fixed test error
2019-06-24 22:59:54 +02:00
eward
0c43feca30
issue 13575: erf(I).as_real_imag() == (0, -I*erf(I))
2019-06-24 13:22:22 -07:00
eward
9ddee979c1
update test_issue_13575: test numeric
2019-06-24 13:22:07 -07:00
Oscar Benjamin
41f3872940
Merge pull request #17085 from ethankward/issue_14241
...
Test and close issue 14241 (integral of n*x**(n-1) / (x+1))
2019-06-24 21:17:06 +01:00
Oscar Gustafsson
4543a7bf2d
Added tests and rewrote a bit
2019-06-24 22:16:21 +02:00
Ishan Joshi
853ef68f93
Improved documentation
2019-06-25 00:20:03 +05:30
Oscar Gustafsson
6fbb95b1e3
Rewrote the rewrite-functions
2019-06-24 20:38:35 +02:00
eward
b1e2593634
test_issue_13575
2019-06-24 11:14:17 -07:00
Aaron Meurer
6da7d01906
Merge pull request #17041 from anpandey/numpy_optim
...
Add optimization of numpy code involving matrix inverses
2019-06-24 11:49:36 -06:00
eward
fb440eca61
test_issue_14241
2019-06-24 10:45:43 -07:00
eward
6252603ba3
pass args to rewrite methods
2019-06-24 09:47:49 -07:00
eward
e9b83813de
add explicit tests for rewrite(Integral) and rewrite(Sum)
2019-06-24 09:47:28 -07:00
eward
74ee651ba1
add integral and sum rewrite tests
2019-06-24 08:52:36 -07:00
eward
ed14e6505e
update _eval_rewrite_as_Integral, remove blank lines
2019-06-24 08:52:13 -07:00
czgdp1807
691d47c46d
Corner case of conflicting states
2019-06-24 19:38:59 +05:30
czgdp1807
1129f0a2ff
Ne condition covered
2019-06-24 19:11:04 +05:30
czgdp1807
19196217d7
Or conditions covered
2019-06-24 19:03:47 +05:30
Denys Rybalka
94f3fad6e0
Fixed a few typos
2019-06-24 15:48:50 +03:00
czgdp1807
7616f24439
work for extending scope of queries started
2019-06-24 18:10:51 +05:30
Ankit Pandey
d3e3d5c6ef
Give raises a lambda expression
2019-06-24 18:19:17 +05:45
Arighna Chakrabarty
8ed575bb97
Corrected trailing whitespace
2019-06-24 17:37:02 +05:30
Arighna Chakrabarty
4d719072dc
Corrected docs
2019-06-24 17:34:56 +05:30
Arighna Chakrabarty
15a18175db
Changed documentation
2019-06-24 17:25:41 +05:30
Ishan Joshi
75120821a7
Corrected typo in documentation
2019-06-24 15:28:50 +05:30
Ishan Joshi
a41b465d04
Merge branch 'master' into beam_with_geometry
2019-06-24 15:24:30 +05:30
Ankit Pandey
dad29a6fd8
Merge branch 'master' of https://github.com/sympy/sympy into numpy_optim
2019-06-24 13:40:30 +05:45
S.Y. Lee
dec26834d1
Merge pull request #16901 from sylee957/fix_sqrt_pycode
...
Fix sqrt for pycode printer
2019-06-24 14:47:00 +09:00
RituRajSingh878
d68a68afb2
Merge branch 'checkodesol_bessel' of https://github.com/RituRajSingh878/sympy into checkodesol_bessel
2019-06-24 10:56:33 +05:30
RituRajSingh878
503e7103ae
added recursive relation of bessel in besselsimp function
2019-06-24 10:55:44 +05:30
Ritu Raj Singh
f9d00b478c
Merge branch 'master' into bessel_airy
2019-06-24 10:19:02 +05:30
etkewa@gmail.com
132d3b6fa6
fix args in eval methods
2019-06-23 15:59:03 -07:00
Oscar Gustafsson
b231d6ab4a
Added Mathematica and Octave functions
2019-06-23 23:51:02 +02:00
etkewa@gmail.com
a48c68a361
test rewrite(besseli)
2019-06-23 14:35:44 -07:00
etkewa@gmail.com
b067099492
add _eval_rewrite_as_besseli
2019-06-23 14:35:33 -07:00
etkewa@gmail.com
f6f71fd6f6
test_sympy__functions__special__bessel__marcum_q
2019-06-23 13:42:18 -07:00
Oscar Benjamin
91e4be545e
Merge pull request #16439 from arooshiverma/16392_1
...
Function to calculate Polar moment of inertia of a 3D Beam
2019-06-23 20:57:22 +01:00
etkewa@gmail.com
47414872f4
test_marcum_q
2019-06-23 12:37:05 -07:00
etkewa@gmail.com
d2743f5da0
Add marcum_q
2019-06-23 12:36:55 -07:00
Oscar Benjamin
f50c2d86a7
Merge pull request #17075 from oscargus/mathmlsymbols
...
Added some MathML presentation printing methods
2019-06-23 17:45:57 +01:00
Ishan Joshi
14895e5100
Merge branch 'beam_with_geometry' of https://github.com/ishanaj/sympy into beam_with_geometry
2019-06-23 21:00:33 +05:30
Ishan Joshi
56e13137d4
made beam raise ValueError on wrong entry to the second_moment
...
attribute.
2019-06-23 20:45:30 +05:30
czgdp1807
7fd91777f9
some modifications
2019-06-23 20:38:31 +05:30
Oscar Gustafsson
6bc6c8e92c
Merge branch 'master' into complexconstantintegration
2019-06-23 16:02:25 +02:00
Oscar Gustafsson
e0dea0390d
Update beam.py
2019-06-23 15:35:28 +02:00
Oscar Gustafsson
e8e4264ba6
Merge branch 'master' into 16392_1
2019-06-23 15:34:52 +02:00
Oscar Gustafsson
5379c67f87
Added some MathML presentation printing methods
2019-06-23 14:38:28 +02:00
czgdp1807
2c3929a3e7
reduced code
2019-06-23 17:22:07 +05:30
czgdp1807
1ea4fa5c06
simplified code
2019-06-23 17:06:36 +05:30
czgdp1807
77b3a56176
Merge branch 'master' into bug_fixes
2019-06-23 16:59:12 +05:30
czgdp1807
bba11ad57b
canonical results enables
2019-06-23 16:58:26 +05:30
Arighna Chakrabarty
4ffd3afba3
Corrected documentation errors
2019-06-23 16:52:30 +05:30
Oscar Gustafsson
23e097650e
Improved pretty and MathML printning of constants and polynomials
2019-06-23 13:14:59 +02:00
Ankit Pandey
76e1922050
Add some suggestions
2019-06-23 14:31:31 +05:45
Arighna Chakrabarty
b38bb104e4
Added implementation of inverse of formal power series, docs and tests
2019-06-23 12:55:47 +05:30
Ishan Joshi and Christopher Smith
c9ef265d50
Update sympy/physics/continuum_mechanics/beam.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-06-23 09:24:59 +05:30
Ishan Joshi and Christopher Smith
2b1fc57dd2
Update sympy/physics/continuum_mechanics/beam.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-06-23 09:24:42 +05:30
Oscar Gustafsson
6221eff5b5
Added Mathieu function LaTeX printing
2019-06-23 01:12:50 +02:00
Christopher Smith
3729e1ba5a
Merge pull request #17059 from oscargus/failingintegrals
...
Added some failing integral tests
2019-06-22 16:29:53 -05:00
Francesco Bonazzi
a9ff6a0d2d
Merge pull request #17046 from czgdp1807/stoch_attrs
...
Added some attributes to Markov chain
2019-06-22 21:44:31 +02:00
Ishan Joshi
85e510fd14
made cross_section mutable
2019-06-23 00:31:35 +05:30
Christopher Smith
5dea0e1e8f
comment out expected answer
...
When the XFAIL passes the assertion that there is no Integral can be replaced with an assertion of the result (or equivalent).
2019-06-22 13:48:47 -05:00
czgdp1807
d96ccd1997
resolved failure
2019-06-22 23:05:55 +05:30
czgdp1807
0fbf394846
Merge branch 'master' into sym_dim_frv
2019-06-22 23:02:09 +05:30
czgdp1807
dc37ebe019
resolved error
2019-06-22 21:50:18 +05:30
czgdp1807
970c44313b
added some new lines
2019-06-22 21:48:32 +05:30
czgdp1807
b1b5e288bb
changes for abstract methods
2019-06-22 21:44:43 +05:30
czgdp1807
0a4dea677f
work completed
2019-06-22 21:38:02 +05:30
Ritu Raj Singh
5afd75b91b
Merge branch 'master' into checkodesol_bessel
2019-06-22 20:17:22 +05:30
Sidhant Nagpal
2301d7992b
Merge pull request #17068 from ritesh99rakesh/logNormal
...
Added check for LogNormal distribution
2019-06-22 18:56:24 +05:30
czgdp1807
139f5deee5
made tests work
2019-06-22 18:19:47 +05:30
czgdp1807
296fb0f9de
made tests work
2019-06-22 18:19:37 +05:30
riteshkumar
f72993e8a6
Minor correction
2019-06-22 03:30:04 +05:30
riteshkumar
54fbc21e52
Added check for LogNormal distribution
2019-06-22 13:44:48 +05:30
Rimi
365677fe2f
Fixed documentation punctation and added Error handling tests for when non-existing decimal separator is entered
2019-06-21 17:41:37 -04:00
Christopher Smith
49ef9e52d0
Merge pull request #17067 from sympy/smichr-patch-5
...
correct TRmorrie for numer/denom handling
2019-06-21 13:43:34 -05:00
Ishan Joshi
8f0a1f7319
made cross_section attribute read-only and shifted if condition to
...
__init__
2019-06-21 23:33:23 +05:30
czgdp1807
89827b79f9
checkout commit
2019-06-21 21:46:09 +05:30
czgdp1807
7d1c5cbd70
checkout commit
2019-06-21 21:23:02 +05:30
Christopher Smith
2b01a91192
Update test_fu.py
2019-06-21 10:13:59 -05:00
Oscar Benjamin
d570a51fbc
Merge pull request #17056 from oscargus/unchanged2
...
Rewrote more 'a == a'-tests
2019-06-21 15:57:07 +01:00
Christopher Smith
a3bf4b7094
correct TRmorrie for numer/denom handling
2019-06-21 09:38:58 -05:00
czgdp1807
ece1416091
few more attrs
2019-06-21 19:47:42 +05:30
czgdp1807
da920e7106
reduced code size
2019-06-21 19:15:52 +05:30
czgdp1807
45ab432778
resolved test failure
2019-06-21 19:09:55 +05:30
Rimi
ca173b8331
Edited documentation by getting rid of parenthesis and replacing double quotes to double backticks to conform with other documentation with passing quality checks
2019-06-20 22:39:42 -04:00
Oscar Gustafsson
f3df6b4738
Added LaTeX priinting for stieltjes
2019-06-21 00:45:29 +02:00
Rimi
bee1f50d7c
Edited documentation by getting rid of parenthesis and replacing double quotes to double backticks to conform with other documentation
2019-06-20 17:08:59 -04:00
Arighna Chakrabarty
28e6970852
Changed the API of the convolution function
2019-06-21 02:17:09 +05:30
Arighna Chakrabarty
31b631ec5f
Added implementation of composition of formal power series, docs and tests
2019-06-21 01:17:00 +05:30
Christopher Smith
f20a763da7
Merge pull request #17060 from sylee957/rm_diagonalize
...
Remove orphaned method _diagonalize_clear_subproducts
2019-06-20 13:56:58 -05:00
Oscar Gustafsson
3b114a569f
Some more tests and a rewrite
2019-06-20 18:48:47 +02:00
czgdp1807
dc962ce204
more attrs added
2019-06-20 21:49:21 +05:30
S.Y. Lee
27539f55b4
Improve the readability
2019-06-20 23:23:18 +09:00
S.Y. Lee
0e0c23f2fa
Deprecate some private methods completely
2019-06-20 23:21:21 +09:00
S.Y. Lee
58a8c703e3
Remove orphaned method
2019-06-20 23:19:16 +09:00
czgdp1807
a692468288
SingleFinitePSPace complete
2019-06-20 19:30:06 +05:30
czgdp1807
f1407f3499
implemented prob_of for symbolic
2019-06-20 18:15:14 +05:30
Christopher Smith
d12570e481
Merge pull request #17047 from ethankward/is_square
...
Fix issue with is_square
2019-06-20 07:27:31 -05:00
czgdp1807
23799cf95e
removed extra lines in doc
2019-06-20 17:16:10 +05:30
czgdp1807
02241f075d
added assert
2019-06-20 17:01:58 +05:30
Ankit Pandey
111091beb6
Add some documentation
2019-06-20 16:55:31 +05:45
Ishan Joshi
53a5d73466
corrected the issue of backwards incompatabilty and added tests for
...
cross_section
2019-06-20 16:25:23 +05:30
Oscar Gustafsson
b176744ada
Updated tests
2019-06-20 11:07:25 +02:00
Oscar Gustafsson
553c2b09ce
Added some failing integral tests
2019-06-20 11:01:07 +02:00
Ankit Pandey
1468f2aa93
Fix wrong import in test
2019-06-20 14:41:34 +05:45
Oscar Gustafsson
0bc4a8e51f
Updated the status of some failing integrals
2019-06-20 09:57:02 +02:00
Oscar Gustafsson
d6dc60187b
Fixed failing tests
2019-06-20 09:33:29 +02:00
Ankit Pandey
103c07e756
Add MatrixSolve printing support to Octave printer
2019-06-20 11:55:58 +05:45
Divyanshu
1f6232ee03
include-references
2019-06-20 09:04:18 +05:30
Divyanshu
be62f04d18
Add-collector-class
2019-06-20 07:46:14 +05:30
Oscar Benjamin
bfbfad442f
Merge pull request #16819 from sylee957/add_matrix_definitiveness
...
[WIP] Matrices : Add matrix definitiveness properties
2019-06-20 01:01:45 +01:00
Oscar Benjamin
c07962a277
Merge pull request #17038 from mdickinson/fix-isqrt-fast-path
...
Fix incorrect results from isqrt fast path.
2019-06-20 00:50:42 +01:00
Aaron Meurer
f4d40fb211
Merge pull request #16956 from ShubhamKJha/lt_fix
...
Improved code in Expr.__lt__ and similar functions in Expr
2019-06-19 15:35:59 -06:00
Oscar Gustafsson
468b82bae1
Rewrote 'a == a'-tests
2019-06-19 23:19:10 +02:00
Ishan Joshi
9b5165c73a
made beam class accept geometry entities that represent the shape of the
...
cross-section
2019-06-20 01:50:07 +05:30
Oscar Benjamin
7f7e995808
Merge pull request #17053 from oscargus/unchanged
...
Rewrote some a == a tests
2019-06-19 20:34:03 +01:00
Oscar Gustafsson
8c585b0d66
Rewrote some a == a tests
2019-06-19 19:25:31 +02:00
czgdp1807
f3a51e323a
tests restored
2019-06-19 20:58:30 +05:30
czgdp1807
2ac874d0d6
pdf of die restored
2019-06-19 20:57:01 +05:30
czgdp1807
ee6adc0d11
final changes done
2019-06-19 20:43:30 +05:30
czgdp1807
e14665a976
removed a bug
2019-06-19 20:00:39 +05:30
czgdp1807
e1f2891f96
Merge branch 'master' into bug_fixes
2019-06-19 19:55:12 +05:30
czgdp1807
d8bdd00fb7
Added Stochastic Process in doc
2019-06-19 19:54:33 +05:30
czgdp1807
e6c71e4d80
resolved a bug
2019-06-19 19:15:05 +05:30
S.Y. Lee
0ee260af84
Use NonPositiveDefiniteMatrixError
2019-06-19 21:58:51 +09:00
Denys Rybalka
a27ffc2aaa
Edited and structurized documentation for tensor module
2019-06-19 15:13:40 +03:00
S.Y. Lee
01aae37577
Handle uncaught exceptions
...
Signed-off-by: S.Y. Lee <sylee957@gmail.com >
2019-06-19 17:47:03 +09:00
S.Y. Lee
c8134ab827
Add tests for alternative routines
...
Signed-off-by: S.Y. Lee <sylee957@gmail.com >
2019-06-19 17:44:45 +09:00
S.Y. Lee
79e2025f02
Add TODO notes
2019-06-19 15:54:15 +09:00
S.Y. Lee
231aae4415
Increase converage about exception handling
2019-06-19 13:38:38 +09:00
Ankit Pandey
ef20c1e67b
Add arg test for MatrixSolve in test_args
2019-06-19 08:20:34 +05:45
Aaron Meurer
c3eddf0233
Merge pull request #17020 from asmeurer/3.8-travis
...
Add Python 3.8 testing to Travis
2019-06-18 16:36:57 -06:00
eward
b7b1c8c0a6
use big=False
2019-06-18 15:15:46 -07:00
S.Y. Lee
c86e057456
Fix typo in test
2019-06-19 05:48:17 +09:00
S.Y. Lee
75639b842f
Add test for pyutils
2019-06-19 05:37:25 +09:00
S.Y. Lee
274f3c9c7e
Add python 2 printing standard and also force the standard to python 3 by default
2019-06-19 05:26:10 +09:00
Aaron Meurer
95f23087ac
Fix pip uninstall in Travis to not ask for confirmation
2019-06-18 13:23:24 -06:00
eward
1f0cb2f832
update issue #17044 to show construction
2019-06-18 12:09:25 -07:00
Aaron Meurer
882fee5f57
Fix Cython uninstallation on Travis Python 3.8
2019-06-18 12:50:45 -06:00
eward
fcc1389569
use candidates for performance
2019-06-18 09:12:55 -07:00
czgdp1807
e9afc5453d
made things work
2019-06-18 21:30:19 +05:30
eward
2d0b0c9fb2
update is_square with cases from issue 17044
2019-06-18 08:49:12 -07:00
eward
e6287e5506
fix is_square logic
2019-06-18 08:48:50 -07:00
Ankit Pandey
90ca7e4d19
Move MatrixSolve to its own file and fix tests
2019-06-18 21:03:40 +05:45
czgdp1807
e86bbd6702
added some attrs to Markov chain
2019-06-18 20:25:08 +05:30
Oscar Gustafsson
a95044fed5
Fixed another case
2019-06-18 10:34:58 +02:00
Ankit Pandey
4e6b8e8f4d
Move to representing solve as an AST node
...
Removes the `optimize` option introduced to the code printer in the
previous commit, instead instroducing the inverse optimization as a
top-level variable in `codegen.rewriting` that has to be applied by the
user. Also abstracts the solving operation as a `MatrixSolve` AST node
that can be handled by each code printer uniquely.
2019-06-18 14:10:16 +05:45
Oscar Gustafsson
b9ed9b95cf
Fixed issue with complex constants in manual integration
2019-06-18 10:11:09 +02:00
Shubham Kumar Jha
043274b0de
some fixes
2019-06-18 08:31:47 +05:30
Oscar Benjamin
f2130d970f
Merge pull request #17019 from vighneshq/refine-complex
...
Add refine handlers for re(), im().
2019-06-18 00:53:30 +01:00
Ankit Pandey
ccb7e7005e
Add optimization of numpy code involving matrix inverses
...
Adds an `optimization` option to the code printer base class that
executes any `codegen.rewriting` optimizations the printer object might
have. Also adds an optimization to the numpy printer that uses the
assumption system to rewrite the multiplication of a matrix and a vector
as the faster `np.linalg.solve` when appropriate.
For example:
>>> from sympy.assumptions import assuming, Q
>>> from sympy.matrices import MatrixSymbol
>>> from sympy.printing.pycode import NumPyPrinter
>>> A = MatrixSymbol('A', 2, 2)
>>> x = MatrixSymbol('x', 2, 1)
>>> p = NumPyPrinter(settings={'optimize' : True})
>>> print(p.doprint(A**(-1) * x))
(numpy.linalg.inv(A)).dot(x)
>>> with assuming(Q.fullrank(A)):
... p.doprint(A**(-1) * x)
numpy.linalg.solve(A, x)
2019-06-17 22:32:33 +05:45
Francesco Bonazzi
5a08124219
Merge pull request #17030 from czgdp1807/stch_updt
...
Adding more features to StochasticProcess
2019-06-17 16:53:14 +02:00
Arighna Chakrabarty
b3616bd73e
Multiplied sequences instead of using SeqMul
2019-06-17 14:31:49 +05:30
Arighna Chakrabarty
1a2b0a7331
Refactored lists into sequences, and added tests and other changes
2019-06-17 14:15:41 +05:30
Arighna Chakrabarty
5e5c732fe5
Implemeted convolution operation
2019-06-17 14:15:20 +05:30
Mark Dickinson
e330058808
Make sure to use the floor of n in the sqrt test.
2019-06-16 19:13:39 +01:00
Mark Dickinson
0fc8896e88
Add a few more corner case tests.
2019-06-16 18:15:02 +01:00
Mark Dickinson
211cbc467c
Fix a test that wasn't calling the target function.
2019-06-16 17:52:03 +01:00
Mark Dickinson
855193661b
Make sure that ValueError is raised for small negative numbers.
2019-06-16 17:48:26 +01:00
Mark Dickinson
12408e977a
Fix incorrect results from isqrt fast path.
2019-06-16 16:26:26 +01:00
Sidhant Nagpal
ffa2a22cb0
Merge pull request #16528 from czgdp1807/stats_simple
...
Updating sympy.stats.crv_types for extreme value distributions
2019-06-16 20:53:37 +05:30
czgdp1807
c3083232f4
final changes for die
2019-06-16 20:23:44 +05:30
czgdp1807
b28b435aa7
symbolic dims for die
2019-06-16 20:09:51 +05:30
Gagandeep Singh
d28b0990db
Update crv_types.py
2019-06-16 18:26:00 +05:30
czgdp1807
c5e1c810fc
removed a bug
2019-06-16 18:03:50 +05:30
czgdp1807
c4d1653bdb
removed compile error
2019-06-16 17:30:55 +05:30
czgdp1807
1ed85a20ec
removed some extra new lines
2019-06-16 17:18:08 +05:30
kangzhiq
b8d9791d72
Ameliorated tests
2019-06-16 10:25:36 +02:00
Divyanshu
1ea3055357
add-test-in-core/test_args
2019-06-16 07:44:50 +05:30
kangzhiq
005fd037ae
Added cases in permutedims for spar_arr
...
- Added cases in permutedims for sparse arrays
- Added tests accordingly
2019-06-16 02:21:40 +02:00
Divyanshu
0a9b68f1d7
collection-algorithm
2019-06-15 23:11:44 +05:30
Ankit Pandey
b021839fbf
Typo
2019-06-15 10:39:21 -05:00
Vighnesh Shenoy
77f7cf0504
Add refine handlers for re(), im()
2019-06-15 21:03:42 +05:30
Ankit Pandey
a75d9ae7fd
Add a better error message
2019-06-15 10:33:13 -05:00
czgdp1807
3806c22a27
basic expectation added
2019-06-15 17:35:06 +05:30
czgdp1807
cdd92470eb
started the work for expectation
2019-06-15 13:04:46 +05:30
czgdp1807
ea8572e6ef
updated test_args.py
2019-06-15 11:41:50 +05:30
Oscar Benjamin
3febfc43ca
Merge pull request #17031 from ethankward/fancysets_coverage
...
Increase test coverage of fancysets
2019-06-14 20:42:10 +01:00
Shubham Kumar Jha
c7d58ec680
Added comment to redirect failing tests to this PR
2019-06-14 23:17:54 +05:30
eward
deea1cfd4c
additional fancyset tests
2019-06-14 10:11:47 -07:00
czgdp1807
3d3c167ac4
added joint_distribution feature
2019-06-14 21:40:13 +05:30
Francesco Bonazzi
a9751e4b97
Merge pull request #17026 from kangzhiq/div_neg_spar_arr
...
Added cases in NDimArray operations for sparse array
2019-06-14 14:45:00 +02:00
czgdp1807
0fa67d57b6
increased test cov
2019-06-14 17:52:42 +05:30
kangzhiq
f143f2d3ff
Added cases in Array operations for sparse array
...
- Added cases in __div__ for sparse array
- Added cases in __neg__ for sparse array
- Added tests for these two cases
- Added test for div by 0
- Added tests for large scale sparse array in tests of
ImmutableNDimArray
2019-06-14 02:23:22 +02:00
Francesco Bonazzi
f2e52337e0
Merge pull request #16981 from czgdp1807/stoch_process
...
Added StochasticProcess and DiscreteMarkovChain
2019-06-13 23:27:23 +02:00
Oscar Benjamin
a03dca8c04
Merge pull request #17021 from drybalka/canon_bp_doc
...
Improved documentation note for Butler-Portugal algorithm
2019-06-13 22:26:59 +01:00
Oscar Benjamin
971a48b27e
Merge pull request #17023 from oscargus/mathematicafunctions2
...
Some Mathematica functions
2019-06-13 22:21:16 +01:00
Oscar Benjamin
f34e856bf9
Merge pull request #17024 from oscargus/increasecoverage7
...
Increase coverage of calculus
2019-06-13 22:14:56 +01:00
Oscar Benjamin
3fe71d4486
Merge pull request #17003 from czgdp1807/gitignore
...
Updated gitignore
2019-06-13 22:07:13 +01:00
Aaron Meurer
4a776e05be
Remove Cython from the Python 3.8 build
...
For some reason Travis includes it automatically. We will worry about external
dependency tests once everything is built in conda.
2019-06-13 12:50:11 -06:00
Gagandeep Singh
bc6feb718e
Update .gitignore
2019-06-13 21:29:58 +05:30
czgdp1807
875152a67d
Changes made for symbolic dimensions
2019-06-13 21:26:25 +05:30
Ishan Joshi
c399c60802
made cut_section() return both upper and lower segments and added more
...
tests
2019-06-13 20:06:10 +05:30
Oscar Gustafsson
d18ff15032
Increase coverage of calculus
2019-06-13 14:49:02 +02:00
czgdp1807
35b534760f
updated tests
2019-06-13 17:43:22 +05:30
czgdp1807
53b21da1e3
Merge branch 'master' into bug_fixes
2019-06-13 17:38:53 +05:30
Oscar Gustafsson
2df6a02e67
Added special polynomials
2019-06-13 12:35:58 +02:00
Oscar Gustafsson
285fd9b233
Added some trigonometric functions and tests
2019-06-13 12:16:31 +02:00
Oscar Gustafsson
15169e1b29
Updated tests after merging
2019-06-13 12:01:21 +02:00
Oscar Gustafsson
bec95a0a09
Merge branch 'master' into laguerrefixes
2019-06-13 11:46:29 +02:00
Francesco Bonazzi
16d98d9b43
Merge pull request #17000 from kangzhiq/real_sparse_tensorproduct
...
[WIP]Added cases for sparse arrays in tensorproduct
2019-06-13 10:58:05 +02:00
Ankit Pandey
1de08b2f39
Add string matching test
2019-06-13 00:16:50 -05:00
Aaron Meurer
3e0187b495
Fix splits for Python 3.8 on Travis
2019-06-12 19:20:24 -06:00
Denys Rybalka
e90605258e
Improved documentation note for Butler-Portugal algorithm
2019-06-13 03:54:08 +03:00
Oscar Benjamin
520ef04a46
Merge pull request #16996 from oscargus/increasecoverage5
...
Increase coverage of beta_functions, error_functions, zeta_functions, and special polynomials
2019-06-13 01:07:18 +01:00
kangzhiq
a397814f54
Modified tests in test_arrayop
...
- Added loop to make sure test passed for sprase and dense arrays
- Ameliorated tests in test_derive_by_array
2019-06-12 23:55:11 +02:00
Aaron Meurer
2c26fa350a
Remove test_travis.py
...
The test does indeed fail in Python 3.8 on Travis.
2019-06-12 15:08:42 -06:00
Christopher Smith
f91de69558
Merge pull request #17016 from tBuLi/fit_17015
...
Use the symbol used to initiate a MatrixSymbol in all manipulations
2019-06-12 16:15:02 -04:00
Aaron Meurer
ea206a3b7f
Move the Python 3.8 tests to the test stage
2019-06-12 12:38:33 -06:00
Aaron Meurer
7f880f0df0
Add Python 3.8 testing to Travis
2019-06-12 12:35:08 -06:00
Oscar Gustafsson
5b758199be
Changed tests to use dummy_eq
2019-06-12 20:22:24 +02:00
Christopher Smith
3bfd5f8a8e
Merge pull request #17009 from bsamseth/master
...
Function and IndexedBase inherits assumptions from Symbol
2019-06-12 13:53:43 -04:00
Denys Rybalka
8e23f4c605
Improved documentation note for Butler-Portugal algorithm
2019-06-12 20:48:46 +03:00
Christopher Smith
8a9b8d8b3f
Merge pull request #17012 from oscargus/increasecoverage6
...
Increase coverage for combinatorial + bug fixes
2019-06-12 11:39:21 -04:00
Christopher Smith
f1d20aeb19
Update test_matexpr.py
2019-06-12 11:30:06 -04:00
czgdp1807
4c530afcd2
removed str comp
2019-06-12 20:54:15 +05:30
Christopher Smith
9b3f0e4d7b
Update lambdify.py
2019-06-12 11:23:02 -04:00
czgdp1807
bf61eedebf
html docs updated
2019-06-12 20:37:33 +05:30
czgdp1807
cd5666d840
some bug fix and test
2019-06-12 20:16:30 +05:30
czgdp1807
23c48a9de6
removed TODO line
2019-06-12 19:52:02 +05:30
Christopher Smith
7ae5feadcd
Update lambdify.py
...
IndexedBase('a')[i].subs('a', Dummy('x')) now gives x[i] instead of _x[i] so the routine was changed to use a unique Symbol instead of a unique Dummy. Alternatively, the substitution could be changed so it uses Symbol/Dummy.name instead of str(Symbol/Dummy). Recall that str(Dummy) retains the underscore while str(Symbol) does not. Since we have disambiguate, however, that will highlight differences in Symbols maybe it would just make sense to have Dummy stop preppending symbols with underscores.
2019-06-12 09:36:00 -04:00
Martin Roelfs
7b1cf23708
Use the symbol used to initiate a MatrixSymbol in all manipulations
...
not the name str.
2019-06-12 15:26:39 +02:00
Francesco Bonazzi
00faa7ec6b
Merge pull request #17014 from kangzhiq/fix_mul
...
Added cases for sparse arrays in __mul__ and __rmul__
2019-06-12 10:46:55 +02:00
Chris Smith
bdab8edcc4
rework passing of assumptions via symbol
2019-06-12 09:26:56 +02:00
Oscar Benjamin
a193dcf9ed
Merge pull request #17005 from vighneshq/test_failures-3.8
...
Fix more compatibility issues with Python3.8.
2019-06-12 01:30:03 +01:00
Oscar Benjamin
ddc6c6ccf9
Merge pull request #16423 from versusvoid/master
...
Handle Pow in Commutator expansion.
2019-06-11 23:53:51 +01:00
kangzhiq
45c2a965ef
Update with master and fix conflict
2019-06-12 00:40:56 +02:00
kangzhiq
fdaadc87d4
Added cases for sp_arr for tensorproduct
...
- Removed unnecessary codes
- Added case for tensorproduct between two sp_arr
- Added tests
2019-06-12 00:33:10 +02:00
Ankit Pandey
b6fbc76990
Add numpy printing support for identity matrices
2019-06-11 17:19:10 -05:00
kangzhiq
932bd9d3c7
Added cases in __mul__ and test
...
- Added cases for sparse array in __mul__ and __rmul__
- Added tests for large scale sparse array for __mul__ and __rmul__
2019-06-11 23:40:19 +02:00
Oscar Gustafsson
bfe0192347
Fixed fibonacci and tribonacci polynomial printing
2019-06-11 22:54:16 +02:00
Oscar Gustafsson
4209b28d97
Fixed tests
2019-06-11 22:39:23 +02:00
Oscar Gustafsson
65fc11a113
Increase coverage and fix some issues
2019-06-11 18:10:54 +02:00
czgdp1807
e5e8f0a93e
simplified results
2019-06-11 20:19:04 +05:30
czgdp1807
ac3f38e230
modified doc tests
2019-06-11 19:43:56 +05:30
Oscar Gustafsson
0aa1453224
Increase coverage of factorials
2019-06-11 15:40:21 +02:00
czgdp1807
6abe58242e
updated test_args.py
2019-06-11 19:00:57 +05:30
czgdp1807
56d62d63f9
some work
2019-06-11 18:57:12 +05:30
Oscar Gustafsson
cf314ff405
Fixed some issues with negative indexes
2019-06-11 13:59:28 +02:00
czgdp1807
18f0c0abea
Merge branch 'master' into stats_simple
2019-06-11 17:27:59 +05:30
czgdp1807
5364c7e7cf
final commit
2019-06-11 17:27:16 +05:30
czgdp1807
9b16059e8e
checkout commit 1
2019-06-11 17:24:56 +05:30
czgdp1807
9ed2b918bf
updated names
2019-06-11 17:18:27 +05:30
Gagandeep Singh
f845b986d1
Merge branch 'master' into sym_dim_frv
2019-06-11 16:48:04 +05:30
Versus Void
97eabb9f78
Handle Pow in Commutator expansion.
2019-06-11 12:00:49 +03:00
Sartaj Singh
815be53c35
Merge pull request #16869 from ArighnaIITG/aroder2
...
[WIP] [GSoC] Corrected the symbolic XFAIL tests in test_formal.py
2019-06-11 12:34:15 +05:30
Rimi
3d98270411
added the decimal separator tests to test_latex.py. Latex.py and printer.py pass all tests
2019-06-11 00:05:43 -04:00
Bendik Samseth
0fe1d98f7d
Fix bug with Function name being set to Symbol and not str
2019-06-10 21:32:26 +02:00
Ishan Joshi
fdfa710f5a
cut_section() can now handle concave polygons
2019-06-10 23:27:04 +05:30
Bendik Samseth
0098dec91f
Fix inequality of identical IndexedBase objects
2019-06-10 19:01:19 +02:00
Bendik Samseth
d81ae5e5a5
Fix failing test in test_function.py
...
Comparison was made between a sympy version of 'f' and the actual string 'f'.
The name acts correct, as reflected by the fixed test which now passes.
2019-06-10 18:47:45 +02:00
Bendik Samseth and Christopher Smith
5d254717e7
Apply suggestions from code review
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-06-10 18:16:18 +02:00
Bendik Samseth
a1c38a659f
Minor simplification to assumption validation
2019-06-10 17:18:43 +02:00
Francesco Bonazzi
0533158f03
Merge pull request #16908 from czgdp1807/xfail_rv
...
Symbolic conditions allowed in sympy.stats.frv
2019-06-10 16:56:14 +02:00
czgdp1807
e32a63a971
minor fix
2019-06-10 19:50:52 +05:30
Bendik Samseth
b4ca11e1f0
Redo verification of assumptions
2019-06-10 16:16:56 +02:00
Francesco Bonazzi
4cf38ad281
Merge pull request #16937 from kangzhiq/Sparse_from_Dense
...
Added case in derive_by_array for sparse array
2019-06-10 16:13:20 +02:00
Bendik Samseth
e18988a552
Function inherits assumptions if created with Symbol
2019-06-10 15:47:19 +02:00
Oscar Gustafsson
129de23a6d
Added skip to avoid killing Travis tests
2019-06-10 14:33:18 +02:00
Oscar Gustafsson
1d35007a8d
Used dummy_eq and added some failing tests
2019-06-10 14:12:51 +02:00
Oscar Gustafsson
fd647c8c13
Removed unused code, restructured code, improved tests
2019-06-10 11:35:25 +02:00
kangzhiq
a063cc40e0
Ameliorated codes and added tests
...
- Ameliorated codes in derive_by_array
- Added test for f(0) != 0 for applyfunc
2019-06-10 11:20:15 +02:00
Bendik Samseth
e75e2bea76
IndexedBase inherits assumptions from initializing symbol
...
With reference to discussion PR #16085 ,
https://github.com/sympy/sympy/pull/16085#discussion_r287332934
2019-06-10 10:21:12 +02:00
Kalevi Suominen
7e38c02294
Merge pull request #16394 from divyanshu132/fix-check_homomorphism
...
Homomorphism shows error for relator element not in generator
2019-06-10 10:26:42 +03:00
Rimi
f041a38af5
passing the trailing white spaces tests on all files
2019-06-09 18:17:53 -04:00
rimibis
e85a558667
Merge branch 'master' into decimal_sep
2019-06-09 15:35:19 -04:00
Vighnesh Shenoy
5ea93bc9ab
Issue #16977 , fix more compatibility issues with Python3.8.
...
xml.dom.minidom preserves attribute order in Python3.8 which causes
some test failures. Modified the order of attribute insertion to
ensure that tests run on both 3.8 & earlier versions. Modified the use
of officially removed time.clock with a conditional import in
sympy/core/compatibility.py
2019-06-09 23:34:21 +05:30
Oscar Gustafsson
5a83595440
Added comment about Legendre derivative at +/-1
2019-06-09 19:44:27 +02:00
Oscar Gustafsson
f293f7e7f2
Removed unreachable code
2019-06-09 19:22:19 +02:00
Oscar Gustafsson
75d394bd5a
Added more tests
2019-06-09 19:14:25 +02:00
czgdp1807
9b7a38fcde
reduced code
2019-06-09 20:38:10 +05:30
czgdp1807
cd2fb329ec
made some updates for time being
2019-06-09 18:55:19 +05:30
czgdp1807
7e55b5fc65
updated gitignore
2019-06-09 18:43:45 +05:30
czgdp1807
275a3b5a13
removed unwanted attrs
2019-06-09 18:36:33 +05:30
czgdp1807
db6be10adf
removed not-required attrs
2019-06-09 18:34:37 +05:30
czgdp1807
18dddb1ab7
removed unwanted pyc file
2019-06-09 18:32:35 +05:30
czgdp1807
62aca54af2
updated API
2019-06-09 18:30:33 +05:30
Ishan Joshi
375e92ad24
improved code to support vertical lines parallel to y axis and also
...
supporting negetive values of coeff of y
2019-06-09 17:34:02 +05:30
Oscar Benjamin
5f2b57688b
Merge pull request #16986 from vighneshq/python3.8-syntax
...
Modify comparisons to adhere to Python 3.8 guidelines
2019-06-09 12:41:34 +01:00
Christopher Smith
e4f8d691e7
Merge pull request #16085 from bsamseth/master
...
Add assumptions on indexed symbols
2019-06-09 05:32:42 -05:00
Ishan Joshi
55b700abb6
Added a new function cut_section() which would return a new polygon (or a segment of the polygon) which lies above the given line that intersects it.
2019-06-09 13:05:20 +05:30
Rimi
3819cad1d1
got rid of extra new line at the end of latex.py
2019-06-08 23:00:20 -04:00
Rimi
fe586ca199
got rid of extra new line on line 290 in printer.py
2019-06-08 22:34:55 -04:00
kangzhiq
9fe36705c8
Added some cases and tests
...
- Added case for tensorproduct of a scalar and a sparse array
- Added tests for sparse array in test of tensorproduct
2019-06-09 01:26:36 +02:00
Oscar Gustafsson
7270423865
Enabled commented code for gegenbauer evaluation + test
2019-06-09 01:01:37 +02:00
kangzhiq
335cc94c96
Ameliorated functions and removed unnecessary code
...
- Ameliorated derive_by_array using dict comprehension
- Removed _sparse_array_derive_by_array
- Ameliorated applyfunc for the case of sparse array
- Ameliorated __eq__ in NDimArray by casting dictionaries to dict
2019-06-09 00:35:41 +02:00
Christopher Smith
2ba36ff081
Merge pull request #16995 from sympy/N-R
...
consider Naturals.inf for intersection with Range
2019-06-08 16:25:04 -05:00
Oscar Gustafsson
cc74da8f5e
Some special polynomial tests
2019-06-08 22:30:37 +02:00
Oscar Gustafsson
340a195a74
More error_functions coverage
2019-06-08 22:11:30 +02:00
Vighnesh Shenoy
af7fab8860
Modify literal comparisons as per python3.8 guidelines
...
This is in regards to issue #16973 , Python 3.8 beta raises a warning
when comparing with string, int literals using is. The .travis.yml compileall
command has been added another flag to error if the convention is not followed.
A dummy test has been added in utilities/tests, this must cause the travis
build to fail in 3.8. If it does as expected, it can be removed, else the
compileall command will have to be changed.
2019-06-09 00:34:40 +05:30
Christopher Smith
08644cb28e
Merge pull request #16990 from oscargus/increasecoverage3
...
Increased some test coverage
2019-06-08 13:46:42 -05:00
Christopher Smith
0371742842
Merge pull request #16993 from oscargus/increasecoverage4
...
Increase coverage for hyperbolic, exponentials, and complexes
2019-06-08 13:36:42 -05:00
Christopher Smith
0c85d725c3
remove and relocate imports
2019-06-08 12:55:41 -05:00
Christopher Smith
1d57e52dae
Update test_fancysets.py
2019-06-08 11:09:11 -05:00
Christopher Smith
4869862c7a
consider Naturals.inf for intersection with Range
2019-06-08 11:05:07 -05:00
Oscar Gustafsson
563144e235
Extracted slow Fresnel tests
2019-06-08 18:02:14 +02:00
Oscar Gustafsson
fd89a7cc1d
A bit of coverage for error_functions
2019-06-08 17:37:32 +02:00
czgdp1807
b8b21b59f8
restored original comment
2019-06-08 20:48:12 +05:30
czgdp1807
30092d9ce4
resolved conflicts
2019-06-08 20:36:19 +05:30
Oscar Gustafsson
0c1e0aeacd
Increase coverage for beta_functions and zeta_functions
2019-06-08 17:04:46 +02:00
czgdp1807
29d6ee4b34
complete the work
2019-06-08 20:30:13 +05:30
Oscar Gustafsson
3d8546d07c
Small coverage increase in complexes
2019-06-08 16:19:45 +02:00
Christopher Smith
51630a792b
Merge pull request #16985 from pekochun/master
...
Edit parentheses bug in mathml
2019-06-08 08:59:45 -05:00
Oscar Gustafsson
d7895fdbf0
Increased coverage for exponential
2019-06-08 15:56:36 +02:00
Oscar Gustafsson
4cd9f5197c
Increased coverage for hyperbolic
2019-06-08 15:40:41 +02:00
Oscar Gustafsson
eb3124041f
Corrected tests
2019-06-08 15:12:00 +02:00
Oscar Gustafsson
96fa62dfb1
Added more test for trigonometric functions and fixed unreachable code
2019-06-08 15:03:08 +02:00
czgdp1807
24e9fb2493
updated probability method
2019-06-08 18:05:41 +05:30
Divyanshu
91f55c9ecb
add-polycyclic-class
2019-06-08 17:26:46 +05:30
pekochun
2bfb610bbb
Correspondence to AssertionError
...
Correspondence to AssertionError
2019-06-08 20:10:03 +09:00
Oscar Gustafsson
76c8227d43
Merge branch 'master' into increasecoverage3
2019-06-08 12:48:39 +02:00
Gagandeep Singh
5b7433a9c0
Merge branch 'master' into sym_dim_frv
2019-06-08 09:26:49 +05:30
pekochun
f0c4359052
Fix tab key and space key errors
...
Fix tab key and space key errors
2019-06-08 11:16:44 +09:00
kangzhiq
c94a561487
Temporarily resolved derive_by_array
...
- Temorarily fixed .diff()
- Fixed some mistakes
- Ameliorated tests
2019-06-08 01:52:31 +02:00
Christopher Smith
8f4999d744
Merge pull request #16988 from smichr/set
...
16987: remove dups in Intersection at instantiation
2019-06-07 17:44:23 -05:00
Oscar Gustafsson
adc4f48ef1
Added more tests
2019-06-07 22:17:26 +02:00
czgdp1807
a5f49409e0
removed unused import
2019-06-07 19:26:00 +05:30
czgdp1807
328e17725f
final changes dones
2019-06-07 19:24:33 +05:30
czgdp1807
6a54ddeb4b
E works with symbolic conditions
2019-06-07 18:45:26 +05:30
Christopher Smith
1b17434c50
Update sets.py
2019-06-07 07:01:16 -05:00
czgdp1807
4c12db0e90
corrected checks
2019-06-07 17:25:07 +05:30
czgdp1807
9b7931cbd1
namespace and quality
2019-06-07 16:35:23 +05:30
czgdp1807
311959f919
some improvements
2019-06-07 16:30:23 +05:30
Chris Smith
40950f3340
16987: remove dups in Intersection at instantiation
2019-06-07 05:50:14 -05:00
Arighna Chakrabarty
8a42bb5f7f
Removed already present free_symbols property
2019-06-07 13:52:56 +05:30
Arighna Chakrabarty
7642374d89
Modified trailing whitespace
2019-06-07 13:41:18 +05:30
Arighna Chakrabarty
caa37428ff
Modfied free_symbols property, and other minor changes
2019-06-07 13:35:36 +05:30
Francesco Bonazzi
e727339af6
Merge pull request #16969 from kangzhiq/Added_functions_to_AC
...
Added functions to ArrayComprehension
2019-06-07 09:45:12 +02:00
Sidhant Nagpal
6dd3966100
Merge pull request #16815 from ritesh99rakesh/BetaBinomial
...
[GSoC] Added Beta-binomial distribution
2019-06-07 09:05:34 +05:30
pekochun
df06a0956e
Edit parentheses bug in mathml
...
StackOverFlow(Japanese)
https://ja.stackoverflow.com/q/55578/22541
StackOverFlow(English)
https://stackoverflow.com/q/56479585/7864698
2019-06-07 10:55:29 +09:00
kangzhiq
3c5b991bea
Renamed is_numeric and added tests
...
- Renamed is_numeric to is_shape_numeric
- Modified and added tests accordingly
2019-06-07 01:40:11 +02:00
kangzhiq
1420a83782
Removed unnecessary overrides and add tests
...
- Removed override method __eq__, __hash__, eval_derivative_array in
Sprase array
- Modified __eq__ in NDimArray to add case for sparse array
- Modified derive_by_array to add case for sparse array
- Added tests of __eq__ for large scale sparse array
- Added tests for derive_by_array for large scale sparse array
2019-06-07 01:21:03 +02:00
Bendik Samseth
138e4771d5
Propagate assumptions onto Indexed only if available
...
Tests from other parts of the code base invokes Indexed constructor with types
that do not have any assumptions support. These cases should be handled
gracefully.
Similarly, if no assumptions can be forwarded, we should take care to always set
the defaults. This way we don't have any ill-defined states where `Indexed`
objects fail if queried for their assumptions.
Note: Assumptions set on Symbols will not currently be forwarded to `Indexed`
objects. Only if `IndexedBase` grabs he assumptions first will they be passed along.
2019-06-07 00:07:00 +02:00
Bendik Samseth
8ff384b8be
Update failing doctest
...
The produced assumptions are different on the PR build on Travis compared to
this development branch, which results in a mismatch. The new edit shows the
existence of assumptions in a simpler manner which should resolve the issue.
2019-06-06 23:54:07 +02:00
Bendik Samseth
f432c585ec
Remove unused import
2019-06-06 23:17:19 +02:00
Bendik Samseth
ce76efb6ab
Remove outdated comment
2019-06-06 23:16:19 +02:00
Bendik Samseth
6c2fb57b4d
Fix trailing whitespace issue
2019-06-06 23:10:32 +02:00
Arighna Chakrabarty
68ff0f1284
Minor changes
2019-06-07 01:54:41 +05:30
Ritesh Kumar
f02de741e2
Removed unnecessary import, refactored line
2019-06-06 21:38:38 +05:30
Christopher Smith
0130e4f6bc
Merge pull request #16896 from smichr/s
...
Rationals added to fancysets
2019-06-06 09:53:09 -05:00
czgdp1807
32944e2fc8
added stochastic process
2019-06-06 20:12:02 +05:30
Arighna Chakrabarty
f50e01218c
Added free_symbols for fps, and other changes
2019-06-06 19:59:55 +05:30
Christopher Smith
9576ee3c04
Merge pull request #16963 from smichr/_s
...
S(dict) -> Dict
2019-06-06 06:31:53 -05:00
Chris Smith
dd8701af9d
S(dict)->Dict
2019-06-06 05:12:53 -05:00
Chris Smith
cbf7b4ec4b
correct typo
2019-06-06 05:12:43 -05:00
Chris Smith
ca22240da7
sympy->SymPy
2019-06-06 05:12:39 -05:00
Chris Smith
5e442fca4d
13425: rational=True for sympify call in N
2019-06-06 05:12:03 -05:00
Shubham Kumar Jha
019d23b80a
Simplified the logic
2019-06-06 10:20:56 +05:30
kangzhiq
4ff4c40594
Improved derive_by_array
...
- Added support for derivative by array for sparse array
- Modified _eval_derivative_array in sparse array
2019-06-06 00:00:11 +02:00
Oscar Gustafsson
01e9864216
Added a few tests to increase coverage
2019-06-05 23:55:35 +02:00
Kalevi Suominen
14abc98852
Merge pull request #16957 from oscarbenjamin/fix_diffx
...
Fix diffx for cached solutions in nth_algebraic
2019-06-05 20:00:40 +03:00
Ritesh Kumar
4fe8ec32ad
Merge master
2019-06-05 22:22:49 +05:30
czgdp1807
a08ca4d0e3
corrected mistake
2019-06-05 17:22:42 +05:30
czgdp1807
94a2987213
added new line
2019-06-05 17:07:43 +05:30
czgdp1807
8f2c4e4022
updated tests
2019-06-05 16:59:10 +05:30
Oscar Benjamin
bd03e76927
Use a global variable to store diffx
2019-06-05 12:17:35 +01:00
Rimi
98689e74a3
added cleaner code and documentation
2019-06-04 19:17:28 -04:00
kangzhiq
16420fa6fd
Added functions to ArrayComprehension
...
- Added .tolist() and tests
- Added .tomatrix() and tests
- Refactorised _expand_array()
2019-06-05 00:43:12 +02:00
Shubham Kumar Jha
9a3dd07c90
Fixes in tests
2019-06-04 22:56:15 +05:30
Chris Smith
5bb6991c9f
__builtins__ -> __bultin__
2019-06-04 10:56:31 -05:00
Shubham Kumar Jha
f5c3c1b1b2
Fixing the failing tests
2019-06-04 21:23:32 +05:30
Chris Smith
915c468e04
reorder sympify to prioritize CantSympify
2019-06-04 10:53:28 -05:00
czgdp1807
5937ef6956
symbolic dimensions allowed for Die
2019-06-04 20:24:43 +05:30
czgdp1807
cb924ad140
some more bug fixes
2019-06-04 17:55:38 +05:30
Oscar Benjamin
20234eb778
Merge pull request #16799 from Naba7/doc
...
Doctests and docstrings added
2019-06-04 12:11:41 +01:00
Kalevi Suominen
e827e192e3
Merge pull request #16881 from divyanshu132/composition-series
...
Added method for Composition Series computation
2019-06-04 12:58:13 +03:00
Oscar Benjamin
b75618cb0b
Shorten traceback in doctest
2019-06-04 10:56:19 +01:00
Sartaj Singh
9f21e4203d
Merge pull request #16943 from ArighnaIITG/issue12310
...
[GSoC] sympy.fps return a formal power series object for polynomial functions
2019-06-04 11:45:07 +05:30
Sidhant Nagpal
7927ceafc2
Merge pull request #16935 from ritesh99rakesh/kurtosis
...
Added Kurtosis function
2019-06-04 10:20:53 +05:30
Chris Smith
f3e4a375ba
allow for TypeError, too
2019-06-03 22:19:10 -05:00
Chris Smith
c1999c74cf
restore evaluate=True to allow evalulation
2019-06-03 22:19:10 -05:00
Chris Smith
90bc6f3b64
use try/except for as-relational
2019-06-03 22:19:10 -05:00
Chris Smith
a5dba196ce
return False instead of raising ValueErrors
2019-06-03 22:19:10 -05:00
Chris Smith
5e82160f7d
clean up imageset._contains
2019-06-03 22:19:10 -05:00
Chris Smith
b8b4fa9d92
16940; imageset expr independent of variables
2019-06-03 22:19:10 -05:00
Chris Smith
0d6cd07ebc
clean up contains and as_relational
2019-06-03 22:19:10 -05:00
Chris Smith
6626e209c7
remove use of .is_EmptySet; can now be deprecated
2019-06-03 22:19:10 -05:00
Chris Smith
427e8fc03a
q > 0 so abs(q) == q
2019-06-03 22:19:10 -05:00
Chris Smith
24bdfb53b9
closes #11863
2019-06-03 22:19:10 -05:00
Chris Smith
b384639a83
modify coordsysrect test
2019-06-03 22:19:10 -05:00
Chris Smith
4eda344816
16878: imageset with Real base
2019-06-03 22:19:10 -05:00
Chris Smith
4eb666e472
function interactions with Z,N,N0
2019-06-03 22:19:10 -05:00
Chris Smith
f35b79f71e
16940: unevaluated Intersection from imageset
2019-06-03 22:19:10 -05:00
Chris Smith
337a754cbc
fix integer itersections with Interval
2019-06-03 22:19:10 -05:00
Chris Smith
4d126c450e
add Rationals to fancysets
2019-06-03 22:19:10 -05:00
Chris Smith
6f5f613341
16938: check Lambda for arg dups
2019-06-03 22:19:10 -05:00
Divyanshu
ac4dc7cc25
avoid-der-repetition
2019-06-04 08:07:38 +05:30
kangzhiq
f428abc340
Modified sparse array and added __eq__
...
- Removed overriden function _eval_derivative_n_times
- Overrode _eval_derivative_array
- Overrode __eq__ to accelerate the equality evaluation
- Overrode __hash__ to make sparse array hashable
2019-06-04 01:49:54 +02:00
Oscar Benjamin
8e23c8091c
Merge pull request #16933 from sylee957/fix_lambdify_goldenratio
...
Fix lambdify not catching up module imports
2019-06-03 23:41:46 +01:00
Oscar Benjamin
1c346caf0a
Merge pull request #16947 from oscargus/integraltransform
...
Integral transform with symbolic bounds does not cause errors
2019-06-03 23:39:04 +01:00
Francesco Bonazzi
faaadabd03
Merge pull request #16929 from czgdp1807/array_comp
...
Refactored ArrayComprehension
2019-06-03 23:13:02 +02:00
Oscar Gustafsson
658aeb7856
Used fuzzy_bool
2019-06-03 22:25:12 +02:00
Oscar Benjamin
4d4252193c
Fix diffx for cached solutions in nth_algebraic
2019-06-03 20:45:00 +01:00
Shubham Kumar Jha
2b5c0b4f02
Fixed issue 16915 with Expr.__lt__ and similar functions
2019-06-04 00:11:30 +05:30
Sidhant Nagpal
bfe26eae1c
Merge pull request #16936 from ritesh99rakesh/refactor_rv
...
[GSoC] Refactored rv and rv_interface
2019-06-03 22:24:07 +05:30
Kalevi Suominen
22f94e0790
Merge pull request #16924 from smichr/rsame
...
modify Basic.__eq__ to detect dissimilar Numbers
2019-06-03 19:45:04 +03:00
Arighna Chakrabarty
9fc54369eb
Modified code to handle multiple symbols
2019-06-03 19:01:57 +05:30
Bendik Samseth
86b2753804
Update IndexedBase docstring with assumptions example
2019-06-03 15:09:57 +02:00
Bendik Samseth
b7f3622dae
Remove direct support for assumptions on `Indexed`
...
The only way to specify assumptions is to associate them to a ``IndexedBase``
object. Assumptions will be passed on to ``Indexed`` objects when created with
``__get_item_``. Meant to discourage direct use of ``Indexed``.
2019-06-03 14:46:43 +02:00
Oscar Gustafsson
0da36f9bf7
Merge branch 'master' into integraltransform
2019-06-03 14:16:50 +02:00
Oscar Gustafsson
14334af068
Integral transform with symbolic bounds does not cause errors
2019-06-03 14:16:01 +02:00
Arighna Chakrabarty
62eb5a9c9f
Added test in test_args
2019-06-03 17:42:29 +05:30
Kalevi Suominen
5a13601d52
Merge pull request #16948 from sylee957/fix_sphinx_fail
...
Fix sphinx build fail
2019-06-03 14:38:47 +03:00
S.Y. Lee
6610598453
Use currentmodule
2019-06-03 18:23:33 +09:00
Christopher Smith
fa99453850
Update test_sets.py
2019-06-02 09:52:01 -05:00
Sidhant Nagpal
a6232c17a6
Merge pull request #16848 from ritesh99rakesh/logLogistic
...
[GSoC] Added Log-logistic distribution
2019-06-02 20:19:40 +05:30
Christopher Smith
fb7c820b90
FiniteSet(1) == FiniteSet(1.0)
...
This already works for Interval(1., 2) == Interval(1, 2).
2019-06-02 09:49:37 -05:00
Arighna Chakrabarty
4be15a93f2
Added Coeff class and added tests
2019-06-02 20:12:50 +05:30
czgdp1807
216f7933f3
removed unused var
2019-06-02 17:44:24 +05:30
czgdp1807
8761cea8a1
added tests
2019-06-02 17:42:23 +05:30
czgdp1807
baacfe5b3c
removed some bugs
2019-06-02 17:27:26 +05:30
Ritesh Kumar
0cb5a29cdf
Merge branch 'master' into BetaBinomial
2019-06-02 16:20:08 +05:30
Ritesh Kumar
6ecad62d55
Changed Parameter to Parameters
2019-06-02 16:00:59 +05:30
Ritesh Kumar
6e83d8c70a
Added __future__ import line back
2019-06-02 15:58:37 +05:30
Christopher Smith
39e2ff71fe
Merge pull request #16923 from smichr/cf
...
higher level continued fraction
2019-06-02 05:26:52 -05:00
Chris Smith
a910c404e7
give diffx identification
...
In PY2, when the unreplace step is performed, the
diffx is not being found by replace. Although func_name
could be used to identify it, an attribute is being
used instead. This did not appear to be necessary in
pY3 so can (perhaps) be dropped when PY2 is dropped.
2019-06-02 05:14:47 -05:00
Divyanshu
5f554d9ce9
use-relative-order
2019-06-02 10:05:41 +05:30
kangzhiq
37243c72d7
Ameliorated some codes
...
- regrouped if blocs in _handle_ndarray_creation_inputs
- ameliorated codes modified or added
2019-06-02 01:52:14 +02:00
S.Y. Lee
2dcacf3458
Suspend printing function
2019-06-02 01:44:25 +09:00
czgdp1807
9790461700
typo
2019-06-01 20:21:39 +05:30
czgdp1807
36cd23304c
typo
2019-06-01 20:18:55 +05:30
czgdp1807
af37a994e3
updated doc strings
2019-06-01 20:17:27 +05:30
czgdp1807
5c6ab86ce7
symolic conds allowed in finite_rv
2019-06-01 19:54:55 +05:30
Francesco Bonazzi
ab7dbc87d9
Merge pull request #16914 from czgdp1807/sym_dims_1
...
Symbolic dimensions allowed in MultivariateEwens
2019-06-01 15:48:13 +02:00
Ritesh Kumar
6aea50425f
Changed description
2019-06-01 19:00:13 +05:30
Ritesh Kumar
c53b6bbeee
Minor changes
2019-06-01 18:57:24 +05:30
Ritesh Kumar
889b4af68e
Added expectation func
2019-06-01 18:07:17 +05:30
Ritesh Kumar
262142da24
Merge master
2019-06-01 18:06:38 +05:30
S.Y. Lee
c65bb719b2
Fix doctests
2019-06-01 21:34:52 +09:00
S.Y. Lee
cc8aa6b614
Add test for version handler
2019-06-01 21:17:32 +09:00
S.Y. Lee
78b0142479
Modify tests in lambdarepr
2019-06-01 21:15:16 +09:00
S.Y. Lee
c42ccd5488
Modify test regarding standard
2019-06-01 21:13:13 +09:00
S.Y. Lee
bab953c724
Add handler for standard
2019-06-01 21:10:59 +09:00
Chris Smith
318515e03c
fix tests
2019-06-01 05:27:22 -05:00
Chris Smith
902fe57da9
fix problem with disambiguate
2019-06-01 05:27:18 -05:00
Chris Smith
73caef3991
modify Expr.__eq__ to detect dissimilar Numbers
2019-06-01 05:26:17 -05:00
Ritesh Kumar
fca2af1b35
Added note for condition
2019-06-01 15:16:59 +05:30
Ritesh Kumar
827e85ca90
Minor change
2019-06-01 14:55:03 +05:30
Arighna Chakrabarty
6151b03523
Modified the code, and added one more test
2019-06-01 11:45:34 +05:30
kangzhiq
b72e369371
Added case in derive_by_array for sparse array
...
- derive_by_array for sparse array will not be case to dense array
2019-06-01 02:33:44 +02:00
Chris Smith
ab10c31329
add high-level interface to continued_fraction
2019-05-31 19:00:10 -05:00
Ritesh Kumar
69cf697603
Refactored rv and rv_interface
2019-06-01 00:03:23 +05:30
Ritesh Kumar
37c1036aac
Added Kurtosis function
2019-05-31 23:15:08 +05:30
Arighna Chakrabarty
3fe6dd41ce
Refactored code to make it small
2019-05-31 22:22:41 +05:30
czgdp1807
a74db8e83e
bug_fix_for_stats
2019-05-31 20:35:31 +05:30
czgdp1807
51a15fbe78
restored some changes
2019-05-31 19:45:22 +05:30
czgdp1807
20079174dd
made changes wherever necessary
2019-05-31 19:40:51 +05:30
czgdp1807
18a0c83cd2
applied numpydoc format
2019-05-31 18:36:51 +05:30
czgdp1807
0770a0d470
used dummy_eq for tests
2019-05-31 17:19:50 +05:30
S.Y. Lee
b5144acd91
Add test
2019-05-31 20:25:44 +09:00
S.Y. Lee
a6bc3b31b2
Printer should be run before collecting the contexts
2019-05-31 20:07:39 +09:00
Divyanshu
454ddc4743
update
2019-05-31 13:34:50 +05:30
S.Y. Lee
28852ea7ea
Clean dummy changes
2019-05-31 15:21:16 +09:00
S.Y. Lee
aab2772d5e
Merge misc changes
2019-05-31 15:17:47 +09:00
S.Y. Lee
c07994e2d8
Fix sqrt printing for pycode
2019-05-31 15:16:29 +09:00
czgdp1807
19a5bd2297
added test foreign symbol
2019-05-30 19:56:30 +05:30
czgdp1807
e2b6df3871
refactored ArrayComprehension
2019-05-30 19:36:58 +05:30
Christopher Smith
3b928c1d46
Merge branch 'master' into doc
2019-05-30 02:42:14 -05:00
Divyanshu
e96661c5b9
dummy-implementation
2019-05-30 12:55:29 +05:30
Sidhant Nagpal
da4929882a
Merge pull request #16814 from ritesh99rakesh/NormalInverse
...
[GSoC] Added Inverse Normal distribution
2019-05-30 11:14:42 +05:30
Sidhant Nagpal
09ef25361a
Merge pull request #16919 from czgdp1807/joint_rv_namespc
...
[GSoC] Changed namespace of joint_rv_types
2019-05-30 10:43:52 +05:30
S.Y. Lee
7e0c1145fb
Merge pull request #16921 from oscargus/mathematicafunctions
...
Added Mathematica printing for several functions
2019-05-30 10:47:58 +09:00
Ritesh Kumar
8b4af2b0d2
Corrected tests
2019-05-30 05:15:50 +05:30
Ritesh Kumar
c5235fa9ee
Merge master
2019-05-30 05:09:19 +05:30
Oscar Gustafsson
c4d7849671
Added Mathematica printing for several functions and fixed documentation issue
2019-05-29 23:20:23 +02:00
Shubham Kumar Jha
be99699110
Now both self and other should be extended_real
2019-05-29 22:43:30 +05:30
Christopher Smith
19341137da
Merge pull request #16917 from Metloff/change_inaccuracies_in_the_comments
...
Сhange inaccuracies in the comments
2019-05-29 11:04:23 -05:00
czgdp1807
952c03c780
some work for symbolic dims
2019-05-29 20:15:52 +05:30
czgdp1807
15df1d8573
changed namespace of joint_rv_types
2019-05-29 17:35:36 +05:30
Henry Metlov
bc58021007
Correct parameter description
2019-05-29 12:31:19 +03:00
Divyanshu
63779735dd
use-relative-order-seg
2019-05-29 09:56:21 +05:30
Henry Metlov
92e107e809
Сhange inaccuracies in the comments
2019-05-29 01:51:45 +03:00
Oscar Benjamin
fc66c081b1
Merge pull request #16898 from jksuom/matrix-zero-one
...
Add matrix attributes zero and one
2019-05-28 21:03:08 +01:00
czgdp1807
52ea83f31c
symbolic dimensions allowed
2019-05-28 20:28:15 +05:30
Christopher Smith
b9604c5f59
Merge pull request #16913 from czgdp1807/frv_bug
...
[BUG] Removed unreachable code from sympy.stats.frv
2019-05-28 08:19:28 -05:00
czgdp1807
7a873b612f
removed unreachable code
2019-05-28 17:34:28 +05:30
Francesco Bonazzi
ccf245a8cb
Merge pull request #16845 from kangzhiq/Added_ArrayComprehension_Class
...
[Don't merge][GSoC]Added ArrayComprehension class
2019-05-28 10:26:42 +02:00
Kalevi Suominen
50d1b2f491
Merge pull request #16666 from oscarbenjamin/ext_pos_finite
...
Make positive -> finite with new facts like is_extended_positive
2019-05-28 11:19:50 +03:00
Christopher Smith
25d83027c2
Merge pull request #16897 from czgdp1807/gamma_int
...
Float.is_integer updated for removing disparity in gamma
2019-05-27 22:29:21 -05:00
Christopher Smith
c12aa88d60
self-updating test for intlike redundancy
...
When the test fails it directs the author to edit gamma_functions to remove the redundant intlike routine.
2019-05-27 18:33:03 -05:00
kangzhiq
f826eabebe
Changed to standard naming convention
...
- Follewed example of ExprWithLimits
- Changed expr to function
- Changed bounds to limits
- Added variables,bouns_symbols, is_numeric properties and tests
_ Ameliorated doit() and doc quality
2019-05-28 00:56:08 +02:00
Oscar Benjamin
dffb392ba3
Update reduce_rational_inequalities docstring
2019-05-27 20:03:08 +01:00
Oscar Benjamin
9d0ef12f32
Use extended_real=True in bessel test
2019-05-27 18:02:57 +01:00
Francesco Bonazzi
535a85bc89
Merge pull request #16907 from czgdp1807/12237_ext
...
[GSoC] Bernoulli distribution for single random variable in given_condition
2019-05-27 18:47:32 +02:00
Oscar Benjamin
791ddf809d
Fix Mul._eval_is_positive for positive=False
2019-05-27 17:30:35 +01:00
Christopher Smith
70e89d5e8a
Merge pull request #16906 from smichr/i01
...
I,0,1 Matrix printing
2019-05-27 11:28:15 -05:00
czgdp1807
51be7b5dce
removed XFAIL from test_rv
2019-05-27 20:04:48 +05:30
czgdp1807
15cd0d041b
updated tests
2019-05-27 19:17:54 +05:30
Chris Smith
372d4e6059
add latex forms for matrices Id, 0, 1
2019-05-27 08:42:50 -05:00
Oscar Benjamin
d66e52a4e5
Use is_extended_negative in erf
2019-05-27 14:21:47 +01:00
Oscar Benjamin
5e6edf8fc0
Add Piecewise._eval_is_extended_positive etc
2019-05-27 14:21:18 +01:00
Oscar Benjamin
75b13571c9
Remove unnedded finite=True
2019-05-27 13:51:01 +01:00
Oscar Benjamin
53a26eb332
Simplify Pow._eval_is_positive
2019-05-27 13:28:05 +01:00
Oscar Benjamin
73b7e59f9b
Simplify logic in Infinity.__le__/__gt__
2019-05-27 13:01:16 +01:00
czgdp1807
47353ac115
bernoulli dist for rv in given condition
2019-05-27 16:20:12 +05:30
czgdp1807
bd8df943e3
disparity in gamma removed
2019-05-27 15:39:02 +05:30
czgdp1807
3ee90ffc8e
Merge branch 'master' into gamma_int
2019-05-27 15:30:31 +05:30
Divyanshu
16cad25045
minor-changes
2019-05-27 13:23:04 +05:30
kangzhiq
1ffc1810ae
Added properties to ArrayComprehehnsion
...
- Added .shape and tests
- Added .rank() and tests
- Added len() and tests
2019-05-27 09:42:31 +02:00
Oscar Gustafsson
a1f29e442b
Added OneMatrix str, pretty, and MathML presentation printing
2019-05-27 02:12:50 -05:00
Divyanshu
9a696fb272
test-cyclicgroup
2019-05-27 10:58:04 +05:30
Oscar Benjamin
e66260b85c
Add real=True in stats tests
2019-05-26 22:44:18 +01:00
Oscar Benjamin
1013b68294
Merge remote-tracking branch 'upstream/master' into ext_pos_finite
2019-05-26 22:43:06 +01:00
Oscar Benjamin
e68cbcd826
Add real=True in stats tests
2019-05-26 21:32:48 +01:00
Oscar Benjamin
5158ecf2cb
Merge pull request #16899 from czgdp1807/gitignore
...
Updated gitignore to avoid tracking of vscode's settings.json
2019-05-26 21:07:52 +01:00
Ritesh Kumar
c50a17bcbf
Merge branch 'master' into logLogistic
2019-05-26 22:57:57 +05:30
czgdp1807
c2fb79da33
ignore vscode settings.json
2019-05-26 21:03:51 +05:30
czgdp1807
e7315dfbbe
updated check and added test
2019-05-26 20:06:59 +05:30
Gagandeep Singh
9c8db10930
Merge branch 'master' into stats_simple
2019-05-26 19:33:52 +05:30
czgdp1807
30d9c051ec
Float.is_integer updated
2019-05-26 19:02:31 +05:30
Kalevi Suominen
c3da3a4bda
Add matrix attributes zero and one
...
Matrix codebase currently makes use of the hardcoded constants
S.Zero and S.One. That is inconvenient when a non-Basic data
type is used to speed up computation (cf. #16883 ). This PR
replaces these constants with class attributes zero and one that
can be modified by subclassing.
2019-05-26 16:05:43 +03:00
Ritesh Kumar
f932bdeaf8
Added test for sampling
2019-05-26 17:57:55 +05:30
Kalevi Suominen
fb7bdbc784
Merge pull request #16891 from smichr/powsimp
...
clean up of 16888
2019-05-26 15:16:01 +03:00
Chris Smith
124b23263a
fix ode tests
2019-05-26 05:55:11 -05:00
Sidhant Nagpal
b4f639a4d0
Merge pull request #16858 from ritesh99rakesh/testMGF
...
Added test for MGF, added missing checks in crv_types
2019-05-26 14:35:55 +05:30
Ritesh Kumar
4727b8dc76
Removed unused private method
2019-05-26 13:10:23 +05:30
Ritesh Kumar
f73d85a1d4
Corrected errors
2019-05-26 11:42:34 +05:30
Ritesh Kumar
d31984ef3d
Changed name from NormalInverse to GaussianInverse
2019-05-26 11:33:00 +05:30
Christopher Smith
6191309a5b
use powers_dict to do cancellation
...
Since powers do not automatically simplify in a ratio but
exponents of a common base always combine, we can use the
powers_dict to do the simplification and update lhs and
rhs if a change was made. Using powersimp at the end is
an expensive (and recursion-error prone) method.
2019-05-25 20:32:44 -05:00
Abdullah Javed Nesar
131becc044
Merge pull request #16889 from xrmx/cleanupimportcheck
...
parsing/latex: cleanup module import check
2019-05-26 00:36:10 +05:30
Francesco Bonazzi
30f47d678a
Merge pull request #16825 from czgdp1807/multivar_part3
...
Added Generalized Multivariate Log Gamma Distribution
2019-05-25 17:58:30 +02:00
Riccardo Magliocchetti
ee15c2a63b
parsing/latex: cleanup module import check
2019-05-25 17:07:02 +02:00
Christopher Smith
bb92e8b506
Merge pull request #16887 from sylee957/fix_partition_finiteset
...
Partition does not properly handle FiniteSet and python set
2019-05-25 09:42:47 -05:00
S.Y. Lee
459fa3fc51
Cover additional case for duplicate elements across each sets
2019-05-25 21:53:39 +09:00
Divyanshu
36ee514cbb
update
2019-05-25 18:15:03 +05:30
Christopher Smith
825188f246
raise error in one place
2019-05-25 07:09:33 -05:00
Ritesh Kumar
8d0aa82908
Added powsimp in _combine_inverse
2019-05-25 17:23:27 +05:30
czgdp1807
32dfad18b5
Merge branch 'multivar_part3' of https://github.com/czgdp1807/sympy into multivar_part3
2019-05-25 17:19:33 +05:30
czgdp1807
f1bb572cc1
some minor changes
2019-05-25 17:17:26 +05:30
Arighna Chakrabarty
718c899b9f
Minor changes
2019-05-25 17:16:04 +05:30
Arighna Chakrabarty
66f102eee4
Modified code
2019-05-25 17:01:44 +05:30
Ritesh Kumar
18db2ffc2d
Corrected mgfs, added staticmethod in joint_rv
2019-05-25 16:40:57 +05:30
S.Y. Lee
7c18b23b24
Refine error message
2019-05-25 19:18:18 +09:00
S.Y. Lee
9ea38c42a9
Fix tests
2019-05-25 19:13:37 +09:00
S.Y. Lee
69a9123b76
Add constructor test
2019-05-25 19:09:37 +09:00
S.Y. Lee
c7564af290
Add examples about different constructor
2019-05-25 19:02:54 +09:00
S.Y. Lee
005bf05052
Fix FiniteSet for Partition
2019-05-25 18:59:27 +09:00
Sidhant Nagpal
9721de7779
Merge pull request #16885 from sylee957/cleanup_sets
...
Cleanup some spacings in sets test
2019-05-25 14:13:05 +05:30
Sidhant Nagpal
1593e332ca
Merge pull request #16886 from ritesh99rakesh/16884
...
Corrected morse code for 1.
2019-05-25 14:12:13 +05:30
Arighna Chakrabarty
36c9eee579
Removed doc
2019-05-25 14:05:40 +05:30
Arighna Chakrabarty
5d52367e54
Imported sin
2019-05-25 13:19:58 +05:30
Arighna Chakrabarty
4d8729e39c
Imported symbol
2019-05-25 12:46:22 +05:30
Divyanshu
919bcbdfec
add-docs-tests
2019-05-25 12:20:10 +05:30
Arighna Chakrabarty
48af769f81
Deleted test file
2019-05-25 12:06:21 +05:30
Arighna Chakrabarty
7215a37658
Refined the code
2019-05-25 12:05:17 +05:30
Ritesh Kumar
150c820556
Added tests for Number under morse code
2019-05-25 11:23:02 +05:30
Ritesh Kumar
5d1aea8b2e
Corrected morse code for 1
2019-05-25 11:16:21 +05:30
S.Y. Lee
127404b2e7
Delete spacing
2019-05-25 13:20:36 +09:00
S.Y. Lee
030e1decf4
Cleanup some spacings
2019-05-25 13:17:53 +09:00
kangzhiq
be18175e34
Added free_symbols and tests
...
- Added property free_symbols and tests
- Added bound value check and test
- Ameliorated expr bounds properties
2019-05-25 01:47:21 +02:00
Divyanshu
47f31a8347
random-to-generators
2019-05-24 19:59:49 +05:30
kangzhia
c0e78f9391
Ameliorated functions and added test
...
- Ameliorated the value check of bounds
- Ameliorated the constructor
- Added properties and tests
- Implemented generation of constant arrays
- Added tests to ArrayComprehension
2019-05-24 00:54:40 +02:00
Divyanshu
23480f89b4
added-method-for-composition-series
2019-05-24 02:21:52 +05:30
Christopher Smith
3edb507cdd
Merge branch 'master' into ext_pos_finite
2019-05-23 13:58:29 -05:00
Christopher Smith
c50643a498
Merge pull request #16864 from smichr/sets
...
Sets containment and simplification
2019-05-23 12:51:50 -05:00
Christopher Smith
5bb8e3cdfa
Update solvers.rst
2019-05-23 11:40:23 -05:00
Christopher Smith
1359316f79
Update solvers.rst
2019-05-23 11:10:19 -05:00
Christopher Smith
937c789836
Update solvers.rst
2019-05-23 10:50:12 -05:00
Christopher Smith
2ac5895240
Update test_fancysets.py
2019-05-23 09:31:33 -05:00
Christopher Smith
dc2b63f9a6
Update solvers.rst
2019-05-23 09:29:04 -05:00
Christopher Smith
280fa50e87
Update solvers.rst
2019-05-23 09:04:10 -05:00
Christopher Smith
d153eabbfa
Update test_solveset.py
2019-05-23 08:59:06 -05:00
S.Y. Lee
e4b9a73b6b
Merge pull request #16305 from sylee957/fix_pinv
...
Matrices : Extend pseudoinverse capability
2019-05-23 22:24:22 +09:00
Christopher Smith
ab88eb62ae
Update test_solveset.py
2019-05-23 08:03:52 -05:00
Gagandeep Singh and Christopher Smith
717cc971ed
Update sympy/stats/joint_rv_types.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-23 18:06:28 +05:30
Christopher Smith
e39ff09efa
debug
2019-05-23 07:31:59 -05:00
Christopher Smith
559eff68c7
use a single numerical test of equality
2019-05-23 06:57:36 -05:00
Christopher Smith
c8a6bbdd1e
Update test_solveset.py
2019-05-23 06:52:53 -05:00
Christopher Smith
13a991b137
Update solveset.py
2019-05-23 06:47:47 -05:00
Christopher Smith
0da8c85278
Update test_solveset.py
2019-05-23 06:39:10 -05:00
Chris Smith
f52fae87c1
modified re/im solving in ImageSet/Real
2019-05-23 05:43:20 -05:00
Chris Smith
9caa91851f
don't let modulus be imaginary
2019-05-23 05:42:35 -05:00
Chris Smith
cec390565a
don't mod with imaginary number
2019-05-22 18:10:27 -05:00
kangzhia
8effbb6600
Implemented functions and added tests
...
- Implemented _expand_array with iteration
- Implemented _check_bounds_validity
- Added doctest
- Added test in test_array_comprehension
2019-05-23 00:43:17 +02:00
Chris Smith
6d24baf3cd
sets real/imaginary handling
2019-05-22 16:41:14 -05:00
Chris Smith
cc83f2e138
test Integer-type sets interactions
2019-05-22 16:41:10 -05:00
Chris Smith
80f2eeab2c
don't retain Mod on imaginary
2019-05-22 15:58:09 -05:00
Chris Smith
ecfdf8bf9c
no mod when b is not real
2019-05-22 15:46:49 -05:00
Chris Smith
8bbbd2e33e
Contains args are already Basic
2019-05-22 15:26:05 -05:00
Chris Smith
fca586d328
16872: ImageSet.base_set is ProductSet of sets
2019-05-22 15:22:34 -05:00
Chris Smith
2663c811a2
16873: try retain lambda names with imageset
2019-05-22 15:17:55 -05:00
Chris Smith
f54aa8d459
16871a: recognize unevaluated Imageset of Integers
2019-05-22 15:01:13 -05:00
S.Y. Lee
dec525f376
Merge pull request #16867 from tBuLi/fix_16857
...
BlockMatrix is now printed to numpy with the correct output shape.
2019-05-22 21:32:04 +09:00
Martin Roelfs
4794459a34
Improved readability of the test.
2019-05-22 11:42:29 +02:00
Martin Roelfs
63bf4e6648
Changed test to making sure the printed string is correct.
2019-05-22 10:46:41 +02:00
Arighna Chakrabarty
c6b62b3048
removed trailing whitespace
2019-05-22 13:46:36 +05:30
Arighna Chakrabarty
592fc62e76
removed trailing whitespace
2019-05-22 13:38:31 +05:30
Ritesh Kumar
6f7d053881
Corrected tests for python2.7
2019-05-22 08:02:37 +05:30
kangzhia
c57cdfff4f
Added more tests for unimplemented functionalities
2019-05-22 01:04:00 +02:00
kangzhia
1acdbd8618
Added test for ArrayComprehension
...
- added test in test_args
- added test file for ArrayComprehension
2019-05-22 00:47:06 +02:00
kangzhia
4156412d5e
Merge branch 'master' of https://github.com/sympy/sympy into Added_ArrayComprehension_Class
2019-05-22 00:22:18 +02:00
Christopher Smith
a315f112fc
Update test_matrices.py
2019-05-21 14:06:25 -05:00
Arighna Chakrabarty
c54e5c17f1
Corrected the XFAIL tests
2019-05-21 23:08:50 +05:30
Ritesh Kumar
5e42f2ccd6
Merge branch 'master' of https://github.com/sympy/sympy into testMGF
2019-05-21 22:08:46 +05:30
Ritesh Kumar
605eb7a0ed
Added symbolic tests
2019-05-21 22:05:43 +05:30
czgdp1807
da09170796
docs typo
2019-05-21 21:32:50 +05:30
czgdp1807
5473b48a9e
docs typo
2019-05-21 21:31:37 +05:30
czgdp1807
6bd801567e
updated G-MVLG API
2019-05-21 21:29:46 +05:30
Martin Roelfs
d8c2d76dd0
Removed trailing newline
2019-05-21 15:04:30 +02:00
Martin Roelfs
c744952724
Improved the test by also checking for array equality. This will make sure the columns cannot be swaped.
2019-05-21 14:55:22 +02:00
Martin Roelfs
91b2bf281b
Fixed #16857 , BlockMatrix is now printed to numpy with the correct output shape.
2019-05-21 14:35:33 +02:00
S.Y. Lee
c3a885da69
Add random test
2019-05-21 21:00:42 +09:00
Gagandeep Singh
87fda81b7c
Merge branch 'master' into multivar_part3
2019-05-21 09:39:42 +05:30
Chris Smith
86dad61d75
allow mod if first arg is number
2019-05-20 21:47:47 -05:00
Chris Smith
2ad886d4a0
imageset -> Range and avoid extra Mod
...
Don't allow imageset to introduce new Mod into an
expression because this make containment checks
fail. See added test.
when imageset has a linear integer-valued function
applied to Naturals, a Range can be returned.
2019-05-20 16:12:53 -05:00
Chris Smith
c419384970
ImageSet intersection and Naturals/Integers subset
2019-05-20 16:12:48 -05:00
Chris Smith
b5e2ed877d
Mod.rewrite(floor) defined
2019-05-20 15:24:32 -05:00
Christopher Smith
6ffc2f04ad
Merge pull request #16770 from smichr/float-hash
...
improve Float/Rational relations
2019-05-20 12:46:33 -05:00
Christopher Smith
7ca2632d44
Merge pull request #16862 from smichr/fancy
...
Fancy
2019-05-20 11:30:09 -05:00
Chris Smith
145d08535c
raise ValueError for bad input to perfect_power
2019-05-20 11:27:54 -05:00
Chris Smith
b8195cacae
add quick check that self.q = 2**e
2019-05-20 11:26:56 -05:00
czgdp1807
6ffac25d1c
updated GMVLG API
2019-05-20 19:41:22 +05:30
Chris Smith
9bfdc13ea9
add symbolic test to halfcircle
2019-05-19 23:49:26 -05:00
Gagandeep Singh
e01b260cce
Merge branch 'master' into multivar_part3
2019-05-20 10:01:31 +05:30
Chris Smith
693f117ee3
fix ImageSet contains
2019-05-19 23:13:48 -05:00
Chris Smith
e249b403df
recognize more empty Ranges
2019-05-19 23:13:10 -05:00
Chris Smith
879b95b6ca
review edits and comp modifications
2019-05-19 21:41:07 -05:00
Christopher Smith
a0fcd5b9cc
Merge branch 'master' into float-hash
2019-05-19 14:18:55 -05:00
Christopher Smith
684a44e02a
use only solve in equals
2019-05-19 14:15:02 -05:00
Christopher Smith
8ee7fbdc97
Merge pull request #16834 from czgdp1807/multivar_imprv
...
Symbolic dimensions can be passed to Multinomial, NegativeMultinomial
2019-05-19 12:47:39 -05:00
Christopher Smith
193b1f85ed
typos
2019-05-19 11:25:27 -05:00
czgdp1807
f360c22d9e
final changes
2019-05-19 21:43:28 +05:30
czgdp1807
f68565945d
Merge branch 'master' into multivar_imprv
2019-05-19 21:32:02 +05:30
czgdp1807
e13f9d61d6
Merge branch 'multivar_imprv' of https://github.com/czgdp1807/sympy into multivar_imprv
2019-05-19 21:26:37 +05:30
Gagandeep Singh and Christopher Smith
e29c86dcde
Update sympy/stats/joint_rv_types.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-19 21:17:16 +05:30
czgdp1807
b30126f1b6
reviews and suggestions added
2019-05-19 21:16:13 +05:30
Gagandeep Singh and Christopher Smith
8fdba6476b
Update sympy/stats/joint_rv_types.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-19 21:10:28 +05:30
Gagandeep Singh and Christopher Smith
9f5d0cf8b6
Update sympy/stats/joint_rv_types.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-19 21:10:19 +05:30
Gagandeep Singh and Christopher Smith
71dc9dd946
Update sympy/stats/joint_rv_types.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-19 21:10:09 +05:30
Gagandeep Singh and Christopher Smith
7ab366002a
Update sympy/stats/joint_rv_types.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-19 20:54:56 +05:30
Gagandeep Singh and Christopher Smith
8e75bfae5f
Update sympy/sets/handlers/intersection.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-19 20:47:02 +05:30
czgdp1807
ad417abb45
set changed
2019-05-19 20:17:31 +05:30
czgdp1807
251fe3af3a
docs change
2019-05-19 19:00:23 +05:30
czgdp1807
44cb6c4a90
updated set
2019-05-19 18:51:51 +05:30
Arighna Chakrabarty
9f24cc8da4
Added code for x**n symbolic fps
2019-05-19 11:07:53 +05:30
Chris Smith
2215859e7c
Revert "tidy up eval_is_(+/-)ive"
...
This reverts commit 5f31f67415 .
2019-05-18 21:39:29 -05:00
kangzhia
6bddc93c78
Modified symbol check condition and passed test
2019-05-19 01:56:15 +02:00
kangzhia
58bc814828
_expand_array() completed
...
- Completed first version of _expand_array
_ Correct the coding convention errors
2019-05-19 01:31:50 +02:00
Chris Smith
8248f479ea
update 16772 tests and add 16859 XFAIL
2019-05-18 12:59:53 -05:00
Chris Smith
8aed03ed11
leave Float instantiation alone
2019-05-18 12:59:49 -05:00
Chris Smith
e1cb46c2cb
use mlib.from_int
2019-05-18 12:59:45 -05:00
Chris Smith
3dba649fc0
update comp
2019-05-18 12:59:40 -05:00
Christopher Smith
81d9fdaa86
watch for oo in Frel
...
S.NaN._prec == -1 so the redundant check was removed
2019-05-18 12:59:36 -05:00
Christopher Smith
f6370ed3ec
Update test_sums_products.py
2019-05-18 12:59:32 -05:00
Christopher Smith
1c79c8915f
skip check of Rational(Float(other))==other
2019-05-18 12:59:28 -05:00
Christopher Smith
f49334060f
Update sympy/core/expr.py
2019-05-18 12:58:20 -05:00
Christopher Smith
5f31f67415
tidy up eval_is_(+/-)ive
...
As suggested by https://github.com/rpisarev in 11072
with modifications.
2019-05-18 12:58:16 -05:00
Chris Smith
ec886a3899
use Float._new when possible
2019-05-18 12:55:34 -05:00
czgdp1807
446ccb6f49
updated tests
2019-05-18 21:36:42 +05:30
czgdp1807
607991bed4
updated docs
2019-05-18 16:46:34 +05:30
czgdp1807
91e19accd1
Merge branch 'master' into multivar_part3
2019-05-18 15:45:37 +05:30
czgdp1807
9f43a41ff9
applied reviews
2019-05-18 15:44:50 +05:30
Ritesh Kumar
4a80b9786f
Added test for MGF, added missing checks in crv_types
2019-05-18 15:27:14 +05:30
Christopher Smith
fa4ce714c4
Merge pull request #16840 from smichr/fd
...
fix Integer floordiv for non-integer denominator; divmod with inf and nan
2019-05-17 20:22:01 -05:00
Christopher Smith
59a4ebd828
match Python behavior
2019-05-17 18:54:26 -05:00
Christopher Smith
71a7a76ddf
Merge pull request #16853 from sylee957/fix_matadd_matmul_identity
...
Fix identity of MatAdd and MatMul
2019-05-17 14:10:42 -05:00
Christopher Smith
5346f08006
Merge pull request #16854 from sylee957/mathematica_code_typo
...
Fix typo in mathematica_code
2019-05-17 14:09:21 -05:00
S.Y. Lee
9732faad96
Add tests
2019-05-18 00:35:51 +09:00
S.Y. Lee
10e4f561e0
Fix comparison with generic identity
2019-05-18 00:19:02 +09:00
S.Y. Lee
7f6767f2ac
Fix isinstance
2019-05-18 00:15:50 +09:00
S.Y. Lee
1d9a487a13
Fix comparisons
2019-05-18 00:14:24 +09:00
S.Y. Lee
3735ce0e35
Fix identity returning zero and one for matrix operators
2019-05-18 00:07:01 +09:00
Christopher Smith
4ee3f8b4a1
Update numbers.py
2019-05-17 09:35:55 -05:00
Christopher Smith
c5cffdacf6
Merge pull request #16850 from solus9/16842_amendments_to_check_method_in_crv_types
...
Fix amendments to check method in sympy.stats.crv_types
2019-05-17 08:51:06 -05:00
Arun Singh
e6d4ede808
stats : amendments to check method in crv_types
...
remove unnecessary back slashes
2019-05-17 18:02:57 +05:30
Arun Singh
63c2e3b624
stats : amendments to check method in crv_types
...
earlier :
_value_check(d1 > 0 and d1.is_integer, \
"Degrees of freedom d1 must be positive integer.")
_value_check(d2 > 0 and d2.is_integer, \
"Degrees of freedom d2 must be positive integer.")
now :
_value_check((d1 > 0, d1.is_integer), \
"Degrees of freedom d1 must be positive integer.")
_value_check((d2 > 0, d2.is_integer), \
"Degrees of freedom d2 must be positive integer.")
2019-05-17 16:28:27 +05:30
Chris Smith
985d987a1c
Revert "use self*other.q <> other.p"
...
This reverts commit 62c42c3e25 .
The evalf suite takes 15% longer with that change.
2019-05-17 05:14:40 -05:00
Chris Smith
62c42c3e25
use self*other.q <> other.p
2019-05-17 05:14:27 -05:00
Ritesh Kumar
12e3c2e4f1
Removed unnecessary space
2019-05-17 14:47:12 +05:30
Ritesh Kumar
9ccf8f1083
Added Log-logistic distribution
2019-05-17 12:14:46 +05:30
Chris Smith
d8b04a8a93
use iszerofunc for Point.affine_rank
2019-05-16 18:37:12 -05:00
kangzhia
ca39c6e007
Update _init_.py to include the new file
2019-05-17 00:43:13 +02:00
kangzhia
34ba537e35
Initial ArrayComprehension class
...
- Added constructor, doit()
- _expand_aray() to be completed
2019-05-17 00:36:24 +02:00
Chris Smith
42d24bd6f7
get 0.0 from Float._new
2019-05-16 14:18:08 -05:00
Chris Smith
f44f3ae90c
tighten up Float/Relational comparison
...
The added test fails in master.
2019-05-16 14:11:03 -05:00
Chris Smith
46851b9f6f
numerical test of concrete result
...
A numerical tests was formerly being done in `equals`; with that
removed, a numerical `iszerofunc` routine has to be used for the
rank test.
2019-05-16 14:11:03 -05:00
Chris Smith
0064874e1e
use comp for failing tests
2019-05-16 14:11:03 -05:00
Chris Smith
c4b92783fb
use comp for numerical failing optics tests
2019-05-16 14:11:03 -05:00
Chris Smith
dcfcf9d72b
handle Int/BooleanAtom comparison
2019-05-16 14:11:03 -05:00
Chris Smith
0b81f5e610
handle 0==0.0, 0/0, 1/0, etc...
2019-05-16 14:11:03 -05:00
Chris Smith
37e6e408ff
improve equals; existing test now passes
2019-05-16 14:11:03 -05:00
Chris Smith
8430c5efc8
full path import
2019-05-16 14:11:03 -05:00
Chris Smith
8cee976c80
fix malformed mpf test; special is exact
2019-05-16 14:11:03 -05:00
Chris Smith
249c7bb4d5
Float is more careful about oo, nan, _
2019-05-16 14:11:03 -05:00
Chris Smith
a0c33fb195
Number can instantiate oo, nan
2019-05-16 14:11:03 -05:00
Chris Smith
a0d0691d1a
refactor number.__rel__ code
...
An important change here is that when the Rational is
recast for comparison with the Float, the Float's
precision is used.
This always affects rationals that are inexact in
base-2 representation (i.e. don't have a denominator that
is a power of 2)
>>> round_trips = lambda n: Rational(Float(n)) == n
>>> round_trip(S('1/3'))
False
It only affects exact rationals with
a numerator with more bits than the requested precision.
>>> round_trips(S('1/2'))
True
>>> odd = lambda n: prod([2*i+1 for i in range(1, n)])
>>> round_trips(odd(15)/S(2))
True
>>> round_trips(odd(16)/S(2))
False
The moral of the story is that Float, like Integer, will
truncate Rationals:
>>> odd(10)
654729075
>>> Rational(Float(_/S(2)))
654729075/2
>>> odd(20)
319830986772877770815625
>>> Rational(Float(_/S(2)))
159915493386438876069888
2019-05-16 14:11:03 -05:00
Chris Smith
c733b9b381
fix tests/code for new Float/Rational comparisons
2019-05-16 14:11:03 -05:00
Chris Smith
29e942b3a5
more careful Float/Rational comparisons
2019-05-16 14:11:03 -05:00
Chris Smith
51f4ac8746
raise TypeError when divmod arg is oo, -oo, or nan
2019-05-16 14:07:19 -05:00
Jason K. Moore
97f3bd52ff
Merge pull request #16700 from VirtualAcoustics/master
...
Replaces qdots with us in force-list in kanes.py
2019-05-16 07:41:07 -07:00
S.Y. Lee
d65166a1be
Manually specify docs
2019-05-16 21:04:11 +09:00
erik
d15ea8b743
Update test_kane4.py
...
added .expand() to the expressions in the assertions.
2019-05-16 11:35:15 +02:00
S.Y. Lee
cec1fdb8f7
Add methods for positive-definite
2019-05-16 17:26:07 +09:00
Ritesh Kumar
5196ac49f6
Resolved conflict errors, added smoment under __all__ of rv_interface
2019-05-16 12:02:11 +05:30
Ritesh Kumar
6eae9f65b2
Added other changes
2019-05-16 11:31:38 +05:30
Christopher Smith
8e4de91a1c
Merge pull request #16765 from czgdp1807/drv_checks
...
Refactored sympy.stats.frv_types, sympy.stats.frv and sympy.stats.drv_types
2019-05-15 12:32:06 -05:00
Ritesh Kumar
0f9048a9df
Shortened code, added test for characteristic_function
2019-05-15 22:56:26 +05:30
Chris Smith
b5718f53cf
fix divmod for other.is_(infinite|Float)
2019-05-15 12:20:56 -05:00
Chris Smith
c2395417ad
fix floordiv for non-integer denominator
2019-05-15 11:06:08 -05:00
Gagandeep Singh
dcb04ce3ad
Merge branch 'master' into drv_checks
2019-05-15 20:42:01 +05:30
czgdp1807
c3c29cdbe0
Refactored sympy.stats.frv_types
2019-05-15 20:37:00 +05:30
S.Y. Lee
d2b01563a1
Add tests and fix latex formatting
2019-05-15 23:58:11 +09:00
S.Y. Lee
4feaed5c8e
Use fuzzy logic and improve docs
2019-05-15 23:34:56 +09:00
Naba7
b8afc43e47
Added tests and a raises section
...
shifted the doctest to tests
2019-05-15 18:22:05 +05:30
Gagandeep Singh
f83caaabef
Merge branch 'master' into multivar_imprv
2019-05-15 16:43:59 +05:30
czgdp1807
8b0c503247
resolved import issues
2019-05-15 16:30:38 +05:30
Gagandeep Singh
c052226f3a
Merge branch 'master' into multivar_part3
2019-05-15 16:24:44 +05:30
Francesco Bonazzi
496e75c32f
Merge pull request #16576 from czgdp1807/multivar_dists
...
Addition of Dirichlet, Ewens Distributions
2019-05-15 12:18:15 +02:00
Sidhant Nagpal
c3f6b80519
Merge pull request #16827 from ritesh99rakesh/NonCentralBeta
...
[GSoC] Added Noncentral Beta Distribution
2019-05-15 13:26:19 +05:30
Ritesh Kumar
b9c85fee3a
Merge branch 'master' into NormalInverse
2019-05-15 13:04:49 +05:30
Ritesh Kumar
8e4f79259b
Typo errors corrected
2019-05-15 13:04:34 +05:30
Ritesh Kumar
9822ff6028
Changed comment in tests
2019-05-15 12:21:30 +05:30
Ritesh Kumar
7326a3d547
Changed test
2019-05-15 11:48:55 +05:30
Ritesh Kumar
cb4f9a14d6
Removed sampler test for NormalInverse and GammaInverse, since scipy is a requirement
2019-05-15 11:43:46 +05:30
Ritesh Kumar
650e532b7e
Corrected docstring error
2019-05-15 11:40:26 +05:30
Ritesh Kumar
f2cbd377b2
Corrected typor error
2019-05-15 10:42:12 +05:30
Ritesh Kumar
0fe6fe6a1e
Corrected typor error
2019-05-15 10:39:04 +05:30
Ritesh Kumar
3ca92bed89
Merge branch 'master' into NonCentralBeta
2019-05-15 10:27:14 +05:30
Ritesh Kumar
c6b81e0687
Allow Wald to refer to NormalInverse
2019-05-15 10:14:44 +05:30
Ritesh Kumar
3143e4ee5b
Merge branch 'master' into NormalInverse
2019-05-15 10:05:01 +05:30
Ritesh Kumar
2a8392b62f
Added test for ValueError, sampler
2019-05-15 09:59:45 +05:30
Ritesh Kumar
ca2f7cd1e0
Corrected typo errors
2019-05-15 09:36:11 +05:30
Christopher Smith
68e8ee9110
Merge pull request #16828 from zhouzq-thu/master
...
fix dcm diff error
2019-05-14 14:24:27 -05:00
Zhi-Qiang Zhou and Christopher Smith
5f34dc5dd1
Update sympy/physics/vector/tests/test_frame.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-15 01:56:37 +08:00
Zhi-Qiang Zhou
0a9ce75649
add documentation for test_w_diff_dcm
2019-05-15 00:07:07 +08:00
Zhi-Qiang Zhou
3b3c6db681
add documentation for test_w_diff_dcm
2019-05-14 23:40:14 +08:00
Zhi-Qiang Zhou
85e3a81496
add documentation for test_w_diff_dcm
2019-05-14 23:36:22 +08:00
Ritesh Kumar
174516e6ce
Added test for Symbolic parameters
2019-05-14 20:10:57 +05:30
Ritesh Kumar
c66133e754
Removed @XFAIL using str, in BetaNoncentral and UniformSum
2019-05-14 19:07:15 +05:30
Zhi-Qiang Zhou
03e37edf9e
add test for w_diff_dcm2
2019-05-14 21:04:39 +08:00
Zhi-Qiang Zhou
1d3baa2f72
add test for w_diff_dcm2
2019-05-14 20:57:42 +08:00
czgdp1807
06491b2c9a
removed processing of limits
2019-05-14 17:05:59 +05:30
czgdp1807
914e0035b8
symbolic dimensions made possible
2019-05-14 16:55:46 +05:30
Francesco Bonazzi
955da067a0
Merge pull request #15836 from czgdp1807/issue_12237
...
Random variables can be used as given_condition
2019-05-14 12:44:30 +02:00
Ritesh Kumar
ad0ec4421e
Added Type I info
2019-05-14 13:45:55 +05:30
Ritesh Kumar
b68cddd386
Corrected docstring error
2019-05-14 13:41:06 +05:30
Ritesh Kumar
0a1bfc5036
Added tests and pprint in docstring
2019-05-14 11:34:31 +05:30
S.Y. Lee
34ec64a93e
Fix typo in test
2019-05-14 09:27:59 +09:00
S.Y. Lee
826323a7b0
Fix nontrivial typo
2019-05-14 01:21:00 +09:00
Kalevi Suominen
e557371257
Merge pull request #16670 from divyanshu132/Abelian-invariants
...
Added method to calculate Abelian Invariants
2019-05-13 18:58:26 +03:00
czgdp1807
94d5e440ac
resolved conflicts
2019-05-13 21:05:51 +05:30
Gagandeep Singh
e9874e73f4
Merge branch 'master' into multivar_dists
2019-05-13 21:01:17 +05:30
czgdp1807
8b6bb17f7f
resolved test failures
2019-05-13 20:31:40 +05:30
Zhi-Qiang Zhou
eef043b7da
fix dcm error
2019-05-13 20:51:31 +08:00
Ritesh Kumar
afcee17b1e
Added Noncentral Beta Distribution
2019-05-13 17:59:02 +05:30
S.Y. Lee
b4662cbb03
Add non hermitian cases
2019-05-13 21:27:18 +09:00
Gagandeep Singh
fdeaaf38f5
Merge branch 'master' into multivar_part3
2019-05-13 17:42:42 +05:30
Naba7
79b9722351
Changed the documentation
...
Added parameters, returns and examples section in sympy/core/expr.py under series.
2019-05-13 17:37:20 +05:30
S.Y. Lee
b9a8d2e7d7
Fix typo
2019-05-13 21:07:13 +09:00
S.Y. Lee
b86b96ce90
Add tests
2019-05-13 21:05:58 +09:00
czgdp1807
ccaf0f7b1e
added references
2019-05-13 17:33:55 +05:30
S.Y. Lee
ea99db8de0
Positive definite does not imply hermitian?
2019-05-13 21:02:33 +09:00
czgdp1807
9fb1d9ee7b
added GMVLG distribution
2019-05-13 17:28:22 +05:30
Ritesh Kumar
581cbbcfff
Removed unnecessary imports
2019-05-13 16:58:48 +05:30
S.Y. Lee
2f26909378
Remove space
2019-05-13 20:26:10 +09:00
S.Y. Lee
cb7402acde
Dedent
2019-05-13 20:25:46 +09:00
Ritesh Kumar
f82422cb4b
Corrected tests
2019-05-13 16:55:28 +05:30
Christopher Smith
c9330b1a06
Merge pull request #16802 from Sc0rpi0n101/basic-fix
...
Indentation and minor Documentation fixes for basic.py
2019-05-13 04:53:33 -05:00
Ritesh Kumar
0e259b3f71
Removed simplify, corrected docstring
2019-05-13 14:33:51 +05:30
Ritesh Kumar
586dcd95b1
Corrected docstring
2019-05-13 13:56:55 +05:30
Christopher Smith
72e0156485
Merge pull request #16820 from ritesh99rakesh/16817
...
Solves issue with Range 16817
2019-05-13 02:22:28 -05:00
Ritesh Kumar
48b16f2c04
Added test for Range(0, -1, 1)
2019-05-13 11:24:35 +05:30
Ritesh Kumar
3afc9df3ef
Solves issue with Range 16817
2019-05-13 08:50:40 +05:30
S.Y. Lee
2b335ea3ea
Add definitiveness handlers
2019-05-13 12:02:58 +09:00
Ritesh Kumar
83b374c2bf
Refactored docstring
2019-05-13 07:42:31 +05:30
Ritesh Kumar
9116d33687
Removed unused imports
2019-05-13 07:38:16 +05:30
Ritesh Kumar
9f19af880e
Corrected test error
2019-05-13 07:34:24 +05:30
Francesco Bonazzi
be5a472513
Merge pull request #16808 from czgdp1807/multivar_part2
...
Added Multinomial, NegativeMultinomial Distribution
2019-05-12 19:17:05 +02:00
Ritesh Kumar
7830cd3fbe
Corrected docstring error
2019-05-12 20:30:11 +05:30
czgdp1807
ecdf772ff5
added generalized multivar log-gamma dist
2019-05-12 20:29:44 +05:30
Ritesh Kumar
bf11ee4364
Added tests for Beta-binomial
2019-05-12 20:26:31 +05:30
Ritesh Kumar
e8c31ee5b4
Added test in test_args.py
2019-05-12 19:30:47 +05:30
Christopher Smith
0d6198b5f5
Merge pull request #16810 from czgdp1807/addon_sum_api
...
Range can be accepted in Sum
2019-05-12 08:58:15 -05:00
Ritesh Kumar
13604e5980
Corrected docstring error
2019-05-12 19:25:35 +05:30
Ritesh Kumar
5951eea67b
Removed trailing whitespace
2019-05-12 17:49:58 +05:30
Ritesh Kumar
0adab1500f
Added test in test_args.py
2019-05-12 17:47:47 +05:30
Christopher Smith
d2be8a2d08
Update expr_with_limits.py
2019-05-12 07:08:48 -05:00
Ritesh Kumar
52765ad75a
Updated docstring, removed simplify in test and refactored _cdf()
2019-05-12 17:34:59 +05:30
czgdp1807
b6d0e5d334
updated docstrings
2019-05-12 17:22:14 +05:30
Ritesh Kumar
0bd75ede42
Added Beta-binomial distribution
2019-05-12 17:15:10 +05:30
Christopher Smith
7c4e82c507
Update expr_with_limits.py
2019-05-12 06:43:23 -05:00
czgdp1807
57702f14c0
pdf of ewens dist changed
2019-05-12 16:50:52 +05:30
Christopher Smith
ed12f9e24f
Update expr_with_limits.py
2019-05-12 05:33:26 -05:00
Ritesh Kumar
6181078d56
Added tests for Inverse Normal
2019-05-12 15:23:26 +05:30
Ritesh Kumar
89ec32a754
Added Inverse Normal distribution
2019-05-12 14:19:58 +05:30
Christopher Smith
f82bb0b223
Update expr_with_limits.py
2019-05-12 03:39:38 -05:00
Christopher Smith
b93b6a743d
Merge pull request #16812 from sylee957/fix_matmul_transpose
...
Fix error while transposing matrix multiplied with scalar symbol
2019-05-12 02:46:59 -05:00
Christopher Smith
0a6327a407
Merge pull request #16809 from divyanshu132/fix-sphinx
...
Improved the accessibility of docstrings from Sphinx documentation
2019-05-12 02:45:34 -05:00
Christopher Smith
1227fbd7b2
Update expr_with_limits.py
2019-05-12 02:43:37 -05:00
Christopher Smith
c25d75e271
handle more Idx; raise error if not lo & hi
2019-05-12 02:06:43 -05:00
Christopher Smith
02b3c270dc
continues needed to avoid error at end
2019-05-12 00:25:41 -05:00
Christopher Smith
5e333a842d
Update test_sums_products.py
2019-05-11 23:12:18 -05:00
Christopher Smith
e137c85435
canonical processing of Range in _process limits
2019-05-11 23:09:16 -05:00
Divyanshu
1579b7de7c
remove-recurrences
2019-05-12 07:27:06 +05:30
S.Y. Lee
63ce695395
Add test
2019-05-12 00:34:13 +09:00
czgdp1807
2e31694521
removed unused import
2019-05-11 20:47:31 +05:30
czgdp1807
30a2917b00
modified the logic for accepting Range
2019-05-11 20:44:03 +05:30
S.Y. Lee
8a67f3168e
Fix test
2019-05-11 23:57:54 +09:00
S.Y. Lee
0ecbf5cbf1
Add tests
2019-05-11 22:48:04 +09:00
Naba7
e6a5a10bc0
Added docstrings and doctests
...
changed indentation
2019-05-11 19:16:21 +05:30
S.Y. Lee
fcdca56339
Fix argument ordering, add developers reference
2019-05-11 22:36:48 +09:00
Naba7
daaba6e8ff
Added doctests and docstrings
...
in series.py
2019-05-11 18:58:01 +05:30
S.Y. Lee
8479bd6b8a
Decompose scalar part before transposing
2019-05-11 22:06:21 +09:00
czgdp1807
8c527c254a
Added Negative Multinomial Distribution
2019-05-11 18:30:02 +05:30
Nikhil Maan
9d0d63cf1d
Changed docstring for __ne__
2019-05-11 17:43:48 +05:30
Nikhil Maan
8bc22224f1
Fixed errors and reverted changess for return
2019-05-11 17:40:45 +05:30
Nikhil Maan
246667c13c
Fixes for basic.py
...
* Indentation fixes
* minor formatting fixes
2019-05-11 17:40:45 +05:30
czgdp1807
61e02562cc
Range can be accepted in Sum
2019-05-11 17:23:00 +05:30
czgdp1807
dfa4eb0d71
Added Multinomial Distribution
...
Multinomial Distribution has been added to
sympy.stats.joint_rv_types. There are import
issues remaining to be resolved.
2019-05-11 16:16:50 +05:30
czgdp1807
82ca7a2990
added comments
2019-05-11 14:48:41 +05:30
czgdp1807
99a488e0c6
removed unused import
2019-05-11 14:45:31 +05:30
Gagandeep Singh
7550bf9d81
Merge branch 'master' into multivar_dists
2019-05-11 14:42:09 +05:30
czgdp1807
4f7b879d5d
incorporated reviews
2019-05-11 14:39:40 +05:30
Divyanshu
9c3a4b6cb8
assumption-codegen-doc
2019-05-11 12:47:42 +05:30
Divyanshu
db1ff3321c
ntheory-doc
2019-05-11 11:18:29 +05:30
Christopher Smith
0b090278fd
Merge pull request #16685 from sylee957/hadamard_canonicalization
...
Canonicalization of Hadamard Product
2019-05-10 23:39:33 -05:00
Christopher Smith
b2e7eeea88
Merge pull request #16801 from sylee957/dotprint_sort
...
Remove sorting from dotprint, and clean up some code
2019-05-10 23:36:26 -05:00
czgdp1807
d64db73575
Added Ewens Distribution
...
Multivariate Ewens Distribution has been added
to sympy.stats.joint_rv_types.Few changes to limit
format have also been made in marginal_distribution
of discrete joint distribution.
2019-05-10 20:21:55 +05:30
S.Y. Lee and Christopher Smith
4f8e9d9756
Update sympy/printing/dot.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-10 23:34:51 +09:00
S.Y. Lee and Christopher Smith
ea08de2764
Update sympy/printing/dot.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-10 23:34:43 +09:00
S.Y. Lee and Christopher Smith
b83b45ea91
Update sympy/printing/dot.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-10 23:34:33 +09:00
S.Y. Lee and Christopher Smith
6f0bf0b359
Update sympy/printing/dot.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-10 23:33:25 +09:00
S.Y. Lee and Christopher Smith
39e3237b38
Update sympy/printing/dot.py
...
Co-Authored-By: Christopher Smith <smichr@gmail.com >
2019-05-10 22:35:18 +09:00
S.Y. Lee
be9f86ba13
Misc formatting changes
2019-05-10 21:10:52 +09:00
S.Y. Lee
c74938f72d
Docstring update
2019-05-10 20:54:26 +09:00
Divyanshu
08542ffce4
update
2019-05-10 11:58:34 +05:30
Naba7
2d8d6486a7
Added docstrings and doctests
...
in series.py
2019-05-10 01:02:29 +05:30
Christopher Smith
b024c2aa17
Merge pull request #16796 from oscargus/fixlogplot
...
Fixed issue with logplot range for x
2019-05-09 14:30:30 -05:00
Naba7
59ec6c9e12
Added docstrings and doctests
...
in series.py
2019-05-10 00:42:55 +05:30
Naba7
5dd4afd3be
Added docstrings and doctests
...
Added paramets,examples and returns for series.py
2019-05-09 23:56:09 +05:30
Oscar Gustafsson
3b8ba7a4b2
Fixed issue with logplot range for x
2019-05-09 18:16:47 +02:00
Christopher Smith
3cb3e34f16
Merge pull request #16792 from spcornelius/fix_codegen_unused_arg
...
Fix incorrect codegen with unused array arguments
2019-05-09 11:10:55 -05:00
czgdp1807
6a2e311045
made changes to the api
2019-05-09 20:48:00 +05:30
czgdp1807
83fa758379
incorporated reviews
2019-05-09 20:31:18 +05:30
Sean P. Cornelius
4d3afb29ed
Clean up code
2019-05-09 10:11:41 -04:00
Christopher Smith
2fc1294d8c
Merge pull request #16794 from sympy/meganly
...
Update test_relational.py
2019-05-09 06:37:10 -05:00
Divyanshu
e7f90dbc4e
fix-discrete
2019-05-09 14:02:16 +05:30
Christopher Smith
500bfd8911
Merge pull request #16782 from meganly/16736_trigsimp-fu
...
give an _eval_trigsimp method to Relational
2019-05-09 02:57:20 -05:00
Christopher Smith
23a77a2927
Update test_relational.py
2019-05-09 02:47:08 -05:00
S.Y. Lee
9a10e94387
Fix docstring for dotprint and add docs for purestr
2019-05-09 15:41:58 +09:00
S.Y. Lee
32e4efb846
78-character line
2019-05-09 13:41:47 +09:00
Sean P. Cornelius
cc93f9c654
Fix indentation
2019-05-08 23:40:29 -04:00
Sean P. Cornelius
83df7fe946
Merge remote-tracking branch 'upstream/master'
2019-05-08 23:29:49 -04:00
Sean P. Cornelius
3d2e0af032
Add codegen test for C function sig with unused array arg
2019-05-08 23:22:53 -04:00
Sean P. Cornelius
b56caac90a
Fix missing dimensions for unused array args
2019-05-08 23:22:05 -04:00
S.Y. Lee
82addd80e7
Format docstring as numpydoc, PEP8 for default_styles
2019-05-09 12:15:08 +09:00
S.Y. Lee
58a5a91a6c
Proper test for matrix symbol
2019-05-09 11:33:05 +09:00
S.Y. Lee
0fd2be9a44
Add tests about test_args
2019-05-09 11:06:25 +09:00
S.Y. Lee
734ff54adf
Remove sorting
2019-05-09 10:58:02 +09:00
Aaron Meurer
09786a173e
Merge pull request #16652 from parkereberry1923/Issue-12134-Python-Numbers-ABC
...
SymPy numbers now inherit from Python numbers ABCs
2019-05-08 19:39:54 -06:00
Christopher Smith
7ec680459c
Merge pull request #16785 from smichr/16725
...
replace `exact` flag only applies when symbols > 1
2019-05-08 19:15:42 -05:00
Shivani Kohli
1175c13f7e
Merge branch 'Issue-12134-Python-Numbers-ABC' of https://github.com/parkereberry1923/sympy into Issue-12134-Python-Numbers-ABC
2019-05-08 16:40:23 -05:00
Shivani Kohli
58d05f18b5
changing how to import to sympy
2019-05-08 16:40:07 -05:00
Shivani Kohli
0f618bcc47
Update numbers.py
2019-05-08 16:21:17 -05:00
Oscar Benjamin
e32b60a74b
Merge pull request #16787 from highpost/master
...
add documentation for sympy.sets.fancysets.Reals
2019-05-08 21:33:23 +01:00
Daniel Sears
a30bb85661
removed pprint usage
...
I copied the pprint usage from the Integers example, but it's clearer without it.
I'm also changing continuous numbers to real numbers.
2019-05-08 10:17:12 -07:00
Christopher Smith
6d4fd00df2
Merge pull request #16781 from smichr/dot
...
update dot to use srepr
2019-05-08 10:12:25 -05:00
S.Y. Lee
c607c71bbd
Fix html render
2019-05-08 21:06:11 +09:00
Chris Smith
a5acd46b51
modify pattern used in manual_subs
2019-05-08 00:06:01 -05:00
Daniel Sears
579442f55a
more tab to space fixes
2019-05-07 17:59:51 -07:00
Daniel Sears
59fbcdf00e
more tab to space fixes
2019-05-07 17:56:16 -07:00
Daniel Sears
a9fa11db29
minor edit to replace tabs with spaces
2019-05-07 17:46:55 -07:00
Daniel Sears
793ce56e27
add documentation for sympy.sets.fancysets.Reals
...
The sympy.sets.fancysets.Reals class has no documentation, so this is a small documentation-only PR to fill that void.
2019-05-07 17:34:15 -07:00
Chris Smith
eebedc0c63
replace exact flag only applies when symbols > 1
2019-05-07 15:56:03 -05:00
Megan Ly
f53b4d50d0
give an _eval_trigsimp method to Relational
2019-05-07 06:26:52 -07:00
Divyanshu
b063c7027a
Added-non-abelian-examples-with-prime-invariants
2019-05-07 13:09:15 +05:30
Chris Smith
2fe6c55dcc
restore original x**2 example
2019-05-06 21:53:08 -05:00
Chris Smith
b213fa6d83
11634: respect commutativity when printing
2019-05-06 18:21:10 -05:00
Chris Smith
abec3dfb5c
edit printing.rst
2019-05-06 18:02:07 -05:00
Chris Smith
134783ed63
update dot.py
...
- printing
- generation of dot files should be faster, now since
sympification of args happens only once
Note: purestr output does not influence the dot diagram that is
produced -- it just creates "complex tags" for items to be printed.
2019-05-06 17:02:37 -05:00
Chris Smith
fe873870ec
Merge branch 'master' into HEAD
2019-05-06 17:02:03 -05:00
Kalevi Suominen
8dcb72f6ab
Merge pull request #16561 from ctsiagkalis/master
...
Improved itermonomials
2019-05-06 14:02:13 +03:00
erik
64a4a89edf
Create test_kane4.py
...
Unit tests for PR 16700 "Replaces qdots with us in force-list in kanes.py".
2019-05-06 11:06:18 +02:00
Francesco Bonazzi
2bdb27dc7d
Merge pull request #16542 from supreet11agrawal/impl_quantile
...
Added `quantile` function
2019-05-06 11:05:42 +02:00
Charalampos Tsiagkalis
130d98785f
Return S(1) instead of {S(1)} and update in tests:
...
In `total_degree` case if the `variables` list is empty or
the `max_degree` is 0 `S(1)` should be returned instead of `{S(1)}`.
Also updated the tests to support the above change.
2019-05-05 19:06:20 +03:00
Oscar Benjamin
39909b333f
Make Float.is_real always True
2019-05-05 01:54:08 +01:00
Francesco Bonazzi
22e948b53f
Merge pull request #16548 from Shekharrajak/integral_rubi_matchpy0dot5
...
rubi.utility_function exp is updated to rubi_exp in rubi.py file
2019-05-04 15:56:23 +02:00
Charalampos Tsiagkalis
3e2c9aa0cd
Fixed trailing whitespace.
2019-05-04 15:44:39 +03:00
Charalampos Tsiagkalis
214a9ddeb6
Added extra tests mostly for degree_list case.
2019-05-04 15:09:12 +03:00
Francesco Bonazzi
c64e8bfa26
Update test_rubi_integrate.py
2019-05-04 13:39:21 +02:00
Christopher Smith
27557685aa
Merge branch 'master' into addpow
2019-05-04 00:07:55 -05:00
Christopher Smith
19cd8aa649
extract rational content from Add base
2019-05-03 23:30:08 -05:00
Christopher Smith
94479ec706
Merge pull request #16766 from kangzhiq/master
...
Added _print_Indexed function and test
2019-05-03 23:11:59 -05:00
Francesco Bonazzi
6536e1381d
Update rubi.py
2019-05-03 22:18:27 +02:00
Shivani Kohli
7b541cb2db
code_quaality issue
2019-05-03 11:38:56 -05:00
Shivani Kohli
da54119d31
tests for sympy_abc
2019-05-03 11:28:27 -05:00
Francesco Bonazzi
d39ee84f4d
Update test_rubi_integrate.py
2019-05-03 13:58:05 +02:00
Christopher Smith
01a0d0c495
Merge pull request #16771 from smichr/sympify
...
container handling improved in sympify and nfloat
2019-05-03 04:14:20 -05:00
Chris Smith
3f041aefa4
nfloat aware of iterable Basic needs
2019-05-03 01:37:16 -05:00
kangzhia
b2b3a6d6cf
Change asterisk to index syntax
2019-05-02 18:23:23 +02:00
Charalampos Tsiagkalis
0a1669b3ea
Added whitespace for readability
2019-05-02 16:02:19 +03:00
Oscar Gustafsson
90132989ed
Merge pull request #15944 from oscargus/termsperline
...
Added multiline_latex to more easily print multiline equations
2019-05-02 10:00:13 +02:00
kkkkx
8713e01da8
Merge branch '16669_support_Indexed'
2019-05-01 23:18:30 +02:00
kkkkx
0a84019ad7
Added function _print_Indexed and test
...
-made PythonCodePrinter support Indexed by adding _print_Indexed
function
-added test to _print_Indexed
2019-05-01 22:21:55 +02:00
Chris Smith
f41b4201d6
nfloat aware of iterable Basic needs
2019-05-01 12:38:59 -05:00
kangzhiq
31e670dc7c
Merge pull request #1 from sympy/master
...
Update my branch from original sympy branch
2019-05-01 17:00:26 +02:00
Chris Smith
c1e25a445f
Add._eval_power extracts big Float
2019-05-01 00:17:03 -05:00
Christopher Smith
b8fe457a02
Merge pull request #16088 from smichr/isimp
...
simplify pulls constants out of integral
2019-05-01 00:14:05 -05:00
Christopher Smith
67793241b0
Merge pull request #16753 from schymans/collect_fact_dim
...
Fix Quantity._collect_factor_and_dimension for exp().
2019-04-30 23:55:01 -05:00
Christopher Smith
38ed6028f4
Merge pull request #16760 from asmeurer/matchpy-conda
...
Install matchpy with conda on Travis again
2019-04-30 23:51:20 -05:00
Oscar Benjamin
4c25b009b5
Merge pull request #16731 from Bharat123rox/add-numpy
...
Add has_module(numpy) in runtest_issue_15537
2019-05-01 00:11:31 +01:00
Shivani Kohli
6786aea422
Hopefully fix 2.7 error
2019-04-30 17:06:55 -05:00
Shivani Kohli
9ce9e84219
Externally import numbers
2019-04-30 16:22:57 -05:00
Aaron Meurer
ffc23bd211
Revert "Install matchpy on Travis using pip for now"
...
The latest version of matchpy is on conda again.
This reverts commit 13159afc34 .
2019-04-30 11:51:31 -06:00
S.Y. Lee
cd45432eaa
Use collections.Counter
2019-04-30 15:42:55 +09:00
S.Y. Lee
be591301af
Refine docs
2019-04-30 15:17:57 +09:00
Oscar Benjamin
c162866068
Merge pull request #15885 from oscargus/chrisgee-master
...
Complex and constant Theano code generation (revived #9187 )
2019-04-30 00:46:00 +01:00
Stan Schymanski
97bfb2d061
Fix _Quantity._collect_factor_and_dimension for exp().
2019-04-29 21:44:48 +02:00
Björn Dahlgren
9f6e77b6cf
Merge pull request #16678 from bjodah/update-test-durations
...
Updated durations.json
2019-04-28 22:06:08 +02:00
Christopher Smith
aa33f93cc2
Merge pull request #16746 from arooshiverma/16712_1
...
Fixed beam markdown
2019-04-28 05:04:10 -05:00
arooshiverma
28e3f605f0
Corrected Grammatical errors and spelling mistakes
2019-04-28 12:12:34 +05:30
arooshiverma
27ecbf4a7a
Fixed beam markdown
2019-04-28 01:28:45 +05:30
Oscar Benjamin
34b6fde9df
Remove unneeded finite=True from stats
2019-04-27 20:12:42 +01:00
Oscar Benjamin
6d7a8928db
Clean up and remove unnecessary finite=True in solvers tests
2019-04-27 20:04:46 +01:00
Oscar Benjamin
5d2654871d
Remove unneeded finite=True in ode
2019-04-27 20:00:13 +01:00
Oscar Benjamin
2a2d28ed61
Remove redundant finite=True from tests
2019-04-27 19:50:56 +01:00
Oscar Benjamin
2cef473360
Remove unneeded test line
2019-04-27 19:50:27 +01:00
Oscar Benjamin
d573ecfaf1
Cleanup for positive->finite in integrals
2019-04-27 19:34:45 +01:00
Oscar Benjamin
9339f98054
positive->extended_positive and cleanup in special
2019-04-27 19:34:26 +01:00
Oscar Benjamin
dd2c93881e
Test cleanup for positive -> finite
2019-04-27 18:51:48 +01:00
Oscar Benjamin
4e9dd08514
Fix assumptions for atan
2019-04-27 18:51:02 +01:00
Oscar Benjamin
2bb3c55e7b
Assumptions cleanup for positive->finite in complexes
2019-04-27 18:06:54 +01:00
Oscar Benjamin
9453cb667d
nonnegative -> extended_nonnegative in power.py
2019-04-27 18:05:39 +01:00
Oscar Benjamin
00b41259e8
Add test for real=True in test_expr
2019-04-27 16:53:50 +01:00
Oscar Benjamin
b148a4f643
Add tests for extended_positive
2019-04-27 16:52:04 +01:00
Oscar Benjamin
3af7973e98
Add nonzero -> real
2019-04-27 16:51:52 +01:00
Oscar Benjamin
995fce1c9e
Update test_arit for positive -> finite
2019-04-27 16:36:06 +01:00
Oscar Benjamin
4239c406c0
Remove unneeded changes
2019-04-27 15:55:57 +01:00
Oscar Benjamin
6590d3ced3
positive -> extended_positive in Infinity.__mul__
2019-04-27 13:53:16 +01:00
Oscar Benjamin
3f0bff902f
Restore complex -> finite | infinite
2019-04-27 13:52:33 +01:00
Oscar Benjamin
20a4cf0bf0
UnXFAIL test with positive -> extended_positive
2019-04-27 13:52:33 +01:00
Oscar Benjamin
ef69d774ac
use extended_positive and un-XFAIL tests in series
2019-04-27 13:52:33 +01:00
Oscar Benjamin
89f3a5fa2a
Add _eval_is_finite to re and im
2019-04-27 13:52:33 +01:00
Oscar Benjamin
c24f5013c7
Simplify Expr._eval_is_positive
2019-04-27 13:52:33 +01:00
Oscar Benjamin
a0989e018f
Fix recursion problems in Expr._eval_is_composite
2019-04-27 13:52:33 +01:00
Oscar Benjamin
dfd3530f03
Reimplement Expr._eval_is_positive
2019-04-27 13:52:33 +01:00
Oscar Benjamin
1199ec90ff
Fix assumptions for atan
2019-04-27 13:52:33 +01:00
Oscar Benjamin
fa21fbfd20
real -> extended_real in Expr.is_extended_positive
2019-04-27 13:52:33 +01:00
Oscar Benjamin
f89a27494c
Add _eval_is_positive to Float
2019-04-27 13:52:33 +01:00
Oscar Benjamin
11cd958ee7
Add _eval_is_positive back to Expr
2019-04-27 13:52:33 +01:00
Oscar Benjamin
f5b4b7554a
Re-add Pow._eval_is_positive
2019-04-27 13:52:33 +01:00
Oscar Benjamin
6bd10fc98f
Re-add Add._eval_is_real
2019-04-27 13:52:33 +01:00
Oscar Benjamin
42664c796d
Remove redundant infinity check in AccumBounds
2019-04-27 13:52:33 +01:00
Oscar Benjamin
f1fc9aabb5
Re-add _eval_is_positive to Expr
2019-04-27 13:52:33 +01:00
Oscar Benjamin
53f4f90184
Comment out doctest...
2019-04-27 13:52:33 +01:00
Oscar Benjamin
bb6e30763c
Fix doctests in basic/printing for positive -> finite
2019-04-27 13:52:33 +01:00
Oscar Benjamin
0706d9d073
positive -> extended_positive in function
2019-04-27 13:52:33 +01:00
Oscar Benjamin
5697ce021d
XFAIL 3 tests failing due to positive -> finite
2019-04-27 13:52:33 +01:00
Oscar Benjamin
bfe1fe7a1c
positive -> extended_positive in _pt
2019-04-27 13:52:33 +01:00
Oscar Benjamin
5e937a36c9
positive -> extended_positive in sign
2019-04-27 13:52:33 +01:00
Oscar Benjamin
130a7dbad5
positive=False -> nonpositive=True in stats tests
2019-04-27 13:52:33 +01:00
Oscar Benjamin
7a7b3e07e2
Update test for extended_positive etc assumptions
2019-04-27 13:52:33 +01:00
Oscar Benjamin
68c0d6a41a
Update tests assumptions tests for extended_positive etc
2019-04-27 13:52:33 +01:00
Oscar Benjamin
c014e0d332
positive->extended_positive in SingularityFunction
2019-04-27 13:52:33 +01:00
Oscar Benjamin
d2d200ff3f
positive -> extended_positive in Infinity._eval_power
2019-04-27 13:52:33 +01:00
Oscar Benjamin
af133d4ade
positive -> extended_positive in AccumBounds
2019-04-27 13:52:33 +01:00
Oscar Benjamin
d75a03e543
Update new assumptions tests for positive->finite
2019-04-27 13:52:33 +01:00
Oscar Benjamin
2a00025b3d
Comment failing test in gamma_functions
2019-04-27 13:52:33 +01:00
Oscar Benjamin
1f25f80daf
positive -> extended_positive in Pow.as_real_imag
2019-04-27 13:52:33 +01:00
Oscar Benjamin
ee95726d60
positive -> extended_positive in periodic_argument
2019-04-27 13:52:33 +01:00
Oscar Benjamin
8f9fc2a74a
Fix tests for positive -> finite in exponential
2019-04-27 13:52:33 +01:00
Oscar Benjamin
1d15f7c3a5
positive -> extended_positive in exponential
2019-04-27 13:52:33 +01:00
Oscar Benjamin
49033b1bfb
Add _eval_is handlers in trigonometric
2019-04-27 13:52:32 +01:00
Oscar Benjamin
5b7f43d87c
positive -> extended_positive in Pow
2019-04-27 13:52:32 +01:00
Oscar Benjamin
5f93d18391
positive -> extended_positive in Abs
2019-04-27 13:52:32 +01:00
Oscar Benjamin
9d13d311db
Fix core tests for positive -> finite
2019-04-27 13:52:32 +01:00
Oscar Benjamin
55720211cd
positive -> extended_positive in Expr
2019-04-27 13:51:54 +01:00
Oscar Benjamin
41fcd6b3af
positive -> extended_positive in Add
2019-04-27 13:51:54 +01:00
Oscar Benjamin
24c55a0b23
WIP making positive -> finite in core...
2019-04-27 13:51:54 +01:00
Oscar Benjamin
4bd14a7ec3
WIP
2019-04-27 13:51:54 +01:00
Oscar Benjamin
87cfec9640
Add extended_real in output for test_tree
2019-04-27 13:51:16 +01:00
Oscar Benjamin
4bcdc7ff74
Remove redundant finite checks
2019-04-27 13:51:15 +01:00
Oscar Benjamin
a20ee9f87c
Remove redundant infinity checks
2019-04-27 13:51:15 +01:00
Oscar Benjamin
b0a9eaa084
Remove redundant assumption rule in ask.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
b865488096
Use is_extended_real in polyroots and remove XFAIL
2019-04-27 13:51:15 +01:00
Oscar Benjamin
4c4d7a7675
Remove XFAIL from test_order.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
ae2262a58d
Fix and uncomment failing test
2019-04-27 13:51:15 +01:00
Oscar Benjamin
dd69d80507
Fix AccumBounds.is_real and remove XFAIL
2019-04-27 13:51:15 +01:00
Oscar Benjamin
3022077f32
XFAIL test_W23 in test_wester due to real->finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
d6e175683f
Update test for real->finite in test_ode.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
b793d12cc1
Fix tests and comment hanging assert in meijerint
2019-04-27 13:51:15 +01:00
Oscar Benjamin
6494d94b4f
XFAILed two failing tests in series
2019-04-27 13:51:15 +01:00
Oscar Benjamin
d92db81836
Fix tests in integrals for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
e385e1e98b
Work around hang in Weibull using finite=True...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
51508a4180
Add erf._eval_is_finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
72cd1feb41
Restore Wester test test_Y2
2019-04-27 13:51:15 +01:00
Oscar Benjamin
7ff41e92a3
Update homogeneous_order for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
e63ff4beef
Use extended_real=True in test_integrals
2019-04-27 13:51:15 +01:00
Oscar Benjamin
7b0b3ab133
Use extended_real=True in solveset tests
2019-04-27 13:51:15 +01:00
Oscar Benjamin
18593dd260
Fix doctests for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
3003b67708
Add _eval_is_real to error functions
2019-04-27 13:51:15 +01:00
Oscar Benjamin
3052f8068a
Fix assumption in test_manual for real->finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
bd2343c0c0
Fix assumptions in test_rationaltools
2019-04-27 13:51:15 +01:00
Oscar Benjamin
931541bb72
Fix assumptions in test_inequalities for real->finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
6e07192018
Make CRootOf finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
725a43929d
real->extended_real in sets tests
2019-04-27 13:51:15 +01:00
Oscar Benjamin
a7276dc153
Update tests in powsimp for new assumptions
2019-04-27 13:51:15 +01:00
Oscar Benjamin
1999402990
Update test in solvers for extended_real assumption
2019-04-27 13:51:15 +01:00
Oscar Benjamin
a7a61f07d8
Fix transforms and tests for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
a32a89c6ee
Improve assumptions for Pow
2019-04-27 13:51:15 +01:00
Oscar Benjamin
50572bf2c0
Fix stats and tests for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
0c9b37b6db
Fix wester test for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
cbb85d8323
Fix test in solveset for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
3842794088
is_real -> is_extended_real in integrals
2019-04-27 13:51:15 +01:00
Oscar Benjamin
ae41f93d70
Fix test for is_extended_real in simplify
2019-04-27 13:51:15 +01:00
Oscar Benjamin
c7b270722c
Fix fail from is_real -> finite in series
2019-04-27 13:51:15 +01:00
Oscar Benjamin
9441aa3dc5
Fix test for is_real -> is_finite in quantum
2019-04-27 13:51:15 +01:00
Oscar Benjamin
f60b4c18aa
Fix test for is_real -> finite in logic
2019-04-27 13:51:15 +01:00
Oscar Benjamin
77f66f863b
Fix test for real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
5e57282967
Fix test fail for is_real -> finite in complexes
2019-04-27 13:51:15 +01:00
Oscar Benjamin
523b9d0195
Use finite=True in LambertW test
2019-04-27 13:51:15 +01:00
Oscar Benjamin
4c829e7aad
Add is_finite to LambertW
2019-04-27 13:51:15 +01:00
Oscar Benjamin
9c06aa60ff
Fix test for is_real -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
fd706db015
is_real -> is_extended_real in exponential.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
c848875154
is_real -> is_extended_real in exprtools.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
6ec64b5725
Fix tests for is_extended_real
2019-04-27 13:51:15 +01:00
Oscar Benjamin
87476e0bcf
Make imaginary -> finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
b268c7d7a7
Add _eval_is_complex to re/im
2019-04-27 13:51:15 +01:00
Oscar Benjamin
244317adcc
Fix test real->extended_real
2019-04-27 13:51:15 +01:00
Oscar Benjamin
d3559c7d7d
Make extended_real -> commutative
2019-04-27 13:51:15 +01:00
Oscar Benjamin
33380ae4ae
WIP ...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
74075b4a3b
extended_real should not imply complex
2019-04-27 13:51:15 +01:00
Oscar Benjamin
4b7fef0c59
is_real -> is_extended_real in solvers.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
28c7b257bc
is_real -> is_extended_real in inequalities
2019-04-27 13:51:15 +01:00
Oscar Benjamin
eb3208b185
is_real -> is_extended_real in simplify
2019-04-27 13:51:15 +01:00
Oscar Benjamin
227f52e633
Fix tests for is_real in function/special
2019-04-27 13:51:15 +01:00
Oscar Benjamin
4dc11c89b4
is_real -> is_extended_real in functions/special.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
3b42b05e71
Fix tests for is_real in functions/elementary.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
e003aa42eb
is_real -> is_extended_real in functions/elementary.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
f5a87c7b5d
WIP...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
b8dc535c7a
WIP ...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
9a29b16462
WIP ...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
c36b1f92be
WIP ...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
43a885794e
WIP - ...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
431c8c0f6e
WIP - ...
2019-04-27 13:51:15 +01:00
Oscar Benjamin
b2494aab9f
Use extended real for AccumBounds in calculus/util.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
270d6edfa0
Add extended_real functions/elementary/miscellaneous.py
2019-04-27 13:51:15 +01:00
Oscar Benjamin
742e3ea0fe
Fix tests after making real imply finite
2019-04-27 13:51:15 +01:00
Oscar Benjamin
f4075925ed
Replace is_real -> is_extended_real in trigonometric.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
8736fe48ea
Replace is_real -> is_extended_real in complexes.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
c980ad0f6c
Replace is_real -> is_extended_real in power.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
d806cc3bbb
Replace is_real -> is_extended_real in mul.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
fe1c7c974f
Replace is_real -> is_extended_real in basic.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
11592d10b9
Replace is_real -> is_extended_real in expr.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
4ff36101b1
Replace is_real -> is_extended_real in add.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
f267682880
Replace is_real -> is_extended_real in numbers.py
2019-04-27 13:51:14 +01:00
Oscar Benjamin
4c5e54e480
Add extended_real and Make real -> finite
2019-04-27 13:51:14 +01:00
Christopher Smith
6ee4196618
Merge pull request #16726 from asmeurer/mailmap
...
Update AUTHORS and .mailmap
2019-04-27 07:07:08 -05:00
Christopher Smith
082df75b2a
Merge pull request #16727 from smichr/inf
...
Float(oo) -> oo; float(oo) -> inf
2019-04-27 05:33:35 -05:00
Christopher Smith
ec21b391b2
remove final _infs
2019-04-27 02:21:11 -05:00
Christopher Smith
9a26bf85c5
Merge pull request #16733 from smichr/dc
...
move skip_paths; watch for def/class *in* docstring
2019-04-27 01:40:53 -05:00
Christopher Smith
c043bb7ff3
use float('+/-inf'); clean up __ operators
2019-04-26 23:06:53 -05:00
Chris Smith
87af6da6fa
keep finf, fninf hidden
2019-04-26 17:01:19 -05:00
Chris Smith
45370753f4
watch for CoercionError in solveset
2019-04-26 16:42:55 -05:00
Chris Smith
24e0446614
move skip_paths; watch for def/class *in* docstring
2019-04-26 16:26:40 -05:00
Chris Smith
ccce510679
remove oo, nan and -oo from domains
2019-04-26 14:31:10 -05:00
Chris Smith
f05e8b25ca
remove float/float tests
2019-04-26 14:31:10 -05:00
Chris Smith
7d22ff5e57
Float(oo) -> oo; float(oo) -> inf
...
sympification of inf will now give oo and this
avoids issues like that in 16720
The same applies to nan.
All interactions of floating nan, inf and -inf with
sympy objects will coerce the float into a symPy
version.
cf issue 7765, 8906 and 8910
2019-04-26 14:31:10 -05:00
Aaron Meurer
833dbd819e
Merge pull request #16729 from Bharat123rox/master
...
Fix bin/coverage_doctest.py by including skip_paths
2019-04-26 13:36:03 -05:00
Bharat123rox
95b13beb4c
Add has_module(numpy) in runtest_issue_15537
2019-04-26 23:50:25 +05:30
Bharat123rox
5937bcce9d
Fix bin/covergae_doctest.py by including skip_paths
2019-04-26 20:49:17 +05:30
Aaron Meurer
f4bf5e51b2
Add a check to mailmap_update for names that are email addresses
...
We can also check for invalid email addresses (no @), but I have left this out
for now, as the name check seems sufficient to find people who get the name
and email backwards. There is at least one person in the git history with an
empty email, which would have to be replaced with a stand in email like
none@example.com .
2019-04-25 14:56:01 -06:00
Aaron Meurer
750922ddc9
Update AUTHORS and .mailmap
2019-04-25 14:24:42 -06:00
Divyanshu
7e758a4ead
update-gens-to-pow-list
2019-04-25 21:10:28 +05:30
Divyanshu
8b5c6b8bf6
update
2019-04-25 17:36:35 +05:30
Charalampos Tsiagkalis
da140535ca
Small improvements in monomials.py
...
Replaced redundant `yield` statement with `return`.
Added return statement when returning a single element
making the generator terminating a bit faster.
2019-04-23 17:39:46 +03:00
Christopher Smith
b176f6a1d9
Merge pull request #16608 from smichr/round
...
modifications for round
2019-04-23 09:21:02 -05:00
Christopher Smith
2d5d6b7e72
Merge pull request #16702 from sylee957/fix_coverage_report_save
...
Fix permission error while writing coverage report locally
2019-04-23 09:17:07 -05:00
Christopher Smith
6f2860aa63
Merge pull request #16677 from sylee957/fix_duplicate_plot
...
Fix duplicate plot in beam_problems
2019-04-23 07:43:44 -05:00
Christopher Smith
91b17d906c
Merge pull request #16631 from oscargus/universalsetlatexprint
...
Fixed LaTeX, pretty, MathML Presentation, and str printing of UniversalSet
2019-04-23 07:39:11 -05:00
Christopher Smith
35cca69961
Merge pull request #16697 from oscargus/noPDFclass
...
Removed some unused printing code
2019-04-23 01:32:06 -05:00
Christopher Smith
5a6c326aa3
Merge pull request #16560 from iamrajiv/director-circle
...
Added Director Circle Feature For Ellipse
2019-04-23 01:30:40 -05:00
Divyanshu
a8ea915149
minor-doc-improve
2019-04-23 11:58:46 +05:30
Divyanshu
bf270bb206
update
2019-04-23 11:43:21 +05:30
Christopher Smith
45badeb049
Merge pull request #16694 from sylee957/improve_coverage_report
...
Improve coverage_report.py
2019-04-23 01:08:00 -05:00
Christopher Smith
cc35452e6f
Merge pull request #16512 from Trave11er/optics-dev
...
refraction_angle() now accepts inc. angle
2019-04-23 01:05:31 -05:00
Rimi
332fa3e227
added a decimal separator option for floats and lists, sets, and tuple for latex printing
2019-04-22 19:52:12 -04:00
Gleb Siroki
101dac7b3c
Minor fixes
2019-04-22 20:07:21 +01:00
RituRajSingh878
fa6fec7fde
modify checkodesol for bessel type function
2019-04-22 21:33:58 +05:30
Francesco Bonazzi
c458f22127
Merge branch 'master' into hadamard_canonicalization
2019-04-22 14:13:02 +02:00
Oscar Benjamin
d10b94aa5a
Merge pull request #16704 from sylee957/fix_matexpr_lgtm
...
LGTM fixes for matrix expressions
2019-04-22 11:47:15 +01:00
Chris Smith
2fc808ce00
add rounding notes; use tenths digit for rounding
2019-04-22 04:44:47 -05:00
S.Y. Lee
77215aa7b8
Remove unused imports and variables
2019-04-22 18:35:49 +09:00
S.Y. Lee
3c8ca77fa0
Html report is incremental. Do not touch the files directly
2019-04-22 14:50:26 +09:00
S.Y. Lee
3b7a518224
Rename travis coverage configuartion
2019-04-22 04:42:25 +09:00
S.Y. Lee
d18a15975b
Improve examples
2019-04-21 17:34:53 +09:00
S.Y. Lee
9c446e7602
Use different constructor
2019-04-21 17:30:11 +09:00
S.Y. Lee
b106513f12
Unpack the list
2019-04-21 17:27:54 +09:00
S.Y. Lee
7a5db2a2fa
Sort last
2019-04-21 14:22:57 +09:00
S.Y. Lee
377c43078d
Merge branch 'hadamard_canonicalization' of https://github.com/sylee957/sympy into hadamard_canonicalization
2019-04-21 14:22:13 +09:00
S.Y. Lee
fc75c34a27
Add rewriting as hadamard power
2019-04-21 14:21:50 +09:00
S.Y. Lee
c64bc8d644
Comment todo
2019-04-21 14:19:46 +09:00
S.Y. Lee
52aa1c5e50
Improve docs
2019-04-21 14:08:01 +09:00
RituRajSingh878
a0cb815b7a
modify bessel method and add test case for bessel
2019-04-21 10:21:29 +05:30
erik
6c5a649789
Update kane.py
...
Replaces qdots with generalized speeds in force-list when/if forces are expressed in terms of qdots.
2019-04-20 20:02:56 +02:00
Francesco Bonazzi
30867e3656
add default_sort_key to Hadamard product canonicalization. This avoids the product order to depend on the Python hashing values.
2019-04-20 19:39:45 +02:00
Francesco Bonazzi
880985471b
Merge pull request #16693 from Upabjojr/matrixexpr_deriv_scalar
...
allow matrix expression to be derived by scalar
2019-04-20 19:32:35 +02:00
Francesco Bonazzi
a718dc2f96
minor fixes and more tests for Hadamard product canonicalization
2019-04-20 19:26:20 +02:00
Francesco Bonazzi
e34f9c3e09
merge master
2019-04-20 18:58:43 +02:00
Oscar Gustafsson
b0169ae8cd
Removed some unused printing code
2019-04-20 18:00:19 +02:00
Oscar Gustafsson
cc5bb1b4e6
Merge pull request #16692 from Upabjojr/printer_one_matrix
...
added LaTeX printers for OneMatrix
2019-04-20 12:07:18 +02:00
S.Y. Lee
4ca38ded3f
Delete obsolete doc
2019-04-20 18:24:18 +09:00
S.Y. Lee
61e1e8cc1c
Add rewriting to hadamard power
2019-04-20 18:15:41 +09:00
S.Y. Lee
dd44b5382d
Remove the unpacking from constructor
2019-04-20 17:47:53 +09:00
S.Y. Lee
1fbfe1de62
Change comment
2019-04-20 17:46:53 +09:00
S.Y. Lee
c1ca855be6
Should not exhaust if flattened
2019-04-20 17:46:13 +09:00
Francesco Bonazzi
5b585f528a
remove dimensions from LaTeX printers of OneMatrix
2019-04-20 10:14:04 +02:00
S.Y. Lee
abe92d90d1
Hardcode source_dir, and comment out the code causing file deletion bug
2019-04-20 17:01:38 +09:00
Francesco Bonazzi
342be98bec
allow matrix expression to be derived by scalar; minor fix on Hadamard derivatives
2019-04-20 09:37:25 +02:00
Charalampos Tsiagkalis
593e43c9f8
Fixed another title underline in docstring
2019-04-20 10:06:09 +03:00
Charalampos Tsiagkalis
f2b96e7beb
FIxed typo
...
Title underline in docstring of itermonomials was too short.
2019-04-20 09:12:33 +03:00
S.Y. Lee
250c6680ed
Fix source_dir to 'sympy/'
...
Remove redundant check for kwargs ``slow``
Continue generating the html report even saving coverage data fails
2019-04-20 14:08:23 +09:00
Francesco Bonazzi
bc3e6851ea
added LaTeX printers for OneMatrix
2019-04-19 23:20:27 +02:00
Charalampos Tsiagkalis
eb440b21b7
Second update for the online tester
...
The "\" character didn't work, so I merged the two lines.
2019-04-19 22:14:32 +03:00
Charalampos Tsiagkalis
8a5869ef4e
Merge branch 'master' of https://github.com/ctsiagkalis/sympy
2019-04-19 22:02:49 +03:00
Charalampos Tsiagkalis
899055d132
Fixed extra character in test_monomials.py
...
Removed extra comma causing error in tests from line 64.
2019-04-19 21:55:25 +03:00
Charalampos Tsiagkalis
93328ea06f
Updated docstrings in monomials.py
...
Some old examples didn't work with the generators implementation.
Fixed them forcing list/set to match each example's result.
There was also an error in line 89 while the online tester was parsing
the file and finding EOF. I added a "\" character to hopefully escape
the whitespace.
2019-04-19 21:53:49 +03:00
ctsiagkalis
198b1d6cb3
Merge branch 'master' into master
2019-04-19 18:48:16 +03:00
Oscar Gustafsson
198daca235
Fixed DocTests
2019-04-19 17:43:36 +02:00
Divyanshu
2b4fa7b10d
integral-division
2019-04-19 21:13:06 +05:30
S.Y. Lee
05f3d824c0
Re-add save
2019-04-20 00:14:46 +09:00
Oscar Gustafsson
7bd4cdcc6f
Changed output and added MathML presentation and str printing
2019-04-19 17:09:25 +02:00
S.Y. Lee
a9dcfa7a70
Use argparse
2019-04-19 23:16:56 +09:00
Charalampos Tsiagkalis
49aca270ca
Updated tests for itermonomials to support generator
...
objects, using `next()` and `set()`.
Also, added `raises()` for new `ValueError`'s in case of negative
`max_degrees`.
2019-04-19 16:40:58 +03:00
Charalampos Tsiagkalis
1749e24f59
Added if statemnt to check for negative
...
`min_degrees` and `max_degrees`.
Negative `max_degrees` raises `ValueError` instead of
returning an empty Set.
Split double conditions in `if` statements to multiple `if`'s.
2019-04-19 16:38:41 +03:00
Charalampos Tsiagkalis
db77cb98e0
Changed lines 567 and 569 to create monomials tuples
...
from generators
2019-04-19 16:29:43 +03:00
Kalevi Suominen
967df3b9dc
Merge pull request #16592 from ShubhamKJha/new_fix_assumptions
...
Updated assumptions: Now complex and !finite infers infinite.
2019-04-19 16:19:30 +03:00
S.Y. Lee
01aaa3e513
Use path_hack
2019-04-19 22:13:05 +09:00
S.Y. Lee
578560a489
Remove unused variables
2019-04-19 22:05:17 +09:00
S.Y. Lee
0d3af01987
Don't hardcode directory
2019-04-19 22:00:26 +09:00
S.Y. Lee
f81291125b
cov.save() gives permission denied error
2019-04-19 21:49:40 +09:00
S.Y. Lee
babdfcb526
Add onematrix to import
2019-04-19 21:39:31 +09:00
S.Y. Lee
206acc2b67
Add comments and docstrings
2019-04-19 19:05:00 +09:00
Divyanshu
01eb2b8a9b
update
2019-04-19 14:29:23 +05:30
S.Y. Lee
639e28a17a
Canonicalization for hadamard product
2019-04-19 17:35:57 +09:00
RituRajSingh878
1f6e82edb4
add checkodesol in test case and some code cleaning
2019-04-19 09:08:09 +05:30
Oscar Benjamin
3335542a72
Merge pull request #16683 from Upabjojr/remove_duplicate
...
remove duplicated test
2019-04-18 23:01:55 +01:00
Francesco Bonazzi
19cf4944e8
remove duplicated test
2019-04-18 18:33:35 +02:00
Francesco Bonazzi
8bbd8b360e
Merge pull request #16675 from Upabjojr/printer_elementwise_applyfunc
...
Printer elementwise applyfunc
2019-04-18 17:59:00 +02:00
Francesco Bonazzi
ce0fb6319c
Merge pull request #16676 from Upabjojr/add_support_for_onematrix
...
added OneMatrix for matrix expressions with only ones
2019-04-18 17:58:14 +02:00
Christopher Smith
1366e47dd9
Merge pull request #16679 from sylee957/strategies_code_quality
...
Strategies code quality
2019-04-18 08:42:55 -05:00
S.Y. Lee
4e7da77e78
Remove duplicate function
2019-04-18 20:22:18 +09:00
S.Y. Lee
fccb7dfdbd
Fix bad spacing
2019-04-18 20:09:59 +09:00
Divyanshu
bf1a804939
update-ref
2019-04-18 14:44:48 +05:30
Björn Dahlgren
56c6120c95
Updated durations.json
2019-04-18 10:47:53 +02:00
Francesco Bonazzi
369138fd36
added OneMatrix to test_args
2019-04-18 09:46:17 +02:00
S.Y. Lee
52e55048ee
Fix section
2019-04-18 16:29:49 +09:00
S.Y. Lee
e119e43a27
Reset the context
2019-04-18 16:25:43 +09:00
Chris Smith
d41c98fa83
round result is always float in Py2
2019-04-17 20:49:37 -05:00
Chris Smith
e5d16827e7
round changes
...
- don't recast arg to float
- Integer in Integer out
- single arg call (n=None) gives Integer out
2019-04-17 20:49:32 -05:00
Francesco Bonazzi
e5469cea08
added OneMatrix for matrix expressions with only ones
2019-04-18 00:33:39 +02:00
Francesco Bonazzi
6da0ab837c
Merge pull request #16673 from Upabjojr/hadamard_product_derivative
...
added support for derivatives of Hadamard products and powers
2019-04-18 00:12:39 +02:00
Francesco Bonazzi
25f2d3a192
Merge pull request #16474 from sylee957/add_hadamard_product_print
...
[WIP] Add hadamard power latex printing
2019-04-18 00:12:00 +02:00
Francesco Bonazzi
fb2815c59e
added printers for elementwise function application
2019-04-18 00:08:54 +02:00
Christopher Smith
256bfb7307
Merge pull request #16668 from smichr/16628
...
speed up Line/Segment intersections
2019-04-17 17:08:23 -05:00
Jason K. Moore
fc378aa6a4
Merge pull request #16636 from ishanaj/plot_loading
...
plot_loading_results() now uses sympy's PlotGrid to obtain subplots
2019-04-17 15:01:41 -07:00
Francesco Bonazzi
161a574f70
fixing printer precedence with traditional printer
2019-04-17 22:55:44 +02:00
Francesco Bonazzi
006ca20722
fix Python 2.7 compatibility
2019-04-17 22:07:29 +02:00
Francesco Bonazzi
6a26ff336a
merge master
2019-04-17 19:46:22 +02:00
Francesco Bonazzi
f6e32405e4
Merge pull request #16659 from Upabjojr/matrix_power_11_derivative
...
calculate derivative of trivial matrix power
2019-04-17 19:42:09 +02:00
Francesco Bonazzi
874b6ee2b1
added support for derivatives of Hadamard products and powers
2019-04-17 19:41:21 +02:00
Shivani Kohli
25a698fd87
Importing differently to fix python 2 error
2019-04-17 12:13:15 -05:00
Supreet Agrawal
7047a60831
Update crv_types.py
2019-04-17 21:51:57 +05:30
Supreet Agrawal
d6227a8fc3
Update __init__.py
2019-04-17 21:27:10 +05:30
Supreet Agrawal
a2ab2f04d3
Merge branch 'master' into impl_quantile
2019-04-17 21:19:35 +05:30
stm
75bb894f35
Completed quantile implementation for all distributions
...
Discrete distributions need help though
2019-04-17 21:08:43 +05:30
Chris Smith
d69257131e
don't use oo with equals in vert test
2019-04-17 09:18:02 -05:00
Divyanshu
c47ba9d5fc
update
2019-04-17 19:16:08 +05:30
stm
f833ef2b72
Added quantile for continuous cases.
...
Test cases and docs still needed to be corrected.
Further work - Adding quantile for finite and discrete cases
2019-04-17 17:17:40 +05:30
Divyanshu
0fe754fd30
added-method-to-calculate-abelian-invariants
2019-04-17 16:36:29 +05:30
ShubhamKJha
b181fa0625
Added comments for future changes in assumptions
2019-04-17 14:25:57 +05:30
Shubham Kumar Jha
73512d21e7
Merge branch 'master' into new_fix_assumptions
2019-04-17 14:00:44 +05:30
Chris Smith
19594b0606
speed up Line/Segment intersections
2019-04-17 00:19:22 -05:00
Christopher Smith
96925f549e
Merge pull request #16519 from sylee957/fix_assocop_flatten
...
AssocOp.flatten reverses the operands
2019-04-16 16:39:19 -05:00
Ishan Joshi
0b10a66bc9
used latex rendered symbols in beam plots
2019-04-17 01:41:19 +05:30
Nikhil Maan and Upabjojr
fde3a1bed8
Update sympy/matrices/expressions/tests/test_derivatives.py
...
Co-Authored-By: Upabjojr <franz.bonazzi@gmail.com >
2019-04-16 21:52:58 +02:00
Christopher Smith
63a4da93de
Update test_operations.py
2019-04-16 14:39:33 -05:00
Francesco Bonazzi
9098ca0494
some more tests
2019-04-16 18:07:21 +02:00
Christopher Smith
4acbc6d397
Merge pull request #16654 from bjodah/pow_optim-fix-15335
...
codgen: Handle neg. exp. in create_expand_pow_optimization
2019-04-16 09:35:48 -05:00
Björn Dahlgren
ef2e1d50b9
create_expand_pow_optimization: fix docstring & another test
2019-04-16 15:12:01 +02:00
Björn Dahlgren
0e510cf84a
Merge pull request #16 from smichr/cc
...
use UnevaluatedExpr in ccode optimization
2019-04-16 12:32:50 +02:00
S.Y. Lee
3edb8a9d1d
Faster implementation
2019-04-16 15:16:42 +09:00
Chris Smith
7b1e1edaa7
use UnevaluatedExpr in ccode optimization
...
It is also important to use Integer rather than integer
since var('x', integer=True).is_integer is True...but
the routine is not meant to handle symbolic integers.
2019-04-15 21:46:37 -05:00
Francesco Bonazzi
7acee04049
calculate derivative of trivial matrix power
2019-04-16 00:05:55 +02:00
Christopher Smith
88f7236a41
Merge pull request #16657 from czgdp1807/min_max_deg
...
[BUG] max replaced with sum in itermonomials
2019-04-15 12:12:08 -05:00
Shivani Kohli
47bef27db4
Changes made to variable name to prevent build failures
2019-04-15 11:48:32 -05:00
czgdp1807
bf77d77bca
max replaced with sum in itermonomials
...
max has been replaced with sum in itermonomials
to correct the calculation of the degree of monomials.
A bug has also been removed by this replacement.
Associated tests have also been added.
2019-04-15 20:10:26 +05:30
Christopher Smith
9ca911c0c2
Merge pull request #16653 from smichr/3d
...
work with 3D linear entities
2019-04-15 09:32:51 -05:00
Björn Dahlgren
a023e2b09d
codgen: Handle neg. exp. in create_expand_pow_optimization
...
Partially fixes gh-15335
2019-04-15 09:16:13 +02:00
Chris Smith
24313187d6
work with 3D linear entities
2019-04-14 22:24:48 -05:00
Parker Berry
410a286059
Remove unnecessary comments
2019-04-14 19:17:12 -05:00
Parker Berry
7d3e6e7516
SymPy numbers now inherit from Python numbers ABCs
2019-04-14 18:14:09 -05:00
Francesco Bonazzi
54b108d354
Merge pull request #16647 from Upabjojr/sum_dummy_symbols
...
indexed matrix expressions will now have different dummies in summations
2019-04-15 00:51:16 +02:00
Francesco Bonazzi
df9965b123
Merge pull request #16630 from Upabjojr/matrix_derivatives_applyfunc3
...
Use sympy.codegen.array_utils for derivatives of matrix expressions
2019-04-15 00:50:41 +02:00
Francesco Bonazzi
a1c30a04c9
Merge pull request #16650 from sympy/revert-15685-SiUnit
...
Revert "changing scale_factor of kg to One"
2019-04-15 00:47:56 +02:00
Francesco Bonazzi
78a1ba50e0
Revert "changing scale_factor of kg to One"
2019-04-14 22:33:23 +02:00
Francesco Bonazzi
dd726674b5
indexed matrix expressions will now have different dummies in summations
2019-04-14 20:19:54 +02:00
Francesco Bonazzi
22d0c20636
code clean up and fixing tests
2019-04-14 18:36:15 +02:00
S.Y. Lee
d15c175897
Merge pull request #16475 from sylee957/fix_tree_print
...
Add tests for print_tree
2019-04-14 19:33:25 +09:00
Ishan Joshi
280a2ec470
corrected failing test, removed conversion of the equations to
...
piecewise, removed unnecessary imports
2019-04-14 14:18:25 +05:30
S.Y. Lee
e99695df41
Apply recent changes in assumptions
2019-04-14 16:29:03 +09:00
S.Y. Lee
77b26d174e
Modify tests
2019-04-14 16:06:24 +09:00
S.Y. Lee
bb7efac759
Add tests for tree print
2019-04-14 16:06:24 +09:00
Christopher Smith
4e4cfa3638
Merge pull request #16637 from sidhantnagpal/geom-plane
...
Improve intersection and distance methods for Plane
2019-04-13 09:21:37 -05:00
Christopher Smith
37ddd321bb
Merge pull request #16632 from sylee957/fix_sympy_parser
...
Fix sympy parser for numeric strings
2019-04-13 08:36:09 -05:00
Sidhant Nagpal
ac73ff8e23
Add additional tests for orientation of points on segment
2019-04-13 15:07:09 +05:30
Kalevi Suominen
df58361055
Merge pull request #15693 from czgdp1807/entropy
...
Added entropy to stats module
2019-04-13 12:16:08 +03:00
Sidhant Nagpal
2f1116f41a
Fix existing test and add new tests for Plane.distance
2019-04-13 14:45:04 +05:30
Sidhant Nagpal
1d275ee1bb
Add missing assert in test_plane.py
2019-04-13 14:43:51 +05:30
Sidhant Nagpal
3a2a6f93e0
Add special case handling of Segment & Ray in Plane.distance
2019-04-13 14:41:20 +05:30
Sidhant Nagpal
037a07dc15
Simplify the logic of plane intersection and distance
2019-04-13 14:40:13 +05:30
czgdp1807
b31816543f
Correct the containment check for intersection of plane with linear entity
2019-04-13 14:33:35 +05:30
Ishan Joshi
798beb3bfd
plot_loading_results() now uses sympy's PlotGrid to obtain subplots
2019-04-13 13:17:47 +05:30
S.Y. Lee
07f448fb4f
More pep-8
2019-04-13 15:14:33 +09:00
S.Y. Lee
d4539320de
Delete unused variable and change indent
2019-04-13 14:42:18 +09:00
S.Y. Lee
9f99e62fcd
Merge pull request #1 from smichr/pars
...
multi-digit parsing
2019-04-13 14:06:37 +09:00
Chris Smith
4839dbe267
check parser input
2019-04-12 21:51:53 -05:00
Chris Smith
bc35d64f8c
recognize multidigits in split_symbols
2019-04-12 21:48:59 -05:00
S.Y. Lee
73722af744
Increase coverage
2019-04-12 22:37:23 +09:00
Gagandeep Singh
ce8775eba9
Merge branch 'master' into stats_simple
2019-04-12 18:44:25 +05:30
S.Y. Lee
3a16a89652
Rearrange spacings
2019-04-12 18:52:48 +09:00
S.Y. Lee
1830662419
Add test
2019-04-12 18:09:49 +09:00
Oscar Gustafsson
637942a4e8
Fixed LaTeX and pretty printing of UniversalSet
2019-04-12 11:05:15 +02:00
S.Y. Lee
f8c2447e11
Numeric string should be number
2019-04-12 18:05:02 +09:00
Francesco Bonazzi
0a714512f8
Use sympy.codegen.array_utils for derivatives of matrix expressions
2019-04-11 23:47:04 +02:00
Christopher Smith
09427d7541
Merge pull request #16596 from jksuom/inexact-poly-div
...
polys: Remove leading term created by rounding error in long division
2019-04-11 13:40:02 -05:00
czgdp1807
0f332d1645
removed string comparison
2019-04-11 17:57:46 +05:30
czgdp1807
689b13a93d
removed unused simplify
2019-04-11 17:53:37 +05:30
czgdp1807
40bab38dc5
removed unused simplify
2019-04-11 17:53:21 +05:30
Kalevi Suominen
fd007c2b58
Merge pull request #16597 from oscarbenjamin/rat_finite
...
Assumptions: make rational imply finite
2019-04-11 14:56:00 +03:00
Christopher Smith
c811f6bc1f
Merge pull request #16626 from smichr/diagonal
...
fix diagonal referencing
2019-04-11 06:05:14 -05:00
Kalevi Suominen
630a1a33df
Merge pull request #16527 from AnimeshSinha1309/issue/collectconst-16296
...
Breaking up the Rational Factors
2019-04-11 13:13:36 +03:00
RituRajSingh878
221e783924
change 1/3 to S(1)/3 as python 2.7 shows error
2019-04-11 15:30:21 +05:30
Ritu Raj Singh
1ad4f6c4e1
Merge branch 'master' into bessel_airy
2019-04-11 14:01:31 +05:30
Francesco Bonazzi
654d903c10
Merge pull request #16473 from supreet11agrawal/16239_maxima
...
Calculus: Added functions to evaluate stationary points and maximum/minimum
2019-04-11 08:35:28 +02:00
Animesh Sinha
f528c57c6a
Removed redundant import
...
Importing sympy.core.numbers.Half is no longer necessary.
2019-04-11 10:06:16 +05:30
Chris Smith
6d6328d8c7
fix diagonal referencing
2019-04-10 22:34:42 -05:00
Oscar Benjamin
d4f9fbac3b
Update ask_generated: transcendental and algebraic imply finite
2019-04-11 01:31:09 +01:00
Oscar Benjamin
dc16c568c6
Make algebraic and transcendental imply finite
2019-04-11 01:31:09 +01:00
Oscar Benjamin
f810583973
Add irrational -> finite to ask_generated
2019-04-11 01:31:09 +01:00
Oscar Benjamin
16bd65cf0d
Make irrational imply finite in assumptions
2019-04-11 01:31:09 +01:00
Oscar Benjamin
6e8f314003
Add rational -> finite to ask_generated
2019-04-11 01:31:09 +01:00
Oscar Benjamin
c8ad36913b
Improve quick check in Pow._eval_is_rational
2019-04-11 01:31:09 +01:00
Oscar Benjamin
1b646a0f83
Don't evaluate integer power if possible
2019-04-11 01:31:09 +01:00
Oscar Benjamin
cfc25a38b3
Fix check for is_integer or is infinity
2019-04-11 01:31:09 +01:00
Oscar Benjamin
84024842bb
Fix doctest for is_rational -> is_finite
2019-04-11 01:31:09 +01:00
Oscar Benjamin
e6dfa01cc6
Update tests for is_rational -> is_finite
2019-04-11 01:31:09 +01:00
Oscar Benjamin
e23ce6254b
Make is_rational -> is_finite
2019-04-11 01:31:09 +01:00
Aaron Meurer
6fd65310fa
Merge pull request #16625 from asmeurer/travis-fix
...
Fix the tests not running on Travis
2019-04-10 18:22:11 -06:00
Christopher Smith
ef94e55883
Merge pull request #16452 from smichr/band
...
banded matrix construction
2019-04-10 18:35:29 -05:00
Francesco Bonazzi
c2057cfead
Merge pull request #16586 from Upabjojr/array_utils_additions
...
some additions to array_utils and assumptions
2019-04-11 01:18:12 +02:00
Aaron Meurer
0afa9cf54e
Fix the tests not running on Travis
...
Fixes #16624 .
2019-04-10 17:13:12 -06:00
Christopher Smith
3f8522da42
Merge branch 'master' into isimp
2019-04-10 13:28:20 -05:00
czgdp1807
ead1c78bff
removed a minor bug
2019-04-10 16:17:09 +05:30
czgdp1807
2deacbdbe9
Added more tests, provision for base
2019-04-10 16:13:18 +05:30
Oscar Gustafsson
b750e609ab
Merge pull request #16503 from anpandey/sum_alignment
...
Adjust alignment of the Sum pretty printer
2019-04-10 12:21:23 +02:00
Aaron Meurer
bf55a1fe30
Merge pull request #16388 from sympy/1.4
...
1.4 release branch
2019-04-10 00:20:52 -05:00
Aaron Meurer
26632462ee
Merge branch 'master' into 1.4
2019-04-09 22:20:39 -06:00
Aaron Meurer
52eea70a0f
Bump the version to 1.4 (final)
2019-04-09 18:29:25 -06:00
Christopher Smith
a53b98b845
Merge pull request #16462 from smichr/irreg
...
irregular block detection and handling
2019-04-09 17:02:13 -04:00
Christopher Smith
90d4888cbe
Merge pull request #16614 from smichr/conf
...
deleted unused param "session" from process_split
2019-04-09 15:54:32 -04:00
Chris Smith
5ae62ff67e
banded to sparsetools; import with *
2019-04-09 13:28:13 -05:00
RituRajSingh878
6d0d09f1ca
edited test case
2019-04-09 23:30:33 +05:30
Sidhant Nagpal
833ce6618a
Merge pull request #16601 from jsbarbosa/master
...
Vertex and p_parameter for Parabolas declared symbolically
2019-04-09 22:36:58 +05:30
czgdp1807
f7455b0ced
resolved test failures
2019-04-09 21:44:56 +05:30
Chris Smith
a2b5ec7bb7
pep8
2019-04-09 10:43:30 -05:00
Chris Smith
8d4e9f0b78
improve rows/cols handling when None
2019-04-09 10:41:29 -05:00
Juan Barbosa
e085d64831
included comments and imported sign
2019-04-09 09:47:40 -05:00
Sidhant Nagpal and jsbarbosa
8decaad74b
Update sympy/geometry/tests/test_parabola.py
...
Co-Authored-By: jsbarbosa <js.barbosa10@uniandes.edu.co >
2019-04-09 09:43:45 -05:00
Prionti Nasir
0489dc5817
deleted unused param "session" from process_split
2019-04-09 09:32:21 -05:00
czgdp1807
b6a521e5be
resolved baseline failures
2019-04-09 18:52:18 +05:30
czgdp1807
e738dbd6e0
resolved baseline failures
2019-04-09 18:47:38 +05:30
czgdp1807
4b879b5928
resolved baseline failures
2019-04-09 18:43:54 +05:30
Christopher Smith
136766ae46
Merge pull request #16610 from Qommon/feature-factortools
...
tiny modification for document of factortools.py
2019-04-09 08:43:35 -04:00
stm
015a18c58b
In quantile, added cases for p=1
2019-04-09 17:41:05 +05:30
stm
875159cf8c
Changed error message strings for boundary conditions.
2019-04-09 13:44:37 +05:30
RituRajSingh878
a895891b7f
modify test case
2019-04-09 13:03:19 +05:30
shekharrajak
0fd89d0c70
removed trailing space
2019-04-09 12:17:12 +05:30
stm
7517600f10
Added boundary conditions
2019-04-09 11:25:15 +05:30
Christopher Smith
b97cbe99e5
Merge pull request #16605 from Sc0rpi0n101/error-sympy
...
Performance fix for polygon.py
2019-04-09 00:20:53 -04:00
Christopher Smith
da7fcbc9bd
Update test_polygon.py
2019-04-08 20:14:06 -05:00
Chris Smith
e19dedcf3b
review edits
2019-04-08 20:00:49 -05:00
sqs
7049625c2c
tiny modification of doc, including mistakes and typos
2019-04-09 06:57:21 +08:00
Charalampos Tsiagkalis
c56e1af1b7
Fixed more trailing whitespace.
2019-04-09 00:21:40 +03:00
Christopher Smith
714a378c78
Merge pull request #16600 from Sc0rpi0n101/ccode-issue
...
removed duplicate entries in ccode
2019-04-08 17:15:31 -04:00
Christopher Smith
96fab933bd
Merge pull request #16459 from abhinav28071999/partition
...
Partition
2019-04-08 17:15:15 -04:00
Christopher Smith
828645ba40
Update test_polygon.py
2019-04-08 16:12:38 -05:00
RituRajSingh878
2a28a05ca5
added edited test and modify bessel method
2019-04-09 02:07:55 +05:30
Juan Barbosa
3d5dc382db
include test and parentesis
2019-04-08 14:46:05 -05:00
Nikhil Maan
0596f4a6e9
Performane fix for polygon.py
...
* Using lines that contain the side of triangle insted of the sides to
compute bisectors
* Added a few tests to cover all the triangles in the testing module
2019-04-09 00:41:02 +05:30
Charalampos Tsiagkalis
6e7151c6ad
Updatet itermonomials so that it always returns a generator object.
2019-04-08 21:00:14 +03:00
Christopher Smith
07c359ce01
move docstring comment to inlines
2019-04-08 10:57:42 -05:00
Nikhil Maan
69e5d23c1e
removed duplicate entries in ccode
...
* Fixes #16598
2019-04-08 20:26:21 +05:30
Kalevi Suominen
c031a4d4cf
Remove leading term created by rounding error
...
In a long division step of polynomials, the leading coefficient a
of the dividend f is divided by the leading coefficient b of the
divisor g and the remainder r = f - (a/b)*x**d*g is constructed.
This will cancel the leading term of f if a - (a/b)*b is zero.
However, in an inexact domain like RR there may remain a small nonzero
residue. This patch will replace it by zero.
Define is_Exact and get_exact for FractionField.
If the coefficients of a composite domain are not exact, the domain
should not be considered exact. The definitions should probably be
added to PolynomialRing as well.
Add check for composite inexact domains in `roots`. The algorithm was
coded assuming that only numeric domains would be inexact.
Add tests for issues 2884, 7864 and 11542.
2019-04-08 15:18:17 +03:00
Animesh Sinha
075f29fd50
Improving one test
...
Not evaulating Mul allows testing the collect_const function with Rational Factors.
2019-04-08 13:52:38 +05:30
ShubhamKJha
83c158a9bb
Added tests for the issue
2019-04-08 13:37:40 +05:30
ShubhamKJha
4db73de0ba
Update code in assumptions.py
2019-04-08 08:31:26 +05:30
Christopher Smith
16988ce703
remove memoization so _nT can use partition cache
...
Given
nT(n, k) = Sum(nT(n-k,i), (i, 1, k))
When 2*k >= n - k then the cache will contain all the information needed
to calculate nT(n, k), e.g.
For example:
The cache for n=7 would be 1, 1, 2, 3, 5, 7, 11, 15,
representing partitions of 0 through 7. To compute nT(11, 4)
one could calculate nT(7, 1) + nT(7, 2) + nT(7, 3) + nT(7, 4)
but this is just partition(7) - (nT(7, 5) + nT(7, 6) + nT(7, 7))
and nT(7, 5) = nT(2, 5) = nT(2, 2) = partition(2); similarly,
nT(7, 6) = partition(1) and nT(7, 7) = partition(0).
Those partition values are already in the cache so the cache for n=7
contains what is needed to compute nT(11, 4).
2019-04-07 20:18:04 -05:00
Abhinav Anand
18925eaada
Changes _nT function
2019-04-07 19:54:38 -05:00
Christopher Smith
d474418cf4
Merge pull request #16567 from FrackeR011/16562
...
core.relational.py: Eq without rhs now raises ValueError
2019-04-07 19:40:27 -04:00
Faisal Riyaz
9b66636def
replaced raise with warns_deprecated_sympy
2019-04-08 00:37:22 +05:30
Francesco Bonazzi
5051d224f0
make code Python 2.7 compliant
2019-04-07 20:47:19 +02:00
Animesh Sinha
e4c105749e
Added a couple of tests
...
Testing factors directly and checking that collect_const can collect rationals.
2019-04-07 22:37:35 +05:30
stm
31e0c8cc79
Added separate case for discrete distributions
...
However, this method is limited by Sympy's capability of solving inequalities
2019-04-07 21:50:24 +05:30
Faisal Riyaz
927b01e653
deprecated Eq(expr)
2019-04-07 21:14:35 +05:30
Francesco Bonazzi
1b7514db39
Merge pull request #16568 from czgdp1807/new_patch_5
...
Reduced repeated code in sympy.stats.symbolic_probability
2019-04-07 17:30:33 +02:00
shekharrajak
2cb196b433
testcases added for #16547 in test_rubi_integrate
2019-04-07 20:57:58 +05:30
shekharrajak
9a013937e8
removed the skip from test_rubi_integrate
2019-04-07 20:53:40 +05:30
Francesco Bonazzi
78126d6954
remove old code
2019-04-07 17:10:15 +02:00
Francesco Bonazzi
27dd756956
some additions to array_utils and assumptions
2019-04-07 16:59:14 +02:00
Jason K. Moore
a46b3b305f
Merge pull request #16276 from ishanaj/subplot
...
added functionality to obtain subplots from already created plots.
2019-04-07 07:30:02 -07:00
RituRajSingh878
a2d10f1ef5
edited
2019-04-07 19:58:40 +05:30
Christopher Smith
dda9bb62b2
Merge pull request #16578 from cbm755/fix16577
...
linear_eq_to_matrix: fix for non-expanded terms
2019-04-07 09:06:44 -04:00
Christopher Smith
9ef01a2889
Merge pull request #16574 from czgdp1807/multivar_limit_bug
...
Caught and fixed a potential bug in sympy.stats.joint_rv
2019-04-07 07:24:30 -04:00
Christopher Smith
4dd26b05c7
Merge pull request #16483 from sylee957/add_hadamard_product_mathml
...
Add hadamard product printing for mathml
2019-04-07 07:20:34 -04:00
RituRajSingh878
dffdb97707
edited bessel method
2019-04-07 15:23:22 +05:30
czgdp1807
a9a429e06c
Added tests in test_args
2019-04-07 12:36:10 +05:30
Animesh Sinha
a26a92dd18
Not breaking up Integers
...
All tests working now. Changed condition to Rational and Not integer when breaking up numberator and denominator.
2019-04-07 10:22:58 +05:30
Juan Barbosa
7187dbefb6
fixes issue #14461
2019-04-06 20:23:12 -05:00
RituRajSingh878
366a5a794c
resolve commits
2019-04-07 03:14:35 +05:30
Akshay Nagar
267e673423
Changing the Bessel's function to check for change of parameters
...
Specifically changing parameter a4*x to x and then after solving substituting it back
>>>eq = t**2*(f(t).diff(t, 2)) + t*(f(t).diff(t)) + 25*t**2*f(t)
>>>C0, C1, C2 = get_numbered_constants(eq, num=3)
>>>print(dsolve(eq))
Eq(f(5*t), C1*besselj(0, 5*t) + C2*bessely(0, 5*t))
>>>eq = t**2*(f(t).diff(t, 2)) + t*(f(t).diff(t)) + (25*t**2-36)*f(t)
>>>print(dsolve(eq))
Eq(f(5*t), C1*besselj(6, 5*t) + C2*bessely(6, 5*t))
2019-04-07 03:10:25 +05:30
Akshay Nagar
0f5ee09a78
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
Tests and docstrings have been added and revised ( keeping in consideration the different ways integers and non integer n's are treated in Bessel's equation )
Also support for n=0 has been added
2019-04-07 03:10:25 +05:30
Akshay Nagar
bf95bec463
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
Tests and docstrings have been added.
Also the function has been renamed to 2nd_linear_bessel
2019-04-07 03:10:25 +05:30
Akshay Nagar
16f68d220d
Implementation of Airy's equation and Bessel's equation
...
Fixes #9819
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
Also test cases and docstrings have been added.
2019-04-07 03:10:25 +05:30
Akshay Nagar
a3ca91641c
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
2019-04-07 03:10:25 +05:30
Akshay Nagar
8987b1c66b
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
2019-04-07 03:10:25 +05:30
RituRajSingh878
cbfd11b4a3
resolve conflicts
2019-04-07 03:08:43 +05:30
Colin B. Macdonald
6d97d409f7
linear_eq_to_matrix: fix for non-expanded terms
...
Fixes #16577
2019-04-06 13:14:43 -07:00
czgdp1807
04b53bb333
made the tests more dynamic
2019-04-07 00:19:48 +05:30
Faisal Riyaz
3536ad2554
Added more tests
2019-04-07 00:18:27 +05:30
czgdp1807
46ac5623cc
added test for bug fix
2019-04-06 23:42:57 +05:30
czgdp1807
440daa14e8
removed some unwanted changes
2019-04-06 23:27:55 +05:30
czgdp1807
c001b47d93
Added documentation and tests for MultivariateBeta
2019-04-06 23:10:27 +05:30
stm
3b55e69639
Changed is_Symbol to isinstance(symbol, Symbol)
2019-04-06 23:10:22 +05:30
Faisal Riyaz
e75fe71e13
fix failed tests
2019-04-06 21:23:21 +05:30
czgdp1807
477cf46a35
Caught and fixed a potential bug in sympy.stats.joint_rv
...
There was a potential bug with marginal_distribution
in sympy.stats.joint_rv. The method wasn't working
for joint distributions of three or more variables
due to the invalid formats of limit passed to
integrate and summation methods.
Discussion for adding tests is needed.
2019-04-06 21:17:52 +05:30
czgdp1807
a73a478a43
Added MultivariateBetaDistribution
...
MultivariateBetaDistribution has been added
to sympy.stats.joint_rv_types. Tests and
Documentation will be added in the next commit.
2019-04-06 21:10:27 +05:30
Ishan Joshi
35573fb130
included documentation in the .rst file
2019-04-06 20:19:31 +05:30
Faisal Riyaz
f030147e6d
core.realtional.py: Eq without rhs now raises ValueError
...
Before this commit, rhs was assumed to be zero if it was not provided by user.
>> Eq(x)
Eq(x, 0)
Now ValueError is raised.
>> Eq(x)
ValueError("rhs must be provided")
fixed test failures in calculus and solvers module
2019-04-06 19:12:19 +05:30
Kalevi Suominen
d15b67d9a6
Merge pull request #16570 from mgeier/looseversion
...
importtools: Use LooseVersion instead of StrictVersion
2019-04-06 16:26:55 +03:00
Ishan Joshi
d1f973fa5b
made documentation to display plots and included PlotGrid in __init__.py
2019-04-06 16:39:08 +05:30
Matthias Geier
9350640cb7
importtools: Use LooseVersion instead of StrictVersion
...
Fixes #13383 , fixes #15642 .
2019-04-06 12:12:44 +02:00
czgdp1807
d51cebde55
Removed unwanted changes
2019-04-06 14:27:45 +05:30
S.Y. Lee
457c8ad3a1
Add more tests
2019-04-06 15:52:16 +09:00
S.Y. Lee
55dc1a213c
Add some testing
2019-04-06 15:42:06 +09:00
Kalevi Suominen
fa19fc79ed
Merge pull request #16522 from divyanshu132/is-cyclic
...
Added function to check if a group is Cyclic or not
2019-04-06 09:09:41 +03:00
S.Y. Lee
2b05d10d3b
Merge pull request #16564 from Sc0rpi0n101/Crypto_work
...
Fixed Documentation issues in crypto.py
2019-04-06 13:18:07 +09:00
Rajiv Ranjan Singh
562521552e
changed the doctstring
2019-04-06 08:24:00 +05:30
Divyanshu
46960c4785
update
2019-04-06 07:43:34 +05:30
S.Y. Lee
df50ee7fbc
Additional documentation fixes
2019-04-06 11:11:36 +09:00
Gleb Siroki
52bb21d674
Merge branch 'master' into optics-dev
2019-04-05 22:21:02 +01:00
Nikhil Maan
f1a731dbe3
Fixed Documentation issues in crypto.py
...
* Fixed no of back ticks used for #16516
2019-04-06 00:35:31 +05:30
Charalampos Tsiagkalis
d1bb9d7de6
Fixed trailing whitespace.
2019-04-05 21:42:56 +03:00
Rajiv Ranjan Singh
b4f978ecbd
spacings and line break in docstring
2019-04-05 22:19:32 +05:30
Rajiv Ranjan Singh
23ded533cf
imported sqrt function
2019-04-05 22:01:30 +05:30
Charalampos Tsiagkalis
1f7b291241
Updated itermonomials to compute only the necessary monomials and return a generator
2019-04-05 18:06:20 +03:00
Rajiv Ranjan Singh
91e994e8e7
added director circle feature with test cases
...
Co-authored-by: Ashwin Shenoy <Ashwin-Shenoy-NITK@users.noreply.github.com >
Co-authored-by: ackerman <vishal-vardhan@users.noreply.github.com >
2019-04-05 19:57:58 +05:30
shekharrajak
0ebbee0082
replaced exp to rubi_exp in rubi_powsimp method
2019-04-05 19:32:22 +05:30
czgdp1807
195a5bd470
removed unwanted code
2019-04-05 19:19:44 +05:30
Divyanshu
7783cf95a3
remove-lcm-import
2019-04-05 18:21:29 +05:30
czgdp1807
3a8571df1e
removed extra line
2019-04-05 17:58:48 +05:30
czgdp1807
66d1ed73f5
updated tests for python
2019-04-05 17:55:25 +05:30
czgdp1807
2b917d4f1f
updated docs example
2019-04-05 17:37:08 +05:30
S.Y. Lee and czgdp1807
58c6200a7e
Update sympy/stats/crv_types.py
...
Co-Authored-By: czgdp1807 <singh.23@iitj.ac.in >
2019-04-05 17:14:52 +05:30
Divyanshu
b003dcb361
remove-exponent
2019-04-05 16:04:17 +05:30
Ankit Pandey
aa401ef8f4
Update sum printing tests
2019-04-04 22:37:00 -05:00
Oscar Gustafsson
9f6d5af61f
Merge pull request #16513 from oscargus/pyglet-fixes
...
Pyglet fixes for 1.4
2019-04-04 22:49:16 +02:00
Francesco Bonazzi
31ed5dd943
Merge pull request #16549 from Upabjojr/recognize_diagonal_matrix_expr
...
DiagonalizeVector added to array_utils.py
2019-04-04 20:42:13 +02:00
stm
dc2f091240
isinstance to is_Symbol
2019-04-04 22:58:24 +05:30
stm
91410ce09d
Changed type to isinstance
2019-04-04 21:57:23 +05:30
Divyanshu
5359f19818
cache
2019-04-04 21:05:24 +05:30
stm
7486fb03a8
Changed emptyset and invalid input symbol conditions
2019-04-04 20:26:49 +05:30
Divyanshu
b65d987981
update
2019-04-04 18:40:01 +05:30
Divyanshu
aac0a69c8e
fp to perm
2019-04-04 09:12:53 +05:30
S.Y. Lee
46026ed07b
Merge pull request #16516 from znxftw/crypto-extend
...
Added ROT13 and Atbash to sympy.crypto
2019-04-04 11:09:52 +09:00
Oscar Benjamin
9b99271b95
Merge pull request #16385 from OrestisVaggelis/atan2_fix
...
Fixed issue #16327 (atan2 rewrite atan ignores sign)
2019-04-04 01:14:37 +01:00
Oscar Benjamin
79bd8bb866
Remove unnecessary imports
2019-04-03 23:25:27 +01:00
Jason K. Moore
de902733b6
Merge pull request #16457 from LilJohny/master
...
Added outputs for plots examples.
2019-04-03 14:28:40 -07:00
Oscar Benjamin
85602a3dd6
Merge pull request #16449 from ritesh99rakesh/16448
...
add cdf for maxwell and rayleigh distributions
2019-04-03 22:06:26 +01:00
Francesco Bonazzi
eb5ee1991b
bugfix
2019-04-03 22:52:08 +02:00
Oscar Benjamin
85cdef78e8
Merge pull request #16501 from oscargus/lgtmfixes6
...
Fixes from LGTM (and some code coverage)
2019-04-03 21:51:00 +01:00
Francesco Bonazzi
43ffb4f2d5
remove repeated method
2019-04-03 21:50:50 +02:00
Francesco Bonazzi
afe276c393
DiagonalizeVector added to array_utils.py
2019-04-03 21:44:16 +02:00
Francesco Bonazzi
45a6865350
Merge pull request #16544 from Upabjojr/matrix_derivative_rewrite
...
Matrix derivative - some refactory of the logic
2019-04-03 21:36:53 +02:00
Aaron Meurer
ce6176fa39
Merge pull request #16534 from cbm755/octave_gammainc
...
octave codegen: they have regularized incomplete gamma fcn
2019-04-03 12:48:00 -05:00
Oscar Benjamin
7e4048eea4
Merge pull request #16493 from kangzhiq/15277_make_indices_optional
...
Make 'indices' parameter in .replace_with_arrays optional
2019-04-03 17:48:11 +01:00
kkkkx
b130377c3c
Update examples in docstring
...
Remove most of 'indices' but the one that is used to transpose
2019-04-03 15:43:07 +02:00
shekharrajak
b3d192c753
rubi.utility_function exp is updated to rubi_exp in rubi.py file
2019-04-03 17:56:44 +05:30
Animesh Sinha
92d993bca3
Fixing the issues
...
Converting p, q to Sympy Integer and checking instance of Rational to fix the errors in tests.
2019-04-03 15:31:39 +05:30
czgdp1807
de9091d463
Added tests for min-max gumbel in test_args
2019-04-03 14:45:21 +05:30
znxftw
1422d39622
Fixed code quality
2019-04-03 12:36:30 +05:30
znxftw
235c03384f
Modified docstring spacing
2019-04-03 12:09:41 +05:30
stm
303461681e
Added quantile support for discrete distributions
2019-04-03 10:28:22 +05:30
Francesco Bonazzi
69233de18d
add test for ExprBuilder
2019-04-03 00:50:59 +02:00
Francesco Bonazzi
e22d5935e2
Merge branch 'master' into matrix_derivative_rewrite
2019-04-03 00:42:55 +02:00
Francesco Bonazzi
8674a1023c
remove tag for transposition in _LeftRightArgs
2019-04-03 00:42:22 +02:00
Francesco Bonazzi
7a25cc41db
extending support for applyfunc and matrix derivatives
2019-04-03 00:36:19 +02:00
Aaron Meurer
3f578bbd5a
I think the wheel package is needed to build wheels
2019-04-02 16:05:48 -06:00
Aaron Meurer
b954ecb417
Fix a syntax error in the release script
2019-04-02 15:58:12 -06:00
Aaron Meurer
da80b0cc88
Bump the version to 1.4rc2
2019-04-02 15:56:50 -06:00
Aaron Meurer
9b97740653
Add wheel support to the release script
...
This still needs to be tested, so there may be bugs with it.
2019-04-02 15:53:58 -06:00
Aaron Meurer
98607f7461
Fix the GitHub release text (the files are now below the text)
2019-04-02 15:50:51 -06:00
stm
b5f2537549
Imported erfinv
2019-04-03 01:17:18 +05:30
stm
7c8ccb67b1
Python2.7 tests
2019-04-03 00:44:27 +05:30
stm
89f12b8643
Added quantile function
2019-04-03 00:04:27 +05:30
Divyanshu
f990dec9b4
shift
2019-04-02 22:02:22 +05:30
czgdp1807
3dc054627c
resolved doc test failiures
2019-04-02 22:01:48 +05:30
czgdp1807
d625e42c72
removed bugs
2019-04-02 18:01:26 +05:30
czgdp1807
4fc72700b7
Added min and max for gumbel
2019-04-02 16:32:13 +05:30
Francesco Bonazzi
4063057bbe
Merge pull request #16472 from Upabjojr/fix_matchpy_register
...
Fix matchpy register
2019-04-02 09:32:06 +02:00
LilJohny
d76d71ea05
Removed plot formatting
2019-04-02 10:24:22 +03:00
Colin B. Macdonald
9123601872
octave codegen: they have regularized incomplete gamma fcn
...
Octave/Matlab implement the regularized incomplete gamma function
which normalizes the integral by dividing by `Gamma(a)`. So we need
to scale before generating code. This is messy because the re-writing
should happen before we actually get to printing `lowergamma`, but I
don't know how to do that (see FIXME note in `_print_GoldenRatio` for
another simpler example). Fixes #16533 .
2019-04-01 23:50:12 -07:00
czgdp1807
7938adf116
removed white space
2019-04-02 10:13:30 +05:30
Christopher Smith
af6dd060fe
Merge pull request #16456 from sylee957/merge_orthogonalize_gramschmidt
...
Merge duplicate functions orthogonalize and GramSchmidt
2019-04-01 22:13:27 -04:00
Divyanshu
c7152a9261
update
2019-04-02 07:13:18 +05:30
Aaron Meurer
c3b93bb215
Merge pull request #16356 from Upabjojr/fix_matchpy_register
...
Fix RUBI code to connect to latest MatchPy master
2019-04-01 15:59:40 -05:00
Divyanshu
f8294a7741
infinite-order-fpgroup
2019-04-02 00:11:36 +05:30
Aaron Meurer
16ce8677d3
Merge pull request #16514 from oscargus/unitprinting
...
Improved printing of units for 1.4
2019-04-01 12:45:42 -05:00
Aaron Meurer
13159afc34
Install matchpy on Travis using pip for now
2019-04-01 11:42:05 -06:00
Aaron Meurer
9bc7f8a829
Merge pull request #15121 from asmeurer/matexpr-cleanup
...
MatrixSymbol first arg is a Symbol (and other matrix expressions cleanup)
2019-04-01 12:10:57 -05:00
czgdp1807
6110b8465a
formatting
2019-04-01 22:10:31 +05:30
czgdp1807
9a9c4dc66c
formatting and imports
2019-04-01 22:08:26 +05:30
czgdp1807
d1dd0a8d92
formatting and missing imports
2019-04-01 22:02:35 +05:30
czgdp1807
0cbfca4a90
simplified code to calculate entropy
2019-04-01 21:20:29 +05:30
Sidhant Nagpal
5e4a199872
Merge pull request #16529 from czgdp1807/1.4
...
[1.4] Added CDF and corrected PDF for Gumbel Distribution
2019-04-01 20:21:10 +05:30
S.Y. Lee
960c17007a
Revert to old way
2019-04-01 23:07:53 +09:00
S.Y. Lee
7f32d24165
Revert precedence
2019-04-01 22:40:49 +09:00
S.Y. Lee
03b76ab39f
Remove wrong precedence, and improve doc for developers
2019-04-01 22:38:02 +09:00
Francesco Bonazzi
61dd0c8d5d
Merge pull request #16461 from supreet11agrawal/crv_docs
...
Stats: Changed the docs of crv_types.py
2019-04-01 15:17:13 +02:00
czgdp1807
e40eb80631
removed extra blank line
2019-04-01 18:33:07 +05:30
czgdp1807
f1b8d1d437
Added CDF and corrected PDF for Gumbel Distribution
...
The PDF of Gumbel distribution has been corrected.
The CDF has also been added. Associated tests have
also been added.
2019-04-01 18:19:22 +05:30
czgdp1807
39dc1d66fc
Added CDF and corrected PDF of Gumbel Distribution
...
The PDF of Gumbel distribution has been corrected.
The CDF has also been added. Associated tests have
also been added.
2019-04-01 17:49:23 +05:30
Animesh Sinha
4a0dafac26
Breaking up the Rational Factors
...
Fixes #16296 . Breaks down the numerator and denominator of Rational factors in a multiplicative expression, fixing the denominator collection issue that collect_const() was having.
2019-04-01 16:32:33 +05:30
kkkkx
ad45fc0a71
Merge branch '15277_make_indices_optional'
2019-03-31 22:18:26 +02:00
kkkkx
5674ea10f9
Change default value to None and add test associated
...
Set the default value to None to make sure the stability and add test for it
2019-03-31 22:15:07 +02:00
Divyanshu
ddb3d97af5
add-iscyclic-exponent
2019-03-31 23:16:42 +05:30
stm
b680c8b719
Wester name change
2019-03-31 22:34:14 +05:30
S.Y. Lee
fbdda145d1
Add additional tests
2019-04-01 00:53:50 +09:00
S.Y. Lee
32d8655df5
Use prepending
2019-04-01 00:51:10 +09:00
znxftw
c8eb8693f1
Fixed spacing issues
2019-03-31 21:19:42 +05:30
stm
568a6b78f9
Wester tests
2019-03-31 21:05:29 +05:30
S.Y. Lee
e170588ba2
Add test for assocop flatten
2019-04-01 00:28:16 +09:00
S.Y. Lee
98cb25315e
Fix reversing arguments
2019-04-01 00:22:20 +09:00
czgdp1807
47e37470c8
modified tests
2019-03-31 20:18:10 +05:30
czgdp1807
2a155b434e
modified tests
2019-03-31 20:16:22 +05:30
czgdp1807
da0e078c83
removed minor bugs
2019-03-31 19:39:57 +05:30
stm
0c280e9182
Changed function names
2019-03-31 19:35:27 +05:30
czgdp1807
90e34166c6
removed duplicate code
2019-03-31 19:30:36 +05:30
znxftw
9d53d2ffd4
Improve code quality
2019-03-31 19:27:05 +05:30
Oscar Gustafsson
82b5f216c2
Updated tests
2019-03-31 15:38:46 +02:00
znxftw
a680222852
Cleaned up docstrings
2019-03-31 19:05:07 +05:30
arooshiverma
1bd6476660
Removed unecessary lines
2019-03-31 19:00:48 +05:30
znxftw
d0b2a47bf6
Updated tests, init and documentation
2019-03-31 19:00:00 +05:30
znxftw
b33fa8e09f
Added atbash cipher to crypto.py
2019-03-31 18:49:02 +05:30
Oscar Gustafsson
3bccd40f2e
Merge branch '1.4' into unitprinting
2019-03-31 14:06:54 +02:00
Oscar Gustafsson
0e69459f24
Fixed merge conflicts
2019-03-31 13:57:08 +02:00
Oscar Gustafsson
4e20cfb9a4
Removed unused imports from template
2019-03-31 13:44:41 +02:00
Oscar Gustafsson
37c71351e3
Fixed failing test
2019-03-31 13:40:09 +02:00
OrestisVaggelis
1c9b127fde
Simplified Piecewise
2019-03-31 14:34:18 +03:00
Gleb Siroki
1f7ed36871
minor error handling and documentation
2019-03-31 12:27:00 +01:00
znxftw
036439b91d
Added functions encipher_rot13 decipher_rot13
2019-03-31 16:46:58 +05:30
Gleb Siroki
84ceb6f336
refraction_angle(), deviation() accept inc. angle
2019-03-31 12:00:15 +01:00
S.Y. Lee
85a77bbfe4
Add tests
2019-03-31 17:21:51 +09:00
S.Y. Lee
dd2da30213
Merge duplicate functions
2019-03-31 17:12:37 +09:00
Sidhant Nagpal
fb98dbb5a5
Merge pull request #16502 from znxftw/master
...
Updated documentation on stats.rst
2019-03-31 12:56:34 +05:30
znxftw
095d961524
Removed conflicting lines in stats.rst
2019-03-31 11:39:28 +05:30
LilJohny
67d7ced8d4
Dotests fix
2019-03-31 05:35:01 +03:00
LilJohny
2acd24c06d
Fromatted
2019-03-31 05:20:30 +03:00
LilJohny
9dbb557d03
Cleared
2019-03-31 05:16:37 +03:00
LilJohny
048ac980ab
Added plots exmples to documentation
2019-03-31 05:08:25 +03:00
Gleb Siroki
09cd053a1f
add angle_of_incidence support in refractive_angle()
2019-03-30 20:29:49 +00:00
Ankit Pandey
4ffdbe034b
Adjust alignment of the Sum pretty printer
2019-03-30 14:02:23 -05:00
stm
02b9bcacf0
Correcting tests on Py2.7
2019-03-30 23:06:01 +05:30
znxftw
850622a888
Updated stats.rst with drv, frv and crv types
2019-03-30 22:41:15 +05:30
znxftw
1baa4929f1
Added drv_types docstring
2019-03-30 22:39:01 +05:30
Oscar Gustafsson
83d284f1d3
Removed unused imports
2019-03-30 17:23:43 +01:00
Oscar Gustafsson
b571e34a3b
Fixed some LGTM issues and increased test coverage
2019-03-30 16:47:14 +01:00
stm
50d851a2dc
Added test cases
2019-03-30 21:06:07 +05:30
Christopher Smith
a7e6f093c9
Merge pull request #16492 from asmeurer/rm-34
...
Remove Python 3.4 support
2019-03-30 08:05:07 -05:00
Christopher Smith
e145344dc9
Merge pull request #16491 from oscargus/physicstests
...
Added some tests to physics to increase coverage
2019-03-30 05:53:28 -05:00
kkkkx
11bd63950b
Merge branch '15277_make_indices_optional'
2019-03-30 10:56:50 +01:00
kkkkx
2b889ab3a2
Improve the description of parameter
2019-03-30 10:55:59 +01:00
kkkkx
f3ffbf7b64
Revert "Fixed 'indices' parameter optional"
...
This reverts commit 82e5678158 .
2019-03-30 10:44:42 +01:00
znxftw
da1823b0e8
Added missing Continuous Types
2019-03-30 13:36:50 +05:30
S.Y. Lee
50c05f5d5c
Fixed printing of matrix power and transpose
2019-03-30 15:16:44 +09:00
S.Y. Lee
3a47c08534
Add some tests with MatPow
2019-03-30 13:39:41 +09:00
kkkkx
77bcb39127
Merge branch '15277_make_indices_optional'
2019-03-30 02:30:36 +01:00
kkkkx
789b0eb8e0
Revert "Fixed 'indices' parameter optional"
...
This reverts commit 20658480bb .
2019-03-30 02:16:57 +01:00
kkkkx
20658480bb
Fixed 'indices' parameter optional
...
Make 'indices' parameter optional in .replace_with_arrays
Add tests about this change
2019-03-30 02:14:42 +01:00
kkkkx
82e5678158
Fixed 'indices' parameter optional
...
Improve the description of parameter 'indices'
2019-03-30 02:07:05 +01:00
kkkkx
81c9571dcd
Fixed 'indices' parameter optional
...
Make 'indices' parameter optional in .replace_with_arrays
Add tests about this change
2019-03-30 01:53:31 +01:00
Aaron Meurer
25f3da904c
Remove Python 3.4 support
...
Python 3.4 has reached its [end of
life](https://devguide.python.org/#status-of-python-branches ), so by our
[Python version support
policy](https://github.com/sympy/sympy/wiki/Python-version-support-policy ) we
are no longer supporting it.
SymPy 1.4 will be the last version to support Python 3.4. Now that the 1.4
release branch has been made, we no longer need to support it on master.
It is unlikely this will buy us anything in the way of Python features, since
we still are supporting Python 2.7. However, it does mean fewer tests on
Travis.
2019-03-29 18:38:33 -06:00
Aaron Meurer
088ba68312
Use SHA 256 instead of MD5 in the release script
2019-03-29 15:47:10 -06:00
Aaron Meurer
c1b2e1ab4e
Add comments that MatAdd and MatMul probably shouldn't be subclassing from Add and Mul
...
There are some test failures right now if you remove them, at least in the
printers because they are using the Add and Mul printers, possibly other
places as well. For now we can leave it be but leave a comment that we might
want to remove them if they cause problems.
2019-03-29 15:43:16 -06:00
Aaron Meurer
49e52daf13
Make srepr work correctly on Add and Mul subclasses
...
Fixes #16430 .
2019-03-29 15:36:32 -06:00
Aaron Meurer
cc692d958b
Merge branch '1.4' into matexpr-cleanup
2019-03-29 14:35:35 -06:00
Oscar Gustafsson
7041933b9c
Added some tests to physics to increase coverage
2019-03-29 21:04:18 +01:00
Christopher Smith
24c62c84a0
Merge pull request #16487 from smichr/diag
...
add See Also entries to diag*
2019-03-29 13:28:24 -05:00
S.Y. Lee
0e42cd6071
Correct links
...
The links are supposed to work like this
2019-03-30 01:20:12 +09:00
Christopher Smith
b98aa6b7cf
Merge pull request #16463 from oscargus/lgtmfixes4
...
Code quality fixes
2019-03-29 10:49:27 -05:00
S.Y. Lee
bffc54f3e2
Fix parenthesis for negative integer power and adjoint
2019-03-29 23:07:23 +09:00
S.Y. Lee
8af4d834e0
Use PRECEDENCE_VALUES
2019-03-29 22:41:18 +09:00
Christopher Smith
ef6625724b
Update exprtools.py
2019-03-29 07:11:54 -05:00
Francesco Bonazzi
ef9eb13588
Merge pull request #16408 from Upabjojr/matrix_deriv_1.4
...
fixing matrix derivative bugs
2019-03-29 11:45:34 +01:00
Christopher Smith
83bb18c5e9
Merge pull request #16482 from hackerde/9608_partitions
...
Change return type of sort_key function
2019-03-29 05:43:25 -05:00
Francesco Bonazzi
d5ff06e7cd
Merge pull request #16442 from Upabjojr/matrix_applyfunc_derivative
...
added support for derivatives of ElementwiseApplyFunction
2019-03-29 11:42:44 +01:00
Chris Smith
65881eb897
add See Also entries to diag*
2019-03-29 05:21:43 -05:00
Chris Smith
fe7d153994
preserve iterable type in matrix
2019-03-29 05:10:26 -05:00
Oscar Gustafsson
1a1369a78b
Used or-style
2019-03-29 09:15:50 +01:00
Oscar Gustafsson
9c33ce6483
Imported CompileError directly from distutils.errors
2019-03-29 09:11:28 +01:00
czgdp1807
279deb1c8f
added check for dependency of random variables
2019-03-29 12:28:31 +05:30
S.Y. Lee
786d2ff30d
Add hadamard product
2019-03-29 13:05:53 +09:00
Anway De
ad19f6e9e6
Change return type of sort_key function
...
The return type for this function defined in `partitions.py` was list.
The error being raised was that the type list was not hashable.
But tuple is hashable, so according to the suggestions, I changed the return value into a tuple.
I wrote a test in `test_partitions.py` and it passed when I ran it with `bin/test`.
2019-03-28 22:51:25 -05:00
Chris Smith
4d076dcc39
edit iterable docstrings
2019-03-28 19:44:09 -05:00
Chris Smith
e05170e915
better tolerance for 0-dim and MatrixSymbol
2019-03-28 19:32:04 -05:00
Chris Smith
96d3535549
move irregular to Matrix; use evaluate keyword
...
The discrepancy between denesting matrices given in a column or
row is removed. This will lead to denesting of a row of matrices.
If flattening of matrices is not desired when calling Matrix,
send evaluate=False.
2019-03-28 19:32:04 -05:00
Chris Smith
9cdda6bccc
irregular block handling
2019-03-28 19:32:04 -05:00
Chris Smith
41694d06de
added banded for creation of banded matrices
2019-03-28 19:31:35 -05:00
Chris Smith
8e4c566382
remove unnecessary paretheses around keys to dict
...
{(1, 2): 3}[1,2] == {(1, 2): 3}[(1,2)]
One must be careful when popping, however, since then the
key must be given as a tuple or else the second value will
be returned when the first value is not found in the dictionary:
>>> {(1, 2): 3}[1,2]
3
>>> {(1, 2): 3}[(1,2)]
3
>>> {(1, 2): 3}.pop(1,2) # 1 is not in dict so 2 is returned
2
>>> {(1, 2): 3}.pop((1,2))
3
2019-03-28 19:31:35 -05:00
Chris Smith
627dfdb25c
use SparseMatrix for diag instantiation from lists
2019-03-28 19:31:35 -05:00
Chris Smith
acbadceb4e
spell any(i for i in x) as any(x)
2019-03-28 19:31:35 -05:00
Christopher Smith
4cdcbd914d
Merge pull request #16454 from smichr/block
...
Matrix __mod__ and diagonal defined
2019-03-28 19:22:24 -05:00
Oscar Gustafsson
010a585dde
Fixed review comments
2019-03-28 19:41:14 +01:00
arooshiverma
cd03dfdd19
Corrected code according to PEP8
2019-03-28 22:10:28 +05:30
Nabanita Dash
22ff47f20f
Update common.py
2019-03-28 19:57:33 +05:30
Nabanita Dash
4d975f3870
Update test_commonmatrix.py
2019-03-28 19:56:18 +05:30
Nabanita Dash
3031c732f0
Changed subs() in matrices for iterable objects
...
The zip object is iterable.subs method in common.py didn't have a case for iterable objects.
Still I have to change the subs method in core.basic. The isinstance doesn't track iterable objects which don't have _getitem_ module,zip not having one creates an error. So,Shall I change isinstance() check to iter() in subs module in core.basic.
Almost Fixes #10589
I have added tests for the same.
2019-03-28 19:31:39 +05:30
Francesco Bonazzi
a15fdf4c30
added file matchpy_connector.py
2019-03-28 14:32:23 +01:00
S.Y. Lee
443dc6b2d0
Add hadamard power latex print
2019-03-28 22:11:15 +09:00
Christopher Smith
fae4e936c5
test invalid diagonal references
2019-03-28 06:22:49 -05:00
stm
8908fe99cb
Calculus: Added functions to evaluate stationary points and max/min
...
In `calculus/util.py`
* Added `stationary_points()`: This function evaluates and returns all the
stationary points (where the slope of function is 0) of a function in the
given domain.
* Added `minimize()`: This function returns the minimum value of a function
in the given domain. If no domain is passed, then global minimum is returned.
* Added `minimize()`: This function returns the maximum value of a function
in the given domain. If no domain is passed, then global maximum is returned.
2019-03-28 16:35:05 +05:30
Francesco Bonazzi
a998198598
Merge branch 'master' into matrix_applyfunc_derivative
2019-03-28 09:10:52 +01:00
Francesco Bonazzi
d13eb25999
Merge pull request #16443 from Upabjojr/hadamard_power
...
Hadamard power added
2019-03-28 09:09:25 +01:00
Francesco Bonazzi
bb9d5edfa4
test_args fixes
2019-03-28 08:26:47 +01:00
arooshiverma
0e935705cb
Changed conditions in polar_moment() in Beam3D
2019-03-28 07:27:54 +05:30
Chris Smith
02b89542e5
diagonal modifications
2019-03-27 20:54:58 -05:00
Aaron Meurer
f92aa1dfd9
Merge branch '1.4' of github.com:sympy/sympy into 1.4
2019-03-27 18:44:08 -06:00
Aaron Meurer
21ebb77ad1
Fix tarball test in the release script
2019-03-27 18:43:53 -06:00
Aaron Meurer
899da44c47
The release tarball is a .tar.gz, not just .tar
2019-03-27 18:43:33 -06:00
Aaron Meurer
34f21e5393
Merge branch '1.4' of github.com:sympy/sympy into 1.4
2019-03-27 17:42:36 -06:00
Aaron Meurer
bdbe035229
Update git whitelist for the release scripts
2019-03-27 16:10:49 -06:00
Christopher Smith
92c18446ca
Merge pull request #16437 from shivanikohlii/Issue-13638
...
Fixes float misplace decimal issue
2019-03-27 16:02:00 -05:00
Oscar Gustafsson
2ffe8c9cdf
Removed unused imports
2019-03-27 21:13:29 +01:00
Oscar Gustafsson
179779feb5
Changed some duplicated loop variables
2019-03-27 20:43:00 +01:00
Oscar Gustafsson
a3df89fddf
Removed self-imports
2019-03-27 20:37:10 +01:00
Oscar Gustafsson
b4f732348f
Removed unused variables
2019-03-27 20:29:35 +01:00
Aaron Meurer
397c00aab1
Matplotlib is now required to build the docs
2019-03-27 13:18:01 -06:00
Oscar Gustafsson
fcaa5bee10
Removed unused imports and fixed typo
2019-03-27 20:11:52 +01:00
Oscar Gustafsson
df9e64118c
Fixed redundant checks and missing ,
2019-03-27 20:04:05 +01:00
Oscar Gustafsson
8a6ccaabc3
Fixed potential integer division issues
2019-03-27 20:03:30 +01:00
Oscar Gustafsson
152b086fa3
Fixed issues in ode.py
2019-03-27 19:49:01 +01:00
Oscar Gustafsson
69b6306e8e
Fixed issues with default values
2019-03-27 19:17:42 +01:00
Aaron Meurer
951b676250
Add a note about rebuilding the Docker container
2019-03-27 11:51:41 -06:00
Aaron Meurer
2106dd77de
Merge pull request #16455 from oscarbenjamin/fix_numpy_warning
...
Use ignore_warnings instead of warns for numpy
2019-03-27 11:46:55 -06:00
Oscar Benjamin
fb7ed3c7d4
Merge pull request #16450 from ShubhamKJha/posify_fix_2
...
Ensure that posify preserves unrelated assumptions such as finite, integer etc.
2019-03-27 17:27:33 +00:00
stm
4ea616255c
Stats: Changed the docs of crv_types.py
...
Restored the changes in docs which were made in an earlier PR.
2019-03-27 21:43:00 +05:30
OrestisVaggelis
330078fd59
Minor change in doctest.
2019-03-27 17:01:45 +02:00
OrestisVaggelis
33321f7a5b
Modified Doctest.
2019-03-27 16:44:50 +02:00
Christopher Smith
c73afe9d90
Update numbers.py
2019-03-27 09:23:34 -05:00
Kalevi Suominen
22ee177d6d
Merge pull request #16375 from divyanshu132/PerfectGroup
...
Added PerfectGroup Function
2019-03-27 16:07:45 +02:00
arooshiverma
2279e6e2e5
Removed the axis parameter from polar_moment() function
2019-03-27 13:28:59 +05:30
LilJohny
5c1756eeb3
Added more formatting
2019-03-27 09:40:01 +02:00
LilJohny
1a02e7e2e5
Added formatting
2019-03-27 09:35:05 +02:00
arooshiverma
a9a8e7f4d6
Corrected code. The code earlier was mistakenly written inside Beam() rather than Beam3D()
2019-03-27 09:40:58 +05:30
arooshiverma
d65ad3b7e0
Removed trailing whitespaces
2019-03-27 09:18:03 +05:30
arooshiverma
e63aa58569
Corrected docstrings
2019-03-27 09:10:30 +05:30
arooshiverma
b4061572fc
Corrected docstring
2019-03-27 09:00:43 +05:30
arooshiverma
3fbc75ec9f
Added docstring for polar_moment() in beam.py
2019-03-27 08:30:49 +05:30
Christopher Smith
b96b0e0319
Update test_numbers.py
2019-03-26 21:45:51 -05:00
Christopher Smith
a5bcaf7f72
Update numbers.py
2019-03-26 21:42:53 -05:00
Shivani Kohli
1ac8c4d36d
changes as suggested by smichr
2019-03-26 19:30:46 -05:00
LilJohny
d99a7fa011
Added plots to docs
2019-03-27 02:04:23 +02:00
Oscar Benjamin
0e2e3e936e
Use ignore_warnings instead of warns for numpy
2019-03-26 22:12:56 +00:00
Francesco Bonazzi
a77f8f36af
adding some tests
2019-03-26 23:02:06 +01:00
Ritesh Kumar
4a3c17ad10
Merge branch '16448' of https://github.com/ritesh99rakesh/sympy into 16448
2019-03-27 01:27:02 +05:30
Ritesh Kumar
b8ba330c6f
added cdf for Cauchy and Gompertz distributions
2019-03-27 01:25:43 +05:30
Ritesh Kumar
bc4c705007
added diff tests
2019-03-27 01:22:22 +05:30
Ritesh Kumar
f6fef844bb
add CDF for RayleighDistribution
2019-03-27 01:22:22 +05:30
Ritesh Kumar
83ab2f267f
add CDF for MaxwellDistribution
2019-03-27 01:22:22 +05:30
arooshiverma
8f2d6f4bfe
Added test in test_beam.py for Polar_moment() function of beam.py
2019-03-27 00:19:45 +05:30
Ritesh Kumar
7668393d51
added diff tests
2019-03-26 23:49:33 +05:30
Chris Smith
af95caf818
add note about finding gcd of matrix
2019-03-26 12:53:57 -05:00
Chris Smith
1b27148872
add __mod__ to matrix
2019-03-26 12:53:49 -05:00
Chris Smith
69446ea7c2
add diagonal to common
2019-03-26 12:53:45 -05:00
ShubhamKJha
778cc4c6c7
Possible fix for Posify
2019-03-26 23:19:53 +05:30
Ritesh Kumar
9f284d24d7
add CDF for RayleighDistribution
2019-03-26 23:06:06 +05:30
Kalevi Suominen
aefdd023dc
Merge pull request #16359 from Corwinpro/master
...
Fix Bspline _add_bsplines
2019-03-26 19:27:41 +02:00
Ritesh Kumar
0b2e9a7716
add CDF for MaxwellDistribution
2019-03-26 22:51:29 +05:30
Christopher Smith
b2abe2d6b5
Merge pull request #16341 from smichr/diag2
...
merge common.diag and dense.diag
2019-03-26 10:54:54 -05:00
Christopher Smith
f265f16cde
Merge pull request #16343 from smichr/sparse
...
SparseMatrix: accept values that are matrix-like
2019-03-26 10:48:19 -05:00
Jason K. Moore
c4d78d8256
Merge pull request #16440 from ritesh99rakesh/16318
...
added tests for particle and rigidbody in physics/mechanics
2019-03-26 08:01:03 -07:00
Corwinpro
a2efa19333
Update bsplines.py
...
Back compatibility with Python2 added: range() is not hashable in python2.7
2019-03-26 13:54:18 +00:00
Francesco Bonazzi
9b28099aef
remove extra return
2019-03-26 14:30:13 +01:00
Ritesh Kumar
475750f22a
removed assertion statment
2019-03-26 18:15:47 +05:30
Francesco Bonazzi
af6e260a0b
added str printer for HadamardPower
2019-03-26 12:31:51 +01:00
Corwinpro
129253f871
Update bsplines.py
...
Fixed list -> tuple in bspline basis set
2019-03-26 11:21:50 +00:00
Francesco Bonazzi
61a4c8bc69
fixing tests and restoring Transpose in core
2019-03-26 08:38:46 +01:00
Ritesh Kumar
b8b5c2eda7
typo error corrected
2019-03-26 09:28:41 +05:30
Christopher Smith
a2ad7110dd
Merge pull request #16402 from Naba7/mpf_evalf
...
Changed mpf(0) to None in evalf_sum
2019-03-25 21:52:17 -05:00
Aaron Meurer
358909ce47
Install gcc in the release Docker using apt
2019-03-25 19:52:32 -06:00
Christopher Smith
5a60b866f7
Update test_evalf.py
2019-03-25 17:33:47 -05:00
Corwinpro
3e1bd00515
Update bsplines.py
...
Fixed caching of list instead of tuple kv
2019-03-25 22:09:41 +00:00
Francesco Bonazzi
52df91f036
added HadamardPower to test_args
2019-03-25 23:02:32 +01:00
Francesco Bonazzi
7a9b51ca75
Hadamard power added
2019-03-25 22:58:20 +01:00
Christopher Smith
6780d0145b
Merge pull request #16429 from jmig5776/fix_logcombine
...
combine single unknown log with others
2019-03-25 16:39:14 -05:00
Christopher Smith
8a1c3dd12f
Update test_evalf.py
2019-03-25 16:25:45 -05:00
Christopher Smith
45ba6cb7b2
pep8 and condense into one test
2019-03-25 16:24:27 -05:00
Francesco Bonazzi
146fcf068f
added support for derivatives of ElementwiseApplyFunction
2019-03-25 22:02:58 +01:00
Aaron Meurer
56114ffb6a
Update AUTHORS and .mailmap
2019-03-25 14:28:18 -06:00
Shivani Kohli
592ed58b86
Added test for underscore workaround
2019-03-25 15:24:48 -05:00
Ritesh Kumar
c45f2c67bf
added tests for functions under physics/mechanics
2019-03-26 01:22:35 +05:30
Nabanita Dash
bd7cb98eba
Added 3 separate tests for #11151
2019-03-26 01:02:37 +05:30
Nabanita Dash
c0fd1f305c
Added tests to #11151
2019-03-26 00:50:00 +05:30
Ritesh Kumar
7174eec8b2
added tests for particle and rigidbody in physics/mechanics
2019-03-26 00:36:41 +05:30
Christopher Smith
e0bdcc0094
Update test_solvers.py
2019-03-25 13:47:31 -05:00
Nabanita Dash
86f8ed6d5d
Added tests for #11151
2019-03-25 23:49:15 +05:30
arooshiverma
dd81542b16
Function to calculate Polar moment of inertia of a 3D Beam
2019-03-25 23:24:17 +05:30
Christopher Smith
f499cbbc18
Merge pull request #16409 from wate123/issue16407
...
fixed incorrect literal_float regex
2019-03-25 12:13:49 -05:00
Shivani Kohli
a8f04817b1
underscore added
2019-03-25 12:09:45 -05:00
Christopher Smith
65661c6a0f
Update test_solvers.py
2019-03-25 11:26:43 -05:00
OrestisVaggelis
c9caab6923
Modified tests.
2019-03-25 17:52:53 +02:00
Divyanshu
753df940b6
update-test
2019-03-25 20:46:18 +05:30
Christopher Smith
78aa8777ac
omit exponential matching in _literal_float
...
The Float routine will emit an error if the number is not in the right format. The trailing part hasn't been working because of the eE not being written as [eE]. It has been sufficient to see that the number starts like a floating point number so that is not being changed.
To be more strict and only match an exact float -- including the exponential part -- the following tested diff could be applied:
diff --git a/sympy/core/numbers.py b/sympy/core/numbers.py
index b7c01bd..735dcc4 100644
--- a/sympy/core/numbers.py
+++ b/sympy/core/numbers.py
@@ -147,10 +147,10 @@ def _decimal_to_Rational_prec(dec):
return rv, prec
-def _literal_float(f):
+_refloat = regex.compile(r"[-+]?((\d*\.\d+)|(\d+\.?\d?))([eE][-+]?\d+)?")
+def _literal_float(f, d=False):
"""Return True if n can be interpreted as a floating point number."""
- pat = r"[-+]?((\d*\.\d+)|(\d+\.?))(eE[-+]?\d+)?"
- return bool(regex.match(pat, f))
+ return bool(_refloat.fullmatch(f))
# (a,b) -> gcd(a,b)
bad = []
good=[]
for p in cartes('+- ','1 ','. ','1 ','eE ','+- ','1 '):
n = ''.join(p).replace(' ','')
try:
ok=float(n)
good.append(n)
except: bad.append(n)
assert len(good) == 152
assert len(bad) == 280
from sympy.core.numbers import _refloat
assert all(_refloat.fullmatch(i) for i in good)
assert not any(_refloat.fullmatch(i) for i in bad)
2019-03-25 10:06:17 -05:00
Christopher Smith
53de0c05b8
Merge pull request #16399 from oscarbenjamin/dsolve_reducible
...
Finish nth_order_reducible
2019-03-25 09:55:47 -05:00
Christopher Smith
07b5088b1b
Update test_solvers.py
2019-03-25 09:42:18 -05:00
Kalevi Suominen
0202faa12d
Merge pull request #16312 from supreet11agrawal/f_distr_checks
...
Stats: Added check on the parameters of F Distribution
2019-03-25 14:18:16 +02:00
Kalevi Suominen
a4034cf474
Merge pull request #16413 from divyanshu132/reduce-is-solvable
...
Omit calculation of derived_series() if Order is odd
2019-03-25 12:41:07 +02:00
S.Y. Lee
d9440df9bd
Merge pull request #16386 from sylee957/delete_coding_utf8
...
Delete unnecessary coding=utf8
2019-03-25 15:51:48 +09:00
S.Y. Lee
06b63e4920
Delete coding utf8
2019-03-25 14:00:37 +09:00
Sidhant Nagpal
58224ed7c6
Merge pull request #16410 from oscarbenjamin/pytest_fixes
...
Fix warnings and warning handling code under pytest
2019-03-25 10:27:04 +05:30
Christopher Smith
444ace8006
Update test_solvers.py
2019-03-24 20:26:48 -05:00
OrestisVaggelis
4583a7a353
Updated tests.
2019-03-25 02:28:40 +02:00
OrestisVaggelis
a990532d08
Fixed mistake and updated tests.
2019-03-25 01:08:07 +02:00
jmig5776
7c6878a623
Fixed logcombine
2019-03-25 02:35:04 +05:30
Oscar Gustafsson
0ea5548bfe
Merge pull request #16368 from pragyanmehrotra/12634_expand_method_for_SeqFormula
...
Added expand() method for SeqFormula
2019-03-24 21:18:08 +01:00
Divyanshu
02d1c5b67b
add-sylow-test
2019-03-25 00:27:34 +05:30
Christopher Smith
8f27aaef65
Merge pull request #16414 from oscargus/piecewisefix
...
Fixed issue introduced in #15898
2019-03-24 13:33:46 -05:00
Divyanshu
f5014e2bf8
add-test
2019-03-24 23:35:20 +05:30
Oscar Gustafsson
da53557e41
Initial fix for LaTeX printing of units
2019-03-24 18:23:58 +01:00
Christopher Smith
80e3ce66d1
Merge pull request #16422 from kangzhiq/16323_latex_printing_issue
...
Fixed latex printing of BaseScalar
2019-03-24 12:20:42 -05:00
Christopher Smith
cfd3e7ea50
Update test_piecewise.py
2019-03-24 11:35:31 -05:00
Christopher Smith
1bcbb1113b
Update test_pretty.py
2019-03-24 11:12:26 -05:00
Christopher Smith
630e4d57dc
Update piecewise.py
2019-03-24 11:07:20 -05:00
Corwinpro
bd8b343078
Update bsplines.py
...
removed whitespace and added code formatting with black
2019-03-24 15:50:07 +00:00
Corwinpro
6e866ae795
Update bsplines.py
...
added memoization to bspline_basis (which is called recursively and should be reused)
2019-03-24 15:46:24 +00:00
kkkkx
b8b2057255
Change BaseScalar syntax
2019-03-24 15:55:20 +01:00
Christopher Smith
ca25778fc3
Update test_piecewise.py
2019-03-24 09:51:53 -05:00
Christopher Smith
0cceba955d
Update piecewise.py
2019-03-24 09:42:11 -05:00
Christopher Smith
5e34c1b137
UndefFunction -> AppliedUndef via _diff_wrt
...
If an object can act as a differentiation symbol then it is Symbol-like.
2019-03-24 09:40:57 -05:00
Ishan Joshi
35c0124f7c
corrected a small error and improved documentation
2019-03-24 18:52:16 +05:30
Christopher Smith
1e00aeafca
Update common.py
2019-03-24 07:57:02 -05:00
Divyanshu
4b3dcb8145
update
2019-03-24 18:15:07 +05:30
Corwinpro
b9b505a535
Update bsplines.py
...
Fixed doctest for incorrect analytical bspline expression
2019-03-24 12:19:32 +00:00
Oscar Benjamin
817d1805c3
Fix a few tests for running under pytest
2019-03-24 11:47:31 +00:00
Divyanshu
7ca723b502
update
2019-03-24 15:58:49 +05:30
Oscar Gustafsson
3000070b73
Fixed issue introduced in #15898
2019-03-24 11:27:37 +01:00
Divyanshu
3c17f486af
Omit calculation of derived_series if order is odd
2019-03-24 15:40:29 +05:30
czgdp1807
f5a67c4919
Added a missing import
2019-03-24 12:33:32 +05:30
Nabanita Dash
7ae995a067
Added tests which ae failing and giving exceptions
2019-03-24 07:42:06 +05:30
OrestisVaggelis
e21d2094dc
Added some Tests.
2019-03-24 03:36:34 +02:00
Nabanita Dash
cfe8579482
Added tests
2019-03-24 03:44:30 +05:30
wate123
3f5508c2a2
fixed literal_float regex
2019-03-23 16:32:17 -05:00
Francesco Bonazzi
0a09bf9e04
fixing matrix derivative bugs
2019-03-23 21:53:58 +01:00
Oscar Benjamin
def3771e11
Fix underline length in docs
2019-03-23 17:15:15 +00:00
Nabanita Dash
3e92f4f7be
Added tests for evalf_sum
2019-03-23 22:00:14 +05:30
Oscar Benjamin
49021bf32b
Fix type in test_nth_order_reducible
2019-03-23 12:33:25 +00:00
Oscar Benjamin
9a4bbac456
Fix doctest for ode_nth_order_reducible
2019-03-23 11:58:42 +00:00
Oscar Benjamin
6e545034c4
Finish nth_order_reducible
2019-03-23 11:03:00 +00:00
Pragyan Mehrotra
6bf8a3cb98
add trig = False test case
2019-03-23 15:53:20 +05:30
Divyanshu
8fb9e72a35
fix-check-homomorphism
2019-03-23 14:03:53 +05:30
Chris Smith
640b167c51
test collision
2019-03-22 19:27:20 -05:00
Chris Smith
da44c8e0d0
allow control of Matrix.diag from dense.diag
...
dense.diag is the public facing diag routine that
never got merged with common.diag (accessible through Matrix.diag)
and each routine has different semantics when it comes to
unpacking and treatment of arguments that are lists.
Matrix.diag unpacked singleton sequences and did not convert other
lists to matrices
dense.diag converted all sequences to matrices and hence did not
unpack args
The behavior of dense.diag -- the publicly facing routine imported
with 'from sympy import *' is unchanged.
The behavior of common.diag a.k.a Matrix.diag has been modified to
treat lists as matrices rather than to try place list-literals
into a matrix (which creates a non-functional matrix):
>>> Matrix.diag([1,2],[3])
Matrix([
[[1, 2], 0],
[ 0, [3]]])
The "wandering diagonal" behavior is retained so a
block-diagonal can be created from non-square matrices.
If the elements always start filling on the main diagonal,
blocks will end up overlapping. So the folling is correct:
>>> diag([1,2,3],4)
Matrix([
[1, 0],
[2, 0],
[3, 0],
[0, 4]])
This is not a block-diagonal since the "4" block overlaps
with the first column.
>>> diag([1,2,3],4)
Matrix([
[1, 0],
[2, 4],
[3, 0]])
2019-03-22 19:24:55 -05:00
Chris Smith
ed7ce27303
detect singleton lists with ints
2019-03-22 19:17:01 -05:00
OrestisVaggelis
0ad4153ae9
Deleted unnecessary files.
2019-03-23 01:04:44 +02:00
OrestisVaggelis
d07b56d239
Replaced Undefined with NaN
2019-03-23 00:59:21 +02:00
Nabanita Dash
cca6e828b3
Added tests for issue #11151
2019-03-23 02:42:31 +05:30
Aaron Meurer
5f01517d01
Add a step to release process to create the new release notes page on the wiki
2019-03-22 12:20:41 -06:00
Aaron Meurer
2e7878e920
Bump the version to 1.4rc1
2019-03-22 12:15:46 -06:00
OrestisVaggelis
8f5953c205
Taken care of the case when re(x) = im(x) = 0.
2019-03-22 18:22:10 +02:00
OrestisVaggelis
79ec645eb2
Fixed file added by mistake.
2019-03-22 17:26:43 +02:00
OrestisVaggelis
75fb3113e9
Removed file added by mistake.
2019-03-22 17:20:45 +02:00
OrestisVaggelis
71562b57ca
Fixed minor code readability issues.
2019-03-22 17:14:13 +02:00
OrestisVaggelis
d3982b1c40
Fixed issue #16327 (atan2 rewrite atan ignores sign)
2019-03-22 16:12:33 +02:00
Pragyan Mehrotra
b1d160a464
fix tests
2019-03-22 15:55:18 +05:30
czgdp1807
fa5a4502d2
Abstraction of results
...
Modifications made to return
an object of Probability class
rather than the evaluated expression.
Tests have also been updated.
2019-03-22 15:54:03 +05:30
Pragyan Mehrotra
f263543403
use *args **kwargs in expand method of SeqFormula
2019-03-22 13:41:56 +05:30
Pragyan Mehrotra
18e36bba79
Remove spaces around = in optional parameter for expand method in SeqFormula
2019-03-22 13:09:01 +05:30
Chris Smith
a8e48d9fa2
inline edit
2019-03-21 18:46:53 -05:00
Nabanita Dash
7ab3a6ca51
Changed mpf(0) in evalf_sum to None
...
As discussed in #11151,S.Zero returned mpf(0) and Sum(0,(a,1,2)) gave
untraceable results of mpf objects.This has to be same as S(0) which gives
none.
2019-03-22 03:51:03 +05:30
Divyanshu
c904067c25
add-perfectgroup-function
2019-03-21 23:12:22 +05:30
Pragyan Mehrotra
ceb4c05190
added tests for expand method for SeqFormula
2019-03-21 17:03:14 +05:30
czgdp1807
e8f1a5eb0e
Made modifications
2019-03-21 16:45:33 +05:30
Pragyan Mehrotra
59902c4688
expand returns a SeqFormula object
2019-03-21 15:29:53 +05:30
Pragyan Mehrotra
70b9ea6d03
remove trailing spaces
2019-03-21 15:07:09 +05:30
Pragyan Mehrotra
5c93cd2472
remove trailing space
2019-03-21 15:03:19 +05:30
Pragyan Mehrotra
7e7c35af81
Added expand() method for SeqFormula
2019-03-21 14:51:29 +05:30
Pragyan Mehrotra
c54225c0e3
Added expand() method for SeqFormula
2019-03-21 14:38:58 +05:30
Ishan Joshi
bf16406199
added tests for plotgrid
2019-03-21 12:44:16 +05:30
Chris Smith
532ec8b6cc
detect collisions
2019-03-20 19:07:12 -05:00
Chris Smith
1c8fafc411
allow SparseMatrix to autosize
2019-03-20 19:07:12 -05:00
Chris Smith
36f148f639
SparseMatrix: accept values that are matrix-like
2019-03-20 19:07:12 -05:00
Corwinpro
f900056af2
Merge pull request #1 from Corwinpro/Corwinpro-bspline-basis-patch
...
Update bsplines.py
2019-03-20 17:47:38 +00:00
Corwinpro
820c17b8b4
Update bsplines.py
...
There is a bug with bspline basis functions construction for a case when the number of control points is small. The removed bit in _add_splines does something weird, while the first part works fine itself.
Here's an example of a wrong behaviour:
import sympy
from sympy.functions.special.bsplines import bspline_basis
x = sympy.var("x")
kv = [0, 0, 0, 0, 1, 2, 2, 2, 2]
basis = bspline_basis(3, kv, 2, x)
# The expected basis function should be continuous at x == 1, while in the current version it is not.
# I computed the expected analytical formula by hand and compared to the one the old version produces. They do not match.
assert basis = sympy.Piecewise((-x**3 + 3*x**2/2, (x >= 0) & (x <= 1)), (x**3 - 9*x**2/2 + 6*x - 2, (x >= 1) & (x <= 2)), (0, True))
With this change we fix the wrong behaviour of the middle basis function, which is only reproducible when the number of control points is small.
2019-03-20 17:43:21 +00:00
S.Y. Lee
dcb69427ab
Fix failing tests for pinv with diagonalization
2019-03-21 02:20:29 +09:00
Francesco Bonazzi
37f34304df
Fix RUBI code to connect to latest MatchPy master
2019-03-20 17:24:03 +01:00
S.Y. Lee
ca2ec8f690
Change name
2019-03-20 18:45:37 +09:00
S.Y. Lee
50b762dc88
Add tests
2019-03-20 17:25:34 +09:00
S.Y. Lee
a426e95efc
Rename to ED
2019-03-20 17:20:58 +09:00
Ishan Joshi
d383496deb
added documentation to PlotGrid, improved code, corrected failing tests.
2019-03-20 11:00:00 +05:30
Ishan Joshi
58f627a793
introduced _process_series() to reduce complexity of process_series()
2019-03-19 18:49:41 +05:30
stm
c5a10f9282
Increased readability of code
2019-03-18 15:57:08 +05:30
S.Y. Lee
25cc59439f
Fix half to Half
2019-03-18 18:37:51 +09:00
stm
59478b5a02
Stats: Added check on the parameters of F Distribution
...
F Distribution takes two parameters as input which are both positive and
integers. Added checks for this in `crv_types.py` and relevant tests in
`test_continuous_rv.py` of stats module
2019-03-18 14:30:03 +05:30
Ishan Joshi
9cc3c910f2
Merge branch 'master' into subplot
2019-03-18 12:18:31 +05:30
S.Y. Lee
5a5089c19f
Fix trivial case
2019-03-18 10:13:05 +09:00
S.Y. Lee
bb7620f296
Add example
2019-03-18 10:11:42 +09:00
S.Y. Lee
9fccd2a8f8
Add rank decomposition subroutine
2019-03-18 10:07:28 +09:00
Ishan Joshi
a28077b289
corrected failing tests and filtered code
2019-03-17 10:32:31 +05:30
Ishan Joshi
7c872ddb0e
added functionality to obtain subplots from already created plots.
2019-03-16 17:35:42 +05:30
Oscar Gustafsson
c207a0d200
Merge with master, resolved conflicts
2019-03-14 09:47:19 +01:00
Jack
96dae6b012
Added holonomic plot example
2019-03-11 02:54:09 +02:00
Shubham Abhang
3b20a2a644
remaining conflicts resolved
2019-03-08 20:37:29 +05:30
Shubham Abhang
1becb554bf
conflicts resolved
2019-03-07 23:46:41 +05:30
Shubham Abhang
5835fc25d6
logic equation suggestions
2019-03-07 23:39:32 +05:30
Oscar Gustafsson
63742512d3
Fixed review comments
2019-03-07 09:09:08 +01:00
Oscar Gustafsson
95437737c5
Merge branch 'master' into termsperline
2019-03-07 09:01:36 +01:00
Bendik Samseth
010e56573f
Filter out assumptions based on _assume_defined
2019-03-06 22:22:52 +01:00
Christopher Smith
7c6d781713
Update exprtools.py
2019-02-28 11:54:33 -06:00
Christopher Smith
8d7353cb62
remove import; add docstring to _factor_sum_int
2019-02-28 11:54:06 -06:00
Chris Smith
8c4d6a069a
delay simplification in dsolve when using diffx
2019-02-27 18:35:37 -06:00
Bendik Samseth
9ed685e64c
Ensure IndexedBase sugar works with assumptions
2019-02-27 13:37:11 +01:00
Bendik Samseth
781593895b
Ensure base sees same assumptions as Indexed ctor
2019-02-27 13:36:08 +01:00
Bendik Samseth
2ce8ca839c
Use Python 2 style super
2019-02-27 13:26:24 +01:00
Bendik Samseth
7e076817f6
Add assumption based equalities for Indexed(Base)
2019-02-27 13:22:14 +01:00
Bendik Samseth
95c4f2d4b4
Indexed(Base)s with different assumptions are not equal
...
Equality now depends also on what assumptions are set, and
non-equivalent assumptions leads to `==` failing.
2019-02-27 13:19:31 +01:00
Bendik Samseth
9872a0e3d3
Fix issue with assumptions forwarding from IndexedBase
...
Only forwarding the user-specified assumptions. Forwarding
after having passed them through ``StdFactKB`` leads to some
derived assumptions not being filtered out from the kw_args that
are sent to ``Expr.__new__``. This leads to an error with unexpected
keyword arguments.
2019-02-27 12:48:29 +01:00
Bendik Samseth
574f0d9dc5
Add test for Indexed(Base) assumptions
2019-02-27 12:37:36 +01:00
Bendik Samseth
f99875c4c4
Add assumptions0 property to Indexed(Base)
2019-02-27 12:35:46 +01:00
Bendik Samseth
af53ab5e33
Make assumptions kw_args and not as part of dict
...
Previously:
``IndexedBase('A', assumptions={'real': True})``
This commit:
``IndexedBase('A', real=True)``
2019-02-27 10:42:31 +01:00
Chris Smith
4ebb082787
merge with master
2019-02-26 18:10:19 -06:00
Chris Smith
f24d08ca54
reorganize const factoring for Sum/Integral
2019-02-26 17:31:00 -06:00
Bendik Samseth
12b517c7df
Extract assumption sanitizing to function
2019-02-26 20:56:49 +01:00
Bendik Samseth
e1a516e527
Store copy of assumption.
...
Logic similar to that of ``Symbol``, simply copied.
2019-02-26 20:35:24 +01:00
Bendik Samseth
81e3a14ae2
Make assumptions about indexed symbols ( #13992 )
...
``Indexed`` and ``IndexedBase`` now accepts a new keyword argument
allowing the specification of assumptions on indexed symbols.
2019-02-26 18:08:29 +01:00
RituRajSingh878
23d2375bd0
modified code
2019-02-26 18:23:30 +05:30
czgdp1807
5d45c0adc1
Simplified the code for entropy computation
2019-02-22 19:59:08 +05:30
czgdp1807
647b0b903e
Fixed bugs and updated tests
2019-02-22 17:27:38 +05:30
Aaron Meurer
13aa1f8cfa
Use f.func instead of f.func._from-args in cancel
...
Otherwise it doesn't do the right thing with matrix expressions.
2019-02-21 14:47:33 -07:00
Oscar Gustafsson
b74bc046c7
Using complete environment names as per request
2019-02-20 22:50:57 +01:00
Oscar Gustafsson
cf7f40bd51
Fixed failing doctest
2019-02-20 12:41:48 +01:00
Oscar Gustafsson
35d7cd9a5c
Merge branch 'termsperline' of https://github.com/oscargus/sympy into termsperline
2019-02-20 12:37:46 +01:00
Oscar Gustafsson
084e4728cf
Updated based on review comments
2019-02-20 12:37:00 +01:00
RituRajSingh878
7f0c2017ec
change test case
2019-02-18 17:41:05 +05:30
RituRajSingh878
d42f1fba84
modify code
2019-02-18 17:35:51 +05:30
Oscar Gustafsson
5d3798af7a
Corrected formatting of documentation.
2019-02-17 16:12:43 +01:00
Oscar Gustafsson
9a7497e8b7
Added missing spaces
2019-02-17 16:11:18 +01:00
Oscar Gustafsson
288c6306be
Merge branch 'master' into termsperline
2019-02-17 15:40:40 +01:00
Oscar Gustafsson
4e6040d0dc
Corrected file name
2019-02-17 12:24:09 +01:00
Oscar Gustafsson
a68140e50c
Merge branch 'master' into pyglet-fixes
2019-02-17 12:12:22 +01:00
czgdp1807
de350a9d81
Merge branch 'entropy' of https://github.com/czgdp1807/sympy into entropy
2019-02-15 21:16:11 +05:30
czgdp1807
b1123919c7
Updated test_rv.py
2019-02-15 21:15:27 +05:30
czgdp1807
45f11ca1dc
Generalized test cases
2019-02-15 21:06:03 +05:30
RituRajSingh878
ea31aeac7a
edited code
2019-02-12 20:38:14 +05:30
RituRajSingh878
837e15eb47
extracted constant term using simplify(Integral)
2019-02-12 19:08:08 +05:30
Oscar Gustafsson
3fca9a4df0
Updated documentation examples
2019-02-11 22:13:49 +01:00
Oscar Gustafsson
275bc9003e
Made align* default and added IEEEeqnarray
2019-02-11 22:06:08 +01:00
czgdp1807
b232ea62ad
modified examples
2019-02-09 18:16:25 +05:30
Oscar Gustafsson
35fcadd56d
Added multiline_latex to more easily print multiline equations
2019-02-08 12:48:30 +01:00
Oscar Gustafsson
9fe0e4b758
Fixed some issues related to code evolving since last PR
2019-01-30 12:59:53 +01:00
Oscar Gustafsson
eba8269d0e
Fixed merge issues
2019-01-30 12:40:21 +01:00
Gagandeep Singh
b81bfb8d02
Merge branch 'master' into entropy
2019-01-30 15:46:22 +05:30
czgdp1807
253835b914
Allowed conditions for frv entropy
...
Conditional finite distributions can now
be passed in entropy. Docs of entropy
have also been rectified.
2019-01-27 18:06:37 +05:30
czgdp1807
f8ab663907
Added docs for entropy and trivial changes
...
The entropy will now return a constant.
Documentation has been added to entropy in
sympy.stats.rv
2019-01-27 16:39:09 +05:30
czgdp1807
73df08df69
Random variables can be used as given_condition
...
Probability can now work if random variables are
passed as given_condition. A regression test
has been added
2019-01-24 17:37:38 +05:30
Oscar Gustafsson
668789f465
No more ggg
2019-01-22 19:34:48 +01:00
Oscar Gustafsson
2074a4343c
Merge branch 'master' into pyglet-fixes
2019-01-22 19:30:20 +01:00
Oscar Gustafsson
57b4b29ae8
Removed forgotten doctest skip
2019-01-22 19:29:55 +01:00
Oscar Gustafsson
39e7f6bf51
Fixed imports
2019-01-22 19:28:18 +01:00
Oscar Gustafsson
166e90e052
Added reference to examples back
2019-01-22 19:22:48 +01:00
Oscar Gustafsson
4140213933
Fixed yet another stupid issue introduced
2019-01-22 19:17:14 +01:00
Oscar Gustafsson
3f86ea2657
Fixed stupid typo
2019-01-21 18:01:26 +01:00
Oscar Gustafsson
750c3fe63a
Disabled pygletplot test on Travis
2019-01-21 17:06:11 +01:00
Oscar Gustafsson
b685e6052a
Revert introduced error and disabled tests on Travis
2019-01-21 16:04:46 +01:00
Oscar Gustafsson
2d04690ed5
Fixed imports and some issues
2019-01-21 11:27:13 +01:00
Oscar Gustafsson
40199cf976
Some more fixes to make it work
2019-01-12 19:26:56 +01:00
Oscar Gustafsson
97d6c1ee05
Fixed Python3 issues and commented away test functionality that didn't work properly
2019-01-12 18:10:55 +01:00
Aaron Meurer
e7081400cb
Install pyglet in Travis as an optional dependency
2019-01-12 16:46:28 +01:00
Aaron Meurer
2767c79374
Register the plot modes when initializing pygletplot for the first time
2019-01-12 16:36:33 +01:00
Aaron Meurer
3174c5c529
Fix some bugs in the pygletplot module
...
These are mostly issues relating to Python 3 compatibility.
2019-01-12 16:36:33 +01:00
Aaron Meurer
34a40775bf
Fix an implicit relative import in pygletplot
2019-01-12 16:36:33 +01:00
Aaron Meurer
73931495d3
Fix more implicit relative imports in the pygletplot module
2019-01-12 16:36:33 +01:00
Aaron Meurer
cff2dfd7fb
Use explicit relative imports in the pygletplot module
2019-01-12 16:36:33 +01:00
czgdp1807
a6821d1075
Updated test_rv.py
2019-01-06 18:52:19 +05:30
czgdp1807
5dbcb1e7f6
Added entropy to remaining continuous distributions
...
Entropy has been added to all single variable continuous distributions.
A few test have been modified.
2019-01-06 18:49:31 +05:30
czgdp1807
83ba12c279
Added _entropy method to continuous distributions
...
_entropy method was add to ArcsinDistribution, BetaDistribution,
CauchyDistribution, ChiDistribution, ChiSquaredDistribution,
ExponentialDistribution, FDistributionDistribution, FrechetDistribution,
GammaDistribution, GammaInverseDistribution, GumbelDistribution,
and KumaraswamyDistribution. In addition, check method was added to
BeniniDistribution.
2019-01-05 20:53:39 +05:30
Gagandeep Singh
f46f42fa87
Removed entropy from Poisson distribution
2019-01-03 22:31:38 +05:30
czgdp1807
a645e25c0d
Added entropy for finite random variables
2018-12-29 21:29:03 +05:30
czgdp1807
bd74aae0db
Added entropy for discrete random variables
2018-12-29 20:45:09 +05:30
czgdp1807
740a2aef3a
Merge https://github.com/czgdp1807/sympy into entropy
2018-12-27 20:29:24 +05:30
Gagandeep Singh
66611d8d0e
Update test_rv.py
2018-12-26 10:37:37 +05:30
Gagandeep Singh
64f67dd776
Update crv.py
2018-12-26 10:36:57 +05:30
czgdp1807
bc4bdea0ab
Added entropy to stats module
...
Entropy for univariate continuous distributions has been added.
2018-12-25 21:11:40 +05:30
Aaron Meurer
23fa44e250
Remove commented out checks for string args in count_ops()
...
These are no longer necessary now that MatrixSymbol doesn't have non-Basic
args.
2018-12-18 11:57:55 -07:00
Aaron Meurer
e5e7883091
Add a test that MatrixSymbol(1, 2, 'A') raises an exception
...
Fixes #15643 .
2018-12-18 11:54:44 -07:00
Aaron Meurer
ef92f3248f
Remove print statement from a test
2018-12-18 11:53:58 -07:00
Aaron Meurer
cedc97c53d
Add an additional test that matrix exponentials don't commute
2018-12-18 11:43:50 -07:00
Aaron Meurer
cbef6b81eb
Merge branch 'master' into matexpr-cleanup
2018-12-18 11:40:51 -07:00
Aaron Meurer
988f9a5797
Add a test for exp(A)*exp(B) for matrix expressions
2018-12-18 11:27:43 -07:00
czgdp1807
f107fb6488
Added entropy, mgf and cf in MultivariateNormalDistribution
...
The methods, entropy, moment generating function and
characteristic function have been added to
sympy.stats.joint_rv_types.MultivariateNormalDistribution.
2018-12-14 13:19:42 +05:30
czgdp1807
41d313f2f0
Simplifies Expectation, Variance and Covariance in symbolic_probability
...
The methods, _eval_rewrite_as_Integral and _eval_rewrite_as_Sum in
Expectation, Variance and Covariance are now decoupled, by using
same return statement.
2018-12-14 11:15:28 +05:30
Aaron Meurer
e72d052492
Merge branch 'master' into matexpr-cleanup
2018-11-28 15:18:18 -07:00
yogesh1997
01c1dbed73
Update crypto.py
2018-11-23 22:44:52 +05:30
yogesh1997
4e3c1020df
added railfence cipher
2018-11-23 10:53:06 +05:30
yogesh1997
e687e6f6af
Merge pull request #1 from sympy/master
...
new
2018-11-23 10:36:23 +05:30
yogesh1997
fdb79d76d8
added test for railfence
...
added test for railfence cipher
2018-11-19 13:11:33 +05:30
yogesh1997
8644e62eac
updated init
...
added encipher_railfence
added decipher_railfence
2018-11-19 13:07:46 +05:30
yogesh1997
c4078e54ab
Added railfence cipher updated docstring
...
updated the docstring
2018-11-19 13:01:39 +05:30
yogesh1997
3184b1a58e
added rail fence cipher
...
add one of the classical rail fence cipher
2018-11-18 19:59:26 +05:30
yogesh1997
a7ff3fd3f5
updated test_crypto.py
...
added test for rail fence cipher
2018-11-18 19:54:41 +05:30
yogesh1997
91183354a2
Updated init
...
Added the new encipher_railfence and decipher_railfence in init method
2018-11-18 19:07:56 +05:30
yogesh1997
4acf1742f9
Added Rail Fence cipher
...
Added one of the classical railfence cipher
2018-11-18 18:57:56 +05:30
Aaron Meurer
a7f1719a89
Test commenting out test against str args in the core
...
With MatrixSymbol args no longer str, it may no longer be necessary. This is
just a test commit to see if any tests fail on Travis.
2018-09-20 14:08:39 -06:00
Christopher Smith
d71f1a96cb
Merge branch 'master' into matexpr-cleanup
2018-09-19 20:11:36 -05:00
Aaron Meurer
2cf2358d89
Fix some test failures from MatrixSymbol.args[0] being Symbol
2018-08-21 19:10:29 -06:00
Aaron Meurer
3949123ea3
Store the first argument of MatrixSymbol as a Symbol
...
MatrixSymbol.name is still a string.
This is a backwards incompatible change, but one that has needed to be changed
for some time. The issue is that various places in SymPy assume that all args
are SymPy types, and hence fail if they are not. This is exacerbated by
functions that rebuild expressions after sympifying the args. It was possible,
for instance, with something like
A = MatrixSymbol('A', n, n)
B = MatrixSymbol('B', n, n)
factor(A*B)
to create an expression that would fail in the printers, because it replaced
MatrixSymbol('A', n, n) with MatrixSymbol(Symbol('A'), n, n). This is because
factor (actually factor_nc) does effectively
expr = sympify(expr)
return expr.func([factor_nc(i) for i in expr.args])
I have not yet gone through the issue tracker to try to find things that this
might fix, nor have I run the test suite beyond sympy/matrices, which had no
failures. The only test that I've added thus far is to un-XFAIL the test_args
test for MatrixSymbol.
2018-08-21 16:08:21 -06:00
Aaron Meurer
87ac9a6363
Use _sympify instead of sympify in matexpr.py
...
This makes it so that string inputs do not work. This does not (yet) change
the string argument of MatrixSymbol.
2018-08-21 16:04:15 -06:00
Aaron Meurer
5012bc49ea
Fix undefined name in MatrixExpression._eval_derivative
...
The intended result of this code, replacing a trace with a summation, doesn't
seem to happen, but at least it no longer results in a NameError.
2018-08-21 16:01:30 -06:00
Enric Florit
76e26a752f
RR[x], CC[x] turned to valid polynomial domains
...
Previously, this command raised an Error:
>>> Poly(1.2*x*y*z, x, domain='RR[y,z]')
This will work now, as preprocessing of these domains
has been added.
2018-03-05 20:12:19 +01:00
Ronan Lamy
d165d2eec5
Bypass very expensive 'known_facts_CNF.rcall(expr)'
2016-10-31 03:18:53 +00:00
Ronan Lamy
3bab5b4239
SAT-encode a bit earlier
2016-10-31 02:49:58 +00:00
Ronan Lamy
4fbf8ee010
Give EncodedCNF a proper __init__ and turn the old one into an alternate constructor
2016-10-31 02:21:27 +00:00
Ronan Lamy
abed09e7ec
Rename KB to EncodedCNF and make the encoding explicit
2016-10-31 01:56:58 +00:00
Ronan Lamy
b4d140c67c
Extract know facts handling from add_relevant_facts()
2016-10-31 01:28:48 +00:00
Ronan Lamy
d5d377ea85
Reify encoding step for SAT solver
2016-10-30 20:20:38 +00:00
Ronan Lamy
84253bdef1
Keep known_facts in CNF form rather than reconverting them
2016-10-30 19:00:39 +00:00
Ronan Lamy
f54c9d78a9
Simplify get_relevant_facts() again
2016-10-30 02:16:35 +00:00
Ronan Lamy
59a67a86f6
CNF.from_prop()
2016-10-30 01:43:51 +00:00
Ronan Lamy
b9692561ab
Bypass dpll_satisfiable() to remove yet another costly And instantiation
...
(note: tautology corner cases handled incorrectly)
2016-10-30 01:07:46 +00:00
Ronan Lamy
24c9467d91
Return relevant_facts as a set
2016-10-30 01:23:19 +01:00
Ronan Lamy
fc48800994
Combine assumptions and context earlier
2016-10-30 00:39:58 +01:00
Ronan Lamy
2b098b504a
More get_relevant_facts() simplification
2016-10-29 19:53:18 +01:00
Ronan Lamy
10e3809f75
Simplify get_all_relevant_facts()
2016-10-29 18:33:15 +01:00
Ronan Lamy
3ea570c0a0
Start using a KB in dpll_satisfiable()
2016-10-29 05:54:36 +01:00
Gabriel Bernardino
57aaacb617
Implemented Mathml printing of Piecewise components.
2016-06-07 13:45:51 +02:00
Akshay Nagar
9d4a1f921a
Changing the Bessel's function to check for change of parameters
...
Specifically changing parameter a4*x to x and then after solving substituting it back
>>>eq = t**2*(f(t).diff(t, 2)) + t*(f(t).diff(t)) + 25*t**2*f(t)
>>>C0, C1, C2 = get_numbered_constants(eq, num=3)
>>>print(dsolve(eq))
Eq(f(5*t), C1*besselj(0, 5*t) + C2*bessely(0, 5*t))
>>>eq = t**2*(f(t).diff(t, 2)) + t*(f(t).diff(t)) + (25*t**2-36)*f(t)
>>>print(dsolve(eq))
Eq(f(5*t), C1*besselj(6, 5*t) + C2*bessely(6, 5*t))
2016-03-20 18:32:54 +05:30
Akshay Nagar
2694c7c660
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
Tests and docstrings have been added and revised ( keeping in consideration the different ways integers and non integer n's are treated in Bessel's equation )
Also support for n=0 has been added
2016-03-20 05:15:30 +05:30
Akshay Nagar
3d743d21a5
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
Tests and docstrings have been added.
Also the function has been renamed to 2nd_linear_bessel
2016-03-20 03:24:37 +05:30
Akshay Nagar
937fb3aad0
Implementation of Airy's equation and Bessel's equation
...
Fixes #9819
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
Also test cases and docstrings have been added.
2016-03-20 03:12:51 +05:30
Akshay Nagar
3792f694a6
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
2016-03-20 01:19:01 +05:30
Akshay Nagar
3b1365e7d7
Implementation of Airy's equation and Bessel's equation
...
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
2016-03-20 00:56:30 +05:30
Akshay Nagar
0b51b9dead
Merge branch 'master' of http://github.com/sympy/sympy
...
Due to changes in sympy
2016-03-20 00:31:52 +05:30
Akshay Nagar
a5498bb28f
Implementation of Airy's equation and Bessel's equation
...
Fixes #9819
[1]Airy's equation
Eq(x**2*Derivative(y(x),x,x)-(ax+b)*y(x))
The above equation now has solution c1*Ai(x)+x2*Bi(x)
where Ai(x) and Bi(x) are Airy's functions of first and second order respectively
[2]Bessel's equation
Eq(x**2*Derivative(y(x),x,x)+x*Derivative(y(x),x)+(x**2-n**2)*y(x))
The above equation now has solution c1*besselj(n,x)+c2*bessely(n,x)
where besselj(n,x) and bessely(n,x) are Bessel's functions of first and second order respectively
2016-03-20 00:29:31 +05:30
Ruslan Pisarev
16280f1840
Change comment that it was truth.
2016-02-29 16:38:34 +03:00
Ruslan Pisarev
5ae93f41ed
Check denomintor.is_zero before trying solve equation den == 0.
2016-02-27 20:26:35 +03:00
Ruslan Pisarev
d5e3e31ae8
Case tan(x)*cot(x) breaks some test, so it was removed.
2016-02-27 12:24:57 +03:00
Ruslan Pisarev
f6b55d39c2
Merge branch 'master' of github.com:sympy/sympy into 10651
2016-02-26 00:39:53 +03:00
Ruslan Pisarev
366aa202a9
Fix type, use function denoms().
2016-02-26 00:39:00 +03:00
Ruslan Pisarev
20813331b6
Some non-constant mul expression like tan(x)*cot(x), (x - 1)/(1 - x) etc
...
define like constants, but they aren't constant, because their domains
are not full space.
2016-02-25 22:40:08 +03:00
Shekhar Prasad Rajak
8a2bbe47c2
minor edit
2016-01-13 10:23:54 +05:30
Shekhar Prasad Rajak
96e8750b62
minor edit
2016-01-13 10:22:06 +05:30
Shekhar Prasad Rajak
4773a64cd2
Update printing.rst
2015-12-31 16:26:36 +05:30
Shekhar Prasad Rajak
21bb40685c
fixed graphviz
2015-12-30 14:52:18 +05:30
Shekhar Prasad Rajak
2137981880
removed extra line
2015-12-28 13:07:14 +05:30
Shekhar Prasad Rajak
bda19d474b
minor edit
2015-12-27 23:10:49 +05:30
Shekhar Prasad Rajak
8b1b6506c7
Minor edit
2015-12-27 15:05:43 +05:30
Shekhar Prasad Rajak
e5a495b7c1
Minor edit
2015-12-27 11:16:48 +05:30
Shekhar Prasad Rajak
644f74d071
Update printing.rst
2015-12-26 11:47:03 +05:30
Shekhar Prasad Rajak
d40f0732d5
Merge branch 'working10313' of https://github.com/Shekharrajak/sympy into working10313
...
Conflicts:
doc/src/tutorial/printing.rst
2015-12-26 11:19:41 +05:30
Shekhar Prasad Rajak
ba48efc4ae
fixed line missing indentation or outdented
2015-12-26 11:17:14 +05:30
Shekhar Prasad Rajak
fd6e38fd8e
Update printing.rst
2015-12-26 00:26:44 +05:30
Shekhar Prasad Rajak
d931bbc79d
Modified Dot printing section
2015-12-25 13:25:44 +05:30
Shekhar Prasad Rajak
edd4a4f689
Update printing.rst
2015-12-25 13:24:20 +05:30
Sudhanshu Mishra
9de745c49e
Merge branch 'master' into pycosat
2015-08-24 02:29:24 +05:30
Sudhanshu Mishra
28fdd9936c
Enable testing of logic module in the respective block
2015-08-21 13:52:47 +05:30
Sudhanshu Mishra
3a3f631f07
Remove the map list and update the .travis.yml for latest pycosat
2015-08-21 12:09:43 +05:30
Sudhanshu Mishra
09732ccd1a
Convert clauses to list
2015-08-19 16:12:35 +05:30
Sudhanshu Mishra
52951791ff
Merge pycosat tests with matplotlib tests in Travis CI matrix
2015-08-19 14:35:39 +05:30
Sudhanshu Mishra
2087c9d175
return a generator function
2015-08-19 14:24:57 +05:30
Sudhanshu Mishra
5797a1054b
Enabled exclusive tests for pycosat in the test matrix
2015-08-13 14:49:09 +05:30
Sudhanshu Mishra
2038ea27fa
Remove benchmark file as benchmarks have been moved to other repo
2015-08-13 14:42:12 +05:30
Sudhanshu Mishra
3430c271b7
Fix some failing tests
2015-08-12 16:42:41 +05:30
Sudhanshu Mishra
6920e7f37d
Add the feature for all_models using pycosat
2015-08-12 15:50:06 +05:30
Sudhanshu Mishra
4e71126ee2
Enable pycosat by default when installed
2015-08-12 15:49:46 +05:30
Sudhanshu Mishra
497015d5a9
Fix merge conflicts
2015-08-12 15:07:49 +05:30
Christoph Gohle
3e8854204a
codegen: make non complex code generation the default again.
...
complex fortran code will be generated if codegen.ALLOW_COMPLEX is set to true. This also fixes the old unit tests.
2015-03-29 14:16:39 +02:00
Christoph Gohle
4de1f97f28
codegen: add unit test for new complex number capability
2015-03-26 00:55:10 +01:00
Christoph Gohle
4676e9e580
codegen: add support for complex data type (in fortran).
...
By default (i.e. if sympy symbols are not real (x.is_real is False or None)) we assume complex valued (maybe a mechanism to control the default behaviour would be nice)
2015-03-26 00:32:07 +01:00
Christoph Gohle
f5701cc4f3
theanocode: add simple unit tests for complex and constant theanofunctions.
2015-03-26 00:07:27 +01:00
Christoph Gohle
c100192501
theanocode: fix constant expression function generation
2015-03-23 13:27:57 +01:00
Christoph Gohle
d9aaf70c91
theanocode: Fix conjugate and imaginary translation
2015-03-23 13:27:27 +01:00
Ondřej Čertík
043ec887e2
Benchmark dpll2 and pycosat
2013-10-19 19:02:29 -07:00
Ondřej Čertík
14107f3760
Allow to use pycosat
2013-10-19 19:00:09 -07:00
Ondřej Čertík
7a28684b16
Add a Pycosat wrapper
2013-10-19 18:58:56 -07:00