diff --git a/dev/_downloads/0130acc9674ca6615e762dac32f6f525/matrices-10.pdf b/dev/_downloads/0130acc9674ca6615e762dac32f6f525/matrices-10.pdf index 8f67e49a8b2..0403b776e64 100644 Binary files a/dev/_downloads/0130acc9674ca6615e762dac32f6f525/matrices-10.pdf and b/dev/_downloads/0130acc9674ca6615e762dac32f6f525/matrices-10.pdf differ diff --git a/dev/_downloads/0249fb66c2fcb06b78bd6a84135be88a/beam-2.pdf b/dev/_downloads/0249fb66c2fcb06b78bd6a84135be88a/beam-2.pdf index f6289572e33..5c86a0586d8 100644 Binary files a/dev/_downloads/0249fb66c2fcb06b78bd6a84135be88a/beam-2.pdf and b/dev/_downloads/0249fb66c2fcb06b78bd6a84135be88a/beam-2.pdf differ diff --git a/dev/_downloads/02f5470280a542a7c80635a082cb7e09/beam-23.pdf b/dev/_downloads/02f5470280a542a7c80635a082cb7e09/beam-23.pdf index 89a53f87988..837152e984f 100644 Binary files a/dev/_downloads/02f5470280a542a7c80635a082cb7e09/beam-23.pdf and b/dev/_downloads/02f5470280a542a7c80635a082cb7e09/beam-23.pdf differ diff --git a/dev/_downloads/034c3ce6c53eca7932c83f9b35d14c64/plotting-2.pdf b/dev/_downloads/034c3ce6c53eca7932c83f9b35d14c64/plotting-2.pdf index 7dc4fb267c8..af04b6d6f5f 100644 Binary files a/dev/_downloads/034c3ce6c53eca7932c83f9b35d14c64/plotting-2.pdf and b/dev/_downloads/034c3ce6c53eca7932c83f9b35d14c64/plotting-2.pdf differ diff --git a/dev/_downloads/0616d85a2c2e5a070fd791bdcdb1e35e/plotting-32_01.pdf b/dev/_downloads/0616d85a2c2e5a070fd791bdcdb1e35e/plotting-32_01.pdf index 06343169d7c..0e57ade197d 100644 Binary files a/dev/_downloads/0616d85a2c2e5a070fd791bdcdb1e35e/plotting-32_01.pdf and b/dev/_downloads/0616d85a2c2e5a070fd791bdcdb1e35e/plotting-32_01.pdf differ diff --git a/dev/_downloads/0680199b4e61bc189fceb4418aa72812/control_plots-4.pdf b/dev/_downloads/0680199b4e61bc189fceb4418aa72812/control_plots-4.pdf index 1b0e6278523..9574ee8c3e6 100644 Binary files a/dev/_downloads/0680199b4e61bc189fceb4418aa72812/control_plots-4.pdf and b/dev/_downloads/0680199b4e61bc189fceb4418aa72812/control_plots-4.pdf differ diff --git a/dev/_downloads/077b659bec1d5c2fd531dbd0f7e15f0f/beam_problems-13_00.pdf b/dev/_downloads/077b659bec1d5c2fd531dbd0f7e15f0f/beam_problems-13_00.pdf index db06ce49a96..4a0379df58a 100644 Binary files a/dev/_downloads/077b659bec1d5c2fd531dbd0f7e15f0f/beam_problems-13_00.pdf and b/dev/_downloads/077b659bec1d5c2fd531dbd0f7e15f0f/beam_problems-13_00.pdf differ diff --git a/dev/_downloads/0a5b397c3adc07987864b0441654dc1c/beam-1.pdf b/dev/_downloads/0a5b397c3adc07987864b0441654dc1c/beam-1.pdf index 90a71bd4ee6..f6c4b116ba7 100644 Binary files a/dev/_downloads/0a5b397c3adc07987864b0441654dc1c/beam-1.pdf and b/dev/_downloads/0a5b397c3adc07987864b0441654dc1c/beam-1.pdf differ diff --git a/dev/_downloads/0c7c1262b6b611b1944eed12f33413fe/beam-5.pdf b/dev/_downloads/0c7c1262b6b611b1944eed12f33413fe/beam-5.pdf index 9abbcedb2df..e2a9e017bcf 100644 Binary files a/dev/_downloads/0c7c1262b6b611b1944eed12f33413fe/beam-5.pdf and b/dev/_downloads/0c7c1262b6b611b1944eed12f33413fe/beam-5.pdf differ diff --git a/dev/_downloads/0eb265c8614c7bd3f16f6034d076f6d3/beam-21.pdf b/dev/_downloads/0eb265c8614c7bd3f16f6034d076f6d3/beam-21.pdf index b6e74d0ee91..d9652a99623 100644 Binary files a/dev/_downloads/0eb265c8614c7bd3f16f6034d076f6d3/beam-21.pdf and b/dev/_downloads/0eb265c8614c7bd3f16f6034d076f6d3/beam-21.pdf differ diff --git a/dev/_downloads/0efc8f797e345bcc903c8f4dab4a5322/plotting-4.pdf b/dev/_downloads/0efc8f797e345bcc903c8f4dab4a5322/plotting-4.pdf index eac1a2915fc..481f9be9ef5 100644 Binary files a/dev/_downloads/0efc8f797e345bcc903c8f4dab4a5322/plotting-4.pdf and b/dev/_downloads/0efc8f797e345bcc903c8f4dab4a5322/plotting-4.pdf differ diff --git a/dev/_downloads/0ffd2a0f4570e502b64ad8529258801f/plotting-17.pdf b/dev/_downloads/0ffd2a0f4570e502b64ad8529258801f/plotting-17.pdf index a0d04711b6f..d747a8f9d5e 100644 Binary files a/dev/_downloads/0ffd2a0f4570e502b64ad8529258801f/plotting-17.pdf and b/dev/_downloads/0ffd2a0f4570e502b64ad8529258801f/plotting-17.pdf differ diff --git a/dev/_downloads/1362531cda049d5b7f4db4abe11d4178/plotting-6.pdf b/dev/_downloads/1362531cda049d5b7f4db4abe11d4178/plotting-6.pdf index 8b50852e023..a31aefb2861 100644 Binary files a/dev/_downloads/1362531cda049d5b7f4db4abe11d4178/plotting-6.pdf and b/dev/_downloads/1362531cda049d5b7f4db4abe11d4178/plotting-6.pdf differ diff --git a/dev/_downloads/14bd882358332276f28c2e3ace8343d5/control_plots-5.pdf b/dev/_downloads/14bd882358332276f28c2e3ace8343d5/control_plots-5.pdf index d27a270a060..db106ae18e0 100644 Binary files a/dev/_downloads/14bd882358332276f28c2e3ace8343d5/control_plots-5.pdf and b/dev/_downloads/14bd882358332276f28c2e3ace8343d5/control_plots-5.pdf differ diff --git a/dev/_downloads/16c046e4f150f3aca5fb6bd438b952ce/matrices-24.pdf b/dev/_downloads/16c046e4f150f3aca5fb6bd438b952ce/matrices-24.pdf index ed88c30aaaf..772870b0ce5 100644 Binary files a/dev/_downloads/16c046e4f150f3aca5fb6bd438b952ce/matrices-24.pdf and b/dev/_downloads/16c046e4f150f3aca5fb6bd438b952ce/matrices-24.pdf differ diff --git a/dev/_downloads/16f8dba9abaa041f16c4636d6e41a0ac/matrices-25.pdf b/dev/_downloads/16f8dba9abaa041f16c4636d6e41a0ac/matrices-25.pdf index 4fc65687ca4..8fbb1675372 100644 Binary files a/dev/_downloads/16f8dba9abaa041f16c4636d6e41a0ac/matrices-25.pdf and b/dev/_downloads/16f8dba9abaa041f16c4636d6e41a0ac/matrices-25.pdf differ diff --git a/dev/_downloads/1f24a27fa4a24f0b331e9442f61363d7/plotting-16.pdf b/dev/_downloads/1f24a27fa4a24f0b331e9442f61363d7/plotting-16.pdf index 28871be47ad..a34866d0af1 100644 Binary files a/dev/_downloads/1f24a27fa4a24f0b331e9442f61363d7/plotting-16.pdf and b/dev/_downloads/1f24a27fa4a24f0b331e9442f61363d7/plotting-16.pdf differ diff --git a/dev/_downloads/2019cb6b524d1d6351bac9c894de42dd/plotting-26.hires.png b/dev/_downloads/2019cb6b524d1d6351bac9c894de42dd/plotting-26.hires.png index 4dab71d7c00..7e6e97fbb68 100644 Binary files a/dev/_downloads/2019cb6b524d1d6351bac9c894de42dd/plotting-26.hires.png and b/dev/_downloads/2019cb6b524d1d6351bac9c894de42dd/plotting-26.hires.png differ diff --git a/dev/_downloads/2082eb4d6b0c42668444836c10a5a149/beam_problems-14.pdf b/dev/_downloads/2082eb4d6b0c42668444836c10a5a149/beam_problems-14.pdf index a28336cf888..48f6dfb4622 100644 Binary files a/dev/_downloads/2082eb4d6b0c42668444836c10a5a149/beam_problems-14.pdf and b/dev/_downloads/2082eb4d6b0c42668444836c10a5a149/beam_problems-14.pdf differ diff --git a/dev/_downloads/2454d35ad3fc284cb67b6c619b4246c1/beam-8.pdf b/dev/_downloads/2454d35ad3fc284cb67b6c619b4246c1/beam-8.pdf index 769c765797f..c2b230c5e41 100644 Binary files a/dev/_downloads/2454d35ad3fc284cb67b6c619b4246c1/beam-8.pdf and b/dev/_downloads/2454d35ad3fc284cb67b6c619b4246c1/beam-8.pdf differ diff --git a/dev/_downloads/2608cc95ac952e335ca0ce8cea458c1b/matrices-22.pdf b/dev/_downloads/2608cc95ac952e335ca0ce8cea458c1b/matrices-22.pdf index 6918515d9ab..6bc0055612b 100644 Binary files a/dev/_downloads/2608cc95ac952e335ca0ce8cea458c1b/matrices-22.pdf and b/dev/_downloads/2608cc95ac952e335ca0ce8cea458c1b/matrices-22.pdf differ diff --git a/dev/_downloads/2667a5fcc739d282a7512f6b7b39071a/matrices-4.pdf b/dev/_downloads/2667a5fcc739d282a7512f6b7b39071a/matrices-4.pdf index e655184253c..ce079e4ca15 100644 Binary files a/dev/_downloads/2667a5fcc739d282a7512f6b7b39071a/matrices-4.pdf and b/dev/_downloads/2667a5fcc739d282a7512f6b7b39071a/matrices-4.pdf differ diff --git a/dev/_downloads/26aeb23613c82467dc9ad9bdc328ab32/plotting-32_00.pdf b/dev/_downloads/26aeb23613c82467dc9ad9bdc328ab32/plotting-32_00.pdf index 02fc6026f54..467a22d9d3b 100644 Binary files a/dev/_downloads/26aeb23613c82467dc9ad9bdc328ab32/plotting-32_00.pdf and b/dev/_downloads/26aeb23613c82467dc9ad9bdc328ab32/plotting-32_00.pdf differ diff --git a/dev/_downloads/295bb235d3caa42841a5fbfa905580df/beam_problems-18.pdf b/dev/_downloads/295bb235d3caa42841a5fbfa905580df/beam_problems-18.pdf index c467ef6fc5c..cba6b6617b0 100644 Binary files a/dev/_downloads/295bb235d3caa42841a5fbfa905580df/beam_problems-18.pdf and b/dev/_downloads/295bb235d3caa42841a5fbfa905580df/beam_problems-18.pdf differ diff --git a/dev/_downloads/2acde0fab574588f4a28670019a75bf9/plotting-26.pdf b/dev/_downloads/2acde0fab574588f4a28670019a75bf9/plotting-26.pdf index aee9f60cf5b..0064f80aae8 100644 Binary files a/dev/_downloads/2acde0fab574588f4a28670019a75bf9/plotting-26.pdf and b/dev/_downloads/2acde0fab574588f4a28670019a75bf9/plotting-26.pdf differ diff --git a/dev/_downloads/2f44ee19ebd4c314ad1c408629357c53/plotting-1.pdf b/dev/_downloads/2f44ee19ebd4c314ad1c408629357c53/plotting-1.pdf index dfb20ceab76..3684e7cee2e 100644 Binary files a/dev/_downloads/2f44ee19ebd4c314ad1c408629357c53/plotting-1.pdf and b/dev/_downloads/2f44ee19ebd4c314ad1c408629357c53/plotting-1.pdf differ diff --git a/dev/_downloads/2fe7ddde63c7b986288bcf42780219f7/plotting-29.hires.png b/dev/_downloads/2fe7ddde63c7b986288bcf42780219f7/plotting-29.hires.png index 0db6d1e4f4c..14fa35d17ea 100644 Binary files a/dev/_downloads/2fe7ddde63c7b986288bcf42780219f7/plotting-29.hires.png and b/dev/_downloads/2fe7ddde63c7b986288bcf42780219f7/plotting-29.hires.png differ diff --git a/dev/_downloads/3319e145d33fb7c15b85dd93189e26e2/control_plots-2.pdf b/dev/_downloads/3319e145d33fb7c15b85dd93189e26e2/control_plots-2.pdf index 68bb4156e96..48a6abade22 100644 Binary files a/dev/_downloads/3319e145d33fb7c15b85dd93189e26e2/control_plots-2.pdf and b/dev/_downloads/3319e145d33fb7c15b85dd93189e26e2/control_plots-2.pdf differ diff --git a/dev/_downloads/3321387ecbfcca786e563449007007d8/generate_plots_q3_3.pdf b/dev/_downloads/3321387ecbfcca786e563449007007d8/generate_plots_q3_3.pdf index ba3a113a1aa..3e07d6d9a49 100644 Binary files a/dev/_downloads/3321387ecbfcca786e563449007007d8/generate_plots_q3_3.pdf and b/dev/_downloads/3321387ecbfcca786e563449007007d8/generate_plots_q3_3.pdf differ diff --git a/dev/_downloads/33391c644ccb248b4c17deb758dc2301/control_plots-1.pdf b/dev/_downloads/33391c644ccb248b4c17deb758dc2301/control_plots-1.pdf index 2c648e298ee..22f3ab96794 100644 Binary files a/dev/_downloads/33391c644ccb248b4c17deb758dc2301/control_plots-1.pdf and b/dev/_downloads/33391c644ccb248b4c17deb758dc2301/control_plots-1.pdf differ diff --git a/dev/_downloads/39dc203c3bf6e7485368c7a401448a6f/matrices-8.pdf b/dev/_downloads/39dc203c3bf6e7485368c7a401448a6f/matrices-8.pdf index 7be213c1fc1..ceb6a99ccd8 100644 Binary files a/dev/_downloads/39dc203c3bf6e7485368c7a401448a6f/matrices-8.pdf and b/dev/_downloads/39dc203c3bf6e7485368c7a401448a6f/matrices-8.pdf differ diff --git a/dev/_downloads/3af3ee18448b7a687ef6594665f932f9/plotting-19.pdf b/dev/_downloads/3af3ee18448b7a687ef6594665f932f9/plotting-19.pdf index dd82044d065..ef034dce370 100644 Binary files a/dev/_downloads/3af3ee18448b7a687ef6594665f932f9/plotting-19.pdf and b/dev/_downloads/3af3ee18448b7a687ef6594665f932f9/plotting-19.pdf differ diff --git a/dev/_downloads/3cd14c510b41514f1496a3155ea8cf2d/matrices-17.pdf b/dev/_downloads/3cd14c510b41514f1496a3155ea8cf2d/matrices-17.pdf index 6c1105d6e76..cdfab2fbc4c 100644 Binary files a/dev/_downloads/3cd14c510b41514f1496a3155ea8cf2d/matrices-17.pdf and b/dev/_downloads/3cd14c510b41514f1496a3155ea8cf2d/matrices-17.pdf differ diff --git a/dev/_downloads/3decd7120d816c8190c63dffb192484f/beam-1.hires.png b/dev/_downloads/3decd7120d816c8190c63dffb192484f/beam-1.hires.png index be36281f795..6bbbcbfedfe 100644 Binary files a/dev/_downloads/3decd7120d816c8190c63dffb192484f/beam-1.hires.png and b/dev/_downloads/3decd7120d816c8190c63dffb192484f/beam-1.hires.png differ diff --git a/dev/_downloads/464f047ba3ef7f04429a4eb163a6a2de/matrices-18.pdf b/dev/_downloads/464f047ba3ef7f04429a4eb163a6a2de/matrices-18.pdf index b2e7a1b5852..54eab941007 100644 Binary files a/dev/_downloads/464f047ba3ef7f04429a4eb163a6a2de/matrices-18.pdf and b/dev/_downloads/464f047ba3ef7f04429a4eb163a6a2de/matrices-18.pdf differ diff --git a/dev/_downloads/4c9cbd846f69df68795ea4e2cdf667e9/plotting-33.pdf b/dev/_downloads/4c9cbd846f69df68795ea4e2cdf667e9/plotting-33.pdf index 00b3e90c967..4ea7f27de45 100644 Binary files a/dev/_downloads/4c9cbd846f69df68795ea4e2cdf667e9/plotting-33.pdf and b/dev/_downloads/4c9cbd846f69df68795ea4e2cdf667e9/plotting-33.pdf differ diff --git a/dev/_downloads/4d0c9c96647fc2441757598f44d4936b/beam-20.pdf b/dev/_downloads/4d0c9c96647fc2441757598f44d4936b/beam-20.pdf index 46e5faa7bc5..8a04d683b26 100644 Binary files a/dev/_downloads/4d0c9c96647fc2441757598f44d4936b/beam-20.pdf and b/dev/_downloads/4d0c9c96647fc2441757598f44d4936b/beam-20.pdf differ diff --git a/dev/_downloads/4f8a4d280007c46440ecb7e279e1d3cb/plotting-25.hires.png b/dev/_downloads/4f8a4d280007c46440ecb7e279e1d3cb/plotting-25.hires.png index fe480eb1b7b..bfd1a434f86 100644 Binary files a/dev/_downloads/4f8a4d280007c46440ecb7e279e1d3cb/plotting-25.hires.png and b/dev/_downloads/4f8a4d280007c46440ecb7e279e1d3cb/plotting-25.hires.png differ diff --git a/dev/_downloads/56227f1745cb31fcd75cdc19f5cad645/beam_problems-13_01.pdf b/dev/_downloads/56227f1745cb31fcd75cdc19f5cad645/beam_problems-13_01.pdf index bbe2c35bb6c..969e0816da1 100644 Binary files a/dev/_downloads/56227f1745cb31fcd75cdc19f5cad645/beam_problems-13_01.pdf and b/dev/_downloads/56227f1745cb31fcd75cdc19f5cad645/beam_problems-13_01.pdf differ diff --git a/dev/_downloads/56447441b8d8108229134a5d3454516c/plotting-7.pdf b/dev/_downloads/56447441b8d8108229134a5d3454516c/plotting-7.pdf index 0ddfead4610..960cd94b22a 100644 Binary files a/dev/_downloads/56447441b8d8108229134a5d3454516c/plotting-7.pdf and b/dev/_downloads/56447441b8d8108229134a5d3454516c/plotting-7.pdf differ diff --git a/dev/_downloads/569497501b2d3eb864ce466d19b06017/plotting-20.pdf b/dev/_downloads/569497501b2d3eb864ce466d19b06017/plotting-20.pdf index e3179df38a7..18b75a6b8d8 100644 Binary files a/dev/_downloads/569497501b2d3eb864ce466d19b06017/plotting-20.pdf and b/dev/_downloads/569497501b2d3eb864ce466d19b06017/plotting-20.pdf differ diff --git a/dev/_downloads/5815ed289d6d66d90e420fd31330fef7/plotting-28.pdf b/dev/_downloads/5815ed289d6d66d90e420fd31330fef7/plotting-28.pdf index fceb5f7e540..8dc9932b4e1 100644 Binary files a/dev/_downloads/5815ed289d6d66d90e420fd31330fef7/plotting-28.pdf and b/dev/_downloads/5815ed289d6d66d90e420fd31330fef7/plotting-28.pdf differ diff --git a/dev/_downloads/5860560b08ead850923e530e3240b5c6/plotting-15.pdf b/dev/_downloads/5860560b08ead850923e530e3240b5c6/plotting-15.pdf index 090336a3105..8c8517694a6 100644 Binary files a/dev/_downloads/5860560b08ead850923e530e3240b5c6/plotting-15.pdf and b/dev/_downloads/5860560b08ead850923e530e3240b5c6/plotting-15.pdf differ diff --git a/dev/_downloads/5b5c816080a45343f1dad5a63189ba69/generate_plots_q3_5_1.pdf b/dev/_downloads/5b5c816080a45343f1dad5a63189ba69/generate_plots_q3_5_1.pdf index b9352defca8..3deca01fb67 100644 Binary files a/dev/_downloads/5b5c816080a45343f1dad5a63189ba69/generate_plots_q3_5_1.pdf and b/dev/_downloads/5b5c816080a45343f1dad5a63189ba69/generate_plots_q3_5_1.pdf differ diff --git a/dev/_downloads/5b83bd080155a6f59e2eeb633bda5ab4/matrices-13.pdf b/dev/_downloads/5b83bd080155a6f59e2eeb633bda5ab4/matrices-13.pdf index de602c77bef..23b22e71ba6 100644 Binary files a/dev/_downloads/5b83bd080155a6f59e2eeb633bda5ab4/matrices-13.pdf and b/dev/_downloads/5b83bd080155a6f59e2eeb633bda5ab4/matrices-13.pdf differ diff --git a/dev/_downloads/5df88650a09035e3e9902fd44e25970e/generate_plots_q5.pdf b/dev/_downloads/5df88650a09035e3e9902fd44e25970e/generate_plots_q5.pdf index 4e1d2c72735..e818676b60b 100644 Binary files a/dev/_downloads/5df88650a09035e3e9902fd44e25970e/generate_plots_q5.pdf and b/dev/_downloads/5df88650a09035e3e9902fd44e25970e/generate_plots_q5.pdf differ diff --git a/dev/_downloads/6236456dc31640e622c3f943842d9925/plotting-27.pdf b/dev/_downloads/6236456dc31640e622c3f943842d9925/plotting-27.pdf index de7f3313d2d..c563a4eaff1 100644 Binary files a/dev/_downloads/6236456dc31640e622c3f943842d9925/plotting-27.pdf and b/dev/_downloads/6236456dc31640e622c3f943842d9925/plotting-27.pdf differ diff --git a/dev/_downloads/68597f1bcbf2528fdc041a5c14e53f0f/plotting-30.png b/dev/_downloads/68597f1bcbf2528fdc041a5c14e53f0f/plotting-30.png index b8df0c2a868..c36f379f282 100644 Binary files a/dev/_downloads/68597f1bcbf2528fdc041a5c14e53f0f/plotting-30.png and b/dev/_downloads/68597f1bcbf2528fdc041a5c14e53f0f/plotting-30.png differ diff --git a/dev/_downloads/704bfe351153d402a4a0a831ece25675/matrices-2.pdf b/dev/_downloads/704bfe351153d402a4a0a831ece25675/matrices-2.pdf index bb1424bf993..b7aec64161a 100644 Binary files a/dev/_downloads/704bfe351153d402a4a0a831ece25675/matrices-2.pdf and b/dev/_downloads/704bfe351153d402a4a0a831ece25675/matrices-2.pdf differ diff --git a/dev/_downloads/76c597139b65debdf0e125c15cd040ca/plotting-25.png b/dev/_downloads/76c597139b65debdf0e125c15cd040ca/plotting-25.png index b6465c8f8de..88fa4b9b9bf 100644 Binary files a/dev/_downloads/76c597139b65debdf0e125c15cd040ca/plotting-25.png and b/dev/_downloads/76c597139b65debdf0e125c15cd040ca/plotting-25.png differ diff --git a/dev/_downloads/7a548803dfc780a3427fff48770818b4/generate_plots_q3_4.pdf b/dev/_downloads/7a548803dfc780a3427fff48770818b4/generate_plots_q3_4.pdf index 14e77e727e8..59134f74b9c 100644 Binary files a/dev/_downloads/7a548803dfc780a3427fff48770818b4/generate_plots_q3_4.pdf and b/dev/_downloads/7a548803dfc780a3427fff48770818b4/generate_plots_q3_4.pdf differ diff --git a/dev/_downloads/7bfa6a992ea402720a120fd5093741a4/plotting-11.pdf b/dev/_downloads/7bfa6a992ea402720a120fd5093741a4/plotting-11.pdf index f4bd19dc122..c8de2905fd2 100644 Binary files a/dev/_downloads/7bfa6a992ea402720a120fd5093741a4/plotting-11.pdf and b/dev/_downloads/7bfa6a992ea402720a120fd5093741a4/plotting-11.pdf differ diff --git a/dev/_downloads/7d4a2d083d96719b05ab2f759c57874a/matrices-6.pdf b/dev/_downloads/7d4a2d083d96719b05ab2f759c57874a/matrices-6.pdf index 77b6dca0cef..fdd168d7df2 100644 Binary files a/dev/_downloads/7d4a2d083d96719b05ab2f759c57874a/matrices-6.pdf and b/dev/_downloads/7d4a2d083d96719b05ab2f759c57874a/matrices-6.pdf differ diff --git a/dev/_downloads/7eed1bf07a4dacbb97d209dac2614e9a/matrices-19.pdf b/dev/_downloads/7eed1bf07a4dacbb97d209dac2614e9a/matrices-19.pdf index ea41dfc28d5..5066508e0b8 100644 Binary files a/dev/_downloads/7eed1bf07a4dacbb97d209dac2614e9a/matrices-19.pdf and b/dev/_downloads/7eed1bf07a4dacbb97d209dac2614e9a/matrices-19.pdf differ diff --git a/dev/_downloads/81a43cb7598cbbe880e19146241abe5f/plotting-26.png b/dev/_downloads/81a43cb7598cbbe880e19146241abe5f/plotting-26.png index deaa4e26c6a..4167389c2c6 100644 Binary files a/dev/_downloads/81a43cb7598cbbe880e19146241abe5f/plotting-26.png and b/dev/_downloads/81a43cb7598cbbe880e19146241abe5f/plotting-26.png differ diff --git a/dev/_downloads/81a780d815116a5eb737d2d484c44444/matrices-21.pdf b/dev/_downloads/81a780d815116a5eb737d2d484c44444/matrices-21.pdf index cdf95d877fd..b33bd14c020 100644 Binary files a/dev/_downloads/81a780d815116a5eb737d2d484c44444/matrices-21.pdf and b/dev/_downloads/81a780d815116a5eb737d2d484c44444/matrices-21.pdf differ diff --git a/dev/_downloads/81f16477713a2ebedd53f1c8ec85b754/plotting-12.pdf b/dev/_downloads/81f16477713a2ebedd53f1c8ec85b754/plotting-12.pdf index aaeb72546c5..00d9ecbd28e 100644 Binary files a/dev/_downloads/81f16477713a2ebedd53f1c8ec85b754/plotting-12.pdf and b/dev/_downloads/81f16477713a2ebedd53f1c8ec85b754/plotting-12.pdf differ diff --git a/dev/_downloads/83ec70596dcaacc88e256e7679fafcee/matrices-12.pdf b/dev/_downloads/83ec70596dcaacc88e256e7679fafcee/matrices-12.pdf index 011bde0b63a..cf99af89d70 100644 Binary files a/dev/_downloads/83ec70596dcaacc88e256e7679fafcee/matrices-12.pdf and b/dev/_downloads/83ec70596dcaacc88e256e7679fafcee/matrices-12.pdf differ diff --git a/dev/_downloads/865dedeca3d1430244910d89d552e5ef/beam-19.pdf b/dev/_downloads/865dedeca3d1430244910d89d552e5ef/beam-19.pdf index e58cd9ea6cd..0456a162079 100644 Binary files a/dev/_downloads/865dedeca3d1430244910d89d552e5ef/beam-19.pdf and b/dev/_downloads/865dedeca3d1430244910d89d552e5ef/beam-19.pdf differ diff --git a/dev/_downloads/88f8d6df1485ab9648408b70b7cd4c46/beam_problems-11_00.pdf b/dev/_downloads/88f8d6df1485ab9648408b70b7cd4c46/beam_problems-11_00.pdf index 62dbe16cb83..f06a510df21 100644 Binary files a/dev/_downloads/88f8d6df1485ab9648408b70b7cd4c46/beam_problems-11_00.pdf and b/dev/_downloads/88f8d6df1485ab9648408b70b7cd4c46/beam_problems-11_00.pdf differ diff --git a/dev/_downloads/8c3e8789c867600d80b2cce11272d81e/matrices-15.pdf b/dev/_downloads/8c3e8789c867600d80b2cce11272d81e/matrices-15.pdf index f3fb015068d..4dc12f95f73 100644 Binary files a/dev/_downloads/8c3e8789c867600d80b2cce11272d81e/matrices-15.pdf and b/dev/_downloads/8c3e8789c867600d80b2cce11272d81e/matrices-15.pdf differ diff --git a/dev/_downloads/8f6a7c938e347f134c67566d5aef740d/plotting-29.pdf b/dev/_downloads/8f6a7c938e347f134c67566d5aef740d/plotting-29.pdf index 92af9cf2df6..e27f7e0f05e 100644 Binary files a/dev/_downloads/8f6a7c938e347f134c67566d5aef740d/plotting-29.pdf and b/dev/_downloads/8f6a7c938e347f134c67566d5aef740d/plotting-29.pdf differ diff --git a/dev/_downloads/90b2354acc779cd49f552b57929e55ab/plotting-13.pdf b/dev/_downloads/90b2354acc779cd49f552b57929e55ab/plotting-13.pdf index be3ae5bde05..1c30a37cdf0 100644 Binary files a/dev/_downloads/90b2354acc779cd49f552b57929e55ab/plotting-13.pdf and b/dev/_downloads/90b2354acc779cd49f552b57929e55ab/plotting-13.pdf differ diff --git a/dev/_downloads/912e64195566ca0058bfdb868fabd27b/beam_problems-16.pdf b/dev/_downloads/912e64195566ca0058bfdb868fabd27b/beam_problems-16.pdf index 61cd1cb3424..af70b816515 100644 Binary files a/dev/_downloads/912e64195566ca0058bfdb868fabd27b/beam_problems-16.pdf and b/dev/_downloads/912e64195566ca0058bfdb868fabd27b/beam_problems-16.pdf differ diff --git a/dev/_downloads/950e4c42a3beff8bac74d47e0f8d8516/plotting-24.png b/dev/_downloads/950e4c42a3beff8bac74d47e0f8d8516/plotting-24.png index 2933c36de56..08f1c0f2936 100644 Binary files a/dev/_downloads/950e4c42a3beff8bac74d47e0f8d8516/plotting-24.png and b/dev/_downloads/950e4c42a3beff8bac74d47e0f8d8516/plotting-24.png differ diff --git a/dev/_downloads/95feb1999af91b22f624aa3ce3c6b1c4/solve-ode-1.pdf b/dev/_downloads/95feb1999af91b22f624aa3ce3c6b1c4/solve-ode-1.pdf index fccabfb3b98..d43ed36fa66 100644 Binary files a/dev/_downloads/95feb1999af91b22f624aa3ce3c6b1c4/solve-ode-1.pdf and b/dev/_downloads/95feb1999af91b22f624aa3ce3c6b1c4/solve-ode-1.pdf differ diff --git a/dev/_downloads/9659cd876877dfc4002fae48de3c98ae/beam-4.pdf b/dev/_downloads/9659cd876877dfc4002fae48de3c98ae/beam-4.pdf index df52eeeb5f1..55c1952650f 100644 Binary files a/dev/_downloads/9659cd876877dfc4002fae48de3c98ae/beam-4.pdf and b/dev/_downloads/9659cd876877dfc4002fae48de3c98ae/beam-4.pdf differ diff --git a/dev/_downloads/9728219edea47500a9403b3679a5bc09/plotting-10.pdf b/dev/_downloads/9728219edea47500a9403b3679a5bc09/plotting-10.pdf index 2cdb4a07640..5b4c38f4d97 100644 Binary files a/dev/_downloads/9728219edea47500a9403b3679a5bc09/plotting-10.pdf and b/dev/_downloads/9728219edea47500a9403b3679a5bc09/plotting-10.pdf differ diff --git a/dev/_downloads/9ba0a373644e3b8e75cb2f2d1a46ac33/plotting-35.pdf b/dev/_downloads/9ba0a373644e3b8e75cb2f2d1a46ac33/plotting-35.pdf index e6996a8e64d..91cc084bc74 100644 Binary files a/dev/_downloads/9ba0a373644e3b8e75cb2f2d1a46ac33/plotting-35.pdf and b/dev/_downloads/9ba0a373644e3b8e75cb2f2d1a46ac33/plotting-35.pdf differ diff --git a/dev/_downloads/a11367bb58b03bf09a75c9657b4e223a/matrices-16.pdf b/dev/_downloads/a11367bb58b03bf09a75c9657b4e223a/matrices-16.pdf index d4eae9451a2..ddd7798ad64 100644 Binary files a/dev/_downloads/a11367bb58b03bf09a75c9657b4e223a/matrices-16.pdf and b/dev/_downloads/a11367bb58b03bf09a75c9657b4e223a/matrices-16.pdf differ diff --git a/dev/_downloads/a3a06dbcaf4cb9dbce7fe53c37ec22a8/plotting-30.pdf b/dev/_downloads/a3a06dbcaf4cb9dbce7fe53c37ec22a8/plotting-30.pdf index 5f329644ec1..b6431422e4b 100644 Binary files a/dev/_downloads/a3a06dbcaf4cb9dbce7fe53c37ec22a8/plotting-30.pdf and b/dev/_downloads/a3a06dbcaf4cb9dbce7fe53c37ec22a8/plotting-30.pdf differ diff --git a/dev/_downloads/a45cb86364a3602f7138b4466beb1097/beam-3.pdf b/dev/_downloads/a45cb86364a3602f7138b4466beb1097/beam-3.pdf index 614d66e5f87..a00dcf5622a 100644 Binary files a/dev/_downloads/a45cb86364a3602f7138b4466beb1097/beam-3.pdf and b/dev/_downloads/a45cb86364a3602f7138b4466beb1097/beam-3.pdf differ diff --git a/dev/_downloads/a6ba697f4fd41244d4a03ae13c871d77/matrices-20.pdf b/dev/_downloads/a6ba697f4fd41244d4a03ae13c871d77/matrices-20.pdf index 3ac298ab582..90d3c2438aa 100644 Binary files a/dev/_downloads/a6ba697f4fd41244d4a03ae13c871d77/matrices-20.pdf and b/dev/_downloads/a6ba697f4fd41244d4a03ae13c871d77/matrices-20.pdf differ diff --git a/dev/_downloads/a892d8f10080acfce9914123b164dd0e/matrices-11.pdf b/dev/_downloads/a892d8f10080acfce9914123b164dd0e/matrices-11.pdf index b7dbb1d9a8a..b7f21d94346 100644 Binary files a/dev/_downloads/a892d8f10080acfce9914123b164dd0e/matrices-11.pdf and b/dev/_downloads/a892d8f10080acfce9914123b164dd0e/matrices-11.pdf differ diff --git a/dev/_downloads/aa497c934ec12bc50f842dac34beeab7/plotting-32_02.pdf b/dev/_downloads/aa497c934ec12bc50f842dac34beeab7/plotting-32_02.pdf index ceb7dd2a1e6..138ff0238b5 100644 Binary files a/dev/_downloads/aa497c934ec12bc50f842dac34beeab7/plotting-32_02.pdf and b/dev/_downloads/aa497c934ec12bc50f842dac34beeab7/plotting-32_02.pdf differ diff --git a/dev/_downloads/ac472fec5b32a66f329e9328277c64b3/plotting-34.pdf b/dev/_downloads/ac472fec5b32a66f329e9328277c64b3/plotting-34.pdf index ecdbf153a83..ec9593a1531 100644 Binary files a/dev/_downloads/ac472fec5b32a66f329e9328277c64b3/plotting-34.pdf and b/dev/_downloads/ac472fec5b32a66f329e9328277c64b3/plotting-34.pdf differ diff --git a/dev/_downloads/b0f2a5ef738f9e96458a670bdb264732/beam-18.pdf b/dev/_downloads/b0f2a5ef738f9e96458a670bdb264732/beam-18.pdf index 06c63f69066..4642ef86ee3 100644 Binary files a/dev/_downloads/b0f2a5ef738f9e96458a670bdb264732/beam-18.pdf and b/dev/_downloads/b0f2a5ef738f9e96458a670bdb264732/beam-18.pdf differ diff --git a/dev/_downloads/b287a2bfc71470e15bf28009eae144b3/generate_plots_q3_5_2.pdf b/dev/_downloads/b287a2bfc71470e15bf28009eae144b3/generate_plots_q3_5_2.pdf index b9352defca8..3deca01fb67 100644 Binary files a/dev/_downloads/b287a2bfc71470e15bf28009eae144b3/generate_plots_q3_5_2.pdf and b/dev/_downloads/b287a2bfc71470e15bf28009eae144b3/generate_plots_q3_5_2.pdf differ diff --git a/dev/_downloads/b78b32e3870f0d0ffa753084ae625ec7/plotting-9.pdf b/dev/_downloads/b78b32e3870f0d0ffa753084ae625ec7/plotting-9.pdf index 54a3f6e6d1c..279597fe9de 100644 Binary files a/dev/_downloads/b78b32e3870f0d0ffa753084ae625ec7/plotting-9.pdf and b/dev/_downloads/b78b32e3870f0d0ffa753084ae625ec7/plotting-9.pdf differ diff --git a/dev/_downloads/ba5808c3dcaa3ca2706d8976a3ba018c/beam_problems-11_01.pdf b/dev/_downloads/ba5808c3dcaa3ca2706d8976a3ba018c/beam_problems-11_01.pdf index 01bf3661dfe..ae1eff6d8c5 100644 Binary files a/dev/_downloads/ba5808c3dcaa3ca2706d8976a3ba018c/beam_problems-11_01.pdf and b/dev/_downloads/ba5808c3dcaa3ca2706d8976a3ba018c/beam_problems-11_01.pdf differ diff --git a/dev/_downloads/bda8f8d60633ec72f3551c29244f94d5/beam-1.png b/dev/_downloads/bda8f8d60633ec72f3551c29244f94d5/beam-1.png index 8132af9fcf2..1df86a197fc 100644 Binary files a/dev/_downloads/bda8f8d60633ec72f3551c29244f94d5/beam-1.png and b/dev/_downloads/bda8f8d60633ec72f3551c29244f94d5/beam-1.png differ diff --git a/dev/_downloads/c1423271668bdc35a9c394131066e255/control_plots-3.pdf b/dev/_downloads/c1423271668bdc35a9c394131066e255/control_plots-3.pdf index a75773c99e7..98ef5a412be 100644 Binary files a/dev/_downloads/c1423271668bdc35a9c394131066e255/control_plots-3.pdf and b/dev/_downloads/c1423271668bdc35a9c394131066e255/control_plots-3.pdf differ diff --git a/dev/_downloads/c1adee8d5f4e9aedd715240ee2abc6e5/matrices-9.pdf b/dev/_downloads/c1adee8d5f4e9aedd715240ee2abc6e5/matrices-9.pdf index 753eab65e80..cd47ec5e8b5 100644 Binary files a/dev/_downloads/c1adee8d5f4e9aedd715240ee2abc6e5/matrices-9.pdf and b/dev/_downloads/c1adee8d5f4e9aedd715240ee2abc6e5/matrices-9.pdf differ diff --git a/dev/_downloads/ca52fc8f0db47908fb8d38cc335d5c1a/plotting-22.pdf b/dev/_downloads/ca52fc8f0db47908fb8d38cc335d5c1a/plotting-22.pdf index 722cd7bff46..d44d0c510b3 100644 Binary files a/dev/_downloads/ca52fc8f0db47908fb8d38cc335d5c1a/plotting-22.pdf and b/dev/_downloads/ca52fc8f0db47908fb8d38cc335d5c1a/plotting-22.pdf differ diff --git a/dev/_downloads/cb44a32b25833934efb3a9d4adfe400c/plotting-29.png b/dev/_downloads/cb44a32b25833934efb3a9d4adfe400c/plotting-29.png index a41487bf4d0..84be4eb074e 100644 Binary files a/dev/_downloads/cb44a32b25833934efb3a9d4adfe400c/plotting-29.png and b/dev/_downloads/cb44a32b25833934efb3a9d4adfe400c/plotting-29.png differ diff --git a/dev/_downloads/cc4619d4e67ea48ddf5026828b7569eb/beam-22.pdf b/dev/_downloads/cc4619d4e67ea48ddf5026828b7569eb/beam-22.pdf index 2b64134464b..9102de7776b 100644 Binary files a/dev/_downloads/cc4619d4e67ea48ddf5026828b7569eb/beam-22.pdf and b/dev/_downloads/cc4619d4e67ea48ddf5026828b7569eb/beam-22.pdf differ diff --git a/dev/_downloads/ce89ed58fdb41bf7840cc83d6e6a1ba6/plotting-30.hires.png b/dev/_downloads/ce89ed58fdb41bf7840cc83d6e6a1ba6/plotting-30.hires.png index 9d1427a5623..8d4aef2dc11 100644 Binary files a/dev/_downloads/ce89ed58fdb41bf7840cc83d6e6a1ba6/plotting-30.hires.png and b/dev/_downloads/ce89ed58fdb41bf7840cc83d6e6a1ba6/plotting-30.hires.png differ diff --git a/dev/_downloads/d1eadb36634e8e0276f3d1752e83893e/matrices-14.pdf b/dev/_downloads/d1eadb36634e8e0276f3d1752e83893e/matrices-14.pdf index d1d80243e52..d19b5053feb 100644 Binary files a/dev/_downloads/d1eadb36634e8e0276f3d1752e83893e/matrices-14.pdf and b/dev/_downloads/d1eadb36634e8e0276f3d1752e83893e/matrices-14.pdf differ diff --git a/dev/_downloads/d2c03725fdbe7104e13f46e3798a03e1/beam-7.pdf b/dev/_downloads/d2c03725fdbe7104e13f46e3798a03e1/beam-7.pdf index 5e9da34586b..67e05dbff14 100644 Binary files a/dev/_downloads/d2c03725fdbe7104e13f46e3798a03e1/beam-7.pdf and b/dev/_downloads/d2c03725fdbe7104e13f46e3798a03e1/beam-7.pdf differ diff --git a/dev/_downloads/d3453595eb36f834c2ad86d18546535c/matrices-7.pdf b/dev/_downloads/d3453595eb36f834c2ad86d18546535c/matrices-7.pdf index 0214d53b29a..89bce3e6d77 100644 Binary files a/dev/_downloads/d3453595eb36f834c2ad86d18546535c/matrices-7.pdf and b/dev/_downloads/d3453595eb36f834c2ad86d18546535c/matrices-7.pdf differ diff --git a/dev/_downloads/d4935c2256660a8a33a7af58457af366/beam-6.pdf b/dev/_downloads/d4935c2256660a8a33a7af58457af366/beam-6.pdf index 72a24ae3e78..0bc183151f4 100644 Binary files a/dev/_downloads/d4935c2256660a8a33a7af58457af366/beam-6.pdf and b/dev/_downloads/d4935c2256660a8a33a7af58457af366/beam-6.pdf differ diff --git a/dev/_downloads/d8f4bbfa41aeb33459953469d86ea8b1/plotting-32_03.pdf b/dev/_downloads/d8f4bbfa41aeb33459953469d86ea8b1/plotting-32_03.pdf index 7ab36a6f74d..0885f137cdb 100644 Binary files a/dev/_downloads/d8f4bbfa41aeb33459953469d86ea8b1/plotting-32_03.pdf and b/dev/_downloads/d8f4bbfa41aeb33459953469d86ea8b1/plotting-32_03.pdf differ diff --git a/dev/_downloads/dac00acb10450bde21ecfc4fd9c34817/matrices-1.pdf b/dev/_downloads/dac00acb10450bde21ecfc4fd9c34817/matrices-1.pdf index efdd5bd3a4c..f45eb7c1ee8 100644 Binary files a/dev/_downloads/dac00acb10450bde21ecfc4fd9c34817/matrices-1.pdf and b/dev/_downloads/dac00acb10450bde21ecfc4fd9c34817/matrices-1.pdf differ diff --git a/dev/_downloads/db76a3db1d29ef7f72c47b067c360357/plotting-24.hires.png b/dev/_downloads/db76a3db1d29ef7f72c47b067c360357/plotting-24.hires.png index 20fa569a19c..080e5315475 100644 Binary files a/dev/_downloads/db76a3db1d29ef7f72c47b067c360357/plotting-24.hires.png and b/dev/_downloads/db76a3db1d29ef7f72c47b067c360357/plotting-24.hires.png differ diff --git a/dev/_downloads/ddddc4679201fda850a702ce6ca7ff1e/plotting-5.pdf b/dev/_downloads/ddddc4679201fda850a702ce6ca7ff1e/plotting-5.pdf index 52b4abf9a18..dc3fff6e911 100644 Binary files a/dev/_downloads/ddddc4679201fda850a702ce6ca7ff1e/plotting-5.pdf and b/dev/_downloads/ddddc4679201fda850a702ce6ca7ff1e/plotting-5.pdf differ diff --git a/dev/_downloads/e0563f4c3c89c72192ce76efd2e6fe6b/matrices-3.pdf b/dev/_downloads/e0563f4c3c89c72192ce76efd2e6fe6b/matrices-3.pdf index 46ba5bb7b71..ece053fd5eb 100644 Binary files a/dev/_downloads/e0563f4c3c89c72192ce76efd2e6fe6b/matrices-3.pdf and b/dev/_downloads/e0563f4c3c89c72192ce76efd2e6fe6b/matrices-3.pdf differ diff --git a/dev/_downloads/e07f3720dbc2048eb106de8a904dcfa9/plotting-25.pdf b/dev/_downloads/e07f3720dbc2048eb106de8a904dcfa9/plotting-25.pdf index dbafbf6e418..b9d48ab0b78 100644 Binary files a/dev/_downloads/e07f3720dbc2048eb106de8a904dcfa9/plotting-25.pdf and b/dev/_downloads/e07f3720dbc2048eb106de8a904dcfa9/plotting-25.pdf differ diff --git a/dev/_downloads/e51f495094ca971c2da007d95d7c6aff/matrices-5.pdf b/dev/_downloads/e51f495094ca971c2da007d95d7c6aff/matrices-5.pdf index 839e48a0bf2..1a3180a94f9 100644 Binary files a/dev/_downloads/e51f495094ca971c2da007d95d7c6aff/matrices-5.pdf and b/dev/_downloads/e51f495094ca971c2da007d95d7c6aff/matrices-5.pdf differ diff --git a/dev/_downloads/e8a5010f49b1076156ddfe2fa5fe6189/beam-9.pdf b/dev/_downloads/e8a5010f49b1076156ddfe2fa5fe6189/beam-9.pdf index 4fb9d64d055..abfb2c14b1a 100644 Binary files a/dev/_downloads/e8a5010f49b1076156ddfe2fa5fe6189/beam-9.pdf and b/dev/_downloads/e8a5010f49b1076156ddfe2fa5fe6189/beam-9.pdf differ diff --git a/dev/_downloads/eb990a3106294a2a2f898aea0b429ab7/matrices-23.pdf b/dev/_downloads/eb990a3106294a2a2f898aea0b429ab7/matrices-23.pdf index 304e93e96d4..07f847c2caa 100644 Binary files a/dev/_downloads/eb990a3106294a2a2f898aea0b429ab7/matrices-23.pdf and b/dev/_downloads/eb990a3106294a2a2f898aea0b429ab7/matrices-23.pdf differ diff --git a/dev/_downloads/ebf272f79479d63cc5b71ad0f0e41f7d/fourier-1.pdf b/dev/_downloads/ebf272f79479d63cc5b71ad0f0e41f7d/fourier-1.pdf index c16f7ef2606..e1d1b9145b5 100644 Binary files a/dev/_downloads/ebf272f79479d63cc5b71ad0f0e41f7d/fourier-1.pdf and b/dev/_downloads/ebf272f79479d63cc5b71ad0f0e41f7d/fourier-1.pdf differ diff --git a/dev/_downloads/ee22a6375b132bbe50ac86a0282c8f8f/fourier-2.pdf b/dev/_downloads/ee22a6375b132bbe50ac86a0282c8f8f/fourier-2.pdf index f77b2fdac79..c62b7633593 100644 Binary files a/dev/_downloads/ee22a6375b132bbe50ac86a0282c8f8f/fourier-2.pdf and b/dev/_downloads/ee22a6375b132bbe50ac86a0282c8f8f/fourier-2.pdf differ diff --git a/dev/_downloads/ef1b602db6b31a5b8d8b9d20a2410f41/beam-10.pdf b/dev/_downloads/ef1b602db6b31a5b8d8b9d20a2410f41/beam-10.pdf index 2289e41dc3d..90c619560b4 100644 Binary files a/dev/_downloads/ef1b602db6b31a5b8d8b9d20a2410f41/beam-10.pdf and b/dev/_downloads/ef1b602db6b31a5b8d8b9d20a2410f41/beam-10.pdf differ diff --git a/dev/_downloads/f0b1ed1309beacf065f53d41a069ebe1/plotting-24.pdf b/dev/_downloads/f0b1ed1309beacf065f53d41a069ebe1/plotting-24.pdf index 8728388ee18..ec2e822acb2 100644 Binary files a/dev/_downloads/f0b1ed1309beacf065f53d41a069ebe1/plotting-24.pdf and b/dev/_downloads/f0b1ed1309beacf065f53d41a069ebe1/plotting-24.pdf differ diff --git a/dev/_downloads/f143e8af7f67232f463360136b513860/truss-1.pdf b/dev/_downloads/f143e8af7f67232f463360136b513860/truss-1.pdf index 63ccbf0e721..ce0211a45b0 100644 Binary files a/dev/_downloads/f143e8af7f67232f463360136b513860/truss-1.pdf and b/dev/_downloads/f143e8af7f67232f463360136b513860/truss-1.pdf differ diff --git a/dev/_downloads/fd7d64e97562f1e8bfd34628ef58f000/plotting-31_01.pdf b/dev/_downloads/fd7d64e97562f1e8bfd34628ef58f000/plotting-31_01.pdf index c9b106f17b8..284e3886082 100644 Binary files a/dev/_downloads/fd7d64e97562f1e8bfd34628ef58f000/plotting-31_01.pdf and b/dev/_downloads/fd7d64e97562f1e8bfd34628ef58f000/plotting-31_01.pdf differ diff --git a/dev/_downloads/fd8f37f13aecb42027ed8c23548b8132/plotting-31_00.pdf b/dev/_downloads/fd8f37f13aecb42027ed8c23548b8132/plotting-31_00.pdf index 9b38e33bfc6..200b8751b7c 100644 Binary files a/dev/_downloads/fd8f37f13aecb42027ed8c23548b8132/plotting-31_00.pdf and b/dev/_downloads/fd8f37f13aecb42027ed8c23548b8132/plotting-31_00.pdf differ diff --git a/dev/_images/beam-1.png b/dev/_images/beam-1.png index 8132af9fcf2..1df86a197fc 100644 Binary files a/dev/_images/beam-1.png and b/dev/_images/beam-1.png differ diff --git a/dev/_images/plotting-24.png b/dev/_images/plotting-24.png index 2933c36de56..08f1c0f2936 100644 Binary files a/dev/_images/plotting-24.png and b/dev/_images/plotting-24.png differ diff --git a/dev/_images/plotting-25.png b/dev/_images/plotting-25.png index b6465c8f8de..88fa4b9b9bf 100644 Binary files a/dev/_images/plotting-25.png and b/dev/_images/plotting-25.png differ diff --git a/dev/_images/plotting-26.png b/dev/_images/plotting-26.png index deaa4e26c6a..4167389c2c6 100644 Binary files a/dev/_images/plotting-26.png and b/dev/_images/plotting-26.png differ diff --git a/dev/_images/plotting-29.png b/dev/_images/plotting-29.png index a41487bf4d0..84be4eb074e 100644 Binary files a/dev/_images/plotting-29.png and b/dev/_images/plotting-29.png differ diff --git a/dev/_images/plotting-30.png b/dev/_images/plotting-30.png index b8df0c2a868..c36f379f282 100644 Binary files a/dev/_images/plotting-30.png and b/dev/_images/plotting-30.png differ diff --git a/dev/explanation/gotchas.html b/dev/explanation/gotchas.html index 751db8d7570..f92dda1c679 100644 --- a/dev/explanation/gotchas.html +++ b/dev/explanation/gotchas.html @@ -1501,7 +1501,7 @@

help()#< powsimp(). The output will look something like this:

-sympy.simplify.simplify.powsimp(expr, deep=False, combine='all', force=False, measure=<function count_ops>)[source]
+sympy.simplify.simplify.powsimp(expr, deep=False, combine='all', force=False, measure=<function count_ops>)[source]

Reduce expression by combining powers with similar bases and exponents.

Explanation

If deep is True then powsimp() will also simplify arguments of diff --git a/dev/modules/algebras.html b/dev/modules/algebras.html index 6306d0ef938..9915b6bad95 100644 --- a/dev/modules/algebras.html +++ b/dev/modules/algebras.html @@ -749,7 +749,7 @@

Introduction
-class sympy.algebras.Quaternion(a=0, b=0, c=0, d=0, real_field=True, norm=None)[source]#
+class sympy.algebras.Quaternion(a=0, b=0, c=0, d=0, real_field=True, norm=None)[source]#

Provides basic quaternion operations. Quaternion objects can be instantiated as Quaternion(a, b, c, d) as in \(q = a + bi + cj + dk\).

@@ -804,7 +804,7 @@

Introduction
-add(other)[source]#
+add(other)[source]#

Adds quaternions.

Parameters:
@@ -846,7 +846,7 @@

Introduction
-angle()[source]#
+angle()[source]#

Returns the angle of the quaternion measured in the real-axis plane.

Explanation

Given a quaternion \(q = a + bi + cj + dk\) where \(a\), \(b\), \(c\) and \(d\) @@ -866,7 +866,7 @@

Introduction
-arc_coplanar(other)[source]#
+arc_coplanar(other)[source]#

Returns True if the transformation arcs represented by the input quaternions happen in the same plane.

Parameters:
@@ -902,7 +902,7 @@

Introduction
-axis()[source]#
+axis()[source]#

Returns \(\mathbf{Ax}(q)\), the axis of the quaternion \(q\).

Explanation

Given a quaternion \(q = a + bi + cj + dk\), returns \(\mathbf{Ax}(q)\) i.e., the versor of the vector part of that quaternion @@ -923,7 +923,7 @@

Introduction
-exp()[source]#
+exp()[source]#

Returns the exponential of \(q\), given by \(e^q\).

Returns:
@@ -947,7 +947,7 @@

Introduction
-classmethod from_Matrix(elements)[source]#
+classmethod from_Matrix(elements)[source]#

Returns quaternion from elements of a column vector`. If vector_only is True, returns only imaginary part as a Matrix of length 3.

@@ -983,7 +983,7 @@

Introduction
-classmethod from_axis_angle(vector, angle)[source]#
+classmethod from_axis_angle(vector, angle)[source]#

Returns a rotation quaternion given the axis and the angle of rotation.

Parameters:
@@ -1015,7 +1015,7 @@

Introduction
-classmethod from_euler(angles, seq)[source]#
+classmethod from_euler(angles, seq)[source]#

Returns quaternion equivalent to rotation represented by the Euler angles, in the sequence defined by seq.

@@ -1063,7 +1063,7 @@

Introduction
-classmethod from_rotation_matrix(M)[source]#
+classmethod from_rotation_matrix(M)[source]#

Returns the equivalent quaternion of a matrix. The quaternion will be normalized only if the matrix is special orthogonal (orthogonal and det(M) = 1).

@@ -1095,7 +1095,7 @@

Introduction
-index_vector()[source]#
+index_vector()[source]#

Returns the index vector of the quaternion.

Returns:
@@ -1120,7 +1120,7 @@

Introduction
-integrate(*args)[source]#
+integrate(*args)[source]#

Computes integration of quaternion.

Returns:
@@ -1151,13 +1151,13 @@

Introduction
-inverse()[source]#
+inverse()[source]#

Returns the inverse of the quaternion.

-is_pure()[source]#
+is_pure()[source]#

Returns true if the quaternion is pure, false if the quaternion is not pure or returns none if it is unknown.

Explanation

@@ -1178,7 +1178,7 @@

Introduction
-is_zero_quaternion()[source]#
+is_zero_quaternion()[source]#

Returns true if the quaternion is a zero quaternion or false if it is not a zero quaternion and None if the value is unknown.

Explanation

@@ -1204,7 +1204,7 @@

Introduction
-mensor()[source]#
+mensor()[source]#

Returns the natural logarithm of the norm(magnitude) of the quaternion.

Examples

>>> from sympy.algebras.quaternion import Quaternion
@@ -1223,7 +1223,7 @@ 

Introduction
-mul(other)[source]#
+mul(other)[source]#

Multiplies quaternions.

Parameters:
@@ -1265,19 +1265,19 @@

Introduction
-norm()[source]#
+norm()[source]#

Returns the norm of the quaternion.

-normalize()[source]#
+normalize()[source]#

Returns the normalized form of the quaternion.

-orthogonal(other)[source]#
+orthogonal(other)[source]#

Returns the orthogonality of two quaternions.

Parameters:
@@ -1309,7 +1309,7 @@

Introduction
-parallel(other)[source]#
+parallel(other)[source]#

Returns True if the two pure quaternions seen as 3D vectors are parallel.

Parameters:
@@ -1341,7 +1341,7 @@

Introduction
-pow(p)[source]#
+pow(p)[source]#

Finds the pth power of the quaternion.

Parameters:
@@ -1369,7 +1369,7 @@

Introduction
-pow_cos_sin(p)[source]#
+pow_cos_sin(p)[source]#

Computes the pth power in the cos-sin form.

Parameters:
@@ -1494,7 +1494,7 @@

Introduction
-static rotate_point(pin, r)[source]#
+static rotate_point(pin, r)[source]#

Returns the coordinates of the point pin (a 3 tuple) after rotation.

Parameters:
@@ -1533,7 +1533,7 @@

Introduction
-scalar_part()[source]#
+scalar_part()[source]#

Returns scalar part(\(\mathbf{S}(q)\)) of the quaternion q.

Explanation

Given a quaternion \(q = a + bi + cj + dk\), returns \(\mathbf{S}(q) = a\).

@@ -1548,7 +1548,7 @@

Introduction
-set_norm(norm)[source]#
+set_norm(norm)[source]#

Sets norm of an already instantiated quaternion.

Parameters:
@@ -1583,7 +1583,7 @@

Introduction
-to_Matrix(vector_only=False)[source]#
+to_Matrix(vector_only=False)[source]#

Returns elements of quaternion as a column vector. By default, a Matrix of length 4 is returned, with the real part as the first element. @@ -1631,7 +1631,7 @@

Introduction
-to_axis_angle()[source]#
+to_axis_angle()[source]#

Returns the axis and angle of rotation of a quaternion.

Returns:
@@ -1655,7 +1655,7 @@

Introduction
-to_euler(seq, angle_addition=True, avoid_square_root=False)[source]#
+to_euler(seq, angle_addition=True, avoid_square_root=False)[source]#

Returns Euler angles representing same rotation as the quaternion, in the sequence given by seq. This implements the method described in [R3].

@@ -1723,7 +1723,7 @@

Introduction
-to_rotation_matrix(v=None, homogeneous=True)[source]#
+to_rotation_matrix(v=None, homogeneous=True)[source]#

Returns the equivalent rotation transformation matrix of the quaternion which represents rotation about the origin if v is not passed.

@@ -1766,7 +1766,7 @@

Introduction
-classmethod vector_coplanar(q1, q2, q3)[source]#
+classmethod vector_coplanar(q1, q2, q3)[source]#

Returns True if the axis of the pure quaternions seen as 3D vectors q1, q2, and q3 are coplanar.

@@ -1818,7 +1818,7 @@

Introduction
-vector_part()[source]#
+vector_part()[source]#

Returns \(\mathbf{V}(q)\), the vector part of the quaternion \(q\).

Explanation

Given a quaternion \(q = a + bi + cj + dk\), returns \(\mathbf{V}(q) = bi + cj + dk\).

diff --git a/dev/modules/assumptions/ask.html b/dev/modules/assumptions/ask.html index 1ad7bb4c7a7..cebe6979373 100644 --- a/dev/modules/assumptions/ask.html +++ b/dev/modules/assumptions/ask.html @@ -742,14 +742,14 @@
Documentation Version

Module for querying SymPy objects about assumptions.

-class sympy.assumptions.ask.AssumptionKeys[source]#
+class sympy.assumptions.ask.AssumptionKeys[source]#

This class contains all the supported keys by ask. It should be accessed via the instance sympy.Q.

-sympy.assumptions.ask.ask(proposition, assumptions=True, context={})[source]#
+sympy.assumptions.ask.ask(proposition, assumptions=True, context={})[source]#

Function to evaluate the proposition with assumptions.

Parameters:
@@ -839,7 +839,7 @@
Documentation Version
-sympy.assumptions.ask.register_handler(key, handler)[source]#
+sympy.assumptions.ask.register_handler(key, handler)[source]#

Register a handler in the ask system. key must be a string and handler a class inheriting from AskHandler.

@@ -849,7 +849,7 @@
Documentation Version
-sympy.assumptions.ask.remove_handler(key, handler)[source]#
+sympy.assumptions.ask.remove_handler(key, handler)[source]#

Removes a handler from the ask system.

Deprecated since version 1.8.: Use multipledispatch handler instead. See Predicate.

diff --git a/dev/modules/assumptions/assume.html b/dev/modules/assumptions/assume.html index 3a464ffd399..750da39e706 100644 --- a/dev/modules/assumptions/assume.html +++ b/dev/modules/assumptions/assume.html @@ -742,7 +742,7 @@
Documentation Version

A module which implements predicates and assumption context.

-class sympy.assumptions.assume.AppliedPredicate(predicate, *args)[source]#
+class sympy.assumptions.assume.AppliedPredicate(predicate, *args)[source]#

The class of expressions resulting from applying Predicate to the arguments. AppliedPredicate merely wraps its argument and remain unevaluated. To evaluate it, use the ask() function.

@@ -797,7 +797,7 @@
Documentation Version
-class sympy.assumptions.assume.AssumptionsContext[source]#
+class sympy.assumptions.assume.AssumptionsContext[source]#

Set containing default assumptions which are applied to the ask() function.

Explanation

@@ -842,7 +842,7 @@
Documentation Version
-add(*assumptions)[source]#
+add(*assumptions)[source]#

Add assumptions.

@@ -850,7 +850,7 @@
Documentation Version
-class sympy.assumptions.assume.Predicate(*args, **kwargs)[source]#
+class sympy.assumptions.assume.Predicate(*args, **kwargs)[source]#

Base class for mathematical predicates. It also serves as a constructor for undefined predicate objects.

Explanation

@@ -922,7 +922,7 @@
Documentation Version
-eval(args, assumptions=True)[source]#
+eval(args, assumptions=True)[source]#

Evaluate self(*args) under the given assumptions.

This uses only direct resolution methods, not logical inference.

@@ -934,13 +934,13 @@
Documentation Version
-classmethod register(*types, **kwargs)[source]#
+classmethod register(*types, **kwargs)[source]#

Register the signature to the handler.

-classmethod register_many(*types, **kwargs)[source]#
+classmethod register_many(*types, **kwargs)[source]#

Register multiple signatures to same handler.

@@ -948,7 +948,7 @@
Documentation Version
-class sympy.assumptions.assume.UndefinedPredicate(name, handlers=None)[source]#
+class sympy.assumptions.assume.UndefinedPredicate(name, handlers=None)[source]#

Predicate without handler.

Explanation

This predicate is generated by using Predicate directly for @@ -967,7 +967,7 @@

Documentation Version
-sympy.assumptions.assume.assuming(*assumptions)[source]#
+sympy.assumptions.assume.assuming(*assumptions)[source]#

Context manager for assumptions.

Examples

>>> from sympy import assuming, Q, ask
diff --git a/dev/modules/assumptions/index.html b/dev/modules/assumptions/index.html
index 2fa686ae492..30f968858ea 100644
--- a/dev/modules/assumptions/index.html
+++ b/dev/modules/assumptions/index.html
@@ -744,7 +744,7 @@ 
Documentation Version

Predicate#

-class sympy.assumptions.assume.Predicate(*args, **kwargs)[source]
+class sympy.assumptions.assume.Predicate(*args, **kwargs)[source]

Base class for mathematical predicates. It also serves as a constructor for undefined predicate objects.

Explanation

@@ -816,7 +816,7 @@

Predicate
-eval(args, assumptions=True)[source]
+eval(args, assumptions=True)[source]

Evaluate self(*args) under the given assumptions.

This uses only direct resolution methods, not logical inference.

@@ -828,13 +828,13 @@

Predicate
-classmethod register(*types, **kwargs)[source]
+classmethod register(*types, **kwargs)[source]

Register the signature to the handler.

-classmethod register_many(*types, **kwargs)[source]
+classmethod register_many(*types, **kwargs)[source]

Register multiple signatures to same handler.

@@ -842,7 +842,7 @@

Predicate
-class sympy.assumptions.assume.AppliedPredicate(predicate, *args)[source]
+class sympy.assumptions.assume.AppliedPredicate(predicate, *args)[source]

The class of expressions resulting from applying Predicate to the arguments. AppliedPredicate merely wraps its argument and remain unevaluated. To evaluate it, use the ask() function.

@@ -902,7 +902,7 @@

Querying is ask():

-sympy.assumptions.ask.ask(proposition, assumptions=True, context={})[source]
+sympy.assumptions.ask.ask(proposition, assumptions=True, context={})[source]

Function to evaluate the proposition with assumptions.

Parameters:
diff --git a/dev/modules/assumptions/predicates.html b/dev/modules/assumptions/predicates.html index f7909a500fa..bdadc128cbd 100644 --- a/dev/modules/assumptions/predicates.html +++ b/dev/modules/assumptions/predicates.html @@ -743,7 +743,7 @@
Documentation Version

Common#

-class sympy.assumptions.predicates.common.IsTruePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.common.IsTruePredicate(*args, **kwargs)[source]#

Generic predicate.

Explanation

ask(Q.is_true(x)) is true iff x is true. This only makes @@ -788,7 +788,7 @@

Common#
-class sympy.assumptions.predicates.common.CommutativePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.common.CommutativePredicate(*args, **kwargs)[source]#

Commutative predicate.

Explanation

ask(Q.commutative(x)) is true iff x commutes with any other @@ -808,7 +808,7 @@

Common#Calculus#

-class sympy.assumptions.predicates.calculus.FinitePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.calculus.FinitePredicate(*args, **kwargs)[source]#

Finite number predicate.

Explanation

Q.finite(x) is true if x is a number but neither an infinity @@ -852,7 +852,7 @@

Calculus
-class sympy.assumptions.predicates.calculus.InfinitePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.calculus.InfinitePredicate(*args, **kwargs)[source]#

Infinite number predicate.

Q.infinite(x) is true iff the absolute value of x is infinity.

@@ -871,7 +871,7 @@

Calculus

Matrix#

-class sympy.assumptions.predicates.matrices.SymmetricPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.SymmetricPredicate(*args, **kwargs)[source]#

Symmetric matrix predicate.

Explanation

Q.symmetric(x) is true iff x is a square matrix and is equal to @@ -908,7 +908,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.InvertiblePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.InvertiblePredicate(*args, **kwargs)[source]#

Invertible matrix predicate.

Explanation

Q.invertible(x) is true iff x is an invertible matrix. @@ -945,7 +945,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.OrthogonalPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.OrthogonalPredicate(*args, **kwargs)[source]#

Orthogonal matrix predicate.

Explanation

Q.orthogonal(x) is true iff x is an orthogonal matrix. @@ -987,7 +987,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.UnitaryPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.UnitaryPredicate(*args, **kwargs)[source]#

Unitary matrix predicate.

Explanation

Q.unitary(x) is true iff x is a unitary matrix. @@ -1026,7 +1026,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.PositiveDefinitePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.PositiveDefinitePredicate(*args, **kwargs)[source]#

Positive definite matrix predicate.

Explanation

If \(M\) is a \(n \times n\) symmetric real matrix, it is said @@ -1065,7 +1065,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.UpperTriangularPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.UpperTriangularPredicate(*args, **kwargs)[source]#

Upper triangular matrix predicate.

Explanation

A matrix \(M\) is called upper triangular matrix if \(M_{ij}=0\) @@ -1097,7 +1097,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.LowerTriangularPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.LowerTriangularPredicate(*args, **kwargs)[source]#

Lower triangular matrix predicate.

Explanation

A matrix \(M\) is called lower triangular matrix if \(M_{ij}=0\) @@ -1129,7 +1129,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.DiagonalPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.DiagonalPredicate(*args, **kwargs)[source]#

Diagonal matrix predicate.

Explanation

Q.diagonal(x) is true iff x is a diagonal matrix. A diagonal @@ -1164,7 +1164,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.FullRankPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.FullRankPredicate(*args, **kwargs)[source]#

Fullrank matrix predicate.

Explanation

Q.fullrank(x) is true iff x is a full rank matrix. @@ -1194,7 +1194,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.SquarePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.SquarePredicate(*args, **kwargs)[source]#

Square matrix predicate.

Explanation

Q.square(x) is true iff x is a square matrix. A square matrix @@ -1232,7 +1232,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.IntegerElementsPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.IntegerElementsPredicate(*args, **kwargs)[source]#

Integer elements matrix predicate.

Explanation

Q.integer_elements(x) is true iff all the elements of x @@ -1256,7 +1256,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.RealElementsPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.RealElementsPredicate(*args, **kwargs)[source]#

Real elements matrix predicate.

Explanation

Q.real_elements(x) is true iff all the elements of x @@ -1280,7 +1280,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.ComplexElementsPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.ComplexElementsPredicate(*args, **kwargs)[source]#

Complex elements matrix predicate.

Explanation

Q.complex_elements(x) is true iff all the elements of x @@ -1306,7 +1306,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.SingularPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.SingularPredicate(*args, **kwargs)[source]#

Singular matrix predicate.

A matrix is singular iff the value of its determinant is 0.

Examples

@@ -1337,7 +1337,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.NormalPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.NormalPredicate(*args, **kwargs)[source]#

Normal matrix predicate.

A matrix is normal if it commutes with its conjugate transpose.

Examples

@@ -1366,7 +1366,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.TriangularPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.TriangularPredicate(*args, **kwargs)[source]#

Triangular matrix predicate.

Explanation

Q.triangular(X) is true if X is one that is either lower @@ -1399,7 +1399,7 @@

Matrix#
-class sympy.assumptions.predicates.matrices.UnitTriangularPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.matrices.UnitTriangularPredicate(*args, **kwargs)[source]#

Unit triangular matrix predicate.

Explanation

A unit triangular matrix is a triangular matrix with 1s @@ -1426,7 +1426,7 @@

Matrix#Number Theory#

-class sympy.assumptions.predicates.ntheory.EvenPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.ntheory.EvenPredicate(*args, **kwargs)[source]#

Even number predicate.

Explanation

ask(Q.even(x)) is true iff x belongs to the set of even @@ -1455,7 +1455,7 @@

Number Theory
-class sympy.assumptions.predicates.ntheory.OddPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.ntheory.OddPredicate(*args, **kwargs)[source]#

Odd number predicate.

Explanation

ask(Q.odd(x)) is true iff x belongs to the set of odd numbers.

@@ -1483,7 +1483,7 @@

Number Theory
-class sympy.assumptions.predicates.ntheory.PrimePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.ntheory.PrimePredicate(*args, **kwargs)[source]#

Prime number predicate.

Explanation

ask(Q.prime(x)) is true iff x is a natural number greater @@ -1515,7 +1515,7 @@

Number Theory
-class sympy.assumptions.predicates.ntheory.CompositePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.ntheory.CompositePredicate(*args, **kwargs)[source]#

Composite number predicate.

Explanation

ask(Q.composite(x)) is true iff x is a positive integer and has @@ -1547,7 +1547,7 @@

Number Theory#

-class sympy.assumptions.predicates.order.PositivePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.order.PositivePredicate(*args, **kwargs)[source]#

Positive real number predicate.

Explanation

Q.positive(x) is true iff x is real and \(x > 0\), that is if x @@ -1595,7 +1595,7 @@

Order#<
-class sympy.assumptions.predicates.order.NegativePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.order.NegativePredicate(*args, **kwargs)[source]#

Negative number predicate.

Explanation

Q.negative(x) is true iff x is a real number and \(x < 0\), that is, @@ -1643,7 +1643,7 @@

Order#<
-class sympy.assumptions.predicates.order.ZeroPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.order.ZeroPredicate(*args, **kwargs)[source]#

Zero number predicate.

Explanation

ask(Q.zero(x)) is true iff the value of x is zero.

@@ -1674,7 +1674,7 @@

Order#<
-class sympy.assumptions.predicates.order.NonZeroPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.order.NonZeroPredicate(*args, **kwargs)[source]#

Nonzero real number predicate.

Explanation

ask(Q.nonzero(x)) is true iff x is real and x is not zero. Note in @@ -1721,7 +1721,7 @@

Order#<
-class sympy.assumptions.predicates.order.NonPositivePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.order.NonPositivePredicate(*args, **kwargs)[source]#

Nonpositive real number predicate.

Explanation

ask(Q.nonpositive(x)) is true iff x belongs to the set of @@ -1765,7 +1765,7 @@

Order#<
-class sympy.assumptions.predicates.order.NonNegativePredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.order.NonNegativePredicate(*args, **kwargs)[source]#

Nonnegative real number predicate.

Explanation

ask(Q.nonnegative(x)) is true iff x belongs to the set of @@ -1810,7 +1810,7 @@

Order#<

Sets#

-class sympy.assumptions.predicates.sets.IntegerPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.IntegerPredicate(*args, **kwargs)[source]#

Integer predicate.

Explanation

Q.integer(x) is true iff x belongs to the set of integer @@ -1843,7 +1843,7 @@

Sets#
-class sympy.assumptions.predicates.sets.RationalPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.RationalPredicate(*args, **kwargs)[source]#

Rational number predicate.

Explanation

Q.rational(x) is true iff x belongs to the set of @@ -1878,7 +1878,7 @@

Sets#
-class sympy.assumptions.predicates.sets.IrrationalPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.IrrationalPredicate(*args, **kwargs)[source]#

Irrational number predicate.

Explanation

Q.irrational(x) is true iff x is any real number that @@ -1915,7 +1915,7 @@

Sets#
-class sympy.assumptions.predicates.sets.RealPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.RealPredicate(*args, **kwargs)[source]#

Real number predicate.

Explanation

Q.real(x) is true iff x is a real number, i.e., it is in the @@ -1986,7 +1986,7 @@

Sets#
-class sympy.assumptions.predicates.sets.ExtendedRealPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.ExtendedRealPredicate(*args, **kwargs)[source]#

Extended real predicate.

Explanation

Q.extended_real(x) is true iff x is a real number or @@ -2017,7 +2017,7 @@

Sets#
-class sympy.assumptions.predicates.sets.HermitianPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.HermitianPredicate(*args, **kwargs)[source]#

Hermitian predicate.

Explanation

ask(Q.hermitian(x)) is true iff x belongs to the set of @@ -2042,7 +2042,7 @@

Sets#
-class sympy.assumptions.predicates.sets.ComplexPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.ComplexPredicate(*args, **kwargs)[source]#

Complex number predicate.

Explanation

Q.complex(x) is true iff x belongs to the set of complex @@ -2078,7 +2078,7 @@

Sets#
-class sympy.assumptions.predicates.sets.ImaginaryPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.ImaginaryPredicate(*args, **kwargs)[source]#

Imaginary number predicate.

Explanation

Q.imaginary(x) is true iff x can be written as a real @@ -2115,7 +2115,7 @@

Sets#
-class sympy.assumptions.predicates.sets.AntihermitianPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.AntihermitianPredicate(*args, **kwargs)[source]#

Antihermitian predicate.

Explanation

Q.antihermitian(x) is true iff x belongs to the field of @@ -2142,7 +2142,7 @@

Sets#
-class sympy.assumptions.predicates.sets.AlgebraicPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.AlgebraicPredicate(*args, **kwargs)[source]#

Algebraic number predicate.

Explanation

Q.algebraic(x) is true iff x belongs to the set of @@ -2182,7 +2182,7 @@

Sets#
-class sympy.assumptions.predicates.sets.TranscendentalPredicate(*args, **kwargs)[source]#
+class sympy.assumptions.predicates.sets.TranscendentalPredicate(*args, **kwargs)[source]#

Transcedental number predicate.

Explanation

Q.transcendental(x) is true iff x belongs to the set of diff --git a/dev/modules/assumptions/refine.html b/dev/modules/assumptions/refine.html index caee5337ec2..f693e5a0bc6 100644 --- a/dev/modules/assumptions/refine.html +++ b/dev/modules/assumptions/refine.html @@ -741,7 +741,7 @@

Documentation Version

Refine#

-sympy.assumptions.refine.refine(expr, assumptions=True)[source]#
+sympy.assumptions.refine.refine(expr, assumptions=True)[source]#

Simplify an expression using assumptions.

Explanation

Unlike simplify() which performs structural simplification @@ -779,7 +779,7 @@

Documentation Version
-sympy.assumptions.refine.refine_Pow(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_Pow(expr, assumptions)[source]#

Handler for instances of Pow.

Examples

>>> from sympy import Q
@@ -807,7 +807,7 @@ 
Documentation Version
-sympy.assumptions.refine.refine_abs(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_abs(expr, assumptions)[source]#

Handler for the absolute value.

Examples

>>> from sympy import Q, Abs
@@ -824,7 +824,7 @@ 
Documentation Version
-sympy.assumptions.refine.refine_arg(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_arg(expr, assumptions)[source]#

Handler for complex argument

Explanation

>>> from sympy.assumptions.refine import refine_arg
@@ -840,7 +840,7 @@ 
Documentation Version
-sympy.assumptions.refine.refine_atan2(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_atan2(expr, assumptions)[source]#

Handler for the atan2 function.

Examples

>>> from sympy import Q, atan2
@@ -866,7 +866,7 @@ 
Documentation Version
-sympy.assumptions.refine.refine_im(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_im(expr, assumptions)[source]#

Handler for imaginary part.

Explanation

>>> from sympy.assumptions.refine import refine_im
@@ -882,7 +882,7 @@ 
Documentation Version
-sympy.assumptions.refine.refine_matrixelement(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_matrixelement(expr, assumptions)[source]#

Handler for symmetric part.

Examples

>>> from sympy.assumptions.refine import refine_matrixelement
@@ -898,7 +898,7 @@ 
Documentation Version
-sympy.assumptions.refine.refine_re(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_re(expr, assumptions)[source]#

Handler for real part.

Examples

>>> from sympy.assumptions.refine import refine_re
@@ -914,7 +914,7 @@ 
Documentation Version
-sympy.assumptions.refine.refine_sign(expr, assumptions)[source]#
+sympy.assumptions.refine.refine_sign(expr, assumptions)[source]#

Handler for sign.

Examples

>>> from sympy.assumptions.refine import refine_sign
diff --git a/dev/modules/calculus/index.html b/dev/modules/calculus/index.html
index c0bd8810a13..e9e32ecc23f 100644
--- a/dev/modules/calculus/index.html
+++ b/dev/modules/calculus/index.html
@@ -744,7 +744,7 @@ 
Documentation Version
Euler-Lagrange Equations for given Lagrangian.

-sympy.calculus.euler.euler_equations(L, funcs=(), vars=())[source]#
+sympy.calculus.euler.euler_equations(L, funcs=(), vars=())[source]#

Find the Euler-Lagrange equations [R31] for a given Lagrangian.

Parameters:
@@ -822,7 +822,7 @@
Documentation Version
-sympy.calculus.singularities.is_decreasing(expression, interval=Reals, symbol=None)[source]#
+sympy.calculus.singularities.is_decreasing(expression, interval=Reals, symbol=None)[source]#

Return whether the function is decreasing in the given interval.

Parameters:
@@ -872,7 +872,7 @@
Documentation Version
-sympy.calculus.singularities.is_increasing(expression, interval=Reals, symbol=None)[source]#
+sympy.calculus.singularities.is_increasing(expression, interval=Reals, symbol=None)[source]#

Return whether the function is increasing in the given interval.

Parameters:
@@ -918,7 +918,7 @@
Documentation Version
-sympy.calculus.singularities.is_monotonic(expression, interval=Reals, symbol=None)[source]#
+sympy.calculus.singularities.is_monotonic(expression, interval=Reals, symbol=None)[source]#

Return whether the function is monotonic in the given interval.

Parameters:
@@ -972,7 +972,7 @@
Documentation Version
-sympy.calculus.singularities.is_strictly_decreasing(expression, interval=Reals, symbol=None)[source]#
+sympy.calculus.singularities.is_strictly_decreasing(expression, interval=Reals, symbol=None)[source]#

Return whether the function is strictly decreasing in the given interval.

Parameters:
@@ -1018,7 +1018,7 @@
Documentation Version
-sympy.calculus.singularities.is_strictly_increasing(expression, interval=Reals, symbol=None)[source]#
+sympy.calculus.singularities.is_strictly_increasing(expression, interval=Reals, symbol=None)[source]#

Return whether the function is strictly increasing in the given interval.

Parameters:
@@ -1064,7 +1064,7 @@
Documentation Version
-sympy.calculus.singularities.monotonicity_helper(expression, predicate, interval=Reals, symbol=None)[source]#
+sympy.calculus.singularities.monotonicity_helper(expression, predicate, interval=Reals, symbol=None)[source]#

Helper function for functions checking function monotonicity.

Parameters:
@@ -1103,7 +1103,7 @@
Documentation Version
-sympy.calculus.singularities.singularities(expression, symbol, domain=None)[source]#
+sympy.calculus.singularities.singularities(expression, symbol, domain=None)[source]#

Find singularities of a given function.

Parameters:
@@ -1190,7 +1190,7 @@
Documentation Version
-sympy.calculus.finite_diff.apply_finite_diff(order, x_list, y_list, x0=0)[source]#
+sympy.calculus.finite_diff.apply_finite_diff(order, x_list, y_list, x0=0)[source]#

Calculates the finite difference approximation of the derivative of requested order at x0 from points provided in x_list and y_list.

@@ -1259,7 +1259,7 @@
Documentation Version
-sympy.calculus.finite_diff.differentiate_finite(expr, *symbols, points=1, x0=None, wrt=None, evaluate=False)[source]#
+sympy.calculus.finite_diff.differentiate_finite(expr, *symbols, points=1, x0=None, wrt=None, evaluate=False)[source]#

Differentiate expr and replace Derivatives with finite differences.

Parameters:
@@ -1311,7 +1311,7 @@
Documentation Version
-sympy.calculus.finite_diff.finite_diff_weights(order, x_list, x0=1)[source]#
+sympy.calculus.finite_diff.finite_diff_weights(order, x_list, x0=1)[source]#

Calculates the finite difference weights for an arbitrarily spaced one-dimensional grid (x_list) for derivatives at x0 of order 0, 1, …, up to order using a recursive formula. Order of accuracy @@ -1449,7 +1449,7 @@

Documentation Version
-sympy.calculus.util.continuous_domain(f, symbol, domain)[source]#
+sympy.calculus.util.continuous_domain(f, symbol, domain)[source]#

Returns the intervals in the given domain for which the function is continuous. This method is limited by the ability to determine the various @@ -1501,7 +1501,7 @@

Documentation Version
-sympy.calculus.util.function_range(f, symbol, domain)[source]#
+sympy.calculus.util.function_range(f, symbol, domain)[source]#

Finds the range of a function in a given domain. This method is limited by the ability to determine the singularities and determine limits.

@@ -1558,7 +1558,7 @@
Documentation Version
-sympy.calculus.util.is_convex(f, *syms, domain=Reals)[source]#
+sympy.calculus.util.is_convex(f, *syms, domain=Reals)[source]#

Determines the convexity of the function passed in the argument.

Parameters:
@@ -1635,7 +1635,7 @@
Documentation Version
-sympy.calculus.util.lcim(numbers)[source]#
+sympy.calculus.util.lcim(numbers)[source]#

Returns the least common integral multiple of a list of numbers.

The numbers can be rational or irrational or a mixture of both. \(None\) is returned for incommensurable numbers.

@@ -1667,7 +1667,7 @@
Documentation Version
-sympy.calculus.util.maximum(f, symbol, domain=Reals)[source]#
+sympy.calculus.util.maximum(f, symbol, domain=Reals)[source]#

Returns the maximum value of a function in the given domain.

Parameters:
@@ -1714,7 +1714,7 @@
Documentation Version
-sympy.calculus.util.minimum(f, symbol, domain=Reals)[source]#
+sympy.calculus.util.minimum(f, symbol, domain=Reals)[source]#

Returns the minimum value of a function in the given domain.

Parameters:
@@ -1761,7 +1761,7 @@
Documentation Version
-sympy.calculus.util.not_empty_in(finset_intersection, *syms)[source]#
+sympy.calculus.util.not_empty_in(finset_intersection, *syms)[source]#

Finds the domain of the functions in finset_intersection in which the finite_set is not-empty.

@@ -1808,7 +1808,7 @@
Documentation Version
-sympy.calculus.util.periodicity(f, symbol, check=False)[source]#
+sympy.calculus.util.periodicity(f, symbol, check=False)[source]#

Tests the given function for periodicity in the given symbol.

Parameters:
@@ -1868,7 +1868,7 @@
Documentation Version
-sympy.calculus.util.stationary_points(f, symbol, domain=Reals)[source]#
+sympy.calculus.util.stationary_points(f, symbol, domain=Reals)[source]#

Returns the stationary points of a function (where derivative of the function is 0) in the given domain.

diff --git a/dev/modules/categories.html b/dev/modules/categories.html index 7a191e92f6a..c6939e46c5c 100644 --- a/dev/modules/categories.html +++ b/dev/modules/categories.html @@ -765,7 +765,7 @@

Introduction
-class sympy.categories.Object(name, **assumptions)[source]#
+class sympy.categories.Object(name, **assumptions)[source]#

The base class for any kind of object in an abstract category.

Explanation

While technically any instance of Basic will do, this @@ -775,7 +775,7 @@

Introduction
-class sympy.categories.Morphism(domain, codomain)[source]#
+class sympy.categories.Morphism(domain, codomain)[source]#

The base class for any morphism in an abstract category.

Explanation

In abstract categories, a morphism is an arrow between two @@ -808,7 +808,7 @@

Introduction
-compose(other)[source]#
+compose(other)[source]#

Composes self with the supplied morphism.

The order of elements in the composition is the usual order, i.e., to construct \(g\circ f\) use g.compose(f).

@@ -849,7 +849,7 @@

Introduction
-class sympy.categories.NamedMorphism(domain, codomain, name)[source]#
+class sympy.categories.NamedMorphism(domain, codomain, name)[source]#

Represents a morphism which has a name.

Explanation

Names are used to distinguish between morphisms which have the @@ -889,7 +889,7 @@

Introduction
-class sympy.categories.CompositeMorphism(*components)[source]#
+class sympy.categories.CompositeMorphism(*components)[source]#

Represents a morphism which is a composition of other morphisms.

Explanation

Two composite morphisms are equal if the morphisms they were @@ -971,7 +971,7 @@

Introduction
-flatten(new_name)[source]#
+flatten(new_name)[source]#

Forgets the composite structure of this morphism.

Explanation

If new_name is not empty, returns a NamedMorphism @@ -996,7 +996,7 @@

Introduction
-class sympy.categories.IdentityMorphism(domain)[source]#
+class sympy.categories.IdentityMorphism(domain)[source]#

Represents an identity morphism.

Explanation

An identity morphism is a morphism with equal domain and codomain, @@ -1022,7 +1022,7 @@

Introduction
-class sympy.categories.Category(name, objects=EmptySet, commutative_diagrams=EmptySet)[source]#
+class sympy.categories.Category(name, objects=EmptySet, commutative_diagrams=EmptySet)[source]#

An (abstract) category.

Explanation

A category [JoyOfCats] is a quadruple \(\mbox{K} = (O, \hom, id, @@ -1119,7 +1119,7 @@

Introduction
-class sympy.categories.Diagram(*args)[source]#
+class sympy.categories.Diagram(*args)[source]#

Represents a diagram in a certain category.

Explanation

Informally, a diagram is a collection of objects of a category and @@ -1194,7 +1194,7 @@

Introduction
-hom(A, B)[source]#
+hom(A, B)[source]#

Returns a 2-tuple of sets of morphisms between objects A and B: one set of morphisms listed as premises, and the other set of morphisms listed as conclusions.

@@ -1219,7 +1219,7 @@

Introduction
-is_subdiagram(diagram)[source]#
+is_subdiagram(diagram)[source]#

Checks whether diagram is a subdiagram of self. Diagram \(D'\) is a subdiagram of \(D\) if all premises (conclusions) of \(D'\) are contained in the premises @@ -1284,7 +1284,7 @@

Introduction
-subdiagram_from_objects(objects)[source]#
+subdiagram_from_objects(objects)[source]#

If objects is a subset of the objects of self, returns a diagram which has as premises all those premises of self which have a domains and codomains in objects, likewise @@ -1314,7 +1314,7 @@

Introduction
-class sympy.categories.diagram_drawing.DiagramGrid(diagram, groups=None, **hints)[source]#
+class sympy.categories.diagram_drawing.DiagramGrid(diagram, groups=None, **hints)[source]#

Constructs and holds the fitting of the diagram into a grid.

Explanation

The mission of this class is to analyse the structure of the @@ -1503,7 +1503,7 @@

Introduction
-class sympy.categories.diagram_drawing.ArrowStringDescription(unit, curving, curving_amount, looping_start, looping_end, horizontal_direction, vertical_direction, label_position, label)[source]#
+class sympy.categories.diagram_drawing.ArrowStringDescription(unit, curving, curving_amount, looping_start, looping_end, horizontal_direction, vertical_direction, label_position, label)[source]#

Stores the information necessary for producing an Xy-pic description of an arrow.

The principal goal of this class is to abstract away the string @@ -1598,7 +1598,7 @@

Introduction
-class sympy.categories.diagram_drawing.XypicDiagramDrawer[source]#
+class sympy.categories.diagram_drawing.XypicDiagramDrawer[source]#

Given a Diagram and the corresponding DiagramGrid, produces the Xy-pic representation of the diagram.

@@ -1711,7 +1711,7 @@

Introduction
-draw(diagram, grid, masked=None, diagram_format='')[source]#
+draw(diagram, grid, masked=None, diagram_format='')[source]#

Returns the Xy-pic representation of diagram laid out in grid.

Consider the following simple triangle diagram.

@@ -1764,7 +1764,7 @@

Introduction
-sympy.categories.diagram_drawing.xypic_draw_diagram(diagram, masked=None, diagram_format='', groups=None, **hints)[source]#
+sympy.categories.diagram_drawing.xypic_draw_diagram(diagram, masked=None, diagram_format='', groups=None, **hints)[source]#

Provides a shortcut combining DiagramGrid and XypicDiagramDrawer. Returns an Xy-pic presentation of diagram. The argument masked is a list of morphisms which @@ -1798,7 +1798,7 @@

Introduction
-sympy.categories.diagram_drawing.preview_diagram(diagram, masked=None, diagram_format='', groups=None, output='png', viewer=None, euler=True, **hints)[source]#
+sympy.categories.diagram_drawing.preview_diagram(diagram, masked=None, diagram_format='', groups=None, output='png', viewer=None, euler=True, **hints)[source]#

Combines the functionality of xypic_draw_diagram and sympy.printing.preview. The arguments masked, diagram_format, groups, and hints are passed to diff --git a/dev/modules/codegen.html b/dev/modules/codegen.html index fed7ddabdc9..a08d6b6ef92 100644 --- a/dev/modules/codegen.html +++ b/dev/modules/codegen.html @@ -1274,7 +1274,7 @@

Autowrap
-class sympy.codegen.rewriting.FuncMinusOneOptim(func, func_m_1, opportunistic=True)[source]#
+class sympy.codegen.rewriting.FuncMinusOneOptim(func, func_m_1, opportunistic=True)[source]#

Specialization of ReplaceOptim for functions evaluating “f(x) - 1”.

Parameters:
@@ -1313,7 +1313,7 @@

Autowrap

-replace_in_Add(e)[source]#
+replace_in_Add(e)[source]#

passed as second argument to Basic.replace(…)

@@ -1321,7 +1321,7 @@

Autowrap
-class sympy.codegen.rewriting.Optimization(cost_function=None, priority=1)[source]#
+class sympy.codegen.rewriting.Optimization(cost_function=None, priority=1)[source]#

Abstract base class for rewriting optimization.

Subclasses should implement __call__ taking an expression as argument.

@@ -1335,7 +1335,7 @@

Autowrap
-class sympy.codegen.rewriting.ReplaceOptim(query, value, **kwargs)[source]#
+class sympy.codegen.rewriting.ReplaceOptim(query, value, **kwargs)[source]#

Rewriting optimization calling replace on expressions.

Parameters:
@@ -1368,7 +1368,7 @@

Autowrap
-sympy.codegen.rewriting.create_expand_pow_optimization(limit, *, base_req=<function <lambda>>)[source]#
+sympy.codegen.rewriting.create_expand_pow_optimization(limit, *, base_req=<function <lambda>>)[source]#

Creates an instance of ReplaceOptim for expanding Pow.

Parameters:
@@ -1405,7 +1405,7 @@

Autowrap
-sympy.codegen.rewriting.optimize(expr, optimizations)[source]#
+sympy.codegen.rewriting.optimize(expr, optimizations)[source]#

Apply optimizations to an expression.

Parameters:
@@ -1446,7 +1446,7 @@

Autowrap

-class sympy.codegen.matrix_nodes.MatrixSolve(*args, **kwargs)[source]#
+class sympy.codegen.matrix_nodes.MatrixSolve(*args, **kwargs)[source]#

Represents an operation to solve a linear matrix equation.

Parameters:
@@ -1484,7 +1484,7 @@

Autowrap

Tools for simplifying expressions using approximations (sympy.codegen.approximations)#

-class sympy.codegen.approximations.SeriesApprox(bounds, reltol, max_order=4, n_point_checks=4, **kwargs)[source]#
+class sympy.codegen.approximations.SeriesApprox(bounds, reltol, max_order=4, n_point_checks=4, **kwargs)[source]#

Approximates functions by expanding them as a series.

Parameters:
@@ -1531,7 +1531,7 @@

Autowrap
-class sympy.codegen.approximations.SumApprox(bounds, reltol, **kwargs)[source]#
+class sympy.codegen.approximations.SumApprox(bounds, reltol, **kwargs)[source]#

Approximates sum by neglecting small terms.

Parameters:
@@ -1693,7 +1693,7 @@

Using the nodes
-class sympy.codegen.ast.Assignment(lhs, rhs)[source]#
+class sympy.codegen.ast.Assignment(lhs, rhs)[source]#

Represents variable assignment for code generation.

Parameters:
@@ -1733,7 +1733,7 @@

Using the nodes
-class sympy.codegen.ast.AssignmentBase(lhs, rhs)[source]#
+class sympy.codegen.ast.AssignmentBase(lhs, rhs)[source]#

Abstract base class for Assignment and AugmentedAssignment.

Attributes:

@@ -1744,7 +1744,7 @@

Using the nodes
-class sympy.codegen.ast.Attribute(possibly parametrized)[source]#
+class sympy.codegen.ast.Attribute(possibly parametrized)[source]#

For use with sympy.codegen.ast.Node (which takes instances of Attribute as attrs).

@@ -1771,7 +1771,7 @@

Using the nodes
-class sympy.codegen.ast.AugmentedAssignment(lhs, rhs)[source]#
+class sympy.codegen.ast.AugmentedAssignment(lhs, rhs)[source]#

Base class for augmented assignments.

Attributes:

@@ -1783,7 +1783,7 @@

Using the nodes
-class sympy.codegen.ast.BreakToken(*args, **kwargs)[source]#
+class sympy.codegen.ast.BreakToken(*args, **kwargs)[source]#

Represents ‘break’ in C/Python (‘exit’ in Fortran).

Use the premade instance break_ or instantiate manually.

Examples

@@ -1799,7 +1799,7 @@

Using the nodes
-class sympy.codegen.ast.CodeBlock(*args)[source]#
+class sympy.codegen.ast.CodeBlock(*args)[source]#

Represents a block of code.

Explanation

For now only assignments are supported. This restriction will be lifted in @@ -1835,7 +1835,7 @@

Using the nodes
-cse(symbols=None, optimizations=None, postprocess=None, order='canonical')[source]#
+cse(symbols=None, optimizations=None, postprocess=None, order='canonical')[source]#

Return a new code block with common subexpressions eliminated.

Explanation

See the docstring of sympy.simplify.cse_main.cse() for more @@ -1865,7 +1865,7 @@

Using the nodes
-classmethod topological_sort(assignments)[source]#
+classmethod topological_sort(assignments)[source]#

Return a CodeBlock with topologically sorted assignments so that variables are assigned before they are used.

Examples

@@ -1897,19 +1897,19 @@

Using the nodes
-class sympy.codegen.ast.Comment(*args, **kwargs)[source]#
+class sympy.codegen.ast.Comment(*args, **kwargs)[source]#

Represents a comment.

-class sympy.codegen.ast.ComplexType(*args, **kwargs)[source]#
+class sympy.codegen.ast.ComplexType(*args, **kwargs)[source]#

Represents a complex floating point number.

-class sympy.codegen.ast.ContinueToken(*args, **kwargs)[source]#
+class sympy.codegen.ast.ContinueToken(*args, **kwargs)[source]#

Represents ‘continue’ in C/Python (‘cycle’ in Fortran)

Use the premade instance continue_ or instantiate manually.

Examples

@@ -1925,7 +1925,7 @@

Using the nodes
-class sympy.codegen.ast.Declaration(*args, **kwargs)[source]#
+class sympy.codegen.ast.Declaration(*args, **kwargs)[source]#

Represents a variable declaration

Parameters:
@@ -1950,7 +1950,7 @@

Using the nodes
-class sympy.codegen.ast.Element(*args, **kwargs)[source]#
+class sympy.codegen.ast.Element(*args, **kwargs)[source]#

Element in (a possibly N-dimensional) array.

Examples

>>> from sympy.codegen.ast import Element
@@ -1970,11 +1970,11 @@ 

Using the nodes
-class sympy.codegen.ast.FloatBaseType(*args, **kwargs)[source]#
+class sympy.codegen.ast.FloatBaseType(*args, **kwargs)[source]#

Represents a floating point number type.

-cast_nocheck[source]#
+cast_nocheck[source]#

alias of Float

@@ -1982,7 +1982,7 @@

Using the nodes
-class sympy.codegen.ast.FloatType(*args, **kwargs)[source]#
+class sympy.codegen.ast.FloatType(*args, **kwargs)[source]#

Represents a floating point type with fixed bit width.

Base 2 & one sign bit is assumed.

@@ -2029,7 +2029,7 @@

Using the nodes
-cast_nocheck(value)[source]#
+cast_nocheck(value)[source]#

Casts without checking if out of bounds or subnormal.

@@ -2086,7 +2086,7 @@

Using the nodes
-class sympy.codegen.ast.For(*args, **kwargs)[source]#
+class sympy.codegen.ast.For(*args, **kwargs)[source]#

Represents a ‘for-loop’ in the code.

@@ -2138,7 +2138,7 @@

Using the nodes
-class sympy.codegen.ast.FunctionCall(*args, **kwargs)[source]#
+class sympy.codegen.ast.FunctionCall(*args, **kwargs)[source]#

Represents a call to a function in the code.

Parameters:
@@ -2158,7 +2158,7 @@

Using the nodes
-class sympy.codegen.ast.FunctionDefinition(*args, **kwargs)[source]#
+class sympy.codegen.ast.FunctionDefinition(*args, **kwargs)[source]#

Represents a function definition in the code.

Parameters:
@@ -2189,7 +2189,7 @@

Using the nodes
-class sympy.codegen.ast.FunctionPrototype(*args, **kwargs)[source]#
+class sympy.codegen.ast.FunctionPrototype(*args, **kwargs)[source]#

Represents a function prototype

Allows the user to generate forward declaration in e.g. C/C++.

@@ -2213,13 +2213,13 @@

Using the nodes
-class sympy.codegen.ast.IntBaseType(*args, **kwargs)[source]#
+class sympy.codegen.ast.IntBaseType(*args, **kwargs)[source]#

Integer base type, contains no size information.

-class sympy.codegen.ast.Node(*args, **kwargs)[source]#
+class sympy.codegen.ast.Node(*args, **kwargs)[source]#

Subclass of Token, carrying the attribute ‘attrs’ (Tuple)

Examples

>>> from sympy.codegen.ast import Node, value_const, pointer_const
@@ -2238,7 +2238,7 @@ 

Using the nodes
-attr_params(looking_for)[source]#
+attr_params(looking_for)[source]#

Returns the parameters of the Attribute with name looking_for in self.attrs

@@ -2246,7 +2246,7 @@

Using the nodes
-class sympy.codegen.ast.NoneToken(*args, **kwargs)[source]#
+class sympy.codegen.ast.NoneToken(*args, **kwargs)[source]#

The AST equivalence of Python’s NoneType

The corresponding instance of Python’s None is none.

Examples

@@ -2260,7 +2260,7 @@

Using the nodes
-class sympy.codegen.ast.Pointer(*args, **kwargs)[source]#
+class sympy.codegen.ast.Pointer(*args, **kwargs)[source]#

Represents a pointer. See Variable.

Examples

Can create instances of Element:

@@ -2276,7 +2276,7 @@

Using the nodes
-class sympy.codegen.ast.Print(*args, **kwargs)[source]#
+class sympy.codegen.ast.Print(*args, **kwargs)[source]#

Represents print command in the code.

Parameters:
@@ -2295,19 +2295,19 @@

Using the nodes
-class sympy.codegen.ast.QuotedString(*args, **kwargs)[source]#
+class sympy.codegen.ast.QuotedString(*args, **kwargs)[source]#

Represents a string which should be printed with quotes.

-class sympy.codegen.ast.Raise(*args, **kwargs)[source]#
+class sympy.codegen.ast.Raise(*args, **kwargs)[source]#

Prints as ‘raise …’ in Python, ‘throw …’ in C++

-class sympy.codegen.ast.Return(*args, **kwargs)[source]#
+class sympy.codegen.ast.Return(*args, **kwargs)[source]#

Represents a return command in the code.

Parameters:
@@ -2327,14 +2327,14 @@

Using the nodes
-class sympy.codegen.ast.RuntimeError_(*args, **kwargs)[source]#
+class sympy.codegen.ast.RuntimeError_(*args, **kwargs)[source]#

Represents ‘std::runtime_error’ in C++ and ‘RuntimeError’ in Python.

Note that the latter is uncommon, and you might want to use e.g. ValueError.

-class sympy.codegen.ast.Scope(*args, **kwargs)[source]#
+class sympy.codegen.ast.Scope(*args, **kwargs)[source]#

Represents a scope in the code.

Parameters:
@@ -2348,13 +2348,13 @@

Using the nodes
-class sympy.codegen.ast.SignedIntType(*args, **kwargs)[source]#
+class sympy.codegen.ast.SignedIntType(*args, **kwargs)[source]#

Represents a signed integer type.

-class sympy.codegen.ast.Stream(*args, **kwargs)[source]#
+class sympy.codegen.ast.Stream(*args, **kwargs)[source]#

Represents a stream.

There are two predefined Stream instances stdout & stderr.

@@ -2376,7 +2376,7 @@

Using the nodes
-class sympy.codegen.ast.String(*args, **kwargs)[source]#
+class sympy.codegen.ast.String(*args, **kwargs)[source]#

SymPy object representing a string.

Atomic object which is not an expression (as opposed to Symbol).

@@ -2401,7 +2401,7 @@

Using the nodes
-class sympy.codegen.ast.Token(*args, **kwargs)[source]#
+class sympy.codegen.ast.Token(*args, **kwargs)[source]#

Base class for the AST types.

Explanation

Defining fields are set in _fields. Attributes (defined in _fields) @@ -2415,7 +2415,7 @@

Using the nodesnot_in_args are not passed to Basic.

-kwargs(exclude=(), apply=None)[source]#
+kwargs(exclude=(), apply=None)[source]#

Get instance’s attributes as dict of keyword arguments.

Parameters:
@@ -2435,7 +2435,7 @@

Using the nodes
-class sympy.codegen.ast.Type(*args, **kwargs)[source]#
+class sympy.codegen.ast.Type(*args, **kwargs)[source]#

Represents a type.

Parameters:
@@ -2490,7 +2490,7 @@

Using the nodes
-cast_check(value, rtol=None, atol=0, precision_targets=None)[source]#
+cast_check(value, rtol=None, atol=0, precision_targets=None)[source]#

Casts a value to the data type of the instance.

Parameters:
@@ -2544,7 +2544,7 @@

Using the nodes
-classmethod from_expr(expr)[source]#
+classmethod from_expr(expr)[source]#

Deduces type from an expression or a Symbol.

Parameters:
@@ -2576,13 +2576,13 @@

Using the nodes
-class sympy.codegen.ast.UnsignedIntType(*args, **kwargs)[source]#
+class sympy.codegen.ast.UnsignedIntType(*args, **kwargs)[source]#

Represents an unsigned integer type.

-class sympy.codegen.ast.Variable(*args, **kwargs)[source]#
+class sympy.codegen.ast.Variable(*args, **kwargs)[source]#

Represents a variable.

Parameters:
@@ -2634,7 +2634,7 @@

Using the nodes
-as_Declaration(**kwargs)[source]#
+as_Declaration(**kwargs)[source]#

Convenience method for creating a Declaration instance.

Explanation

If the variable of the Declaration need to wrap a modified @@ -2660,7 +2660,7 @@

Using the nodes
-classmethod deduced(symbol, value=None, attrs=(), cast_check=True)[source]#
+classmethod deduced(symbol, value=None, attrs=(), cast_check=True)[source]#

Alt. constructor with type deduction from Type.from_expr.

Deduces type primarily from symbol, secondarily from value.

@@ -2698,7 +2698,7 @@

Using the nodes
-class sympy.codegen.ast.While(*args, **kwargs)[source]#
+class sympy.codegen.ast.While(*args, **kwargs)[source]#

Represents a ‘for-loop’ in the code.

Expressions are of the form:
@@ -2731,7 +2731,7 @@

Using the nodes
-sympy.codegen.ast.aug_assign(lhs, op, rhs)[source]#
+sympy.codegen.ast.aug_assign(lhs, op, rhs)[source]#

Create ‘lhs op= rhs’.

Parameters:
@@ -2778,7 +2778,7 @@

Using the nodes
-class sympy.codegen.cfunctions.Cbrt(*args)[source]#
+class sympy.codegen.cfunctions.Cbrt(*args)[source]#

Represents the cube root function.

Explanation

The reason why one would use Cbrt(x) over cbrt(x) @@ -2799,7 +2799,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -2807,7 +2807,7 @@

Using the nodes
-class sympy.codegen.cfunctions.Sqrt(*args)[source]#
+class sympy.codegen.cfunctions.Sqrt(*args)[source]#

Represents the square root function.

Explanation

The reason why one would use Sqrt(x) over sqrt(x) @@ -2828,7 +2828,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -2836,7 +2836,7 @@

Using the nodes
-class sympy.codegen.cfunctions.exp2(arg)[source]#
+class sympy.codegen.cfunctions.exp2(arg)[source]#

Represents the exponential function with base two.

Explanation

The benefit of using exp2(x) over 2**x @@ -2857,7 +2857,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -2865,7 +2865,7 @@

Using the nodes
-class sympy.codegen.cfunctions.expm1(arg)[source]#
+class sympy.codegen.cfunctions.expm1(arg)[source]#

Represents the exponential function minus one.

Explanation

The benefit of using expm1(x) over exp(x) - 1 @@ -2889,7 +2889,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -2897,7 +2897,7 @@

Using the nodes
-class sympy.codegen.cfunctions.fma(*args)[source]#
+class sympy.codegen.cfunctions.fma(*args)[source]#

Represents “fused multiply add”.

Explanation

The benefit of using fma(x, y, z) over x*y + z @@ -2912,7 +2912,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -2920,7 +2920,7 @@

Using the nodes
-class sympy.codegen.cfunctions.hypot(*args)[source]#
+class sympy.codegen.cfunctions.hypot(*args)[source]#

Represents the hypotenuse function.

Explanation

The hypotenuse function is provided by e.g. the math library @@ -2939,7 +2939,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -2947,7 +2947,7 @@

Using the nodes
-class sympy.codegen.cfunctions.log10(arg)[source]#
+class sympy.codegen.cfunctions.log10(arg)[source]#

Represents the logarithm function with base ten.

Examples

>>> from sympy.abc import x
@@ -2964,7 +2964,7 @@ 

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -2972,7 +2972,7 @@

Using the nodes
-class sympy.codegen.cfunctions.log1p(arg)[source]#
+class sympy.codegen.cfunctions.log1p(arg)[source]#

Represents the natural logarithm of a number plus one.

Explanation

The benefit of using log1p(x) over log(x + 1) @@ -2997,7 +2997,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -3005,7 +3005,7 @@

Using the nodes
-class sympy.codegen.cfunctions.log2(arg)[source]#
+class sympy.codegen.cfunctions.log2(arg)[source]#

Represents the logarithm function with base two.

Explanation

The benefit of using log2(x) over log(x)/log(2) @@ -3026,7 +3026,7 @@

Using the nodes
-fdiff(argindex=1)[source]#
+fdiff(argindex=1)[source]#

Returns the first derivative of this function.

@@ -3038,13 +3038,13 @@

Using the nodes
-class sympy.codegen.cnodes.CommaOperator(*args)[source]#
+class sympy.codegen.cnodes.CommaOperator(*args)[source]#

Represents the comma operator in C

-class sympy.codegen.cnodes.Label(*args, **kwargs)[source]#
+class sympy.codegen.cnodes.Label(*args, **kwargs)[source]#

Label for use with e.g. goto statement.

Examples

>>> from sympy import ccode, Symbol
@@ -3060,7 +3060,7 @@ 

Using the nodes
-class sympy.codegen.cnodes.PostDecrement(*args)[source]#
+class sympy.codegen.cnodes.PostDecrement(*args)[source]#

Represents the post-decrement operator

Examples

>>> from sympy.abc import x
@@ -3074,7 +3074,7 @@ 

Using the nodes
-class sympy.codegen.cnodes.PostIncrement(*args)[source]#
+class sympy.codegen.cnodes.PostIncrement(*args)[source]#

Represents the post-increment operator

Examples

>>> from sympy.abc import x
@@ -3088,7 +3088,7 @@ 

Using the nodes
-class sympy.codegen.cnodes.PreDecrement(*args)[source]#
+class sympy.codegen.cnodes.PreDecrement(*args)[source]#

Represents the pre-decrement operator

Examples

>>> from sympy.abc import x
@@ -3102,7 +3102,7 @@ 

Using the nodes
-class sympy.codegen.cnodes.PreIncrement(*args)[source]#
+class sympy.codegen.cnodes.PreIncrement(*args)[source]#

Represents the pre-increment operator

Examples

>>> from sympy.abc import x
@@ -3116,19 +3116,19 @@ 

Using the nodes
-sympy.codegen.cnodes.alignof(arg)[source]#
+sympy.codegen.cnodes.alignof(arg)[source]#

Generate of FunctionCall instance for calling ‘alignof’

-class sympy.codegen.cnodes.goto(*args, **kwargs)[source]#
+class sympy.codegen.cnodes.goto(*args, **kwargs)[source]#

Represents goto in C

-sympy.codegen.cnodes.sizeof(arg)[source]#
+sympy.codegen.cnodes.sizeof(arg)[source]#

Generate of FunctionCall instance for calling ‘sizeof’

Examples

>>> from sympy.codegen.ast import real
@@ -3142,13 +3142,13 @@ 

Using the nodes
-class sympy.codegen.cnodes.struct(*args, **kwargs)[source]#
+class sympy.codegen.cnodes.struct(*args, **kwargs)[source]#

Represents a struct in C

-class sympy.codegen.cnodes.union(*args, **kwargs)[source]#
+class sympy.codegen.cnodes.union(*args, **kwargs)[source]#

Represents a union in C

@@ -3158,7 +3158,7 @@

Using the nodes
-class sympy.codegen.cxxnodes.using(*args, **kwargs)[source]#
+class sympy.codegen.cxxnodes.using(*args, **kwargs)[source]#

Represents a ‘using’ statement in C++

@@ -3170,7 +3170,7 @@

Using the nodes
-class sympy.codegen.fnodes.ArrayConstructor(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.ArrayConstructor(*args, **kwargs)[source]#

Represents an array constructor.

Examples

>>> from sympy import fcode
@@ -3186,7 +3186,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.Do(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.Do(*args, **kwargs)[source]#

Represents a Do loop in in Fortran.

Examples

>>> from sympy import fcode, symbols
@@ -3213,7 +3213,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.Extent(*args)[source]#
+class sympy.codegen.fnodes.Extent(*args)[source]#

Represents a dimension extent.

Examples

>>> from sympy.codegen.fnodes import Extent
@@ -3233,7 +3233,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.FortranReturn(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.FortranReturn(*args, **kwargs)[source]#

AST node explicitly mapped to a fortran “return”.

Explanation

Because a return statement in fortran is different from C, and @@ -3252,7 +3252,7 @@

Using the nodes
-class sympy.codegen.fnodes.GoTo(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.GoTo(*args, **kwargs)[source]#

Represents a goto statement in Fortran

Examples

>>> from sympy.codegen.fnodes import GoTo
@@ -3266,7 +3266,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.ImpliedDoLoop(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.ImpliedDoLoop(*args, **kwargs)[source]#

Represents an implied do loop in Fortran.

Examples

>>> from sympy import Symbol, fcode
@@ -3282,7 +3282,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.Module(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.Module(*args, **kwargs)[source]#

Represents a module in Fortran.

Examples

>>> from sympy.codegen.fnodes import Module
@@ -3301,7 +3301,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.Program(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.Program(*args, **kwargs)[source]#

Represents a ‘program’ block in Fortran.

Examples

>>> from sympy.codegen.ast import Print
@@ -3318,7 +3318,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.Subroutine(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.Subroutine(*args, **kwargs)[source]#

Represents a subroutine in Fortran.

Examples

>>> from sympy import fcode, symbols
@@ -3338,7 +3338,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.SubroutineCall(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.SubroutineCall(*args, **kwargs)[source]#

Represents a call to a subroutine in Fortran.

Examples

>>> from sympy.codegen.fnodes import SubroutineCall
@@ -3351,7 +3351,7 @@ 

Using the nodes
-sympy.codegen.fnodes.allocated(array)[source]#
+sympy.codegen.fnodes.allocated(array)[source]#

Creates an AST node for a function call to Fortran’s “allocated(…)”

Examples

>>> from sympy import fcode
@@ -3365,7 +3365,7 @@ 

Using the nodes
-sympy.codegen.fnodes.array(symbol, dim, intent=None, *, attrs=(), value=None, type=None)[source]#
+sympy.codegen.fnodes.array(symbol, dim, intent=None, *, attrs=(), value=None, type=None)[source]#

Convenience function for creating a Variable instance for a Fortran array.

Parameters:
@@ -3401,7 +3401,7 @@

Using the nodes
-sympy.codegen.fnodes.bind_C(name=None)[source]#
+sympy.codegen.fnodes.bind_C(name=None)[source]#

Creates an Attribute bind_C with a name.

Parameters:
@@ -3429,13 +3429,13 @@

Using the nodes
-class sympy.codegen.fnodes.cmplx(*args)[source]#
+class sympy.codegen.fnodes.cmplx(*args)[source]#

Fortran complex conversion function.

-sympy.codegen.fnodes.dimension(*args)[source]#
+sympy.codegen.fnodes.dimension(*args)[source]#

Creates a ‘dimension’ Attribute with (up to 7) extents.

Examples

>>> from sympy import fcode
@@ -3451,25 +3451,25 @@ 

Using the nodes
-class sympy.codegen.fnodes.dsign(*args)[source]#
+class sympy.codegen.fnodes.dsign(*args)[source]#

Fortran sign intrinsic for double precision arguments.

-class sympy.codegen.fnodes.isign(*args)[source]#
+class sympy.codegen.fnodes.isign(*args)[source]#

Fortran sign intrinsic for integer arguments.

-class sympy.codegen.fnodes.kind(*args)[source]#
+class sympy.codegen.fnodes.kind(*args)[source]#

Fortran kind function.

-sympy.codegen.fnodes.lbound(array, dim=None, kind=None)[source]#
+sympy.codegen.fnodes.lbound(array, dim=None, kind=None)[source]#

Creates an AST node for a function call to Fortran’s “lbound(…)”

Parameters:
@@ -3490,25 +3490,25 @@

Using the nodes
-class sympy.codegen.fnodes.literal_dp(num, dps=None, precision=None)[source]#
+class sympy.codegen.fnodes.literal_dp(num, dps=None, precision=None)[source]#

Fortran double precision real literal

-class sympy.codegen.fnodes.literal_sp(num, dps=None, precision=None)[source]#
+class sympy.codegen.fnodes.literal_sp(num, dps=None, precision=None)[source]#

Fortran single precision real literal

-class sympy.codegen.fnodes.merge(*args)[source]#
+class sympy.codegen.fnodes.merge(*args)[source]#

Fortran merge function

-sympy.codegen.fnodes.reshape(source, shape, pad=None, order=None)[source]#
+sympy.codegen.fnodes.reshape(source, shape, pad=None, order=None)[source]#

Creates an AST node for a function call to Fortran’s “reshape(…)”

Parameters:
@@ -3520,7 +3520,7 @@

Using the nodes
-sympy.codegen.fnodes.shape(source, kind=None)[source]#
+sympy.codegen.fnodes.shape(source, kind=None)[source]#

Creates an AST node for a function call to Fortran’s “shape(…)”

Parameters:
@@ -3540,7 +3540,7 @@

Using the nodes
-sympy.codegen.fnodes.size(array, dim=None, kind=None)[source]#
+sympy.codegen.fnodes.size(array, dim=None, kind=None)[source]#

Creates an AST node for a function call to Fortran’s “size(…)”

Examples

>>> from sympy import fcode, Symbol
@@ -3561,7 +3561,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.use(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.use(*args, **kwargs)[source]#

Represents a use statement in Fortran.

Examples

>>> from sympy.codegen.fnodes import use
@@ -3578,7 +3578,7 @@ 

Using the nodes
-class sympy.codegen.fnodes.use_rename(*args, **kwargs)[source]#
+class sympy.codegen.fnodes.use_rename(*args, **kwargs)[source]#

Represents a renaming in a use statement in Fortran.

Examples

>>> from sympy.codegen.fnodes import use_rename, use
@@ -3598,7 +3598,7 @@ 

Using the nodes

Algorithms (sympy.codegen.algorithms)#

-sympy.codegen.algorithms.newtons_method(expr, wrt, atol=1e-12, delta=None, *, rtol=4e-16, debug=False, itermax=None, counter=None, delta_fn=<function <lambda>>, cse=False, handle_nan=None, bounds=None)[source]#
+sympy.codegen.algorithms.newtons_method(expr, wrt, atol=1e-12, delta=None, *, rtol=4e-16, debug=False, itermax=None, counter=None, delta_fn=<function <lambda>>, cse=False, handle_nan=None, bounds=None)[source]#

Generates an AST for Newton-Raphson method (a root-finding algorithm).

Parameters:
@@ -3675,7 +3675,7 @@

Using the nodes
-sympy.codegen.algorithms.newtons_method_function(expr, wrt, params=None, func_name='newton', attrs=(), *, delta=None, **kwargs)[source]#
+sympy.codegen.algorithms.newtons_method_function(expr, wrt, params=None, func_name='newton', attrs=(), *, delta=None, **kwargs)[source]#

Generates an AST for a function implementing the Newton-Raphson method.

Parameters:
@@ -3729,7 +3729,7 @@

Using the nodes

Python utilities (sympy.codegen.pyutils)#

-sympy.codegen.pyutils.render_as_module(content, standard='python3')[source]#
+sympy.codegen.pyutils.render_as_module(content, standard='python3')[source]#

Renders Python code as a module (with the required imports).

Parameters:
@@ -3747,7 +3747,7 @@

Using the nodes

C utilities (sympy.codegen.cutils)#

-sympy.codegen.cutils.render_as_source_file(content, Printer=<class 'sympy.printing.c.C99CodePrinter'>, settings=None)[source]#
+sympy.codegen.cutils.render_as_source_file(content, Printer=<class 'sympy.printing.c.C99CodePrinter'>, settings=None)[source]#

Renders a C source file (with required #include statements)

@@ -3756,7 +3756,7 @@

Using the nodes

Fortran utilities (sympy.codegen.futils)#

-sympy.codegen.futils.render_as_module(definitions, name, declarations=(), printer_settings=None)[source]#
+sympy.codegen.futils.render_as_module(definitions, name, declarations=(), printer_settings=None)[source]#

Creates a Module instance and renders it as a string.

This generates Fortran source code for a module with the correct use statements.

diff --git a/dev/modules/combinatorics/galois.html b/dev/modules/combinatorics/galois.html index e12bdb52808..2e15bb68450 100644 --- a/dev/modules/combinatorics/galois.html +++ b/dev/modules/combinatorics/galois.html @@ -762,50 +762,50 @@

References
-class sympy.combinatorics.galois.S6TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
+class sympy.combinatorics.galois.S6TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Names for the transitive subgroups of S6.

-class sympy.combinatorics.galois.S5TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
+class sympy.combinatorics.galois.S5TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Names for the transitive subgroups of S5.

-class sympy.combinatorics.galois.S4TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
+class sympy.combinatorics.galois.S4TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Names for the transitive subgroups of S4.

-class sympy.combinatorics.galois.S3TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
+class sympy.combinatorics.galois.S3TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Names for the transitive subgroups of S3.

-class sympy.combinatorics.galois.S2TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
+class sympy.combinatorics.galois.S2TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Names for the transitive subgroups of S2.

-class sympy.combinatorics.galois.S1TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
+class sympy.combinatorics.galois.S1TransitiveSubgroups(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Names for the transitive subgroups of S1.

-sympy.combinatorics.galois.four_group()[source]#
+sympy.combinatorics.galois.four_group()[source]#

Return a representation of the Klein four-group as a transitive subgroup of S4.

-sympy.combinatorics.galois.M20()[source]#
+sympy.combinatorics.galois.M20()[source]#

Return a representation of the metacyclic group M20, a transitive subgroup of S5 that is one of the possible Galois groups for polys of degree 5.

Notes

@@ -814,7 +814,7 @@

References
-sympy.combinatorics.galois.S3_in_S6()[source]#
+sympy.combinatorics.galois.S3_in_S6()[source]#

Return a representation of S3 as a transitive subgroup of S6.

Notes

The representation is found by viewing the group as the symmetries of a @@ -823,7 +823,7 @@

References
-sympy.combinatorics.galois.A4_in_S6()[source]#
+sympy.combinatorics.galois.A4_in_S6()[source]#

Return a representation of A4 as a transitive subgroup of S6.

Notes

This was computed using find_transitive_subgroups_of_S6().

@@ -831,7 +831,7 @@

References
-sympy.combinatorics.galois.S4m()[source]#
+sympy.combinatorics.galois.S4m()[source]#

Return a representation of the S4- transitive subgroup of S6.

Notes

This was computed using find_transitive_subgroups_of_S6().

@@ -839,7 +839,7 @@

References
-sympy.combinatorics.galois.S4p()[source]#
+sympy.combinatorics.galois.S4p()[source]#

Return a representation of the S4+ transitive subgroup of S6.

Notes

This was computed using find_transitive_subgroups_of_S6().

@@ -847,7 +847,7 @@

References
-sympy.combinatorics.galois.A4xC2()[source]#
+sympy.combinatorics.galois.A4xC2()[source]#

Return a representation of the (A4 x C2) transitive subgroup of S6.

Notes

This was computed using find_transitive_subgroups_of_S6().

@@ -855,7 +855,7 @@

References
-sympy.combinatorics.galois.S4xC2()[source]#
+sympy.combinatorics.galois.S4xC2()[source]#

Return a representation of the (S4 x C2) transitive subgroup of S6.

Notes

This was computed using find_transitive_subgroups_of_S6().

@@ -863,7 +863,7 @@

References
-sympy.combinatorics.galois.G18()[source]#
+sympy.combinatorics.galois.G18()[source]#

Return a representation of the group G18, a transitive subgroup of S6 isomorphic to the semidirect product of C3^2 with C2.

Notes

@@ -872,7 +872,7 @@

References
-sympy.combinatorics.galois.G36m()[source]#
+sympy.combinatorics.galois.G36m()[source]#

Return a representation of the group G36-, a transitive subgroup of S6 isomorphic to the semidirect product of C3^2 with C2^2.

Notes

@@ -881,7 +881,7 @@

References
-sympy.combinatorics.galois.G36p()[source]#
+sympy.combinatorics.galois.G36p()[source]#

Return a representation of the group G36+, a transitive subgroup of S6 isomorphic to the semidirect product of C3^2 with C4.

Notes

@@ -890,7 +890,7 @@

References
-sympy.combinatorics.galois.G72()[source]#
+sympy.combinatorics.galois.G72()[source]#

Return a representation of the group G72, a transitive subgroup of S6 isomorphic to the semidirect product of C3^2 with D4.

Notes

@@ -899,7 +899,7 @@

References
-sympy.combinatorics.galois.PSL2F5()[source]#
+sympy.combinatorics.galois.PSL2F5()[source]#

Return a representation of the group \(PSL_2(\mathbb{F}_5)\), as a transitive subgroup of S6, isomorphic to \(A_5\).

Notes

@@ -908,7 +908,7 @@

References
-sympy.combinatorics.galois.PGL2F5()[source]#
+sympy.combinatorics.galois.PGL2F5()[source]#

Return a representation of the group \(PGL_2(\mathbb{F}_5)\), as a transitive subgroup of S6, isomorphic to \(S_5\).

Notes

@@ -917,7 +917,7 @@

References
-sympy.combinatorics.galois.find_transitive_subgroups_of_S6(*targets, print_report=False)[source]#
+sympy.combinatorics.galois.find_transitive_subgroups_of_S6(*targets, print_report=False)[source]#

Search for certain transitive subgroups of \(S_6\).

The symmetric group \(S_6\) has 16 different transitive subgroups, up to conjugacy. Some are more easily constructed than others. For example, the diff --git a/dev/modules/combinatorics/graycode.html b/dev/modules/combinatorics/graycode.html index 536e722432e..c01686b3b92 100644 --- a/dev/modules/combinatorics/graycode.html +++ b/dev/modules/combinatorics/graycode.html @@ -741,7 +741,7 @@

Documentation Version

Gray Code#

-class sympy.combinatorics.graycode.GrayCode(n, *args, **kw_args)[source]#
+class sympy.combinatorics.graycode.GrayCode(n, *args, **kw_args)[source]#

A Gray code is essentially a Hamiltonian walk on a n-dimensional cube with edge length of one. The vertices of the cube are represented by vectors @@ -795,7 +795,7 @@

Documentation Version
-generate_gray(**hints)[source]#
+generate_gray(**hints)[source]#

Generates the sequence of bit vectors of a Gray Code.

Examples

>>> from sympy.combinatorics import GrayCode
@@ -837,7 +837,7 @@ 
Documentation Version
-next(delta=1)[source]#
+next(delta=1)[source]#

Returns the Gray code a distance delta (default = 1) from the current value in canonical order.

Examples

@@ -900,7 +900,7 @@
Documentation Version
-skip()[source]#
+skip()[source]#

Skips the bit generation.

Examples

>>> from sympy.combinatorics import GrayCode
@@ -927,7 +927,7 @@ 
Documentation Version
-classmethod unrank(n, rank)[source]#
+classmethod unrank(n, rank)[source]#

Unranks an n-bit sized Gray code of rank k. This method exists so that a derivative GrayCode class can define its own code of a given rank.

@@ -951,7 +951,7 @@
Documentation Version
-graycode.random_bitstring()[source]#
+graycode.random_bitstring()[source]#

Generates a random bitlist of length n.

Examples

>>> from sympy.combinatorics.graycode import random_bitstring
@@ -963,7 +963,7 @@ 
Documentation Version
-graycode.gray_to_bin()[source]#
+graycode.gray_to_bin()[source]#

Convert from Gray coding to binary coding.

We assume big endian encoding.

Examples

@@ -980,7 +980,7 @@
Documentation Version
-graycode.bin_to_gray()[source]#
+graycode.bin_to_gray()[source]#

Convert from binary coding to gray coding.

We assume big endian encoding.

Examples

@@ -997,7 +997,7 @@
Documentation Version
-graycode.get_subset_from_bitstring(bitstring)[source]#
+graycode.get_subset_from_bitstring(bitstring)[source]#

Gets the subset defined by the bitstring.

Examples

>>> from sympy.combinatorics.graycode import get_subset_from_bitstring
@@ -1015,7 +1015,7 @@ 
Documentation Version
-graycode.graycode_subsets()[source]#
+graycode.graycode_subsets()[source]#

Generates the subsets as enumerated by a Gray code.

Examples

>>> from sympy.combinatorics.graycode import graycode_subsets
diff --git a/dev/modules/combinatorics/group_constructs.html b/dev/modules/combinatorics/group_constructs.html
index e77b6ebfac1..0a99c06d905 100644
--- a/dev/modules/combinatorics/group_constructs.html
+++ b/dev/modules/combinatorics/group_constructs.html
@@ -741,7 +741,7 @@ 
Documentation Version

Group constructors#

-sympy.combinatorics.group_constructs.DirectProduct(*groups)[source]#
+sympy.combinatorics.group_constructs.DirectProduct(*groups)[source]#

Returns the direct product of several groups as a permutation group.

Explanation

This is implemented much like the __mul__ procedure for taking the direct diff --git a/dev/modules/combinatorics/group_numbers.html b/dev/modules/combinatorics/group_numbers.html index 86c979f6420..f7073b8a57b 100644 --- a/dev/modules/combinatorics/group_numbers.html +++ b/dev/modules/combinatorics/group_numbers.html @@ -741,7 +741,7 @@

Documentation Version

Nilpotent, Abelian and Cyclic Numbers#

-sympy.combinatorics.group_numbers.is_nilpotent_number(n)[source]#
+sympy.combinatorics.group_numbers.is_nilpotent_number(n)[source]#

Check whether \(n\) is a nilpotent number. A number \(n\) is said to be nilpotent if and only if every finite group of order \(n\) is nilpotent. For more information see [R48].

@@ -767,7 +767,7 @@
Documentation Version
-sympy.combinatorics.group_numbers.is_abelian_number(n)[source]#
+sympy.combinatorics.group_numbers.is_abelian_number(n)[source]#

Check whether \(n\) is an abelian number. A number \(n\) is said to be abelian if and only if every finite group of order \(n\) is abelian. For more information see [R49].

@@ -795,7 +795,7 @@
Documentation Version
-sympy.combinatorics.group_numbers.is_cyclic_number(n)[source]#
+sympy.combinatorics.group_numbers.is_cyclic_number(n)[source]#

Check whether \(n\) is a cyclic number. A number \(n\) is said to be cyclic if and only if every finite group of order \(n\) is cyclic. For more information see [R50].

diff --git a/dev/modules/combinatorics/named_groups.html b/dev/modules/combinatorics/named_groups.html index 4e9029f1d38..0ad8c744d19 100644 --- a/dev/modules/combinatorics/named_groups.html +++ b/dev/modules/combinatorics/named_groups.html @@ -741,7 +741,7 @@
Documentation Version

Named Groups#

-sympy.combinatorics.named_groups.SymmetricGroup(n)[source]#
+sympy.combinatorics.named_groups.SymmetricGroup(n)[source]#

Generates the symmetric group on n elements as a permutation group.

Explanation

The generators taken are the n-cycle @@ -778,7 +778,7 @@

Documentation Version
-sympy.combinatorics.named_groups.CyclicGroup(n)[source]#
+sympy.combinatorics.named_groups.CyclicGroup(n)[source]#

Generates the cyclic group of order n as a permutation group.

Explanation

The generator taken is the n-cycle (0 1 2 ... n-1) @@ -804,7 +804,7 @@

Documentation Version
-sympy.combinatorics.named_groups.DihedralGroup(n)[source]#
+sympy.combinatorics.named_groups.DihedralGroup(n)[source]#

Generates the dihedral group \(D_n\) as a permutation group.

Explanation

The dihedral group \(D_n\) is the group of symmetries of the regular @@ -842,7 +842,7 @@

Documentation Version
-sympy.combinatorics.named_groups.AlternatingGroup(n)[source]#
+sympy.combinatorics.named_groups.AlternatingGroup(n)[source]#

Generates the alternating group on n elements as a permutation group.

Explanation

For n > 2, the generators taken are (0 1 2), (0 1 2 ... n-1) for @@ -877,7 +877,7 @@

Documentation Version
-sympy.combinatorics.named_groups.AbelianGroup(*cyclic_orders)[source]#
+sympy.combinatorics.named_groups.AbelianGroup(*cyclic_orders)[source]#

Returns the direct product of cyclic groups with the given orders.

Explanation

According to the structure theorem for finite abelian groups ([1]), diff --git a/dev/modules/combinatorics/partitions.html b/dev/modules/combinatorics/partitions.html index 220518d89d2..165d704c685 100644 --- a/dev/modules/combinatorics/partitions.html +++ b/dev/modules/combinatorics/partitions.html @@ -741,7 +741,7 @@

Documentation Version

Partitions#

-class sympy.combinatorics.partitions.Partition(*partition)[source]#
+class sympy.combinatorics.partitions.Partition(*partition)[source]#

This class represents an abstract partition.

A partition is a set of disjoint sets whose union equals a given set.

@@ -774,7 +774,7 @@
Documentation Version
-classmethod from_rgs(rgs, elements)[source]#
+classmethod from_rgs(rgs, elements)[source]#

Creates a set partition from a restricted growth string.

Explanation

The indices given in rgs are assumed to be the index @@ -822,7 +822,7 @@

Documentation Version
-sort_key(order=None)[source]#
+sort_key(order=None)[source]#

Return a canonical key that can be used for sorting.

Ordering is based on the size and sorted elements of the partition and ties are broken with the rank.

@@ -845,7 +845,7 @@
Documentation Version
-class sympy.combinatorics.partitions.IntegerPartition(partition, integer=None)[source]#
+class sympy.combinatorics.partitions.IntegerPartition(partition, integer=None)[source]#

This class represents an integer partition.

Explanation

In number theory and combinatorics, a partition of a positive integer, @@ -869,7 +869,7 @@

Documentation Version
-as_dict()[source]#
+as_dict()[source]#

Return the partition as a dictionary whose keys are the partition integers and the values are the multiplicity of that integer.

@@ -883,7 +883,7 @@
Documentation Version
-as_ferrers(char='#')[source]#
+as_ferrers(char='#')[source]#

Prints the ferrer diagram of a partition.

Examples

>>> from sympy.combinatorics.partitions import IntegerPartition
@@ -910,7 +910,7 @@ 
Documentation Version
-next_lex()[source]#
+next_lex()[source]#

Return the next partition of the integer, n, in lexical order, wrapping around to [n] if the partition is [1, …, 1].

Examples

@@ -926,7 +926,7 @@
Documentation Version
-prev_lex()[source]#
+prev_lex()[source]#

Return the previous partition of the integer, n, in lexical order, wrapping around to [1, …, 1] if the partition is [n].

Examples

@@ -944,7 +944,7 @@
Documentation Version
-sympy.combinatorics.partitions.random_integer_partition(n, seed=None)[source]#
+sympy.combinatorics.partitions.random_integer_partition(n, seed=None)[source]#

Generates a random integer partition summing to n as a list of reverse-sorted integers.

Examples

@@ -965,7 +965,7 @@
Documentation Version
-sympy.combinatorics.partitions.RGS_generalized(m)[source]#
+sympy.combinatorics.partitions.RGS_generalized(m)[source]#

Computes the m + 1 generalized unrestricted growth strings and returns them as rows in matrix.

Examples

@@ -985,7 +985,7 @@
Documentation Version
-sympy.combinatorics.partitions.RGS_enum(m)[source]#
+sympy.combinatorics.partitions.RGS_enum(m)[source]#

RGS_enum computes the total number of restricted growth strings possible for a superset of size m.

Examples

@@ -1014,7 +1014,7 @@
Documentation Version
-sympy.combinatorics.partitions.RGS_unrank(rank, m)[source]#
+sympy.combinatorics.partitions.RGS_unrank(rank, m)[source]#

Gives the unranked restricted growth string for a given superset size.

Examples

@@ -1029,7 +1029,7 @@
Documentation Version
-sympy.combinatorics.partitions.RGS_rank(rgs)[source]#
+sympy.combinatorics.partitions.RGS_rank(rgs)[source]#

Computes the rank of a restricted growth string.

Examples

>>> from sympy.combinatorics.partitions import RGS_rank, RGS_unrank
diff --git a/dev/modules/combinatorics/perm_groups.html b/dev/modules/combinatorics/perm_groups.html
index 8af0c9775d9..c9e47aff500 100644
--- a/dev/modules/combinatorics/perm_groups.html
+++ b/dev/modules/combinatorics/perm_groups.html
@@ -741,7 +741,7 @@ 
Documentation Version

Permutation Groups#

-class sympy.combinatorics.perm_groups.PermutationGroup(*args, dups=True, **kwargs)[source]#
+class sympy.combinatorics.perm_groups.PermutationGroup(*args, dups=True, **kwargs)[source]#

The class defining a Permutation group.

Explanation

PermutationGroup([p1, p2, ..., pn]) returns the permutation group @@ -861,7 +861,7 @@

Documentation Version
-__contains__(i)[source]#
+__contains__(i)[source]#

Return True if i is contained in PermutationGroup.

Examples

>>> from sympy.combinatorics import Permutation, PermutationGroup
@@ -874,7 +874,7 @@ 
Documentation Version
-__mul__(other)[source]#
+__mul__(other)[source]#

Return the direct product of two permutation groups as a permutation group.

Explanation

@@ -898,7 +898,7 @@
Documentation Version
-static __new__(cls, *args, dups=True, **kwargs)[source]#
+static __new__(cls, *args, dups=True, **kwargs)[source]#

The default constructor. Accepts Cycle and Permutation forms. Removes duplicates unless dups keyword is False.

@@ -911,14 +911,14 @@
Documentation Version
-_coset_representative(g, H)[source]#
+_coset_representative(g, H)[source]#

Return the representative of Hg from the transversal that would be computed by self.coset_transversal(H).

-classmethod _distinct_primes_lemma(primes)[source]#
+classmethod _distinct_primes_lemma(primes)[source]#

Subroutine to test if there is only one cyclic group for the order.

@@ -938,7 +938,7 @@
Documentation Version
-_eval_is_alt_sym_monte_carlo(eps=0.05, perms=None)[source]#
+_eval_is_alt_sym_monte_carlo(eps=0.05, perms=None)[source]#

A test using monte-carlo algorithm.

Parameters:
@@ -963,20 +963,20 @@
Documentation Version
-_eval_is_alt_sym_naive(only_sym=False, only_alt=False)[source]#
+_eval_is_alt_sym_naive(only_sym=False, only_alt=False)[source]#

A naive test using the group order.

-_p_elements_group(p)[source]#
+_p_elements_group(p)[source]#

For an abelian p-group, return the subgroup consisting of all elements of order p (and the identity)

-_random_pr_init(r, n, _random_prec_n=None)[source]#
+_random_pr_init(r, n, _random_prec_n=None)[source]#

Initialize random generators for the product replacement algorithm.

Explanation

The implementation uses a modification of the original product @@ -1011,7 +1011,7 @@

Documentation Version
-_sylow_alt_sym(p)[source]#
+_sylow_alt_sym(p)[source]#

Return a p-Sylow subgroup of a symmetric or an alternating group.

Explanation

@@ -1048,7 +1048,7 @@
Documentation Version
-_union_find_merge(first, second, ranks, parents, not_rep)[source]#
+_union_find_merge(first, second, ranks, parents, not_rep)[source]#

Merges two classes in a union-find data structure.

Explanation

Used in the implementation of Atkinson’s algorithm as suggested in [1], @@ -1079,7 +1079,7 @@

Documentation Version
-_union_find_rep(num, parents)[source]#
+_union_find_rep(num, parents)[source]#

Find representative of a class in a union-find data structure.

Explanation

Used in the implementation of Atkinson’s algorithm as suggested in [1], @@ -1109,7 +1109,7 @@

Documentation Version
-_verify(K, phi, z, alpha)[source]#
+_verify(K, phi, z, alpha)[source]#

Return a list of relators rels in generators gens`_h` that are mapped to ``H.generators by phi so that given a finite presentation <gens_k | rels_k> of K on a subset of gens_h @@ -1150,7 +1150,7 @@

Documentation Version
-abelian_invariants()[source]#
+abelian_invariants()[source]#

Returns the abelian invariants for the given group. Let G be a nontrivial finite abelian group. Then G is isomorphic to the direct product of finitely many nontrivial cyclic groups of @@ -1211,7 +1211,7 @@

Documentation Version
-baseswap(base, strong_gens, pos, randomized=False, transversals=None, basic_orbits=None, strong_gens_distr=None)[source]#
+baseswap(base, strong_gens, pos, randomized=False, transversals=None, basic_orbits=None, strong_gens_distr=None)[source]#

Swap two consecutive base points in base and strong generating set.

Parameters:
@@ -1370,7 +1370,7 @@
Documentation Version
-center()[source]#
+center()[source]#

Return the center of a permutation group.

Explanation

The center for a group \(G\) is defined as @@ -1397,7 +1397,7 @@

Documentation Version
-centralizer(other)[source]#
+centralizer(other)[source]#

Return the centralizer of a group/set/element.

Parameters:
@@ -1442,7 +1442,7 @@
Documentation Version
-commutator(G, H)[source]#
+commutator(G, H)[source]#

Return the commutator of two subgroups.

Explanation

For a permutation group K and subgroups G, H, the @@ -1471,7 +1471,7 @@

Documentation Version
-composition_series()[source]#
+composition_series()[source]#

Return the composition series for a group as a list of permutation groups.

Explanation

@@ -1518,7 +1518,7 @@
Documentation Version
-conjugacy_class(x)[source]#
+conjugacy_class(x)[source]#

Return the conjugacy class of an element in the group.

Explanation

The conjugacy class of an element g in a group G is the set of @@ -1555,7 +1555,7 @@

Documentation Version
-conjugacy_classes()[source]#
+conjugacy_classes()[source]#

Return the conjugacy classes of the group.

Explanation

As described in the documentation for the .conjugacy_class() function, @@ -1572,7 +1572,7 @@

Documentation Version
-contains(g, strict=True)[source]#
+contains(g, strict=True)[source]#

Test if permutation g belong to self, G.

Explanation

If g is an element of G it can be written as a product @@ -1621,7 +1621,7 @@

Documentation Version
-coset_factor(g, factor_index=False)[source]#
+coset_factor(g, factor_index=False)[source]#

Return G’s (self’s) coset factorization of g

Explanation

If g is an element of G then it can be written as the product @@ -1676,7 +1676,7 @@

Documentation Version
-coset_rank(g)[source]#
+coset_rank(g)[source]#

rank using Schreier-Sims representation.

Explanation

The coset rank of g is the ordering number in which @@ -1704,21 +1704,21 @@

Documentation Version
-coset_table(H)[source]#
+coset_table(H)[source]#

Return the standardised (right) coset table of self in H as a list of lists.

-coset_transversal(H)[source]#
+coset_transversal(H)[source]#

Return a transversal of the right cosets of self by its subgroup H using the second method described in [1], Subsection 4.6.7

-coset_unrank(rank, af=False)[source]#
+coset_unrank(rank, af=False)[source]#

unrank using Schreier-Sims representation

coset_unrank is the inverse operation of coset_rank if 0 <= rank < order; otherwise it returns None.

@@ -1754,7 +1754,7 @@
Documentation Version
-derived_series()[source]#
+derived_series()[source]#

Return the derived series for the group.

Returns:
@@ -1791,7 +1791,7 @@
Documentation Version
-derived_subgroup()[source]#
+derived_subgroup()[source]#

Compute the derived subgroup.

Explanation

The derived subgroup, or commutator subgroup is the subgroup generated @@ -1829,7 +1829,7 @@

Documentation Version
-equals(other)[source]#
+equals(other)[source]#

Return True if PermutationGroup generated by elements in the group are same i.e they represent the same PermutationGroup.

Examples

@@ -1847,7 +1847,7 @@
Documentation Version
-generate(method='coset', af=False)[source]#
+generate(method='coset', af=False)[source]#

Return iterator to generate the elements of the group.

Explanation

Iteration is done with one of these methods:

@@ -1892,7 +1892,7 @@
Documentation Version
-generate_dimino(af=False)[source]#
+generate_dimino(af=False)[source]#

Yield group elements using Dimino’s algorithm.

If af == True it yields the array form of the permutations.

Examples

@@ -1917,7 +1917,7 @@
Documentation Version
-generate_schreier_sims(af=False)[source]#
+generate_schreier_sims(af=False)[source]#

Yield group elements using the Schreier-Sims representation in coset_rank order

If af = True it yields the array form of the permutations

@@ -1935,7 +1935,7 @@
Documentation Version
-generator_product(g, original=False)[source]#
+generator_product(g, original=False)[source]#

Return a list of strong generators \([s1, \dots, sn]\) s.t \(g = sn \times \dots \times s1\). If original=True, make the list contain only the original group generators

@@ -1964,7 +1964,7 @@
Documentation Version
-index(H)[source]#
+index(H)[source]#

Returns the index of a permutation group.

Examples

>>> from sympy.combinatorics import Permutation, PermutationGroup
@@ -1999,7 +1999,7 @@ 
Documentation Version
-is_alt_sym(eps=0.05, _random_prec=None)[source]#
+is_alt_sym(eps=0.05, _random_prec=None)[source]#

Monte Carlo test for the symmetric/alternating group for degrees >= 8.

Explanation

@@ -2152,7 +2152,7 @@
Documentation Version
-is_elementary(p)[source]#
+is_elementary(p)[source]#

Return True if the group is elementary abelian. An elementary abelian group is a finite abelian group, where every nontrivial element has order \(p\), where \(p\) is a prime.

@@ -2201,7 +2201,7 @@
Documentation Version
-is_normal(gr, strict=True)[source]#
+is_normal(gr, strict=True)[source]#

Test if G=self is a normal subgroup of gr.

Explanation

G is normal in gr if @@ -2255,7 +2255,7 @@

Documentation Version
-is_primitive(randomized=True)[source]#
+is_primitive(randomized=True)[source]#

Test if a group is primitive.

Explanation

A permutation group G acting on a set S is called primitive if @@ -2307,7 +2307,7 @@

Documentation Version
-is_subgroup(G, strict=True)[source]#
+is_subgroup(G, strict=True)[source]#

Return True if all elements of self belong to G.

If strict is False then if self’s degree is smaller than G’s, the elements will be resized to have the same degree.

@@ -2383,7 +2383,7 @@
Documentation Version
-is_transitive(strict=True)[source]#
+is_transitive(strict=True)[source]#

Test if the group is transitive.

Explanation

A group is transitive if it has a single orbit.

@@ -2427,7 +2427,7 @@
Documentation Version
-lower_central_series()[source]#
+lower_central_series()[source]#

Return the lower central series for the group.

The lower central series for a group \(G\) is the series \(G = G_0 > G_1 > G_2 > \ldots\) where @@ -2456,7 +2456,7 @@

Documentation Version
-make_perm(n, seed=None)[source]#
+make_perm(n, seed=None)[source]#

Multiply n randomly selected permutations from pgroup together, starting with the identity permutation. If n is a list of integers, those @@ -2510,7 +2510,7 @@

Documentation Version
-minimal_block(points)[source]#
+minimal_block(points)[source]#

For a transitive group, finds the block system generated by points.

Explanation

@@ -2552,7 +2552,7 @@
Documentation Version
-minimal_blocks(randomized=True)[source]#
+minimal_blocks(randomized=True)[source]#

For a transitive group, return the list of all minimal block systems. If a group is intransitive, return \(False\).

Examples

@@ -2573,7 +2573,7 @@
Documentation Version
-normal_closure(other, k=10)[source]#
+normal_closure(other, k=10)[source]#

Return the normal closure of a subgroup/set of permutations.

Parameters:
@@ -2620,7 +2620,7 @@
Documentation Version
-orbit(alpha, action='tuples')[source]#
+orbit(alpha, action='tuples')[source]#

Compute the orbit of alpha \(\{g(\alpha) | g \in G\}\) as a set.

Explanation

The time complexity of the algorithm used here is \(O(|Orb|*r)\) where @@ -2651,7 +2651,7 @@

Documentation Version
-orbit_rep(alpha, beta, schreier_vector=None)[source]#
+orbit_rep(alpha, beta, schreier_vector=None)[source]#

Return a group element which sends alpha to beta.

Explanation

If beta is not in the orbit of alpha, the function returns @@ -2672,7 +2672,7 @@

Documentation Version
-orbit_transversal(alpha, pairs=False)[source]#
+orbit_transversal(alpha, pairs=False)[source]#

Computes a transversal for the orbit of alpha as a set.

Explanation

For a permutation group \(G\), a transversal for the orbit @@ -2696,7 +2696,7 @@

Documentation Version
-orbits(rep=False)[source]#
+orbits(rep=False)[source]#

Return the orbits of self, ordered according to lowest element in each orbit.

Examples

@@ -2712,7 +2712,7 @@
Documentation Version
-order()[source]#
+order()[source]#

Return the order of the group: the number of permutations that can be generated from elements of the group.

The number of permutations comprising the group is given by @@ -2749,7 +2749,7 @@

Documentation Version
-pointwise_stabilizer(points, incremental=True)[source]#
+pointwise_stabilizer(points, incremental=True)[source]#

Return the pointwise stabilizer for a set of points.

Explanation

For a permutation group \(G\) and a set of points @@ -2779,7 +2779,7 @@

Documentation Version
-polycyclic_group()[source]#
+polycyclic_group()[source]#

Return the PolycyclicGroup instance with below parameters:

Explanation

    @@ -2796,20 +2796,20 @@
    Documentation Version
    -presentation(eliminate_gens=True)[source]#
    +presentation(eliminate_gens=True)[source]#

    Return an \(FpGroup\) presentation of the group.

    The algorithm is described in [1], Chapter 6.1.

    -random(af=False)[source]#
    +random(af=False)[source]#

    Return a random group element

    -random_pr(gen_count=11, iterations=50, _random_prec=None)[source]#
    +random_pr(gen_count=11, iterations=50, _random_prec=None)[source]#

    Return a random group element using product replacement.

    Explanation

    For the details of the product replacement algorithm, see @@ -2824,7 +2824,7 @@

    Documentation Version
    -random_stab(alpha, schreier_vector=None, _random_prec=None)[source]#
    +random_stab(alpha, schreier_vector=None, _random_prec=None)[source]#

    Random element from the stabilizer of alpha.

    The schreier vector for alpha is an optional argument used for speeding up repeated calls. The algorithm is described in [1], p.81

    @@ -2836,7 +2836,7 @@
    Documentation Version
    -schreier_sims()[source]#
    +schreier_sims()[source]#

    Schreier-Sims algorithm.

    Explanation

    It computes the generators of the chain of stabilizers @@ -2861,7 +2861,7 @@

    Documentation Version
    -schreier_sims_incremental(base=None, gens=None, slp_dict=False)[source]#
    +schreier_sims_incremental(base=None, gens=None, slp_dict=False)[source]#

    Extend a sequence of points and generating set to a base and strong generating set.

    @@ -2923,7 +2923,7 @@
    Documentation Version
    -schreier_sims_random(base=None, gens=None, consec_succ=10, _random_prec=None)[source]#
    +schreier_sims_random(base=None, gens=None, consec_succ=10, _random_prec=None)[source]#

    Randomized Schreier-Sims algorithm.

    Parameters:
    @@ -2993,7 +2993,7 @@
    Documentation Version
    -schreier_vector(alpha)[source]#
    +schreier_vector(alpha)[source]#

    Computes the schreier vector for alpha.

    Explanation

    The Schreier vector efficiently stores information @@ -3022,7 +3022,7 @@

    Documentation Version
    -stabilizer(alpha)[source]#
    +stabilizer(alpha)[source]#

    Return the stabilizer subgroup of alpha.

    Explanation

    The stabilizer of \(\alpha\) is the group \(G_\alpha = @@ -3072,7 +3072,7 @@

    Documentation Version
    -strong_presentation()[source]#
    +strong_presentation()[source]#

    Return a strong finite presentation of group. The generators of the returned group are in the same order as the strong generators of group.

    @@ -3094,14 +3094,14 @@
    Documentation Version
    -subgroup(gens)[source]#
    +subgroup(gens)[source]#

    Return the subgroup generated by \(gens\) which is a list of elements of the group

    +subgroup_search(prop, base=None, strong_gens=None, tests=None, init_subgroup=None)[source]#

    Find the subgroup of all elements satisfying the property prop.

    Parameters:
    @@ -3180,7 +3180,7 @@
    Documentation Version
    -sylow_subgroup(p)[source]#
    +sylow_subgroup(p)[source]#

    Return a p-Sylow subgroup of the group.

    The algorithm is described in [1], Chapter 4, Section 7

    Examples

    diff --git a/dev/modules/combinatorics/permutations.html b/dev/modules/combinatorics/permutations.html index 717858ed2ae..2bd68937579 100644 --- a/dev/modules/combinatorics/permutations.html +++ b/dev/modules/combinatorics/permutations.html @@ -741,7 +741,7 @@
    Documentation Version

    Permutations#

    -class sympy.combinatorics.permutations.Permutation(*args, size=None, **kwargs)[source]#
    +class sympy.combinatorics.permutations.Permutation(*args, size=None, **kwargs)[source]#

    A permutation, alternatively known as an ‘arrangement number’ or ‘ordering’ is an arrangement of the elements of an ordered list into a one-to-one mapping with itself. The permutation of a given arrangement is given by @@ -1145,7 +1145,7 @@

    Documentation Version
-apply(i)[source]#
+apply(i)[source]#

Apply the permutation to an expression.

Parameters:
@@ -1199,7 +1199,7 @@
Documentation Version
-ascents()[source]#
+ascents()[source]#

Returns the positions of ascents in a permutation, ie, the location where p[i] < p[i+1]

Examples

@@ -1217,7 +1217,7 @@
Documentation Version
-atoms()[source]#
+atoms()[source]#

Returns all the elements of a permutation

Examples

>>> from sympy.combinatorics import Permutation
@@ -1248,7 +1248,7 @@ 
Documentation Version
-commutator(x)[source]#
+commutator(x)[source]#

Return the commutator of self and x: ~x*~self*x*self

If f and g are part of a group, G, then the commutator of f and g is the group identity iff f and g commute, i.e. fg == gf.

@@ -1287,7 +1287,7 @@
Documentation Version
-commutes_with(other)[source]#
+commutes_with(other)[source]#

Checks if the elements are commuting.

Examples

>>> from sympy.combinatorics import Permutation
@@ -1360,7 +1360,7 @@ 
Documentation Version
-descents()[source]#
+descents()[source]#

Returns the positions of descents in a permutation, ie, the location where p[i] > p[i+1]

Examples

@@ -1378,7 +1378,7 @@
Documentation Version
-classmethod from_inversion_vector(inversion)[source]#
+classmethod from_inversion_vector(inversion)[source]#

Calculates the permutation from the inversion vector.

Examples

>>> from sympy.combinatorics import Permutation
@@ -1392,7 +1392,7 @@ 
Documentation Version
-classmethod from_sequence(i, key=None)[source]#
+classmethod from_sequence(i, key=None)[source]#

Return the permutation needed to obtain i from the sorted elements of i. If custom sorting is desired, a key can be given.

Examples

@@ -1423,7 +1423,7 @@
Documentation Version
-get_adjacency_distance(other)[source]#
+get_adjacency_distance(other)[source]#

Computes the adjacency distance between two permutations.

Explanation

This metric counts the number of times a pair i,j of jobs is @@ -1450,7 +1450,7 @@

Documentation Version
-get_adjacency_matrix()[source]#
+get_adjacency_matrix()[source]#

Computes the adjacency matrix of a permutation.

Explanation

If job i is adjacent to job j in a permutation p @@ -1484,7 +1484,7 @@

Documentation Version
-get_positional_distance(other)[source]#
+get_positional_distance(other)[source]#

Computes the positional distance between two permutations.

Examples

>>> from sympy.combinatorics import Permutation
@@ -1505,7 +1505,7 @@ 
Documentation Version
-get_precedence_distance(other)[source]#
+get_precedence_distance(other)[source]#

Computes the precedence distance between two permutations.

Explanation

Suppose p and p’ represent n jobs. The precedence metric @@ -1529,7 +1529,7 @@

Documentation Version
-get_precedence_matrix()[source]#
+get_precedence_matrix()[source]#

Gets the precedence matrix. This is used for computing the distance between two permutations.

Examples

@@ -1557,7 +1557,7 @@
Documentation Version
-index()[source]#
+index()[source]#

Returns the index of a permutation.

The index of a permutation is the sum of all subscripts j such that p[j] is greater than p[j+1].

@@ -1572,7 +1572,7 @@
Documentation Version
-inversion_vector()[source]#
+inversion_vector()[source]#

Return the inversion vector of the permutation.

The inversion vector consists of elements whose value indicates the number of elements in the permutation @@ -1611,7 +1611,7 @@

Documentation Version
-inversions()[source]#
+inversions()[source]#

Computes the number of inversions of a permutation.

Explanation

An inversion is where i > j but p[i] < p[j].

@@ -1746,7 +1746,7 @@
Documentation Version
-classmethod josephus(m, n, s=1)[source]#
+classmethod josephus(m, n, s=1)[source]#

Return as a permutation the shuffling of range(n) using the Josephus scheme in which every m-th item is selected until all have been chosen. The returned permutation has elements listed by the order in which they @@ -1791,7 +1791,7 @@

Documentation Version
-length()[source]#
+length()[source]#

Returns the number of integers moved by a permutation.

Examples

>>> from sympy.combinatorics import Permutation
@@ -1809,7 +1809,7 @@ 
Documentation Version
-list(size=None)[source]#
+list(size=None)[source]#

Return the permutation as an explicit list, possibly trimming unmoved elements if size is less than the maximum element in the permutation; if this is desired, setting @@ -1835,7 +1835,7 @@

Documentation Version
-max()[source]#
+max()[source]#

The maximum element moved by the permutation.

Examples

>>> from sympy.combinatorics import Permutation
@@ -1852,7 +1852,7 @@ 
Documentation Version
-min()[source]#
+min()[source]#

The minimum element moved by the permutation.

Examples

>>> from sympy.combinatorics import Permutation
@@ -1869,13 +1869,13 @@ 
Documentation Version
-mul_inv(other)[source]#
+mul_inv(other)[source]#

other*~self, self and other have _array_form

-next_lex()[source]#
+next_lex()[source]#

Returns the next permutation in lexicographical order. If self is the last permutation in lexicographical order it returns None. @@ -1897,7 +1897,7 @@

Documentation Version
-next_nonlex()[source]#
+next_nonlex()[source]#

Returns the next permutation in nonlex order [3]. If self is the last permutation in this order it returns None.

Examples

@@ -1920,7 +1920,7 @@
Documentation Version
-next_trotterjohnson()[source]#
+next_trotterjohnson()[source]#

Returns the next permutation in Trotter-Johnson order. If self is the last permutation it returns None. See [4] section 2.4. If it is desired to generate all such @@ -1947,7 +1947,7 @@

Documentation Version
-order()[source]#
+order()[source]#

Computes the order of a permutation.

When the permutation is raised to the power of its order it equals the identity permutation.

@@ -1970,7 +1970,7 @@
Documentation Version
-parity()[source]#
+parity()[source]#

Computes the parity of a permutation.

Explanation

The parity of a permutation reflects the parity of the @@ -1994,7 +1994,7 @@

Documentation Version
-classmethod random(n)[source]#
+classmethod random(n)[source]#

Generates a random permutation of length n.

Uses the underlying Python pseudo-random number generator.

Examples

@@ -2007,7 +2007,7 @@
Documentation Version
-rank()[source]#
+rank()[source]#

Returns the lexicographic rank of the permutation.

Examples

>>> from sympy.combinatorics import Permutation
@@ -2027,7 +2027,7 @@ 
Documentation Version
-rank_nonlex(inv_perm=None)[source]#
+rank_nonlex(inv_perm=None)[source]#

This is a linear time ranking algorithm that does not enforce lexicographic order [3].

Examples

@@ -2045,7 +2045,7 @@
Documentation Version
-rank_trotterjohnson()[source]#
+rank_trotterjohnson()[source]#

Returns the Trotter Johnson rank, which we get from the minimal change algorithm. See [4] section 2.4.

Examples

@@ -2066,7 +2066,7 @@
Documentation Version
-resize(n)[source]#
+resize(n)[source]#

Resize the permutation to the new size n.

Parameters:
@@ -2113,7 +2113,7 @@
Documentation Version
-static rmul(*args)[source]#
+static rmul(*args)[source]#

Return product of Permutations [a, b, c, …] as the Permutation whose ith value is a(b(c(i))).

a, b, c, … can be Permutation objects or tuples.

@@ -2149,14 +2149,14 @@
Documentation Version
-classmethod rmul_with_af(*args)[source]#
+classmethod rmul_with_af(*args)[source]#

same as rmul, but the elements of args are Permutation objects which have _array_form

-runs()[source]#
+runs()[source]#

Returns the runs of a permutation.

An ascending sequence in a permutation is called a run [5].

Examples

@@ -2173,7 +2173,7 @@
Documentation Version
-signature()[source]#
+signature()[source]#

Gives the signature of the permutation needed to place the elements of the permutation in canonical order.

The signature is calculated as (-1)^<number of inversions>

@@ -2215,7 +2215,7 @@
Documentation Version
-support()[source]#
+support()[source]#

Return the elements in permutation, P, for which P[i] != i.

Examples

>>> from sympy.combinatorics import Permutation
@@ -2230,7 +2230,7 @@ 
Documentation Version
-transpositions()[source]#
+transpositions()[source]#

Return the permutation decomposed into a list of transpositions.

Explanation

It is always possible to express a permutation as the product of @@ -2258,7 +2258,7 @@

Documentation Version
-classmethod unrank_lex(size, rank)[source]#
+classmethod unrank_lex(size, rank)[source]#

Lexicographic permutation unranking.

Examples

>>> from sympy.combinatorics import Permutation
@@ -2279,7 +2279,7 @@ 
Documentation Version
-classmethod unrank_nonlex(n, r)[source]#
+classmethod unrank_nonlex(n, r)[source]#

This is a linear time unranking algorithm that does not respect lexicographic order [3].

Examples

@@ -2300,7 +2300,7 @@
Documentation Version
-classmethod unrank_trotterjohnson(size, rank)[source]#
+classmethod unrank_trotterjohnson(size, rank)[source]#

Trotter Johnson permutation unranking. See [4] section 2.4.

Examples

>>> from sympy.combinatorics import Permutation
@@ -2320,7 +2320,7 @@ 
Documentation Version
-class sympy.combinatorics.permutations.Cycle(*args)[source]#
+class sympy.combinatorics.permutations.Cycle(*args)[source]#

Wrapper around dict which provides the functionality of a disjoint cycle.

Explanation

A cycle shows the rule to use to move subsets of elements to obtain @@ -2391,7 +2391,7 @@

Documentation Version
-list(size=None)[source]#
+list(size=None)[source]#

Return the cycles as an explicit list starting from 0 up to the greater of the largest value in the cycles and size.

Truncation of trailing unmoved items will occur when size @@ -2418,7 +2418,7 @@

Documentation Version
-sympy.combinatorics.permutations._af_parity(pi)[source]#
+sympy.combinatorics.permutations._af_parity(pi)[source]#

Computes the parity of a permutation in array form.

Explanation

The parity of a permutation reflects the parity of the @@ -2442,7 +2442,7 @@

Documentation Version

Generators#

-generators.symmetric()[source]#
+generators.symmetric()[source]#

Generates the symmetric group of order n, Sn.

Examples

>>> from sympy.combinatorics.generators import symmetric
@@ -2454,7 +2454,7 @@ 
Documentation Version
-generators.cyclic()[source]#
+generators.cyclic()[source]#

Generates the cyclic group of order n, Cn.

Examples

>>> from sympy.combinatorics.generators import cyclic
@@ -2471,7 +2471,7 @@ 
Documentation Version
-generators.alternating()[source]#
+generators.alternating()[source]#

Generates the alternating group of order n, An.

Examples

>>> from sympy.combinatorics.generators import alternating
@@ -2483,7 +2483,7 @@ 
Documentation Version
-generators.dihedral()[source]#
+generators.dihedral()[source]#

Generates the dihedral group of order 2n, Dn.

The result is given as a subgroup of Sn, except for the special cases n=1 (the group S2) and n=2 (the Klein 4-group) where that’s not possible diff --git a/dev/modules/combinatorics/polyhedron.html b/dev/modules/combinatorics/polyhedron.html index ebe3f8815a8..8687ae45d6b 100644 --- a/dev/modules/combinatorics/polyhedron.html +++ b/dev/modules/combinatorics/polyhedron.html @@ -741,7 +741,7 @@

Documentation Version

Polyhedron#

-class sympy.combinatorics.polyhedron.Polyhedron(corners, faces=(), pgroup=())[source]#
+class sympy.combinatorics.polyhedron.Polyhedron(corners, faces=(), pgroup=())[source]#

Represents the polyhedral symmetry group (PSG).

Explanation

The PSG is one of the symmetry groups of the Platonic solids. @@ -841,7 +841,7 @@

Documentation Version
-reset()[source]#
+reset()[source]#

Return corners to their original positions.

Examples

>>> from sympy.combinatorics.polyhedron import tetrahedron as T
@@ -860,7 +860,7 @@ 
Documentation Version
-rotate(perm)[source]#
+rotate(perm)[source]#

Apply a permutation to the polyhedron in place. The permutation may be given as a Permutation instance or an integer indicating which permutation from pgroup of the Polyhedron should be diff --git a/dev/modules/combinatorics/prufer.html b/dev/modules/combinatorics/prufer.html index 68d62f63eef..37bee948098 100644 --- a/dev/modules/combinatorics/prufer.html +++ b/dev/modules/combinatorics/prufer.html @@ -741,7 +741,7 @@

Documentation Version

Prufer Sequences#

-class sympy.combinatorics.prufer.Prufer(*args, **kw_args)[source]#
+class sympy.combinatorics.prufer.Prufer(*args, **kw_args)[source]#

The Prufer correspondence is an algorithm that describes the bijection between labeled trees and the Prufer code. A Prufer code of a labeled tree is unique up to isomorphism and has @@ -757,7 +757,7 @@

Documentation Version
-static edges(*runs)[source]#
+static edges(*runs)[source]#

Return a list of edges and the number of nodes from the given runs that connect nodes in an integer-labelled tree.

All node numbers will be shifted so that the minimum node is 0. It is @@ -780,7 +780,7 @@

Documentation Version
-next(delta=1)[source]#
+next(delta=1)[source]#

Generates the Prufer sequence that is delta beyond the current one.

Examples

>>> from sympy.combinatorics.prufer import Prufer
@@ -814,7 +814,7 @@ 
Documentation Version
-prev(delta=1)[source]#
+prev(delta=1)[source]#

Generates the Prufer sequence that is -delta before the current one.

Examples

>>> from sympy.combinatorics.prufer import Prufer
@@ -836,7 +836,7 @@ 
Documentation Version
-prufer_rank()[source]#
+prufer_rank()[source]#

Computes the rank of a Prufer sequence.

Examples

>>> from sympy.combinatorics.prufer import Prufer
@@ -911,7 +911,7 @@ 
Documentation Version
-static to_prufer(tree, n)[source]#
+static to_prufer(tree, n)[source]#

Return the Prufer sequence for a tree given as a list of edges where n is the number of nodes in the tree.

Examples

@@ -934,7 +934,7 @@
Documentation Version
-static to_tree(prufer)[source]#
+static to_tree(prufer)[source]#

Return the tree (as a list of edges) of the given Prufer sequence.

Examples

>>> from sympy.combinatorics.prufer import Prufer
@@ -981,7 +981,7 @@ 
Documentation Version
-classmethod unrank(rank, n)[source]#
+classmethod unrank(rank, n)[source]#

Finds the unranked Prufer sequence.

Examples

>>> from sympy.combinatorics.prufer import Prufer
diff --git a/dev/modules/combinatorics/subsets.html b/dev/modules/combinatorics/subsets.html
index e747fa03fcc..97379993c52 100644
--- a/dev/modules/combinatorics/subsets.html
+++ b/dev/modules/combinatorics/subsets.html
@@ -741,7 +741,7 @@ 
Documentation Version

Subsets#

-class sympy.combinatorics.subsets.Subset(subset, superset)[source]#
+class sympy.combinatorics.subsets.Subset(subset, superset)[source]#

Represents a basic subset object.

Explanation

We generate subsets using essentially two techniques, @@ -760,7 +760,7 @@

Documentation Version
-classmethod bitlist_from_subset(subset, superset)[source]#
+classmethod bitlist_from_subset(subset, superset)[source]#

Gets the bitlist corresponding to a subset.

Examples

>>> from sympy.combinatorics import Subset
@@ -793,7 +793,7 @@ 
Documentation Version
-iterate_binary(k)[source]#
+iterate_binary(k)[source]#

This is a helper function. It iterates over the binary subsets by k steps. This variable can be both positive or negative.

@@ -815,7 +815,7 @@
Documentation Version
-iterate_graycode(k)[source]#
+iterate_graycode(k)[source]#

Helper function used for prev_gray and next_gray. It performs k step overs to get the respective Gray codes.

Examples

@@ -835,7 +835,7 @@
Documentation Version
-next_binary()[source]#
+next_binary()[source]#

Generates the next binary ordered subset.

Examples

>>> from sympy.combinatorics import Subset
@@ -855,7 +855,7 @@ 
Documentation Version
-next_gray()[source]#
+next_gray()[source]#

Generates the next Gray code ordered subset.

Examples

>>> from sympy.combinatorics import Subset
@@ -872,7 +872,7 @@ 
Documentation Version
-next_lexicographic()[source]#
+next_lexicographic()[source]#

Generates the next lexicographically ordered subset.

Examples

>>> from sympy.combinatorics import Subset
@@ -892,7 +892,7 @@ 
Documentation Version
-prev_binary()[source]#
+prev_binary()[source]#

Generates the previous binary ordered subset.

Examples

>>> from sympy.combinatorics import Subset
@@ -912,7 +912,7 @@ 
Documentation Version
-prev_gray()[source]#
+prev_gray()[source]#

Generates the previous Gray code ordered subset.

Examples

>>> from sympy.combinatorics import Subset
@@ -929,7 +929,7 @@ 
Documentation Version
-prev_lexicographic()[source]#
+prev_lexicographic()[source]#

Generates the previous lexicographically ordered subset.

Examples

>>> from sympy.combinatorics import Subset
@@ -1039,7 +1039,7 @@ 
Documentation Version
-classmethod subset_from_bitlist(super_set, bitlist)[source]#
+classmethod subset_from_bitlist(super_set, bitlist)[source]#

Gets the subset defined by the bitlist.

Examples

>>> from sympy.combinatorics import Subset
@@ -1055,7 +1055,7 @@ 
Documentation Version
-classmethod subset_indices(subset, superset)[source]#
+classmethod subset_indices(subset, superset)[source]#

Return indices of subset in superset in a list; the list is empty if all elements of subset are not in superset.

Examples

@@ -1107,7 +1107,7 @@
Documentation Version
-classmethod unrank_binary(rank, superset)[source]#
+classmethod unrank_binary(rank, superset)[source]#

Gets the binary ordered subset of the specified rank.

Examples

>>> from sympy.combinatorics import Subset
@@ -1123,7 +1123,7 @@ 
Documentation Version
-classmethod unrank_gray(rank, superset)[source]#
+classmethod unrank_gray(rank, superset)[source]#

Gets the Gray code ordered subset of the specified rank.

Examples

>>> from sympy.combinatorics import Subset
@@ -1143,7 +1143,7 @@ 
Documentation Version
-subsets.ksubsets(k)[source]#
+subsets.ksubsets(k)[source]#

Finds the subsets of size k in lexicographic order.

This uses the itertools generator.

Examples

diff --git a/dev/modules/combinatorics/tensor_can.html b/dev/modules/combinatorics/tensor_can.html index d72e4e4783c..c9e8ae67953 100644 --- a/dev/modules/combinatorics/tensor_can.html +++ b/dev/modules/combinatorics/tensor_can.html @@ -741,7 +741,7 @@
Documentation Version

Tensor Canonicalization#

-sympy.combinatorics.tensor_can.canonicalize(g, dummies, msym, *v)[source]#
+sympy.combinatorics.tensor_can.canonicalize(g, dummies, msym, *v)[source]#

canonicalize tensor formed by tensors

Parameters:
@@ -849,7 +849,7 @@
Documentation Version
-sympy.combinatorics.tensor_can.double_coset_can_rep(dummies, sym, b_S, sgens, S_transversals, g)[source]#
+sympy.combinatorics.tensor_can.double_coset_can_rep(dummies, sym, b_S, sgens, S_transversals, g)[source]#

Butler-Portugal algorithm for tensor canonicalization with dummy indices.

Parameters:
@@ -1041,7 +1041,7 @@
Documentation Version
-sympy.combinatorics.tensor_can.get_symmetric_group_sgs(n, antisym=False)[source]#
+sympy.combinatorics.tensor_can.get_symmetric_group_sgs(n, antisym=False)[source]#

Return base, gens of the minimal BSGS for (anti)symmetric tensor

Parameters:
@@ -1063,7 +1063,7 @@
Documentation Version
-sympy.combinatorics.tensor_can.bsgs_direct_product(base1, gens1, base2, gens2, signed=True)[source]#
+sympy.combinatorics.tensor_can.bsgs_direct_product(base1, gens1, base2, gens2, signed=True)[source]#

Direct product of two BSGS.

Parameters:
diff --git a/dev/modules/combinatorics/testutil.html b/dev/modules/combinatorics/testutil.html index 26206a93710..5ac671f4933 100644 --- a/dev/modules/combinatorics/testutil.html +++ b/dev/modules/combinatorics/testutil.html @@ -741,7 +741,7 @@
Documentation Version

Test Utilities#

-sympy.combinatorics.testutil._cmp_perm_lists(first, second)[source]#
+sympy.combinatorics.testutil._cmp_perm_lists(first, second)[source]#

Compare two lists of permutations as sets.

Explanation

This is used for testing purposes. Since the array form of a @@ -763,12 +763,12 @@

Documentation Version
-sympy.combinatorics.testutil._naive_list_centralizer(self, other, af=False)[source]#
+sympy.combinatorics.testutil._naive_list_centralizer(self, other, af=False)[source]#
-sympy.combinatorics.testutil._verify_bsgs(group, base, gens)[source]#
+sympy.combinatorics.testutil._verify_bsgs(group, base, gens)[source]#

Verify the correctness of a base and strong generating set.

Explanation

This is a naive implementation using the definition of a base and a strong @@ -792,7 +792,7 @@

Documentation Version
-sympy.combinatorics.testutil._verify_centralizer(group, arg, centr=None)[source]#
+sympy.combinatorics.testutil._verify_centralizer(group, arg, centr=None)[source]#

Verify the centralizer of a group/set/element inside another group.

This is used for testing .centralizer() from sympy.combinatorics.perm_groups

@@ -817,7 +817,7 @@
Documentation Version
-sympy.combinatorics.testutil._verify_normal_closure(group, arg, closure=None)[source]#
+sympy.combinatorics.testutil._verify_normal_closure(group, arg, closure=None)[source]#
diff --git a/dev/modules/combinatorics/util.html b/dev/modules/combinatorics/util.html index 03802751e15..bf194a1cb96 100644 --- a/dev/modules/combinatorics/util.html +++ b/dev/modules/combinatorics/util.html @@ -741,7 +741,7 @@
Documentation Version

Utilities#

-sympy.combinatorics.util._base_ordering(base, degree)[source]#
+sympy.combinatorics.util._base_ordering(base, degree)[source]#

Order \(\{0, 1, \dots, n-1\}\) so that base points come first and in order.

Parameters:
@@ -782,7 +782,7 @@
Documentation Version
-sympy.combinatorics.util._check_cycles_alt_sym(perm)[source]#
+sympy.combinatorics.util._check_cycles_alt_sym(perm)[source]#

Checks for cycles of prime length p with n/2 < p < n-2.

Explanation

Here \(n\) is the degree of the permutation. This is a helper function for @@ -806,7 +806,7 @@

Documentation Version
-sympy.combinatorics.util._distribute_gens_by_base(base, gens)[source]#
+sympy.combinatorics.util._distribute_gens_by_base(base, gens)[source]#

Distribute the group elements gens by membership in basic stabilizers.

Parameters:
@@ -850,7 +850,7 @@
Documentation Version
-sympy.combinatorics.util._handle_precomputed_bsgs(base, strong_gens, transversals=None, basic_orbits=None, strong_gens_distr=None)[source]#
+sympy.combinatorics.util._handle_precomputed_bsgs(base, strong_gens, transversals=None, basic_orbits=None, strong_gens_distr=None)[source]#

Calculate BSGS-related structures from those present.

Parameters:
@@ -891,7 +891,7 @@
Documentation Version
-sympy.combinatorics.util._orbits_transversals_from_bsgs(base, strong_gens_distr, transversals_only=False, slp=False)[source]#
+sympy.combinatorics.util._orbits_transversals_from_bsgs(base, strong_gens_distr, transversals_only=False, slp=False)[source]#

Compute basic orbits and transversals from a base and strong generating set.

Parameters:
@@ -933,7 +933,7 @@
Documentation Version
-sympy.combinatorics.util._remove_gens(base, strong_gens, basic_orbits=None, strong_gens_distr=None)[source]#
+sympy.combinatorics.util._remove_gens(base, strong_gens, basic_orbits=None, strong_gens_distr=None)[source]#

Remove redundant generators from a strong generating set.

Parameters:
@@ -974,7 +974,7 @@
Documentation Version
-sympy.combinatorics.util._strip(g, base, orbits, transversals)[source]#
+sympy.combinatorics.util._strip(g, base, orbits, transversals)[source]#

Attempt to decompose a permutation using a (possibly partial) BSGS structure.

@@ -1034,7 +1034,7 @@
Documentation Version
-sympy.combinatorics.util._strong_gens_from_distr(strong_gens_distr)[source]#
+sympy.combinatorics.util._strong_gens_from_distr(strong_gens_distr)[source]#

Retrieve strong generating set from generators of basic stabilizers.

This is just the union of the generators of the first and second basic stabilizers.

diff --git a/dev/modules/concrete.html b/dev/modules/concrete.html index fda5c27f88c..592f59682de 100644 --- a/dev/modules/concrete.html +++ b/dev/modules/concrete.html @@ -819,7 +819,7 @@

Hypergeometric termsConcrete Class Reference#

-class sympy.concrete.summations.Sum(function, *symbols, **assumptions)[source]#
+class sympy.concrete.summations.Sum(function, *symbols, **assumptions)[source]#

Represents unevaluated summation.

Explanation

Sum represents a finite or infinite series, with the first argument @@ -945,7 +945,7 @@

Concrete Class Reference
-euler_maclaurin(m=0, n=0, eps=0, eval_integral=True)[source]#
+euler_maclaurin(m=0, n=0, eps=0, eval_integral=True)[source]#

Return an Euler-Maclaurin approximation of self, where m is the number of leading terms to sum directly and n is the number of terms in the tail.

@@ -988,7 +988,7 @@

Concrete Class Reference
-eval_zeta_function(f, limits)[source]#
+eval_zeta_function(f, limits)[source]#

Check whether the function matches with the zeta function.

If it matches, then return a \(Piecewise\) expression because zeta function does not converge unless \(s > 1\) and \(q > 0\)

@@ -996,7 +996,7 @@

Concrete Class Reference
-is_absolutely_convergent()[source]#
+is_absolutely_convergent()[source]#

Checks for the absolute convergence of an infinite series.

Same as checking convergence of absolute value of sequence_term of an infinite series.

@@ -1024,7 +1024,7 @@

Concrete Class Reference
-is_convergent()[source]#
+is_convergent()[source]#

Checks for the convergence of a Sum.

Explanation

We divide the study of convergence of infinite sums and products in @@ -1089,7 +1089,7 @@

Concrete Class Reference
-reverse_order(*indices)[source]#
+reverse_order(*indices)[source]#

Reverse the order of a limit in a Sum.

Explanation

reverse_order(self, *indices) reverses some limits in the expression @@ -1152,7 +1152,7 @@

Concrete Class Reference
-class sympy.concrete.products.Product(function, *symbols, **assumptions)[source]#
+class sympy.concrete.products.Product(function, *symbols, **assumptions)[source]#

Represents unevaluated products.

Explanation

Product represents a finite or infinite product, with the first @@ -1320,7 +1320,7 @@

Concrete Class Reference
-is_convergent()[source]#
+is_convergent()[source]#

See docs of Sum.is_convergent() for explanation of convergence in SymPy.

Explanation

@@ -1365,7 +1365,7 @@

Concrete Class Reference
-reverse_order(*indices)[source]#
+reverse_order(*indices)[source]#

Reverse the order of a limit in a Product.

Explanation

reverse_order(expr, *indices) reverses some limits in the expression @@ -1432,7 +1432,7 @@

Concrete Class Reference
-class sympy.concrete.expr_with_intlimits.ExprWithIntLimits(function, *symbols, **assumptions)[source]#
+class sympy.concrete.expr_with_intlimits.ExprWithIntLimits(function, *symbols, **assumptions)[source]#

Superclass for Product and Sum.

See also

@@ -1440,7 +1440,7 @@

Concrete Class Reference
-change_index(var, trafo, newvar=None)[source]#
+change_index(var, trafo, newvar=None)[source]#

Change index of a Sum or Product.

Perform a linear transformation \(x \mapsto a x + b\) on the index variable \(x\). For \(a\) the only values allowed are \(\pm 1\). A new variable to be used @@ -1568,7 +1568,7 @@

Concrete Class Reference
-index(x)[source]#
+index(x)[source]#

Return the index of a dummy variable in the list of limits.

Explanation

index(expr, x) returns the index of the dummy variable x in the @@ -1595,7 +1595,7 @@

Concrete Class Reference
-reorder(*arg)[source]#
+reorder(*arg)[source]#

Reorder limits in a expression containing a Sum or a Product.

Explanation

expr.reorder(*arg) reorders the limits in the expression expr @@ -1640,7 +1640,7 @@

Concrete Class Reference
-reorder_limit(x, y)[source]#
+reorder_limit(x, y)[source]#

Interchange two limit tuples of a Sum or Product expression.

Explanation

expr.reorder_limit(x, y) interchanges two limit tuples. The @@ -1675,7 +1675,7 @@

Concrete Class Reference#

-sympy.concrete.summations.summation(f, *symbols, **kwargs)[source]#
+sympy.concrete.summations.summation(f, *symbols, **kwargs)[source]#

Compute the summation of f with respect to symbols.

Explanation

The notation for symbols is similar to the notation used in Integral. @@ -1722,7 +1722,7 @@

Concrete Functions Reference
-sympy.concrete.products.product(*args, **kwargs)[source]#
+sympy.concrete.products.product(*args, **kwargs)[source]#

Compute the product.

Explanation

The notation for symbols is similar to the notation used in Sum or @@ -1756,7 +1756,7 @@

Concrete Functions Reference
-sympy.concrete.gosper.gosper_normal(f, g, n, polys=True)[source]#
+sympy.concrete.gosper.gosper_normal(f, g, n, polys=True)[source]#

Compute the Gosper’s normal form of f and g.

Explanation

Given relatively prime univariate polynomials f and g, @@ -1791,7 +1791,7 @@

Concrete Functions Reference
-sympy.concrete.gosper.gosper_term(f, n)[source]#
+sympy.concrete.gosper.gosper_term(f, n)[source]#

Compute Gosper’s hypergeometric term for f.

Explanation

Suppose f is a hypergeometric term such that:

@@ -1815,7 +1815,7 @@

Concrete Functions Reference
-sympy.concrete.gosper.gosper_sum(f, k)[source]#
+sympy.concrete.gosper.gosper_sum(f, k)[source]#

Gosper’s hypergeometric summation algorithm.

Explanation

Given a hypergeometric term f such that:

diff --git a/dev/modules/core.html b/dev/modules/core.html index f188ce63b13..f2677c940fb 100644 --- a/dev/modules/core.html +++ b/dev/modules/core.html @@ -743,7 +743,7 @@
Documentation Version

sympify#

-sympy.core.sympify.sympify(a, locals=None, convert_xor=True, strict=False, rational=False, evaluate=None)[source]#
+sympy.core.sympify.sympify(a, locals=None, convert_xor=True, strict=False, rational=False, evaluate=None)[source]#

Converts an arbitrary expression to a type that can be used inside SymPy.

Parameters:
@@ -1209,7 +1209,7 @@

References

cache#

-sympy.core.cache.__cacheit(maxsize)[source]#
+sympy.core.cache.__cacheit(maxsize)[source]#

caching decorator.

important: the result of cached function must be immutable

Examples

@@ -1233,7 +1233,7 @@

References

basic#

-class sympy.core.basic.Basic(*args)[source]#
+class sympy.core.basic.Basic(*args)[source]#

Base class for all SymPy objects.

Notes And Conventions

    @@ -1317,7 +1317,7 @@

    References
    -as_content_primitive(radical=False, clear=True)[source]#
    +as_content_primitive(radical=False, clear=True)[source]#

    A stub to allow Basic args (like Tuple) to be skipped when computing the content and primitive components of an expression.

    @@ -1328,7 +1328,7 @@

    References
    -as_dummy()[source]#
    +as_dummy()[source]#

    Return the expression with any objects having structurally bound symbols replaced with unique, canonical symbols within the object in which they appear and having only the default @@ -1384,7 +1384,7 @@

    References
    -atoms(*types)[source]#
    +atoms(*types)[source]#

    Returns the atoms that form the current object.

    By default, only objects that are truly atomic and cannot be divided into smaller pieces are returned: symbols, numbers, @@ -1472,13 +1472,13 @@

    References
    -classmethod class_key()[source]#
    +classmethod class_key()[source]#

    Nice order of classes.

-compare(other)[source]#
+compare(other)[source]#

Return -1, 0, 1 if the object is less than, equal, or greater than other in a canonical sense. Non-Basic are always greater than Basic. @@ -1506,19 +1506,19 @@

References
-count(query)[source]#
+count(query)[source]#

Count the number of matching subexpressions.

-count_ops(visual=None)[source]#
+count_ops(visual=None)[source]#

Wrapper for count_ops that returns the operation count.

-doit(**hints)[source]#
+doit(**hints)[source]#

Evaluate objects that are not evaluated by default like limits, integrals, sums and products. All objects of this kind will be evaluated recursively, unless some species were excluded via ‘hints’ @@ -1543,7 +1543,7 @@

References
-dummy_eq(other, symbol=None)[source]#
+dummy_eq(other, symbol=None)[source]#

Compare two expressions and handle dummy symbols.

Examples

>>> from sympy import Dummy
@@ -1569,7 +1569,7 @@ 

References
-find(query, group=False)[source]#
+find(query, group=False)[source]#

Find all subexpressions matching a query.

@@ -1590,7 +1590,7 @@

References
-classmethod fromiter(args, **assumptions)[source]#
+classmethod fromiter(args, **assumptions)[source]#

Create a new object from an iterable.

This is a convenience function that allows one to create objects from any iterable, without having to convert to a list or tuple first.

@@ -1627,7 +1627,7 @@

References
-has(*patterns)[source]#
+has(*patterns)[source]#

Test whether any subexpression matches any of the patterns.

Examples

>>> from sympy import sin
@@ -1672,7 +1672,7 @@ 

References
-has_free(*patterns)[source]#
+has_free(*patterns)[source]#

Return True if self has object(s) x as a free expression else False.

Examples

@@ -1700,7 +1700,7 @@

References
-has_xfree(s: set[Basic])[source]#
+has_xfree(s: set[Basic])[source]#

Return True if self has any of the patterns in s as a free argument, else False. This is like \(Basic.has_free\) but this will only report exact argument matches.

@@ -1751,7 +1751,7 @@

References
-is_same(b, approx=None)[source]#
+is_same(b, approx=None)[source]#

Return True if a and b are structurally the same, else False. If \(approx\) is supplied, it will be used to test whether two numbers are the same or not. By default, only numbers of the @@ -1805,7 +1805,7 @@

References
-match(pattern, old=False)[source]#
+match(pattern, old=False)[source]#

Pattern matching.

Wild symbols match all.

Return None when expression (self) does not match @@ -1854,7 +1854,7 @@

References
-matches(expr, repl_dict=None, old=False)[source]#
+matches(expr, repl_dict=None, old=False)[source]#

Helper method for match() that looks for a match between Wild symbols in self and expressions in expr.

Examples

@@ -1871,7 +1871,7 @@

References
-rcall(*args)[source]#
+rcall(*args)[source]#

Apply on the argument recursively through the expression tree.

This method is used to simulate a common abuse of notation for operators. For instance, in SymPy the following will not work:

@@ -1887,13 +1887,13 @@

References
-refine(assumption=True)[source]#
+refine(assumption=True)[source]#

See the refine function in sympy.assumptions

-replace(query, value, map=False, simultaneous=True, exact=None)[source]#
+replace(query, value, map=False, simultaneous=True, exact=None)[source]#

Replace matching subexpressions of self with value.

If map = True then also return the mapping {old: new} where old was a sub-expression found with query and new is the replacement @@ -2047,7 +2047,7 @@

References
-rewrite(*args, deep=True, **hints)[source]#
+rewrite(*args, deep=True, **hints)[source]#

Rewrite self using a defined rule.

Rewriting transforms an expression to another, which is mathematically equivalent but structurally different. For example you can rewrite @@ -2121,13 +2121,13 @@

References
-simplify(**kwargs)[source]#
+simplify(**kwargs)[source]#

See the simplify function in sympy.simplify

-sort_key(order=None)[source]#
+sort_key(order=None)[source]#

Return a sort key.

Examples

>>> from sympy import S, I
@@ -2147,7 +2147,7 @@ 

References
-subs(*args, **kwargs)[source]#
+subs(*args, **kwargs)[source]#

Substitutes old for new in an expression after sympifying args.

\(args\) is either:
    @@ -2274,7 +2274,7 @@

    References
    -xreplace(rule)[source]#
    +xreplace(rule)[source]#

    Replace occurrences of objects within the expression.

    Parameters:
    @@ -2340,7 +2340,7 @@

    References
    -class sympy.core.basic.Atom(*args)[source]#
    +class sympy.core.basic.Atom(*args)[source]#

    A parent class for atomic things. An atom is an expression with no subexpressions.

    Examples

    Symbol, Number, Rational, Integer, … @@ -2352,7 +2352,7 @@

    References

    singleton#

    -class sympy.core.singleton.SingletonRegistry[source]#
    +class sympy.core.singleton.SingletonRegistry[source]#

    The registry for the singleton classes (accessible as S).

    Explanation

    This class serves as two separate things.

    @@ -2420,7 +2420,7 @@

    References
    -class sympy.core.singleton.Singleton(*args, **kwargs)[source]#
    +class sympy.core.singleton.Singleton(*args, **kwargs)[source]#

    Metaclass for singleton classes.

    Explanation

    A singleton class has only one instance which is returned every time the @@ -2450,7 +2450,7 @@

    References

    expr#

    -class sympy.core.expr.Expr(*args)[source]#
    +class sympy.core.expr.Expr(*args)[source]#

    Base class for algebraic expressions.

    Explanation

    Everything that requires arithmetic operations to be defined @@ -2467,13 +2467,13 @@

    References
    -apart(x=None, **args)[source]#
    +apart(x=None, **args)[source]#

    See the apart function in sympy.polys

    -args_cnc(cset=False, warn=True, split_1=True)[source]#
    +args_cnc(cset=False, warn=True, split_1=True)[source]#

    Return [commutative factors, non-commutative factors] of self.

    Explanation

    self is treated as a Mul and the ordering of the factors is maintained. @@ -2509,19 +2509,19 @@

    References
    -as_coeff_Add(rational=False) tuple['Number', Expr][source]#
    +as_coeff_Add(rational=False) tuple['Number', Expr][source]#

    Efficiently extract the coefficient of a summation.

    -as_coeff_Mul(rational: bool = False) tuple['Number', Expr][source]#
    +as_coeff_Mul(rational: bool = False) tuple['Number', Expr][source]#

    Efficiently extract the coefficient of a product.

    -as_coeff_add(*deps) tuple[Expr, tuple[Expr, ...]][source]#
    +as_coeff_add(*deps) tuple[Expr, tuple[Expr, ...]][source]#

    Return the tuple (c, args) where self is written as an Add, a.

    c should be a Rational added to any terms of the Add that are independent of deps.

    @@ -2553,13 +2553,13 @@

    References
    -as_coeff_exponent(x) tuple[Expr, Expr][source]#
    +as_coeff_exponent(x) tuple[Expr, Expr][source]#

    c*x**e -> c,e where x can be any symbolic expression.

    -as_coeff_mul(*deps, **kwargs) tuple[Expr, tuple[Expr, ...]][source]#
    +as_coeff_mul(*deps, **kwargs) tuple[Expr, tuple[Expr, ...]][source]#

    Return the tuple (c, args) where self is written as a Mul, m.

    c should be a Rational multiplied by any factors of the Mul that are independent of deps.

    @@ -2591,7 +2591,7 @@

    References
    -as_coefficient(expr)[source]#
    +as_coefficient(expr)[source]#

    Extracts symbolic coefficient at the given expression. In other words, this functions separates ‘self’ into the product of ‘expr’ and ‘expr’-free coefficient. If such separation @@ -2663,7 +2663,7 @@

    References
    -as_coefficients_dict(*syms)[source]#
    +as_coefficients_dict(*syms)[source]#

    Return a dictionary mapping terms to their Rational coefficient. Since the dictionary is a defaultdict, inquiries about terms which were not present will return a coefficient of 0.

    @@ -2689,7 +2689,7 @@

    References
    -as_content_primitive(radical=False, clear=True)[source]#
    +as_content_primitive(radical=False, clear=True)[source]#

    This method should recursively remove a Rational from all arguments and return that (content) and the new self (primitive). The content should always be positive and Mul(*foo.as_content_primitive()) == foo. @@ -2747,7 +2747,7 @@

    References
    -as_expr(*gens)[source]#
    +as_expr(*gens)[source]#

    Convert a polynomial to a SymPy expression.

    Examples

    >>> from sympy import sin
    @@ -2767,7 +2767,7 @@ 

    References
    -as_independent(*deps, **hint) tuple[Expr, Expr][source]#
    +as_independent(*deps, **hint) tuple[Expr, Expr][source]#

    A mostly naive separation of a Mul or Add into arguments that are not are dependent on deps. To obtain as complete a separation of variables as possible, use a separation method first, e.g.:

    @@ -2898,7 +2898,7 @@

    References
    -as_leading_term(*symbols, logx=None, cdir=0)[source]#
    +as_leading_term(*symbols, logx=None, cdir=0)[source]#

    Returns the leading (nonzero) term of the series expansion of self.

    The _eval_as_leading_term routines are used to do this, and they must always return a non-zero value.

    @@ -2914,7 +2914,7 @@

    References
    -as_numer_denom()[source]#
    +as_numer_denom()[source]#

    Return the numerator and the denominator of an expression.

    expression -> a/b -> a, b

    This is just a stub that should be defined by @@ -2930,13 +2930,13 @@

    References
    -as_ordered_factors(order=None)[source]#
    +as_ordered_factors(order=None)[source]#

    Return list of ordered factors (if Mul) else [self].

    -as_ordered_terms(order=None, data=False)[source]#
    +as_ordered_terms(order=None, data=False)[source]#

    Transform an expression to an ordered list of terms.

    Examples

    >>> from sympy import sin, cos
    @@ -2951,7 +2951,7 @@ 

    References
    -as_poly(*gens, **args)[source]#
    +as_poly(*gens, **args)[source]#

    Converts self to a polynomial or returns None.

    Explanation

    >>> from sympy import sin
    @@ -2974,7 +2974,7 @@ 

    References
    -as_powers_dict()[source]#
    +as_powers_dict()[source]#

    Return self as a dictionary of factors with each factor being treated as a power. The keys are the bases of the factors and the values, the corresponding exponents. The resulting dictionary should @@ -2994,7 +2994,7 @@

    References
    -as_real_imag(deep=True, **hints)[source]#
    +as_real_imag(deep=True, **hints)[source]#

    Performs complex expansion on ‘self’ and returns a tuple containing collected both real and imaginary parts. This method cannot be confused with re() and im() functions, @@ -3023,13 +3023,13 @@

    References
    -as_terms()[source]#
    +as_terms()[source]#

    Transform an expression to a list of terms.

    -aseries(x=None, n=6, bound=0, hir=False)[source]#
    +aseries(x=None, n=6, bound=0, hir=False)[source]#

    Asymptotic Series expansion of self. This is equivalent to self.series(x, oo, n).

    @@ -3135,13 +3135,13 @@

    References
    -cancel(*gens, **args)[source]#
    +cancel(*gens, **args)[source]#

    See the cancel function in sympy.polys

    -coeff(x, n=1, right=False, _first=True)[source]#
    +coeff(x, n=1, right=False, _first=True)[source]#

    Returns the coefficient from the term(s) containing x**n. If n is zero then all terms independent of x will be returned.

    Explanation

    @@ -3259,19 +3259,19 @@

    References
    -collect(syms, func=None, evaluate=True, exact=False, distribute_order_term=True)[source]#
    +collect(syms, func=None, evaluate=True, exact=False, distribute_order_term=True)[source]#

    See the collect function in sympy.simplify

    -combsimp()[source]#
    +combsimp()[source]#

    See the combsimp function in sympy.simplify

    -compute_leading_term(x, logx=None)[source]#
    +compute_leading_term(x, logx=None)[source]#

    Deprecated function to compute the leading term of a series.

    as_leading_term is only allowed for results of .series() This is a wrapper to compute a series first.

    @@ -3279,13 +3279,13 @@

    References
    -conjugate()[source]#
    +conjugate()[source]#

    Returns the complex conjugate of ‘self’.

    -could_extract_minus_sign()[source]#
    +could_extract_minus_sign()[source]#

    Return True if self has -1 as a leading factor or has more literal negative signs than positive signs in a sum, otherwise False.

    @@ -3315,7 +3315,7 @@

    References
    -equals(other, failing_expression=False)[source]#
    +equals(other, failing_expression=False)[source]#

    Return True if self == other, False if it does not, or None. If failing_expression is True then the expression which did not simplify to a 0 will be returned instead of None.

    @@ -3331,7 +3331,7 @@

    References
    -expand(deep=True, modulus=None, power_base=True, power_exp=True, mul=True, log=True, multinomial=True, basic=True, **hints)[source]#
    +expand(deep=True, modulus=None, power_base=True, power_exp=True, mul=True, log=True, multinomial=True, basic=True, **hints)[source]#

    Expand an expression using hints.

    See the docstring of the expand() function in sympy.core.function for more information.

    @@ -3362,7 +3362,7 @@

    References
    -extract_additively(c)[source]#
    +extract_additively(c)[source]#

    Return self - c if it’s possible to subtract c from self and make all matching coefficients move towards zero, else return None.

    Examples

    @@ -3385,7 +3385,7 @@

    References
    -extract_branch_factor(allow_half=False)[source]#
    +extract_branch_factor(allow_half=False)[source]#

    Try to write self as exp_polar(2*pi*I*n)*z in a nice way. Return (z, n).

    >>> from sympy import exp_polar, I, pi
    @@ -3419,7 +3419,7 @@ 

    References
    -extract_multiplicatively(c)[source]#
    +extract_multiplicatively(c)[source]#

    Return None if it’s not possible to make self in the form c * something in a nice way, i.e. preserving the properties of arguments of self.

    @@ -3452,13 +3452,13 @@

    References
    -factor(*gens, **args)[source]#
    +factor(*gens, **args)[source]#

    See the factor() function in sympy.polys.polytools

    -fourier_series(limits=None)[source]#
    +fourier_series(limits=None)[source]#

    Compute fourier sine/cosine series of self.

    See the docstring of the fourier_series() in sympy.series.fourier for more information.

    @@ -3466,7 +3466,7 @@

    References
    -fps(x=None, x0=0, dir=1, hyper=True, order=4, rational=True, full=False)[source]#
    +fps(x=None, x0=0, dir=1, hyper=True, order=4, rational=True, full=False)[source]#

    Compute formal power power series of self.

    See the docstring of the fps() function in sympy.series.formal for more information.

    @@ -3474,19 +3474,19 @@

    References
    -gammasimp()[source]#
    +gammasimp()[source]#

    See the gammasimp function in sympy.simplify

    -getO()[source]#
    +getO()[source]#

    Returns the additive O(..) symbol if there is one, else None.

    -getn()[source]#
    +getn()[source]#

    Returns the order of the expression.

    Explanation

    The order is determined either from the O(…) term. If there @@ -3503,13 +3503,13 @@

    References
    -integrate(*args, **kwargs)[source]#
    +integrate(*args, **kwargs)[source]#

    See the integrate function in sympy.integrals

    -invert(g, *gens, **args)[source]#
    +invert(g, *gens, **args)[source]#

    Return the multiplicative inverse of self mod g where self (and g) may be symbolic expressions).

    @@ -3520,7 +3520,7 @@

    References
    -is_algebraic_expr(*syms)[source]#
    +is_algebraic_expr(*syms)[source]#

    This tests whether a given expression is algebraic or not, in the given symbols, syms. When syms is not given, all free symbols will be used. The rational function does not have to be in expanded @@ -3563,7 +3563,7 @@

    References
    -is_constant(*wrt, **flags)[source]#
    +is_constant(*wrt, **flags)[source]#

    Return True if self is constant, False if not, or None if the constancy could not be determined conclusively.

    Explanation

    @@ -3632,7 +3632,7 @@

    References
    -is_meromorphic(x, a)[source]#
    +is_meromorphic(x, a)[source]#

    This tests whether an expression is meromorphic as a function of the given symbol x at the point a.

    This method is intended as a quick test that will return @@ -3741,7 +3741,7 @@

    References
    -is_polynomial(*syms)[source]#
    +is_polynomial(*syms)[source]#

    Return True if self is a polynomial in syms and False otherwise.

    This checks if self is an exact polynomial in syms. This function returns False for expressions that are “polynomials” with symbolic @@ -3805,7 +3805,7 @@

    References
    -is_rational_function(*syms)[source]#
    +is_rational_function(*syms)[source]#

    Test whether function is a ratio of two polynomials in the given symbols, syms. When syms is not given, all free symbols will be used. The rational function does not have to be in expanded or in any kind of @@ -3857,7 +3857,7 @@

    References
    -leadterm(x, logx=None, cdir=0)[source]#
    +leadterm(x, logx=None, cdir=0)[source]#

    Returns the leading term a*x**b as a tuple (a, b).

    Examples

    >>> from sympy.abc import x
    @@ -3871,13 +3871,13 @@ 

    References
    -limit(x, xlim, dir='+')[source]#
    +limit(x, xlim, dir='+')[source]#

    Compute limit x->xlim.

    -lseries(x=None, x0=0, dir='+', logx=None, cdir=0)[source]#
    +lseries(x=None, x0=0, dir='+', logx=None, cdir=0)[source]#

    Wrapper for series yielding an iterator of the terms of the series.

    Note: an infinite series will yield an infinite iterator. The following, for exaxmple, will never terminate. It will just keep printing terms @@ -3895,7 +3895,7 @@

    References
    -normal()[source]#
    +normal()[source]#

    Return the expression as a fraction.

    expression -> a/b

    @@ -3909,7 +3909,7 @@

    References
    -nseries(x=None, x0=0, n=6, dir='+', logx=None, cdir=0)[source]#
    +nseries(x=None, x0=0, n=6, dir='+', logx=None, cdir=0)[source]#

    Wrapper to _eval_nseries if assumptions allow, else to series.

    If x is given, x0 is 0, dir=’+’, and self has x, then _eval_nseries is called. This calculates “n” terms in the innermost expressions and @@ -3963,19 +3963,19 @@

    References
    -nsimplify(constants=(), tolerance=None, full=False)[source]#
    +nsimplify(constants=(), tolerance=None, full=False)[source]#

    See the nsimplify function in sympy.simplify

    -powsimp(*args, **kwargs)[source]#
    +powsimp(*args, **kwargs)[source]#

    See the powsimp function in sympy.simplify

    -primitive()[source]#
    +primitive()[source]#

    Return the positive Rational that can be extracted non-recursively from every term of self (i.e., self is treated like an Add). This is like the as_coeff_Mul() method but primitive always extracts a positive @@ -3996,25 +3996,25 @@

    References
    -radsimp(**kwargs)[source]#
    +radsimp(**kwargs)[source]#

    See the radsimp function in sympy.simplify

    -ratsimp()[source]#
    +ratsimp()[source]#

    See the ratsimp function in sympy.simplify

    -removeO()[source]#
    +removeO()[source]#

    Removes the additive O(..) symbol if there is one

    -round(n=None)[source]#
    +round(n=None)[source]#

    Return x rounded to the given decimal place.

    If a complex number would results, apply round to the real and imaginary components of the number.

    @@ -4048,13 +4048,13 @@

    References
    -separate(deep=False, force=False)[source]#
    +separate(deep=False, force=False)[source]#

    See the separate function in sympy.simplify

    -series(x=None, x0=0, n=6, dir='+', logx=None, cdir=0)[source]#
    +series(x=None, x0=0, n=6, dir='+', logx=None, cdir=0)[source]#

    Series expansion of “self” around x = x0 yielding either terms of the series one by one (the lazy series given when n=None), else all the terms at once when n != None.

    @@ -4167,7 +4167,7 @@

    References
    -taylor_term(n, x, *previous_terms)[source]#
    +taylor_term(n, x, *previous_terms)[source]#

    General method for the taylor term.

    This method is slow, because it differentiates n-times. Subclasses can redefine it to make it faster by using the “previous_terms”.

    @@ -4175,13 +4175,13 @@

    References
    -together(*args, **kwargs)[source]#
    +together(*args, **kwargs)[source]#

    See the together function in sympy.polys

    -trigsimp(**args)[source]#
    +trigsimp(**args)[source]#

    See the trigsimp function in sympy.simplify

    @@ -4189,7 +4189,7 @@

    References
    -class sympy.core.expr.UnevaluatedExpr(arg, **kwargs)[source]#
    +class sympy.core.expr.UnevaluatedExpr(arg, **kwargs)[source]#

    Expression that is not evaluated unless released.

    Examples

    >>> from sympy import UnevaluatedExpr
    @@ -4204,7 +4204,7 @@ 

    References
    -class sympy.core.expr.AtomicExpr(*args)[source]#
    +class sympy.core.expr.AtomicExpr(*args)[source]#

    A parent class for object which are both atoms and Exprs.

    For example: Symbol, Number, Rational, Integer, … But not: Add, Mul, Pow, …

    @@ -4215,7 +4215,7 @@

    References

    symbol#

    -class sympy.core.symbol.Symbol(name, **assumptions)[source]#
    +class sympy.core.symbol.Symbol(name, **assumptions)[source]#
    Assumptions:

    commutative = True

    @@ -4234,7 +4234,7 @@

    References
    -class sympy.core.symbol.Wild(name, exclude=(), properties=(), **assumptions)[source]#
    +class sympy.core.symbol.Wild(name, exclude=(), properties=(), **assumptions)[source]#

    A Wild symbol matches anything, or anything without whatever is explicitly excluded.

    @@ -4325,7 +4325,7 @@

    References
    -class sympy.core.symbol.Dummy(name=None, dummy_index=None, **assumptions)[source]#
    +class sympy.core.symbol.Dummy(name=None, dummy_index=None, **assumptions)[source]#

    Dummy symbols are each unique, even if they have the same name:

    Examples

    >>> from sympy import Dummy
    @@ -4344,7 +4344,7 @@ 

    References
    -sympy.core.symbol.symbols(names, *, cls=<class 'sympy.core.symbol.Symbol'>, **args) Any[source]#
    +sympy.core.symbol.symbols(names, *, cls=<class 'sympy.core.symbol.Symbol'>, **args) Any[source]#

    Transform strings into instances of Symbol class.

    symbols() function returns a sequence of symbols with names taken from names argument, which can be a comma or whitespace delimited @@ -4461,7 +4461,7 @@

    References
    -sympy.core.symbol.var(names, **args)[source]#
    +sympy.core.symbol.var(names, **args)[source]#

    Create symbols and inject them into the global namespace.

    Explanation

    This calls symbols() with the same arguments and puts the results @@ -4500,7 +4500,7 @@

    References

    intfunc#

    -sympy.core.intfunc.num_digits(n, base=10)[source]#
    +sympy.core.intfunc.num_digits(n, base=10)[source]#

    Return the number of digits needed to express n in give base.

    Parameters:
    @@ -4532,7 +4532,7 @@

    References
    -sympy.core.intfunc.trailing(n)[source]#
    +sympy.core.intfunc.trailing(n)[source]#

    Count the number of trailing zero digits in the binary representation of n, i.e. determine the largest power of 2 that divides n.

    @@ -4552,7 +4552,7 @@

    References
    -sympy.core.intfunc.ilcm(*args)[source]#
    +sympy.core.intfunc.ilcm(*args)[source]#

    Computes integer least common multiple.

    Examples

    >>> from sympy import ilcm
    @@ -4594,7 +4594,7 @@ 

    References
    -sympy.core.intfunc.igcd_lehmer(a, b)[source]#
    +sympy.core.intfunc.igcd_lehmer(a, b)[source]#

    Computes greatest common divisor of two integers.

    Explanation

    Euclid’s algorithm for the computation of the greatest @@ -4637,7 +4637,7 @@

    References
    -sympy.core.intfunc.igcdex(a, b)[source]#
    +sympy.core.intfunc.igcdex(a, b)[source]#

    Returns x, y, g such that g = x*a + y*b = gcd(a, b).

    Examples

    >>> from sympy.core.intfunc import igcdex
    @@ -4658,7 +4658,7 @@ 

    References
    -sympy.core.intfunc.isqrt(n)[source]#
    +sympy.core.intfunc.isqrt(n)[source]#

    Return the largest integer less than or equal to \(\sqrt{n}\).

    Parameters:
    @@ -4702,7 +4702,7 @@

    References
    -sympy.core.intfunc.integer_nthroot(y, n)[source]#
    +sympy.core.intfunc.integer_nthroot(y, n)[source]#

    Return a tuple containing x = floor(y**(1/n)) and a boolean indicating whether the result is exact (that is, whether x**n == y).

    @@ -4729,7 +4729,7 @@

    References
    -sympy.core.intfunc.integer_log(n, b)[source]#
    +sympy.core.intfunc.integer_log(n, b)[source]#

    Returns (e, bool) where e is the largest nonnegative integer such that \(|n| \geq |b^e|\) and bool is True if \(n = b^e\).

    Examples

    @@ -4769,7 +4769,7 @@

    References
    -sympy.core.intfunc.mod_inverse(a, m)[source]#
    +sympy.core.intfunc.mod_inverse(a, m)[source]#

    Return the number \(c\) such that, \(a \times c = 1 \pmod{m}\) where \(c\) has the same sign as \(m\). If no such value exists, a ValueError is raised.

    @@ -4818,7 +4818,7 @@

    References

    numbers#

    -class sympy.core.numbers.Number(*obj)[source]#
    +class sympy.core.numbers.Number(*obj)[source]#

    Represents atomic numbers in SymPy.

    Explanation

    Floating point numbers are represented by the Float class. @@ -4841,31 +4841,31 @@

    References
    -as_coeff_Add(rational=False)[source]#
    +as_coeff_Add(rational=False)[source]#

    Efficiently extract the coefficient of a summation.

    -as_coeff_Mul(rational=False)[source]#
    +as_coeff_Mul(rational=False)[source]#

    Efficiently extract the coefficient of a product.

    -cofactors(other)[source]#
    +cofactors(other)[source]#

    Compute GCD and cofactors of \(self\) and \(other\).

    -gcd(other)[source]#
    +gcd(other)[source]#

    Compute GCD of \(self\) and \(other\).

    -lcm(other)[source]#
    +lcm(other)[source]#

    Compute LCM of \(self\) and \(other\).

    @@ -4873,7 +4873,7 @@

    References
    -class sympy.core.numbers.Float(num, dps=None, precision=None)[source]#
    +class sympy.core.numbers.Float(num, dps=None, precision=None)[source]#

    Represent a floating-point number of arbitrary precision.

    Examples

    >>> from sympy import Float
    @@ -5037,7 +5037,7 @@ 

    References
    -class sympy.core.numbers.Rational(p, q=None, gcd=None)[source]#
    +class sympy.core.numbers.Rational(p, q=None, gcd=None)[source]#

    Represents rational numbers (p/q) of any size.

    Examples

    >>> from sympy import Rational, nsimplify, S, pi
    @@ -5127,19 +5127,19 @@ 

    References
    -as_coeff_Add(rational=False)[source]#
    +as_coeff_Add(rational=False)[source]#

    Efficiently extract the coefficient of a summation.

    -as_coeff_Mul(rational=False)[source]#
    +as_coeff_Mul(rational=False)[source]#

    Efficiently extract the coefficient of a product.

    -as_content_primitive(radical=False, clear=True)[source]#
    +as_content_primitive(radical=False, clear=True)[source]#

    Return the tuple (R, self/R) where R is the positive Rational extracted from self.

    Examples

    @@ -5153,7 +5153,7 @@

    References
    -factors(limit=None, use_trial=True, use_rho=False, use_pm1=False, verbose=False, visual=False)[source]#
    +factors(limit=None, use_trial=True, use_rho=False, use_pm1=False, verbose=False, visual=False)[source]#

    A wrapper to factorint which return factors of self that are smaller than limit (or cheap to compute). Special methods of factoring are disabled by default so that only trial division is used.

    @@ -5161,7 +5161,7 @@

    References
    -limit_denominator(max_denominator=1000000)[source]#
    +limit_denominator(max_denominator=1000000)[source]#

    Closest Rational to self with denominator at most max_denominator.

    Examples

    >>> from sympy import Rational
    @@ -5177,7 +5177,7 @@ 

    References
    -class sympy.core.numbers.Integer(i)[source]#
    +class sympy.core.numbers.Integer(i)[source]#

    Represents integer numbers of any size.

    Examples

    >>> from sympy import Integer
    @@ -5205,7 +5205,7 @@ 

    References
    -class sympy.core.numbers.AlgebraicNumber(expr, coeffs=None, alias=None, **args)[source]#
    +class sympy.core.numbers.AlgebraicNumber(expr, coeffs=None, alias=None, **args)[source]#

    Class for representing algebraic numbers in SymPy.

    Symbolically, an instance of this class represents an element \(\alpha \in \mathbb{Q}(\theta) \hookrightarrow \mathbb{C}\). That is, the @@ -5220,7 +5220,7 @@

    References\(\theta\).

    -static __new__(cls, expr, coeffs=None, alias=None, **args)[source]#
    +static __new__(cls, expr, coeffs=None, alias=None, **args)[source]#

    Construct a new algebraic number \(\alpha\) belonging to a number field \(k = \mathbb{Q}(\theta)\).

    There are four instance attributes to be determined:

    @@ -5397,25 +5397,25 @@

    References
    -as_expr(x=None)[source]#
    +as_expr(x=None)[source]#

    Create a Basic expression from self.

    -as_poly(x=None)[source]#
    +as_poly(x=None)[source]#

    Create a Poly instance from self.

    -coeffs()[source]#
    +coeffs()[source]#

    Returns all SymPy coefficients of an algebraic number.

    -field_element(coeffs)[source]#
    +field_element(coeffs)[source]#

    Form another element of the same number field.

    Parameters:
    @@ -5466,7 +5466,7 @@

    References
    -minpoly_of_element()[source]#
    +minpoly_of_element()[source]#

    Compute the minimal polynomial for this algebraic number.

    Explanation

    Recall that we represent an element \(\alpha \in \mathbb{Q}(\theta)\). @@ -5477,13 +5477,13 @@

    References
    -native_coeffs()[source]#
    +native_coeffs()[source]#

    Returns all native coefficients of an algebraic number.

    -primitive_element()[source]#
    +primitive_element()[source]#

    Get the primitive element \(\theta\) for the number field \(\mathbb{Q}(\theta)\) to which this algebraic number \(\alpha\) belongs.

    @@ -5495,13 +5495,13 @@

    References
    -to_algebraic_integer()[source]#
    +to_algebraic_integer()[source]#

    Convert self to an algebraic integer.

    -to_primitive_element(radicals=True)[source]#
    +to_primitive_element(radicals=True)[source]#

    Convert self to an AlgebraicNumber instance that is equal to its own primitive element.

    @@ -5559,7 +5559,7 @@

    References
    -to_root(radicals=True, minpoly=None)[source]#
    +to_root(radicals=True, minpoly=None)[source]#

    Convert to an Expr that is not an AlgebraicNumber, specifically, either a ComplexRootOf, or, optionally and where possible, an @@ -5585,10 +5585,10 @@

    References
    -class sympy.core.numbers.NumberSymbol[source]#
    +class sympy.core.numbers.NumberSymbol[source]#
    -approximation(number_cls)[source]#
    +approximation(number_cls)[source]#

    Return an interval with number_cls endpoints that contains the value of NumberSymbol. If not implemented, then return None.

    @@ -5598,13 +5598,13 @@

    References
    -sympy.core.numbers.RealNumber[source]#
    +sympy.core.numbers.RealNumber[source]#

    alias of Float

    -sympy.core.numbers.seterr(divide=False)[source]#
    +sympy.core.numbers.seterr(divide=False)[source]#

    Should SymPy raise an exception on 0/0 or return a nan?

    divide == True …. raise an exception divide == False … return nan

    @@ -5612,7 +5612,7 @@

    References
    -class sympy.core.numbers.Zero[source]#
    +class sympy.core.numbers.Zero[source]#

    The number zero.

    Zero is a singleton, and can be accessed by S.Zero

    Examples

    @@ -5634,7 +5634,7 @@

    References
    -class sympy.core.numbers.One[source]#
    +class sympy.core.numbers.One[source]#

    The number one.

    One is a singleton, and can be accessed by S.One.

    Examples

    @@ -5654,7 +5654,7 @@

    References
    -class sympy.core.numbers.NegativeOne[source]#
    +class sympy.core.numbers.NegativeOne[source]#

    The number negative one.

    NegativeOne is a singleton, and can be accessed by S.NegativeOne.

    Examples

    @@ -5678,7 +5678,7 @@

    References
    -class sympy.core.numbers.Half[source]#
    +class sympy.core.numbers.Half[source]#

    The rational number 1/2.

    Half is a singleton, and can be accessed by S.Half.

    Examples

    @@ -5698,7 +5698,7 @@

    References
    -class sympy.core.numbers.NaN[source]#
    +class sympy.core.numbers.NaN[source]#

    Not a Number.

    Explanation

    This serves as a place holder for numeric values that are indeterminate. @@ -5741,7 +5741,7 @@

    References
    -class sympy.core.numbers.Infinity[source]#
    +class sympy.core.numbers.Infinity[source]#

    Positive infinite quantity.

    Explanation

    In real analysis the symbol \(\infty\) denotes an unbounded @@ -5779,7 +5779,7 @@

    References
    -class sympy.core.numbers.NegativeInfinity[source]#
    +class sympy.core.numbers.NegativeInfinity[source]#

    Negative infinite quantity.

    NegativeInfinity is a singleton, and can be accessed by S.NegativeInfinity.

    @@ -5791,7 +5791,7 @@

    References
    -class sympy.core.numbers.ComplexInfinity[source]#
    +class sympy.core.numbers.ComplexInfinity[source]#

    Complex infinity.

    Explanation

    In complex analysis the symbol \(\tilde\infty\), called “complex @@ -5819,7 +5819,7 @@

    References
    -class sympy.core.numbers.Exp1[source]#
    +class sympy.core.numbers.Exp1[source]#

    The \(e\) constant.

    Explanation

    The transcendental number \(e = 2.718281828\ldots\) is the base of the @@ -5846,7 +5846,7 @@

    References
    -class sympy.core.numbers.ImaginaryUnit[source]#
    +class sympy.core.numbers.ImaginaryUnit[source]#

    The imaginary unit, \(i = \sqrt{-1}\).

    I is a singleton, and can be accessed by S.I, or can be imported as I.

    @@ -5871,7 +5871,7 @@

    References
    -class sympy.core.numbers.Pi[source]#
    +class sympy.core.numbers.Pi[source]#

    The \(\pi\) constant.

    Explanation

    The transcendental number \(\pi = 3.141592654\ldots\) represents the ratio @@ -5906,7 +5906,7 @@

    References
    -class sympy.core.numbers.EulerGamma[source]#
    +class sympy.core.numbers.EulerGamma[source]#

    The Euler-Mascheroni constant.

    Explanation

    \(\gamma = 0.5772157\ldots\) (also called Euler’s constant) is a mathematical @@ -5939,7 +5939,7 @@

    References
    -class sympy.core.numbers.Catalan[source]#
    +class sympy.core.numbers.Catalan[source]#

    Catalan’s constant.

    Explanation

    \(G = 0.91596559\ldots\) is given by the infinite series

    @@ -5968,7 +5968,7 @@

    References
    -class sympy.core.numbers.GoldenRatio[source]#
    +class sympy.core.numbers.GoldenRatio[source]#

    The golden ratio, \(\phi\).

    Explanation

    \(\phi = \frac{1 + \sqrt{5}}{2}\) is an algebraic number. Two quantities @@ -5996,7 +5996,7 @@

    References
    -class sympy.core.numbers.TribonacciConstant[source]#
    +class sympy.core.numbers.TribonacciConstant[source]#

    The tribonacci constant.

    Explanation

    The tribonacci numbers are like the Fibonacci numbers, but instead @@ -6031,7 +6031,7 @@

    References
    -sympy.core.numbers.mod_inverse(a, m)[source]#
    +sympy.core.numbers.mod_inverse(a, m)[source]#

    Return the number \(c\) such that, \(a \times c = 1 \pmod{m}\) where \(c\) has the same sign as \(m\). If no such value exists, a ValueError is raised.

    @@ -6077,7 +6077,7 @@

    References
    -sympy.core.numbers.equal_valued(x, y)[source]#
    +sympy.core.numbers.equal_valued(x, y)[source]#

    Compare expressions treating plain floats as rationals.

    Examples

    >>> from sympy import S, symbols, Rational, Float
    @@ -6134,7 +6134,7 @@ 

    References

    power#

    -class sympy.core.power.Pow(b, e, evaluate=None)[source]#
    +class sympy.core.power.Pow(b, e, evaluate=None)[source]#

    Defines the expression x**y as “x raised to a power y”

    Deprecated since version 1.7: Using arguments that aren’t subclasses of Expr in core @@ -6272,7 +6272,7 @@

    References
    -as_base_exp()[source]#
    +as_base_exp()[source]#

    Return base and exp of self.

    Explanation

    If base a Rational less than 1, then return 1/Rational, -exp. @@ -6293,7 +6293,7 @@

    References
    -as_content_primitive(radical=False, clear=True)[source]#
    +as_content_primitive(radical=False, clear=True)[source]#

    Return the tuple (R, self/R) where R is the positive Rational extracted from self.

    Examples

    @@ -6344,7 +6344,7 @@

    References

    mul#

    -class sympy.core.mul.Mul(*args, evaluate=None, _sympify=True)[source]#
    +class sympy.core.mul.Mul(*args, evaluate=None, _sympify=True)[source]#

    Expression representing multiplication operation for algebraic field.

    Deprecated since version 1.7: Using arguments that aren’t subclasses of Expr in core @@ -6416,13 +6416,13 @@

    References
    -as_coeff_Mul(rational=False)[source]#
    +as_coeff_Mul(rational=False)[source]#

    Efficiently extract the coefficient of a product.

    -as_content_primitive(radical=False, clear=True)[source]#
    +as_content_primitive(radical=False, clear=True)[source]#

    Return the tuple (R, self/R) where R is the positive Rational extracted from self.

    Examples

    @@ -6436,7 +6436,7 @@

    References
    -as_ordered_factors(order=None)[source]#
    +as_ordered_factors(order=None)[source]#

    Transform an expression into an ordered list of factors.

    Examples

    >>> from sympy import sin, cos
    @@ -6451,7 +6451,7 @@ 

    References
    -as_two_terms()[source]#
    +as_two_terms()[source]#

    Return head and tail of self.

    This is the most efficient way to get the head and tail of an expression.

    @@ -6473,7 +6473,7 @@

    References
    -classmethod flatten(seq)[source]#
    +classmethod flatten(seq)[source]#

    Return commutative, noncommutative and order arguments by combining related terms.

    Notes

    @@ -6556,7 +6556,7 @@

    References
    -sympy.core.mul.prod(a, start=1)[source]#
    +sympy.core.mul.prod(a, start=1)[source]#
    Return product of elements of a. Start with int 1 so if only

    ints are included then an int result is returned.

    @@ -6585,7 +6585,7 @@

    References

    add#

    -class sympy.core.add.Add(*args, evaluate=None, _sympify=True)[source]#
    +class sympy.core.add.Add(*args, evaluate=None, _sympify=True)[source]#

    Expression representing addition operation for algebraic group.

    Deprecated since version 1.7: Using arguments that aren’t subclasses of Expr in core @@ -6671,13 +6671,13 @@

    References
    -as_coeff_Add(rational=False, deps=None)[source]#
    +as_coeff_Add(rational=False, deps=None)[source]#

    Efficiently extract the coefficient of a summation.

    -as_coeff_add(*deps)[source]#
    +as_coeff_add(*deps)[source]#

    Returns a tuple (coeff, args) where self is treated as an Add and coeff is the Number term and args is a tuple of all other terms.

    Examples

    @@ -6692,7 +6692,7 @@

    References
    -as_content_primitive(radical=False, clear=True)[source]#
    +as_content_primitive(radical=False, clear=True)[source]#

    Return the tuple (R, self/R) where R is the positive Rational extracted from self. If radical is True (default is False) then common radicals will be removed and included as a factor of the @@ -6713,7 +6713,7 @@

    References
    -as_numer_denom()[source]#
    +as_numer_denom()[source]#

    Decomposes an expression to its numerator part and its denominator part.

    Examples

    @@ -6732,7 +6732,7 @@

    References
    -as_real_imag(deep=True, **hints)[source]#
    +as_real_imag(deep=True, **hints)[source]#

    Return a tuple representing a complex number.

    Examples

    >>> from sympy import I
    @@ -6748,7 +6748,7 @@ 

    References
    -as_two_terms()[source]#
    +as_two_terms()[source]#

    Return head and tail of self.

    This is the most efficient way to get the head and tail of an expression.

    @@ -6769,7 +6769,7 @@

    References
    -extract_leading_order(symbols, point=None)[source]#
    +extract_leading_order(symbols, point=None)[source]#

    Returns the leading term and its order.

    Examples

    >>> from sympy.abc import x
    @@ -6785,7 +6785,7 @@ 

    References
    -classmethod flatten(seq)[source]#
    +classmethod flatten(seq)[source]#

    Takes the sequence “seq” of nested Adds and returns a flatten list.

    Returns: (commutative_part, noncommutative_part, order_symbols)

    Applies associativity, all terms are commutable with respect to @@ -6799,7 +6799,7 @@

    References
    -primitive()[source]#
    +primitive()[source]#

    Return (R, self/R) where R` is the Rational GCD of self`.

    R is collected only from the leading coefficient of each term.

    Examples

    @@ -6839,7 +6839,7 @@

    References

    mod#

    -class sympy.core.mod.Mod(p, q)[source]#
    +class sympy.core.mod.Mod(p, q)[source]#

    Represents a modulo operation on symbolic expressions.

    Parameters:
    @@ -6883,7 +6883,7 @@

    References

    relational#

    -class sympy.core.relational.Relational(lhs, rhs, rop=None, **assumptions)[source]#
    +class sympy.core.relational.Relational(lhs, rhs, rop=None, **assumptions)[source]#

    Base class for all relation types.

    Parameters:
    @@ -7011,7 +7011,7 @@

    References
    -equals(other, failing_expression=False)[source]#
    +equals(other, failing_expression=False)[source]#

    Return True if the sides of the relationship are mathematically identical and the type of relationship is the same. If failing_expression is True, return the expression whose truth value @@ -7124,49 +7124,49 @@

    References
    -sympy.core.relational.Rel[source]#
    +sympy.core.relational.Rel[source]#

    alias of Relational

    -sympy.core.relational.Eq[source]#
    +sympy.core.relational.Eq[source]#

    alias of Equality

    -sympy.core.relational.Ne[source]#
    +sympy.core.relational.Ne[source]#

    alias of Unequality

    -sympy.core.relational.Lt[source]#
    +sympy.core.relational.Lt[source]#

    alias of StrictLessThan

    -sympy.core.relational.Le[source]#
    +sympy.core.relational.Le[source]#

    alias of LessThan

    -sympy.core.relational.Gt[source]#
    +sympy.core.relational.Gt[source]#

    alias of StrictGreaterThan

    -sympy.core.relational.Ge[source]#
    +sympy.core.relational.Ge[source]#

    alias of GreaterThan

    -class sympy.core.relational.Equality(lhs, rhs, **options)[source]#
    +class sympy.core.relational.Equality(lhs, rhs, **options)[source]#

    An equal relation between two objects.

    Explanation

    Represents that two objects are equal. If they can be easily shown @@ -7225,7 +7225,7 @@

    References
    -as_poly(*gens, **kwargs)[source]#
    +as_poly(*gens, **kwargs)[source]#

    Returns lhs-rhs as a Poly

    Examples

    >>> from sympy import Eq
    @@ -7238,7 +7238,7 @@ 

    References
    -integrate(*args, **kwargs)[source]#
    +integrate(*args, **kwargs)[source]#

    See the integrate function in sympy.integrals

    @@ -7246,7 +7246,7 @@

    References
    -class sympy.core.relational.GreaterThan(lhs, rhs, **options)[source]#
    +class sympy.core.relational.GreaterThan(lhs, rhs, **options)[source]#

    Class representations of inequalities.

    Explanation

    The *Than classes represent inequal relationships, where the left-hand @@ -7500,7 +7500,7 @@

    References
    -class sympy.core.relational.LessThan(lhs, rhs, **options)[source]#
    +class sympy.core.relational.LessThan(lhs, rhs, **options)[source]#

    Class representations of inequalities.

    Explanation

    The *Than classes represent inequal relationships, where the left-hand @@ -7754,7 +7754,7 @@

    References
    -class sympy.core.relational.Unequality(lhs, rhs, **options)[source]#
    +class sympy.core.relational.Unequality(lhs, rhs, **options)[source]#

    An unequal relation between two objects.

    Explanation

    Represents that two objects are not equal. If they can be shown to be @@ -7782,7 +7782,7 @@

    References
    -class sympy.core.relational.StrictGreaterThan(lhs, rhs, **options)[source]#
    +class sympy.core.relational.StrictGreaterThan(lhs, rhs, **options)[source]#

    Class representations of inequalities.

    Explanation

    The *Than classes represent inequal relationships, where the left-hand @@ -8036,7 +8036,7 @@

    References
    -class sympy.core.relational.StrictLessThan(lhs, rhs, **options)[source]#
    +class sympy.core.relational.StrictLessThan(lhs, rhs, **options)[source]#

    Class representations of inequalities.

    Explanation

    The *Than classes represent inequal relationships, where the left-hand @@ -8293,7 +8293,7 @@

    References

    multidimensional#

    -class sympy.core.multidimensional.vectorize(*mdargs)[source]#
    +class sympy.core.multidimensional.vectorize(*mdargs)[source]#

    Generalizes a function taking scalars to accept multidimensional arguments.

    Examples

    >>> from sympy import vectorize, diff, sin, symbols, Function
    @@ -8326,7 +8326,7 @@ 

    References

    function#

    -class sympy.core.function.Lambda(signature, expr)[source]#
    +class sympy.core.function.Lambda(signature, expr)[source]#

    Lambda(x, expr) represents a lambda function similar to Python’s ‘lambda x: expr’. A function of several variables is written as Lambda((x, y, …), expr).

    @@ -8393,7 +8393,7 @@

    References
    -class sympy.core.function.WildFunction(*args)[source]#
    +class sympy.core.function.WildFunction(*args)[source]#

    A WildFunction function matches any function (with its arguments).

    Examples

    >>> from sympy import WildFunction, Function, cos
    @@ -8440,7 +8440,7 @@ 

    References
    -class sympy.core.function.Derivative(expr, *variables, **kwargs)[source]#
    +class sympy.core.function.Derivative(expr, *variables, **kwargs)[source]#

    Carries out differentiation of the given expression with respect to symbols.

    Examples

    >>> from sympy import Derivative, Function, symbols, Subs
    @@ -8644,7 +8644,7 @@ 

    References
    -classmethod _sort_variable_count(vc)[source]#
    +classmethod _sort_variable_count(vc)[source]#

    Sort (variable, count) pairs into canonical order while retaining order of variables that do not commute during differentiation:

    @@ -8695,7 +8695,7 @@

    References
    -as_finite_difference(points=1, x0=None, wrt=None)[source]#
    +as_finite_difference(points=1, x0=None, wrt=None)[source]#

    Expresses a Derivative instance as a finite difference.

    Parameters:
    @@ -8781,7 +8781,7 @@

    References
    -doit_numerically(z0)[source]#
    +doit_numerically(z0)[source]#

    Evaluate the derivative at z numerically.

    When we can represent derivatives at a point, this should be folded into the normal evalf. For now, we need a special method.

    @@ -8791,7 +8791,7 @@

    References
    -sympy.core.function.diff(f, *symbols, **kwargs)[source]#
    +sympy.core.function.diff(f, *symbols, **kwargs)[source]#

    Differentiate f with respect to symbols.

    Explanation

    This is just a wrapper to unify .diff() and the Derivative class; its @@ -8857,7 +8857,7 @@

    References
    -class sympy.core.function.FunctionClass(*args, **kwargs)[source]#
    +class sympy.core.function.FunctionClass(*args, **kwargs)[source]#

    Base class for function classes. FunctionClass is a subclass of type.

    Use Function(‘<function name>’ [ , signature ]) to create undefined function classes.

    @@ -8900,7 +8900,7 @@

    References
    -class sympy.core.function.Function(*args)[source]#
    +class sympy.core.function.Function(*args)[source]#

    Base class for applied mathematical functions.

    It also serves as a constructor for undefined function classes.

    See the Writing Custom Functions guide for details on how to subclass @@ -8948,19 +8948,19 @@

    References
    -as_base_exp()[source]#
    +as_base_exp()[source]#

    Returns the method as the 2-tuple (base, exponent).

    -fdiff(argindex=1)[source]#
    +fdiff(argindex=1)[source]#

    Returns the first derivative of the function.

    -classmethod is_singular(a)[source]#
    +classmethod is_singular(a)[source]#

    Tests whether the argument is an essential singularity or a branch point, or the functions is non-holomorphic.

    @@ -8997,7 +8997,7 @@

    References
    -class sympy.core.function.Subs(expr, variables, point, **assumptions)[source]#
    +class sympy.core.function.Subs(expr, variables, point, **assumptions)[source]#

    Represents unevaluated substitutions of an expression.

    Subs(expr, x, x0) represents the expression resulting from substituting x with x0 in expr.

    @@ -9104,7 +9104,7 @@

    References
    -sympy.core.function.expand(e, deep=True, modulus=None, power_base=True, power_exp=True, mul=True, log=True, multinomial=True, basic=True, **hints)[source]#
    +sympy.core.function.expand(e, deep=True, modulus=None, power_base=True, power_exp=True, mul=True, log=True, multinomial=True, basic=True, **hints)[source]#

    Expand an expression using methods given as hints.

    Explanation

    Hints evaluated unless explicitly set to False are: basic, log, @@ -9387,12 +9387,12 @@

    References
    -class sympy.core.function.PoleError[source]#
    +class sympy.core.function.PoleError[source]#

    -sympy.core.function.count_ops(expr, visual=False)[source]#
    +sympy.core.function.count_ops(expr, visual=False)[source]#

    Return a representation (integer or expression) of the operations in expr.

    Parameters:
    @@ -9467,7 +9467,7 @@

    References
    -sympy.core.function.expand_mul(expr, deep=True)[source]#
    +sympy.core.function.expand_mul(expr, deep=True)[source]#

    Wrapper around expand that only uses the mul hint. See the expand docstring for more information.

    Examples

    @@ -9481,7 +9481,7 @@

    References
    -sympy.core.function.expand_log(expr, deep=True, force=False, factor=False)[source]#
    +sympy.core.function.expand_log(expr, deep=True, force=False, factor=False)[source]#

    Wrapper around expand that only uses the log hint. See the expand docstring for more information.

    Examples

    @@ -9495,7 +9495,7 @@

    References
    -sympy.core.function.expand_func(expr, deep=True)[source]#
    +sympy.core.function.expand_func(expr, deep=True)[source]#

    Wrapper around expand that only uses the func hint. See the expand docstring for more information.

    Examples

    @@ -9509,7 +9509,7 @@

    References
    -sympy.core.function.expand_trig(expr, deep=True)[source]#
    +sympy.core.function.expand_trig(expr, deep=True)[source]#

    Wrapper around expand that only uses the trig hint. See the expand docstring for more information.

    Examples

    @@ -9523,7 +9523,7 @@

    References
    -sympy.core.function.expand_complex(expr, deep=True)[source]#
    +sympy.core.function.expand_complex(expr, deep=True)[source]#

    Wrapper around expand that only uses the complex hint. See the expand docstring for more information.

    Examples

    @@ -9543,7 +9543,7 @@

    References
    -sympy.core.function.expand_multinomial(expr, deep=True)[source]#
    +sympy.core.function.expand_multinomial(expr, deep=True)[source]#

    Wrapper around expand that only uses the multinomial hint. See the expand docstring for more information.

    Examples

    @@ -9557,7 +9557,7 @@

    References
    -sympy.core.function.expand_power_exp(expr, deep=True)[source]#
    +sympy.core.function.expand_power_exp(expr, deep=True)[source]#

    Wrapper around expand that only uses the power_exp hint.

    See the expand docstring for more information.

    Examples

    @@ -9580,7 +9580,7 @@

    References
    -sympy.core.function.expand_power_base(expr, deep=True, force=False)[source]#
    +sympy.core.function.expand_power_base(expr, deep=True, force=False)[source]#

    Wrapper around expand that only uses the power_base hint.

    A wrapper to expand(power_base=True) which separates a power with a base that is a Mul into a product of powers, without performing any other @@ -9665,7 +9665,7 @@

    References
    -sympy.core.function.nfloat(expr, n=15, exponent=False, dkeys=False)[source]#
    +sympy.core.function.nfloat(expr, n=15, exponent=False, dkeys=False)[source]#

    Make all Rationals in expr Floats except those in exponents (unless the exponents flag is set to True) and those in undefined functions. When processing dictionaries, do not modify the keys @@ -9691,11 +9691,11 @@

    References

    evalf#

    -class sympy.core.evalf.EvalfMixin[source]#
    +class sympy.core.evalf.EvalfMixin[source]#

    Mixin class adding evalf capability.

    -evalf(n=15, subs=None, maxn=100, chop=False, strict=False, quad=None, verbose=False)[source]#
    +evalf(n=15, subs=None, maxn=100, chop=False, strict=False, quad=None, verbose=False)[source]#

    Evaluate the given formula to an accuracy of n digits.

    Parameters:
    @@ -9766,7 +9766,7 @@

    References
    -n(n=15, subs=None, maxn=100, chop=False, strict=False, quad=None, verbose=False)[source]#
    +n(n=15, subs=None, maxn=100, chop=False, strict=False, quad=None, verbose=False)[source]#

    Evaluate the given formula to an accuracy of n digits.

    Parameters:
    @@ -9839,12 +9839,12 @@

    References
    -class sympy.core.evalf.PrecisionExhausted[source]#
    +class sympy.core.evalf.PrecisionExhausted[source]#

    -sympy.core.evalf.N(x, n=15, **options)[source]#
    +sympy.core.evalf.N(x, n=15, **options)[source]#

    Calls x.evalf(n, **options).

    Explanations

    Both .n() and N() are equivalent to .evalf(); use the one that you like better. @@ -9865,7 +9865,7 @@

    References

    containers#

    -class sympy.core.containers.Tuple(*args, **kwargs)[source]#
    +class sympy.core.containers.Tuple(*args, **kwargs)[source]#

    Wrapper around the builtin tuple object.

    Parameters:
    @@ -9892,7 +9892,7 @@

    References
    -index(value, start=None, stop=None)[source]#
    +index(value, start=None, stop=None)[source]#

    Searches and returns the first index of the value.

    @@ -9920,7 +9920,7 @@

    References
    -tuple_count(value) int[source]#
    +tuple_count(value) int[source]#

    Return number of occurrences of value.

    @@ -9928,7 +9928,7 @@

    References
    -class sympy.core.containers.TupleKind(*args)[source]#
    +class sympy.core.containers.TupleKind(*args)[source]#

    TupleKind is a subclass of Kind, which is used to define Kind of Tuple.

    Parameters of TupleKind will be kinds of all the arguments in Tuples, for example

    @@ -9957,7 +9957,7 @@

    References
    -class sympy.core.containers.Dict(*args)[source]#
    +class sympy.core.containers.Dict(*args)[source]#

    Wrapper around the builtin dict object.

    Explanation

    The Dict is a subclass of Basic, so that it works well in the @@ -9990,25 +9990,25 @@

    References
    -get(key, default=None)[source]#
    +get(key, default=None)[source]#

    Returns the value for key if the key is in the dictionary.

    -items()[source]#
    +items()[source]#

    Returns a set-like object providing a view on dict’s items.

    -keys()[source]#
    +keys()[source]#

    Returns the list of the dict’s keys.

    -values()[source]#
    +values()[source]#

    Returns the list of the dict’s values.

    @@ -10019,7 +10019,7 @@

    References

    exprtools#

    -sympy.core.exprtools.gcd_terms(terms, isprimitive=False, clear=True, fraction=True)[source]#
    +sympy.core.exprtools.gcd_terms(terms, isprimitive=False, clear=True, fraction=True)[source]#

    Compute the GCD of terms and put them together.

    Parameters:
    @@ -10086,7 +10086,7 @@

    References
    -sympy.core.exprtools.factor_terms(expr, radical=False, clear=False, fraction=False, sign=True)[source]#
    +sympy.core.exprtools.factor_terms(expr, radical=False, clear=False, fraction=False, sign=True)[source]#

    Remove common factors from terms in all arguments without changing the underlying structure of the expr. No expansion or simplification (and no processing of non-commutatives) is performed.

    @@ -10155,7 +10155,7 @@

    References

    kind#

    -class sympy.core.kind.Kind(*args)[source]#
    +class sympy.core.kind.Kind(*args)[source]#

    Base class for kinds.

    Kind of the object represents the mathematical classification that the entity falls into. It is expected that functions and classes @@ -10199,7 +10199,7 @@

    References#

    -sympy.core.sorting.default_sort_key(item, order=None)[source]#
    +sympy.core.sorting.default_sort_key(item, order=None)[source]#

    Return a key that can be used for sorting.

    The key has the structure:

    (class_key, (len(args), args), exponent.sort_key(), coefficient)

    @@ -10305,7 +10305,7 @@

    Sorting#<
    -sympy.core.sorting.ordered(seq, keys=None, default=True, warn=False)[source]#
    +sympy.core.sorting.ordered(seq, keys=None, default=True, warn=False)[source]#

    Return an iterator of the seq where keys are used to break ties in a conservative fashion: if, after applying a key, there are no ties then no other keys will be computed.

    @@ -10405,7 +10405,7 @@

    Examples#
    -sympy.core.random.random_complex_number(a=2, b=-1, c=3, d=1, rational=False, tolerance=None)[source]#
    +sympy.core.random.random_complex_number(a=2, b=-1, c=3, d=1, rational=False, tolerance=None)[source]#

    Return a random complex number.

    To reduce chance of hitting branch cuts or anything, we guarantee b <= Im z <= d, a <= Re z <= c

    @@ -10415,7 +10415,7 @@

    Examples#
    -sympy.core.random.verify_numerically(f, g, z=None, tol=1e-06, a=2, b=-1, c=3, d=1)[source]#
    +sympy.core.random.verify_numerically(f, g, z=None, tol=1e-06, a=2, b=-1, c=3, d=1)[source]#

    Test numerically that f and g agree when evaluated in the argument z.

    If z is None, all symbols will be tested. This routine does not test whether there are Floats present with precision higher than 15 digits @@ -10433,7 +10433,7 @@

    Examples#
    -sympy.core.random.test_derivative_numerically(f, z, tol=1e-06, a=2, b=-1, c=3, d=1)[source]#
    +sympy.core.random.test_derivative_numerically(f, z, tol=1e-06, a=2, b=-1, c=3, d=1)[source]#

    Test numerically that the symbolically computed derivative of f with respect to z is correct.

    This routine does not test whether there are Floats present with @@ -10451,7 +10451,7 @@

    Examples#
    -sympy.core.random._randrange(seed=None)[source]#
    +sympy.core.random._randrange(seed=None)[source]#

    Return a randrange generator.

    seed can be

      @@ -10477,7 +10477,7 @@

      Examples#
      -sympy.core.random._randint(seed=None)[source]#
      +sympy.core.random._randint(seed=None)[source]#

      Return a randint generator.

      seed can be

        @@ -10506,7 +10506,7 @@

        Examples#

        Traversal#

        -sympy.core.traversal.bottom_up(rv, F, atoms=False, nonbasic=False)[source]#
        +sympy.core.traversal.bottom_up(rv, F, atoms=False, nonbasic=False)[source]#

        Apply F to all expressions in an expression tree from the bottom up. If atoms is True, apply F even if there are no args; if nonbasic is True, try to apply F to non-Basic objects.

        @@ -10514,7 +10514,7 @@

        Examples#
        -sympy.core.traversal.postorder_traversal(node, keys=None)[source]#
        +sympy.core.traversal.postorder_traversal(node, keys=None)[source]#

        Do a postorder traversal of a tree.

        This generator recursively yields nodes that it has visited in a postorder fashion. That is, it descends through the tree depth-first to yield all of @@ -10559,7 +10559,7 @@

        Examples#
        -sympy.core.traversal.preorder_traversal(node, keys=None)[source]#
        +sympy.core.traversal.preorder_traversal(node, keys=None)[source]#

        Do a pre-order traversal of a tree.

        This iterator recursively yields nodes that it has visited in a pre-order fashion. That is, it yields the current node then descends through the @@ -10607,7 +10607,7 @@

        Examples#
        -sympy.core.traversal.use(expr, func, level=0, args=(), kwargs={})[source]#
        +sympy.core.traversal.use(expr, func, level=0, args=(), kwargs={})[source]#

        Use func to transform expr at the given level.

        Examples

        >>> from sympy import use, expand
        @@ -10627,7 +10627,7 @@ 

        Examples#
        -sympy.core.traversal.walk(e, *target)[source]#
        +sympy.core.traversal.walk(e, *target)[source]#

        Iterate through the args that are the given types (target) and return a list of the args that were traversed; arguments that are not of the specified types are not traversed.

        diff --git a/dev/modules/crypto.html b/dev/modules/crypto.html index 648fd4894eb..0bbe46b91e8 100644 --- a/dev/modules/crypto.html +++ b/dev/modules/crypto.html @@ -774,7 +774,7 @@

        Cryptography
        -sympy.crypto.crypto.AZ(s=None)[source]#
        +sympy.crypto.crypto.AZ(s=None)[source]#

        Return the letters of s in uppercase. In case more than one string is passed, each of them will be processed and a list of upper case strings will be returned.

        @@ -794,7 +794,7 @@

        Cryptography
        -sympy.crypto.crypto.padded_key(key, symbols)[source]#
        +sympy.crypto.crypto.padded_key(key, symbols)[source]#

        Return a string of the distinct characters of symbols with those of key appearing first. A ValueError is raised if a) there are duplicate characters in symbols or @@ -813,7 +813,7 @@

        Cryptography
        -sympy.crypto.crypto.check_and_join(phrase, symbols=None, filter=None)[source]#
        +sympy.crypto.crypto.check_and_join(phrase, symbols=None, filter=None)[source]#

        Joins characters of phrase and if symbols is given, raises an error if any character in phrase is not in symbols.

        @@ -847,7 +847,7 @@

        Cryptography
        -sympy.crypto.crypto.cycle_list(k, n)[source]#
        +sympy.crypto.crypto.cycle_list(k, n)[source]#

        Returns the elements of the list range(n) shifted to the left by k (so the list starts with k (mod n)).

        Examples

        @@ -860,7 +860,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_shift(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.encipher_shift(msg, key, symbols=None)[source]#

        Performs shift cipher encryption on plaintext msg, and returns the ciphertext.

        @@ -939,7 +939,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_shift(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.decipher_shift(msg, key, symbols=None)[source]#

        Return the text by shifting the characters of msg to the left by the amount given by key.

        Examples

        @@ -963,7 +963,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_rot13(msg, symbols=None)[source]#
        +sympy.crypto.crypto.encipher_rot13(msg, symbols=None)[source]#

        Performs the ROT13 encryption on a given plaintext msg.

        Explanation

        ROT13 is a substitution cipher which substitutes each letter @@ -986,7 +986,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_rot13(msg, symbols=None)[source]#
        +sympy.crypto.crypto.decipher_rot13(msg, symbols=None)[source]#

        Performs the ROT13 decryption on a given plaintext msg.

        Explanation

        decipher_rot13 is equivalent to encipher_rot13 as both @@ -1011,7 +1011,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_affine(msg, key, symbols=None, _inverse=False)[source]#
        +sympy.crypto.crypto.encipher_affine(msg, key, symbols=None, _inverse=False)[source]#

        Performs the affine cipher encryption on plaintext msg, and returns the ciphertext.

        @@ -1081,7 +1081,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_affine(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.decipher_affine(msg, key, symbols=None)[source]#

        Return the deciphered text that was made from the mapping, \(x \rightarrow ax+b\) (mod \(N\)), where N is the number of characters in the alphabet. Deciphering is done by @@ -1105,7 +1105,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_atbash(msg, symbols=None)[source]#
        +sympy.crypto.crypto.encipher_atbash(msg, symbols=None)[source]#

        Enciphers a given msg into its Atbash ciphertext and returns it.

        Explanation

        Atbash is a substitution cipher originally used to encrypt the Hebrew @@ -1121,7 +1121,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_atbash(msg, symbols=None)[source]#
        +sympy.crypto.crypto.decipher_atbash(msg, symbols=None)[source]#

        Deciphers a given msg using Atbash cipher and returns it.

        Explanation

        decipher_atbash is functionally equivalent to encipher_atbash. @@ -1155,7 +1155,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_substitution(msg, old, new=None)[source]#
        +sympy.crypto.crypto.encipher_substitution(msg, old, new=None)[source]#

        Returns the ciphertext obtained by replacing each character that appears in old with the corresponding character in new. If old is a mapping, then new is ignored and the replacements @@ -1210,7 +1210,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_vigenere(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.encipher_vigenere(msg, key, symbols=None)[source]#

        Performs the Vigenere cipher encryption on plaintext msg, and returns the ciphertext.

        Examples

        @@ -1367,7 +1367,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_vigenere(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.decipher_vigenere(msg, key, symbols=None)[source]#

        Decode using the Vigenere cipher.

        Examples

        >>> from sympy.crypto.crypto import decipher_vigenere
        @@ -1381,7 +1381,7 @@ 

        Cryptography
        -sympy.crypto.crypto.encipher_hill(msg, key, symbols=None, pad='Q')[source]#
        +sympy.crypto.crypto.encipher_hill(msg, key, symbols=None, pad='Q')[source]#

        Return the Hill cipher encryption of msg.

        Parameters:
        @@ -1466,7 +1466,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_hill(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.decipher_hill(msg, key, symbols=None)[source]#

        Deciphering is the same as enciphering but using the inverse of the key matrix.

        Examples

        @@ -1517,7 +1517,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_bifid(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.encipher_bifid(msg, key, symbols=None)[source]#

        Performs the Bifid cipher encryption on plaintext msg, and returns the ciphertext.

        This is the version of the Bifid cipher that uses an \(n \times n\) @@ -1562,7 +1562,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_bifid(msg, key, symbols=None)[source]#
        +sympy.crypto.crypto.decipher_bifid(msg, key, symbols=None)[source]#

        Performs the Bifid cipher decryption on ciphertext msg, and returns the plaintext.

        This is the version of the Bifid cipher that uses the \(n \times n\) @@ -1641,7 +1641,7 @@

        Cryptography
        -sympy.crypto.crypto.bifid5_square(key=None)[source]#
        +sympy.crypto.crypto.bifid5_square(key=None)[source]#

        5x5 Polybius square.

        Produce the Polybius square for the \(5 \times 5\) Bifid cipher.

        Examples

        @@ -1659,7 +1659,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_bifid5(msg, key)[source]#
        +sympy.crypto.crypto.encipher_bifid5(msg, key)[source]#

        Performs the Bifid cipher encryption on plaintext msg, and returns the ciphertext.

        @@ -1762,7 +1762,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_bifid5(msg, key)[source]#
        +sympy.crypto.crypto.decipher_bifid5(msg, key)[source]#

        Return the Bifid cipher decryption of msg.

        Parameters:
        @@ -1804,7 +1804,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_bifid6(msg, key)[source]#
        +sympy.crypto.crypto.encipher_bifid6(msg, key)[source]#

        Performs the Bifid cipher encryption on plaintext msg, and returns the ciphertext.

        This is the version of the Bifid cipher that uses the \(6 \times 6\) @@ -1837,7 +1837,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_bifid6(msg, key)[source]#
        +sympy.crypto.crypto.decipher_bifid6(msg, key)[source]#

        Performs the Bifid cipher decryption on ciphertext msg, and returns the plaintext.

        This is the version of the Bifid cipher that uses the \(6 \times 6\) @@ -1876,7 +1876,7 @@

        Cryptography
        -sympy.crypto.crypto.bifid6_square(key=None)[source]#
        +sympy.crypto.crypto.bifid6_square(key=None)[source]#

        6x6 Polybius square.

        Produces the Polybius square for the \(6 \times 6\) Bifid cipher. Assumes alphabet of symbols is “A”, …, “Z”, “0”, …, “9”.

        @@ -1897,7 +1897,7 @@

        Cryptography
        -sympy.crypto.crypto.rsa_public_key(*args, **kwargs)[source]#
        +sympy.crypto.crypto.rsa_public_key(*args, **kwargs)[source]#

        Return the RSA public key pair, \((n, e)\)

        Parameters:
        @@ -2063,7 +2063,7 @@

        Cryptography
        -sympy.crypto.crypto.rsa_private_key(*args, **kwargs)[source]#
        +sympy.crypto.crypto.rsa_private_key(*args, **kwargs)[source]#

        Return the RSA private key pair, \((n, d)\)

        Parameters:
        @@ -2189,7 +2189,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_rsa(i, key, factors=None)[source]#
        +sympy.crypto.crypto.encipher_rsa(i, key, factors=None)[source]#

        Encrypt the plaintext with RSA.

        Parameters:
        @@ -2254,7 +2254,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_rsa(i, key, factors=None)[source]#
        +sympy.crypto.crypto.decipher_rsa(i, key, factors=None)[source]#

        Decrypt the ciphertext with RSA.

        Parameters:
        @@ -2349,7 +2349,7 @@

        Cryptography
        -sympy.crypto.crypto.kid_rsa_public_key(a, b, A, B)[source]#
        +sympy.crypto.crypto.kid_rsa_public_key(a, b, A, B)[source]#

        Kid RSA is a version of RSA useful to teach grade school children since it does not involve exponentiation.

        Explanation

        @@ -2377,7 +2377,7 @@

        Cryptography
        -sympy.crypto.crypto.kid_rsa_private_key(a, b, A, B)[source]#
        +sympy.crypto.crypto.kid_rsa_private_key(a, b, A, B)[source]#

        Compute \(M = a b - 1\), \(e = A M + a\), \(d = B M + b\), \(n = (e d - 1) / M\). The private key is \(d\), which Bob keeps secret.

        @@ -2392,7 +2392,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_kid_rsa(msg, key)[source]#
        +sympy.crypto.crypto.encipher_kid_rsa(msg, key)[source]#

        Here msg is the plaintext and key is the public key.

        Examples

        >>> from sympy.crypto.crypto import (
        @@ -2408,7 +2408,7 @@ 

        Cryptography
        -sympy.crypto.crypto.decipher_kid_rsa(msg, key)[source]#
        +sympy.crypto.crypto.decipher_kid_rsa(msg, key)[source]#

        Here msg is the plaintext and key is the private key.

        Examples

        >>> from sympy.crypto.crypto import (
        @@ -2428,7 +2428,7 @@ 

        Cryptography
        -sympy.crypto.crypto.encode_morse(msg, sep='|', mapping=None)[source]#
        +sympy.crypto.crypto.encode_morse(msg, sep='|', mapping=None)[source]#

        Encodes a plaintext into popular Morse Code with letters separated by sep and words by a double sep.

        Examples

        @@ -2449,7 +2449,7 @@

        Cryptography
        -sympy.crypto.crypto.decode_morse(msg, sep='|', mapping=None)[source]#
        +sympy.crypto.crypto.decode_morse(msg, sep='|', mapping=None)[source]#

        Decodes a Morse Code with letters separated by sep (default is ‘|’) and words by \(word_sep\) (default is ‘||) into plaintext.

        @@ -2471,7 +2471,7 @@

        Cryptography
        -sympy.crypto.crypto.lfsr_sequence(key, fill, n)[source]#
        +sympy.crypto.crypto.lfsr_sequence(key, fill, n)[source]#

        This function creates an LFSR sequence.

        Parameters:
        @@ -2560,7 +2560,7 @@

        Cryptography
        -sympy.crypto.crypto.lfsr_autocorrelation(L, P, k)[source]#
        +sympy.crypto.crypto.lfsr_autocorrelation(L, P, k)[source]#

        This function computes the LFSR autocorrelation function.

        Parameters:
        @@ -2603,7 +2603,7 @@

        Cryptography
        -sympy.crypto.crypto.lfsr_connection_polynomial(s)[source]#
        +sympy.crypto.crypto.lfsr_connection_polynomial(s)[source]#

        This function computes the LFSR connection polynomial.

        Parameters:
        @@ -2663,7 +2663,7 @@

        Cryptography
        -sympy.crypto.crypto.elgamal_public_key(key)[source]#
        +sympy.crypto.crypto.elgamal_public_key(key)[source]#

        Return three number tuple as public key.

        Parameters:
        @@ -2690,7 +2690,7 @@

        Cryptography
        -sympy.crypto.crypto.elgamal_private_key(digit=10, seed=None)[source]#
        +sympy.crypto.crypto.elgamal_private_key(digit=10, seed=None)[source]#

        Return three number tuple as private key.

        Parameters:
        @@ -2732,7 +2732,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_elgamal(i, key, seed=None)[source]#
        +sympy.crypto.crypto.encipher_elgamal(i, key, seed=None)[source]#

        Encrypt message with public key.

        Parameters:
        @@ -2778,7 +2778,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_elgamal(msg, key)[source]#
        +sympy.crypto.crypto.decipher_elgamal(msg, key)[source]#

        Decrypt message with private key.

        \(msg = (c_{1}, c_{2})\)

        \(key = (p, r, d)\)

        @@ -2806,7 +2806,7 @@

        Cryptography
        -sympy.crypto.crypto.dh_public_key(key)[source]#
        +sympy.crypto.crypto.dh_public_key(key)[source]#

        Return three number tuple as public key.

        This is the tuple that Alice sends to Bob.

        @@ -2838,7 +2838,7 @@

        Cryptography
        -sympy.crypto.crypto.dh_private_key(digit=10, seed=None)[source]#
        +sympy.crypto.crypto.dh_private_key(digit=10, seed=None)[source]#

        Return three integer tuple as private key.

        Parameters:
        @@ -2894,7 +2894,7 @@

        Cryptography
        -sympy.crypto.crypto.dh_shared_key(key, b)[source]#
        +sympy.crypto.crypto.dh_shared_key(key, b)[source]#

        Return an integer that is the shared key.

        This is what Bob and Alice can both calculate using the public keys they received from each other and their private keys.

        @@ -2931,7 +2931,7 @@

        Cryptography
        -sympy.crypto.crypto.gm_public_key(p, q, a=None, seed=None)[source]#
        +sympy.crypto.crypto.gm_public_key(p, q, a=None, seed=None)[source]#

        Compute public keys for p and q. Note that in Goldwasser-Micali Encryption, public keys are randomly selected.

        @@ -2955,7 +2955,7 @@

        Cryptography
        -sympy.crypto.crypto.gm_private_key(p, q, a=None)[source]#
        +sympy.crypto.crypto.gm_private_key(p, q, a=None)[source]#

        Check if p and q can be used as private keys for the Goldwasser-Micali encryption. The method works roughly as follows.

        @@ -3015,7 +3015,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_gm(i, key, seed=None)[source]#
        +sympy.crypto.crypto.encipher_gm(i, key, seed=None)[source]#

        Encrypt integer ‘i’ using public_key ‘key’ Note that gm uses random encryption.

        @@ -3040,7 +3040,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_gm(message, key)[source]#
        +sympy.crypto.crypto.decipher_gm(message, key)[source]#

        Decrypt message ‘message’ using public_key ‘key’.

        Parameters:
        @@ -3064,7 +3064,7 @@

        Cryptography
        -sympy.crypto.crypto.encipher_railfence(message, rails)[source]#
        +sympy.crypto.crypto.encipher_railfence(message, rails)[source]#

        Performs Railfence Encryption on plaintext and returns ciphertext

        Parameters:
        @@ -3093,7 +3093,7 @@

        Cryptography
        -sympy.crypto.crypto.decipher_railfence(ciphertext, rails)[source]#
        +sympy.crypto.crypto.decipher_railfence(ciphertext, rails)[source]#

        Decrypt the message using the given rails

        Parameters:
        diff --git a/dev/modules/diffgeom.html b/dev/modules/diffgeom.html index 265f57d9b91..a04f96ea9c4 100644 --- a/dev/modules/diffgeom.html +++ b/dev/modules/diffgeom.html @@ -746,7 +746,7 @@

        Introduction#

        -class sympy.diffgeom.Manifold(name, dim, **kwargs)[source]#
        +class sympy.diffgeom.Manifold(name, dim, **kwargs)[source]#

        A mathematical manifold.

        Parameters:
        @@ -785,7 +785,7 @@

        Base Class Reference
        -class sympy.diffgeom.Patch(name, manifold, **kwargs)[source]#
        +class sympy.diffgeom.Patch(name, manifold, **kwargs)[source]#

        A patch on a manifold.

        Parameters:
        @@ -829,7 +829,7 @@

        Base Class Reference
        -class sympy.diffgeom.CoordSystem(name, patch, symbols=None, relations={}, **kwargs)[source]#
        +class sympy.diffgeom.CoordSystem(name, patch, symbols=None, relations={}, **kwargs)[source]#

        A coordinate system defined on the patch.

        Parameters:
        @@ -938,7 +938,7 @@

        Base Class Reference
        -base_oneform(coord_index)[source]#
        +base_oneform(coord_index)[source]#

        Return a basis 1-form field. The basis one-form field for this coordinate system. It is also an operator on vector fields.

        @@ -946,27 +946,27 @@

        Base Class Reference
        -base_oneforms()[source]#
        +base_oneforms()[source]#

        Returns a list of all base oneforms. For more details see the base_oneform method of this class.

        -base_scalar(coord_index)[source]#
        +base_scalar(coord_index)[source]#

        Return BaseScalarField that takes a point and returns one of the coordinates.

        -base_scalars()[source]#
        +base_scalars()[source]#

        Returns a list of all coordinate functions. For more details see the base_scalar method of this class.

        -base_vector(coord_index)[source]#
        +base_vector(coord_index)[source]#

        Return a basis vector field. The basis vector field for this coordinate system. It is also an operator on scalar fields.

        @@ -974,33 +974,33 @@

        Base Class Reference
        -base_vectors()[source]#
        +base_vectors()[source]#

        Returns a list of all base vectors. For more details see the base_vector method of this class.

        -coord_function(coord_index)[source]#
        +coord_function(coord_index)[source]#

        Return BaseScalarField that takes a point and returns one of the coordinates.

        -coord_functions()[source]#
        +coord_functions()[source]#

        Returns a list of all coordinate functions. For more details see the base_scalar method of this class.

        -coord_tuple_transform_to(to_sys, coords)[source]#
        +coord_tuple_transform_to(to_sys, coords)[source]#

        Transform coords to coord system to_sys.

        -jacobian(sys, coordinates=None)[source]#
        +jacobian(sys, coordinates=None)[source]#

        Return the jacobian matrix of a transformation on given coordinates. If coordinates are not given, coordinate symbols of self are used.

        @@ -1028,7 +1028,7 @@

        Base Class Reference
        -jacobian_determinant(sys, coordinates=None)[source]#
        +jacobian_determinant(sys, coordinates=None)[source]#

        Return the jacobian determinant of a transformation on given coordinates. If coordinates are not given, coordinate symbols of self are used.

        @@ -1053,7 +1053,7 @@

        Base Class Reference
        -jacobian_matrix(sys, coordinates=None)[source]#
        +jacobian_matrix(sys, coordinates=None)[source]#

        Return the jacobian matrix of a transformation on given coordinates. If coordinates are not given, coordinate symbols of self are used.

        @@ -1081,19 +1081,19 @@

        Base Class Reference
        -point(coords)[source]#
        +point(coords)[source]#

        Create a Point with coordinates given in this coord system.

        -point_to_coords(point)[source]#
        +point_to_coords(point)[source]#

        Calculate the coordinates of a point in this coord system.

        -transform(sys, coordinates=None)[source]#
        +transform(sys, coordinates=None)[source]#

        Return the result of coordinate transformation from self to sys. If coordinates are not given, coordinate symbols of self are used.

        @@ -1121,7 +1121,7 @@

        Base Class Reference
        -transformation(sys)[source]#
        +transformation(sys)[source]#

        Return coordinate transformation function from self to sys.

        Parameters:
        @@ -1145,7 +1145,7 @@

        Base Class Reference
        -class sympy.diffgeom.CoordinateSymbol(coord_sys, index, **assumptions)[source]#
        +class sympy.diffgeom.CoordinateSymbol(coord_sys, index, **assumptions)[source]#

        A symbol which denotes an abstract value of i-th coordinate of the coordinate system with given context.

        @@ -1198,7 +1198,7 @@

        Base Class Reference
        -class sympy.diffgeom.Point(coord_sys, coords, **kwargs)[source]#
        +class sympy.diffgeom.Point(coord_sys, coords, **kwargs)[source]#

        Point defined in a coordinate system.

        Parameters:
        @@ -1244,7 +1244,7 @@

        Base Class Reference
        -coords(sys=None)[source]#
        +coords(sys=None)[source]#

        Coordinates of the point in given coordinate system. If coordinate system is not passed, it returns the coordinates in the coordinate system in which the poin was defined.

        @@ -1254,7 +1254,7 @@

        Base Class Reference
        -class sympy.diffgeom.BaseScalarField(coord_sys, index, **kwargs)[source]#
        +class sympy.diffgeom.BaseScalarField(coord_sys, index, **kwargs)[source]#

        Base scalar field over a manifold for a given coordinate system.

        Parameters:
        @@ -1304,7 +1304,7 @@

        Base Class Reference
        -class sympy.diffgeom.BaseVectorField(coord_sys, index, **kwargs)[source]#
        +class sympy.diffgeom.BaseVectorField(coord_sys, index, **kwargs)[source]#

        Base vector field over a manifold for a given coordinate system.

        Parameters:
        @@ -1360,7 +1360,7 @@

        Base Class Reference
        -class sympy.diffgeom.Commutator(v1, v2)[source]#
        +class sympy.diffgeom.Commutator(v1, v2)[source]#

        Commutator of two vector fields.

        Explanation

        The commutator of two vector fields \(v_1\) and \(v_2\) is defined as the @@ -1394,7 +1394,7 @@

        Base Class Reference
        -class sympy.diffgeom.Differential(form_field)[source]#
        +class sympy.diffgeom.Differential(form_field)[source]#

        Return the differential (exterior derivative) of a form field.

        Explanation

        The differential of a form (i.e. the exterior derivative) has a complicated @@ -1436,7 +1436,7 @@

        Base Class Reference
        -class sympy.diffgeom.TensorProduct(*args)[source]#
        +class sympy.diffgeom.TensorProduct(*args)[source]#

        Tensor product of forms.

        Explanation

        The tensor product permits the creation of multilinear functionals (i.e. @@ -1490,7 +1490,7 @@

        Base Class Reference
        -class sympy.diffgeom.WedgeProduct(*args)[source]#
        +class sympy.diffgeom.WedgeProduct(*args)[source]#

        Wedge product of forms.

        Explanation

        In the context of integration only completely antisymmetric forms make @@ -1525,7 +1525,7 @@

        Base Class Reference
        -class sympy.diffgeom.LieDerivative(v_field, expr)[source]#
        +class sympy.diffgeom.LieDerivative(v_field, expr)[source]#

        Lie derivative with respect to a vector field.

        Explanation

        The transport operator that defines the Lie derivative is the pushforward of @@ -1569,7 +1569,7 @@

        Base Class Reference
        -class sympy.diffgeom.BaseCovarDerivativeOp(coord_sys, index, christoffel)[source]#
        +class sympy.diffgeom.BaseCovarDerivativeOp(coord_sys, index, christoffel)[source]#

        Covariant derivative operator with respect to a base vector.

        Examples

        >>> from sympy.diffgeom.rn import R2_r
        @@ -1597,7 +1597,7 @@ 

        Base Class Reference
        -class sympy.diffgeom.CovarDerivativeOp(wrt, christoffel)[source]#
        +class sympy.diffgeom.CovarDerivativeOp(wrt, christoffel)[source]#

        Covariant derivative operator.

        Examples

        >>> from sympy.diffgeom.rn import R2_r
        @@ -1623,7 +1623,7 @@ 

        Base Class Reference
        -sympy.diffgeom.intcurve_series(vector_field, param, start_point, n=6, coord_sys=None, coeffs=False)[source]#
        +sympy.diffgeom.intcurve_series(vector_field, param, start_point, n=6, coord_sys=None, coeffs=False)[source]#

        Return the series expansion for an integral curve of the field.

        Parameters:
        @@ -1723,7 +1723,7 @@

        Base Class Reference
        -sympy.diffgeom.intcurve_diffequ(vector_field, param, start_point, coord_sys=None)[source]#
        +sympy.diffgeom.intcurve_diffequ(vector_field, param, start_point, coord_sys=None)[source]#

        Return the differential equation for an integral curve of the field.

        Parameters:
        @@ -1795,7 +1795,7 @@

        Base Class Reference
        -sympy.diffgeom.vectors_in_basis(expr, to_sys)[source]#
        +sympy.diffgeom.vectors_in_basis(expr, to_sys)[source]#

        Transform all base vectors in base vectors of a specified coord basis. While the new base vectors are in the new coordinate system basis, any coefficients are kept in the old system.

        @@ -1814,7 +1814,7 @@

        Base Class Reference
        -sympy.diffgeom.twoform_to_matrix(expr)[source]#
        +sympy.diffgeom.twoform_to_matrix(expr)[source]#

        Return the matrix representing the twoform.

        For the twoform \(w\) return the matrix \(M\) such that \(M[i,j]=w(e_i, e_j)\), where \(e_i\) is the i-th base vector field for the coordinate system in @@ -1843,7 +1843,7 @@

        Base Class Reference
        -sympy.diffgeom.metric_to_Christoffel_1st(expr)[source]#
        +sympy.diffgeom.metric_to_Christoffel_1st(expr)[source]#

        Return the nested list of Christoffel symbols for the given metric. This returns the Christoffel symbol of first kind that represents the Levi-Civita connection for the given metric.

        @@ -1863,7 +1863,7 @@

        Base Class Reference
        -sympy.diffgeom.metric_to_Christoffel_2nd(expr)[source]#
        +sympy.diffgeom.metric_to_Christoffel_2nd(expr)[source]#

        Return the nested list of Christoffel symbols for the given metric. This returns the Christoffel symbol of second kind that represents the Levi-Civita connection for the given metric.

        @@ -1883,7 +1883,7 @@

        Base Class Reference
        -sympy.diffgeom.metric_to_Riemann_components(expr)[source]#
        +sympy.diffgeom.metric_to_Riemann_components(expr)[source]#

        Return the components of the Riemann tensor expressed in a given basis.

        Given a metric it calculates the components of the Riemann tensor in the canonical basis of the coordinate system in which the metric expression is @@ -1911,7 +1911,7 @@

        Base Class Reference
        -sympy.diffgeom.metric_to_Ricci_components(expr)[source]#
        +sympy.diffgeom.metric_to_Ricci_components(expr)[source]#

        Return the components of the Ricci tensor expressed in a given basis.

        Given a metric it calculates the components of the Ricci tensor in the canonical basis of the coordinate system in which the metric expression is diff --git a/dev/modules/discrete.html b/dev/modules/discrete.html index 20da083b85b..02c6445f439 100644 --- a/dev/modules/discrete.html +++ b/dev/modules/discrete.html @@ -760,7 +760,7 @@

        Discrete

        Fast Fourier Transform#

        -sympy.discrete.transforms.fft(seq, dps=None)[source]#
        +sympy.discrete.transforms.fft(seq, dps=None)[source]#

        Performs the Discrete Fourier Transform (DFT) in the complex domain.

        The sequence is automatically padded to the right with zeros, as the radix-2 FFT requires the number of sample points to be a power of 2.

        @@ -815,7 +815,7 @@

        Fast Fourier Transform
        -sympy.discrete.transforms.ifft(seq, dps=None)[source]#
        +sympy.discrete.transforms.ifft(seq, dps=None)[source]#

        Performs the Discrete Fourier Transform (DFT) in the complex domain.

        The sequence is automatically padded to the right with zeros, as the radix-2 FFT requires the number of sample points to be a power of 2.

        @@ -873,7 +873,7 @@

        Fast Fourier TransformNumber Theoretic Transform#

        -sympy.discrete.transforms.ntt(seq, prime)[source]#
        +sympy.discrete.transforms.ntt(seq, prime)[source]#

        Performs the Number Theoretic Transform (NTT), which specializes the Discrete Fourier Transform (DFT) over quotient ring \(Z/pZ\) for prime \(p\) instead of complex numbers \(C\).

        @@ -923,7 +923,7 @@

        Number Theoretic Transform
        -sympy.discrete.transforms.intt(seq, prime)[source]#
        +sympy.discrete.transforms.intt(seq, prime)[source]#

        Performs the Number Theoretic Transform (NTT), which specializes the Discrete Fourier Transform (DFT) over quotient ring \(Z/pZ\) for prime \(p\) instead of complex numbers \(C\).

        @@ -976,7 +976,7 @@

        Number Theoretic Transform#

        -sympy.discrete.transforms.fwht(seq)[source]#
        +sympy.discrete.transforms.fwht(seq)[source]#

        Performs the Walsh Hadamard Transform (WHT), and uses Hadamard ordering for the sequence.

        The sequence is automatically padded to the right with zeros, as the @@ -1018,7 +1018,7 @@

        Fast Walsh Hadamard Transform
        -sympy.discrete.transforms.ifwht(seq)[source]#
        +sympy.discrete.transforms.ifwht(seq)[source]#

        Performs the Walsh Hadamard Transform (WHT), and uses Hadamard ordering for the sequence.

        The sequence is automatically padded to the right with zeros, as the @@ -1063,7 +1063,7 @@

        Fast Walsh Hadamard Transform#

        -sympy.discrete.transforms.mobius_transform(seq, subset=True)[source]#
        +sympy.discrete.transforms.mobius_transform(seq, subset=True)[source]#

        Performs the Mobius Transform for subset lattice with indices of sequence as bitmasks.

        The indices of each argument, considered as bit strings, correspond @@ -1131,7 +1131,7 @@

        Möbius Transform
        -sympy.discrete.transforms.inverse_mobius_transform(seq, subset=True)[source]#
        +sympy.discrete.transforms.inverse_mobius_transform(seq, subset=True)[source]#

        Performs the Mobius Transform for subset lattice with indices of sequence as bitmasks.

        The indices of each argument, considered as bit strings, correspond @@ -1210,7 +1210,7 @@

        Convolutionconvolution_ntt, convolution_fwht, or convolution_subset.

        -sympy.discrete.convolutions.convolution(a, b, cycle=0, dps=None, prime=None, dyadic=None, subset=None)[source]#
        +sympy.discrete.convolutions.convolution(a, b, cycle=0, dps=None, prime=None, dyadic=None, subset=None)[source]#

        Performs convolution by determining the type of desired convolution using hints.

        Exactly one of dps, prime, dyadic, subset arguments @@ -1284,7 +1284,7 @@

        Convolution#

        -sympy.discrete.convolutions.convolution_fft(a, b, dps=None)[source]#
        +sympy.discrete.convolutions.convolution_fft(a, b, dps=None)[source]#

        Performs linear convolution using Fast Fourier Transform.

        Parameters:
        @@ -1329,7 +1329,7 @@

        Convolution using Fast Fourier Transform#

        -sympy.discrete.convolutions.convolution_ntt(a, b, prime)[source]#
        +sympy.discrete.convolutions.convolution_ntt(a, b, prime)[source]#

        Performs linear convolution using Number Theoretic Transform.

        Parameters:
        @@ -1372,7 +1372,7 @@

        Convolution using Number Theoretic Transform#

        -sympy.discrete.convolutions.convolution_fwht(a, b)[source]#
        +sympy.discrete.convolutions.convolution_fwht(a, b)[source]#

        Performs dyadic (bitwise-XOR) convolution using Fast Walsh Hadamard Transform.

        The convolution is automatically padded to the right with zeros, as the @@ -1423,7 +1423,7 @@

        Convolution using Fast Walsh Hadamard Transform#

        -sympy.discrete.convolutions.convolution_subset(a, b)[source]#
        +sympy.discrete.convolutions.convolution_subset(a, b)[source]#

        Performs Subset Convolution of given sequences.

        The indices of each argument, considered as bit strings, correspond to subsets of a finite set.

        @@ -1470,7 +1470,7 @@

        Subset Convolution#

        -sympy.discrete.convolutions.covering_product(a, b)[source]#
        +sympy.discrete.convolutions.covering_product(a, b)[source]#

        Returns the covering product of given sequences.

        The indices of each argument, considered as bit strings, correspond to subsets of a finite set.

        @@ -1519,7 +1519,7 @@

        Covering Product#

        -sympy.discrete.convolutions.intersecting_product(a, b)[source]#
        +sympy.discrete.convolutions.intersecting_product(a, b)[source]#

        Returns the intersecting product of given sequences.

        The indices of each argument, considered as bit strings, correspond to subsets of a finite set.

        diff --git a/dev/modules/functions/combinatorial.html b/dev/modules/functions/combinatorial.html index 324e6394e8a..0e12d9496c9 100644 --- a/dev/modules/functions/combinatorial.html +++ b/dev/modules/functions/combinatorial.html @@ -742,7 +742,7 @@
        Documentation Version

        This module implements various combinatorial functions.

        -class sympy.functions.combinatorial.numbers.bell(n, k_sym=None, symbols=None)[source]#
        +class sympy.functions.combinatorial.numbers.bell(n, k_sym=None, symbols=None)[source]#

        Bell numbers / Bell polynomials

        The Bell numbers satisfy \(B_0 = 1\) and

        @@ -816,7 +816,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.numbers.bernoulli(n, x=None)[source]#
        +class sympy.functions.combinatorial.numbers.bernoulli(n, x=None)[source]#

        Bernoulli numbers / Bernoulli polynomials / Bernoulli function

        The Bernoulli numbers are a sequence of rational numbers defined by \(B_0 = 1\) and the recursive relation (\(n > 0\)):

        @@ -934,7 +934,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.factorials.binomial(n, k)[source]#
        +class sympy.functions.combinatorial.factorials.binomial(n, k)[source]#

        Implementation of the binomial coefficient. It can be defined in two ways depending on its desired interpretation:

        @@ -1043,7 +1043,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.numbers.catalan(n)[source]#
        +class sympy.functions.combinatorial.numbers.catalan(n)[source]#

        Catalan numbers

        The \(n^{th}\) catalan number is given by:

        @@ -1138,7 +1138,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.numbers.euler(n, x=None)[source]#
        +class sympy.functions.combinatorial.numbers.euler(n, x=None)[source]#

        Euler numbers / Euler polynomials / Euler function

        The Euler numbers are given by:

        @@ -1235,7 +1235,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.factorials.factorial(n)[source]#
        +class sympy.functions.combinatorial.factorials.factorial(n)[source]#

        Implementation of factorial function over nonnegative integers. By convention (consistent with the gamma function and the binomial coefficients), factorial of a negative integer is complex infinity.

        @@ -1287,7 +1287,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.factorials.subfactorial(arg)[source]#
        +class sympy.functions.combinatorial.factorials.subfactorial(arg)[source]#

        The subfactorial counts the derangements of \(n\) items and is defined for non-negative integers as:

        @@ -1335,7 +1335,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.factorials.factorial2(arg)[source]#
        +class sympy.functions.combinatorial.factorials.factorial2(arg)[source]#

        The double factorial \(n!!\), not to be confused with \((n!)!\)

        The double factorial is defined for nonnegative integers and for odd negative integers as:

        @@ -1376,7 +1376,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.factorials.FallingFactorial(x, k)[source]#
        +class sympy.functions.combinatorial.factorials.FallingFactorial(x, k)[source]#

        Falling factorial (related to rising factorial) is a double valued function arising in concrete mathematics, hypergeometric functions and series expansions. It is defined by

        @@ -1446,7 +1446,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.numbers.fibonacci(n, sym=None)[source]#
        +class sympy.functions.combinatorial.numbers.fibonacci(n, sym=None)[source]#

        Fibonacci numbers / Fibonacci polynomials

        The Fibonacci numbers are the integer sequence defined by the initial terms \(F_0 = 0\), \(F_1 = 1\) and the two-term recurrence @@ -1493,7 +1493,7 @@

        Documentation Version
        -class sympy.functions.combinatorial.numbers.tribonacci(n, sym=None)[source]#
        +class sympy.functions.combinatorial.numbers.tribonacci(n, sym=None)[source]#

        Tribonacci numbers / Tribonacci polynomials

        The Tribonacci numbers are the integer sequence defined by the initial terms \(T_0 = 0\), \(T_1 = 1\), \(T_2 = 1\) and the three-term @@ -1538,7 +1538,7 @@

        Documentation Version
        -class sympy.functions.combinatorial.numbers.harmonic(n, m=None)[source]#
        +class sympy.functions.combinatorial.numbers.harmonic(n, m=None)[source]#

        Harmonic numbers

        The nth harmonic number is given by \(\operatorname{H}_{n} = 1 + \frac{1}{2} + \frac{1}{3} + \ldots + \frac{1}{n}\).

        @@ -1689,7 +1689,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.numbers.lucas(n)[source]#
        +class sympy.functions.combinatorial.numbers.lucas(n)[source]#

        Lucas numbers

        Lucas numbers satisfy a recurrence relation similar to that of the Fibonacci sequence, in which each term is the sum of the @@ -1725,7 +1725,7 @@

        Documentation Version
        -class sympy.functions.combinatorial.numbers.genocchi(n, x=None)[source]#
        +class sympy.functions.combinatorial.numbers.genocchi(n, x=None)[source]#

        Genocchi numbers / Genocchi polynomials / Genocchi function

        The Genocchi numbers are a sequence of integers \(G_n\) that satisfy the relation:

        @@ -1784,7 +1784,7 @@
        Documentation Version
        -class sympy.functions.combinatorial.numbers.andre(n)[source]#
        +class sympy.functions.combinatorial.numbers.andre(n)[source]#

        Andre numbers / Andre function

        The Andre number \(\mathcal{A}_n\) is Luschny’s name for half the number of alternating permutations on \(n\) elements, where a permutation is alternating @@ -1853,7 +1853,7 @@

        Documentation Version
        -class sympy.functions.combinatorial.numbers.partition(n)[source]#
        +class sympy.functions.combinatorial.numbers.partition(n)[source]#

        Partition numbers

        The Partition numbers are a sequence of integers \(p_n\) that represent the number of distinct ways of representing \(n\) as a sum of natural numbers @@ -1890,12 +1890,12 @@

        Documentation Version
        -class sympy.functions.combinatorial.factorials.MultiFactorial(*args)[source]#
        +class sympy.functions.combinatorial.factorials.MultiFactorial(*args)[source]#
        -class sympy.functions.combinatorial.factorials.RisingFactorial(x, k)[source]#
        +class sympy.functions.combinatorial.factorials.RisingFactorial(x, k)[source]#

        Rising factorial (also called Pochhammer symbol [R245]) is a double valued function arising in concrete mathematics, hypergeometric functions and series expansions. It is defined by:

        @@ -1962,7 +1962,7 @@
        Documentation Version
        -sympy.functions.combinatorial.numbers.stirling(n, k, d=None, kind=2, signed=False)[source]#
        +sympy.functions.combinatorial.numbers.stirling(n, k, d=None, kind=2, signed=False)[source]#

        Return Stirling number \(S(n, k)\) of the first or second (default) kind.

        The sum of all Stirling numbers of the second kind for \(k = 1\) through \(n\) is bell(n). The recurrence relationship for these numbers @@ -2070,7 +2070,7 @@

        Enumeration
        -sympy.functions.combinatorial.numbers.nC(n, k=None, replacement=False)[source]#
        +sympy.functions.combinatorial.numbers.nC(n, k=None, replacement=False)[source]#

        Return the number of combinations of n items taken k at a time.

        Possible values for n:

        @@ -2136,7 +2136,7 @@

        Enumeration
        -sympy.functions.combinatorial.numbers.nP(n, k=None, replacement=False)[source]#
        +sympy.functions.combinatorial.numbers.nP(n, k=None, replacement=False)[source]#

        Return the number of permutations of n items taken k at a time.

        Possible values for n:

        @@ -2194,7 +2194,7 @@

        Enumeration
        -sympy.functions.combinatorial.numbers.nT(n, k=None)[source]#
        +sympy.functions.combinatorial.numbers.nT(n, k=None)[source]#

        Return the number of k-sized partitions of n items.

        Possible values for n:

        diff --git a/dev/modules/functions/elementary.html b/dev/modules/functions/elementary.html index bf86e286ea0..e47ef501fde 100644 --- a/dev/modules/functions/elementary.html +++ b/dev/modules/functions/elementary.html @@ -745,7 +745,7 @@
        Documentation Version

        Complex Functions#

        -class sympy.functions.elementary.complexes.re(arg)[source]#
        +class sympy.functions.elementary.complexes.re(arg)[source]#

        Returns real part of expression. This function performs only elementary analysis and so it will fail to decompose properly more complicated expressions. If completely simplified result @@ -786,7 +786,7 @@

        Complex Functions
        -as_real_imag(deep=True, **hints)[source]#
        +as_real_imag(deep=True, **hints)[source]#

        Returns the real number with a zero imaginary part.

        @@ -794,7 +794,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.im(arg)[source]#
        +class sympy.functions.elementary.complexes.im(arg)[source]#

        Returns imaginary part of expression. This function performs only elementary analysis and so it will fail to decompose properly more complicated expressions. If completely simplified result is needed then @@ -835,7 +835,7 @@

        Complex Functions
        -as_real_imag(deep=True, **hints)[source]#
        +as_real_imag(deep=True, **hints)[source]#

        Return the imaginary part with a zero real part.

        @@ -843,7 +843,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.sign(arg)[source]#
        +class sympy.functions.elementary.complexes.sign(arg)[source]#

        Returns the complex sign of an expression:

        Parameters:
        @@ -901,7 +901,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.Abs(arg)[source]#
        +class sympy.functions.elementary.complexes.Abs(arg)[source]#

        Return the absolute value of the argument.

        Parameters:
        @@ -954,7 +954,7 @@

        Complex Functions
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Get the first derivative of the argument to Abs().

        @@ -962,7 +962,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.arg(arg)[source]#
        +class sympy.functions.elementary.complexes.arg(arg)[source]#

        Returns the argument (in radians) of a complex number. The argument is evaluated in consistent convention with atan2 where the branch-cut is taken along the negative real axis and arg(z) is in the interval @@ -1011,7 +1011,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.conjugate(arg)[source]#
        +class sympy.functions.elementary.complexes.conjugate(arg)[source]#

        Returns the complex conjugate [R253] of an argument. In mathematics, the complex conjugate of a complex number is given by changing the sign of the imaginary part.

        @@ -1059,7 +1059,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.polar_lift(arg)[source]#
        +class sympy.functions.elementary.complexes.polar_lift(arg)[source]#

        Lift argument to the Riemann surface of the logarithm, using the standard branch.

        @@ -1098,7 +1098,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.periodic_argument(ar, period)[source]#
        +class sympy.functions.elementary.complexes.periodic_argument(ar, period)[source]#

        Represent the argument on a quotient of the Riemann surface of the logarithm. That is, given a period \(P\), always return a value in \((-P/2, P/2]\), by using \(\exp(PI) = 1\).

        @@ -1144,7 +1144,7 @@

        Complex Functions
        -class sympy.functions.elementary.complexes.principal_branch(x, period)[source]#
        +class sympy.functions.elementary.complexes.principal_branch(x, period)[source]#

        Represent a polar number reduced to its principal branch on a quotient of the Riemann surface of the logarithm.

        @@ -1192,7 +1192,7 @@

        Trigonometric

        Trigonometric Functions#

        -class sympy.functions.elementary.trigonometric.sin(arg)[source]#
        +class sympy.functions.elementary.trigonometric.sin(arg)[source]#

        The sine function.

        Returns the sine of x (measured in radians).

        Explanation

        @@ -1244,7 +1244,7 @@

        Trigonometric
        -class sympy.functions.elementary.trigonometric.cos(arg)[source]#
        +class sympy.functions.elementary.trigonometric.cos(arg)[source]#

        The cosine function.

        Returns the cosine of x (measured in radians).

        Explanation

        @@ -1289,7 +1289,7 @@

        Trigonometric
        -class sympy.functions.elementary.trigonometric.tan(arg)[source]#
        +class sympy.functions.elementary.trigonometric.tan(arg)[source]#

        The tangent function.

        Returns the tangent of x (measured in radians).

        Explanation

        @@ -1326,7 +1326,7 @@

        Trigonometric
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1334,7 +1334,7 @@

        Trigonometric
        -class sympy.functions.elementary.trigonometric.cot(arg)[source]#
        +class sympy.functions.elementary.trigonometric.cot(arg)[source]#

        The cotangent function.

        Returns the cotangent of x (measured in radians).

        Explanation

        @@ -1371,7 +1371,7 @@

        Trigonometric
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1379,7 +1379,7 @@

        Trigonometric
        -class sympy.functions.elementary.trigonometric.sec(arg)[source]#
        +class sympy.functions.elementary.trigonometric.sec(arg)[source]#

        The secant function.

        Returns the secant of x (measured in radians).

        Explanation

        @@ -1416,7 +1416,7 @@

        Trigonometric
        -class sympy.functions.elementary.trigonometric.csc(arg)[source]#
        +class sympy.functions.elementary.trigonometric.csc(arg)[source]#

        The cosecant function.

        Returns the cosecant of x (measured in radians).

        Explanation

        @@ -1453,7 +1453,7 @@

        Trigonometric
        -class sympy.functions.elementary.trigonometric.sinc(arg)[source]#
        +class sympy.functions.elementary.trigonometric.sinc(arg)[source]#

        Represents an unnormalized sinc function:

        @@ -1518,7 +1518,7 @@

        Trigonometric#

        -class sympy.functions.elementary.trigonometric.asin(arg)[source]#
        +class sympy.functions.elementary.trigonometric.asin(arg)[source]#

        The inverse sine function.

        Returns the arcsine of x in radians.

        Explanation

        @@ -1559,7 +1559,7 @@

        Trigonometric Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1567,7 +1567,7 @@

        Trigonometric Inverses
        -class sympy.functions.elementary.trigonometric.acos(arg)[source]#
        +class sympy.functions.elementary.trigonometric.acos(arg)[source]#

        The inverse cosine function.

        Explanation

        Returns the arc cosine of x (measured in radians).

        @@ -1608,7 +1608,7 @@

        Trigonometric Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1616,7 +1616,7 @@

        Trigonometric Inverses
        -class sympy.functions.elementary.trigonometric.atan(arg)[source]#
        +class sympy.functions.elementary.trigonometric.atan(arg)[source]#

        The inverse tangent function.

        Returns the arc tangent of x (measured in radians).

        Explanation

        @@ -1654,7 +1654,7 @@

        Trigonometric Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1662,7 +1662,7 @@

        Trigonometric Inverses
        -class sympy.functions.elementary.trigonometric.acot(arg)[source]#
        +class sympy.functions.elementary.trigonometric.acot(arg)[source]#

        The inverse cotangent function.

        Returns the arc cotangent of x (measured in radians).

        Explanation

        @@ -1700,7 +1700,7 @@

        Trigonometric Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1708,7 +1708,7 @@

        Trigonometric Inverses
        -class sympy.functions.elementary.trigonometric.asec(arg)[source]#
        +class sympy.functions.elementary.trigonometric.asec(arg)[source]#

        The inverse secant function.

        Returns the arc secant of x (measured in radians).

        Explanation

        @@ -1769,7 +1769,7 @@

        Trigonometric Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1777,7 +1777,7 @@

        Trigonometric Inverses
        -class sympy.functions.elementary.trigonometric.acsc(arg)[source]#
        +class sympy.functions.elementary.trigonometric.acsc(arg)[source]#

        The inverse cosecant function.

        Returns the arc cosecant of x (measured in radians).

        Explanation

        @@ -1819,7 +1819,7 @@

        Trigonometric Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -1827,7 +1827,7 @@

        Trigonometric Inverses
        -class sympy.functions.elementary.trigonometric.atan2(y, x)[source]#
        +class sympy.functions.elementary.trigonometric.atan2(y, x)[source]#

        The function atan2(y, x) computes \(\operatorname{atan}(y/x)\) taking two arguments \(y\) and \(x\). Signs of both \(y\) and \(x\) are considered to determine the appropriate quadrant of \(\operatorname{atan}(y/x)\). @@ -1938,7 +1938,7 @@

        Hyperbolic#

        -class sympy.functions.elementary.hyperbolic.HyperbolicFunction(*args)[source]#
        +class sympy.functions.elementary.hyperbolic.HyperbolicFunction(*args)[source]#

        Base class for hyperbolic functions.

        See also

        @@ -1948,7 +1948,7 @@

        Hyperbolic Functions
        -class sympy.functions.elementary.hyperbolic.sinh(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.sinh(arg)[source]#

        sinh(x) is the hyperbolic sine of x.

        The hyperbolic sine function is \(\frac{e^x - e^{-x}}{2}\).

        Examples

        @@ -1964,25 +1964,25 @@

        Hyperbolic Functions
        -as_real_imag(deep=True, **hints)[source]#
        +as_real_imag(deep=True, **hints)[source]#

        Returns this function as a complex coordinate.

        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Returns the first derivative of this function.

        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        -static taylor_term(n, x, *previous_terms)[source]#
        +static taylor_term(n, x, *previous_terms)[source]#

        Returns the next term in the Taylor series expansion.

        @@ -1990,7 +1990,7 @@

        Hyperbolic Functions
        -class sympy.functions.elementary.hyperbolic.cosh(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.cosh(arg)[source]#

        cosh(x) is the hyperbolic cosine of x.

        The hyperbolic cosine function is \(\frac{e^x + e^{-x}}{2}\).

        Examples

        @@ -2008,7 +2008,7 @@

        Hyperbolic Functions
        -class sympy.functions.elementary.hyperbolic.tanh(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.tanh(arg)[source]#

        tanh(x) is the hyperbolic tangent of x.

        The hyperbolic tangent function is \(\frac{\sinh(x)}{\cosh(x)}\).

        Examples

        @@ -2024,7 +2024,7 @@

        Hyperbolic Functions
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2032,7 +2032,7 @@

        Hyperbolic Functions
        -class sympy.functions.elementary.hyperbolic.coth(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.coth(arg)[source]#

        coth(x) is the hyperbolic cotangent of x.

        The hyperbolic cotangent function is \(\frac{\cosh(x)}{\sinh(x)}\).

        Examples

        @@ -2048,7 +2048,7 @@

        Hyperbolic Functions
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2056,7 +2056,7 @@

        Hyperbolic Functions
        -class sympy.functions.elementary.hyperbolic.sech(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.sech(arg)[source]#

        sech(x) is the hyperbolic secant of x.

        The hyperbolic secant function is \(\frac{2}{e^x + e^{-x}}\)

        Examples

        @@ -2074,7 +2074,7 @@

        Hyperbolic Functions
        -class sympy.functions.elementary.hyperbolic.csch(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.csch(arg)[source]#

        csch(x) is the hyperbolic cosecant of x.

        The hyperbolic cosecant function is \(\frac{2}{e^x - e^{-x}}\)

        Examples

        @@ -2090,13 +2090,13 @@

        Hyperbolic Functions
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Returns the first derivative of this function

        -static taylor_term(n, x, *previous_terms)[source]#
        +static taylor_term(n, x, *previous_terms)[source]#

        Returns the next term in the Taylor series expansion

        @@ -2107,7 +2107,7 @@

        Hyperbolic FunctionsHyperbolic Inverses#

        -class sympy.functions.elementary.hyperbolic.asinh(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.asinh(arg)[source]#

        asinh(x) is the inverse hyperbolic sine of x.

        The inverse hyperbolic sine function.

        Examples

        @@ -2125,7 +2125,7 @@

        Hyperbolic Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2133,7 +2133,7 @@

        Hyperbolic Inverses
        -class sympy.functions.elementary.hyperbolic.acosh(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.acosh(arg)[source]#

        acosh(x) is the inverse hyperbolic cosine of x.

        The inverse hyperbolic cosine function.

        Examples

        @@ -2151,7 +2151,7 @@

        Hyperbolic Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2159,7 +2159,7 @@

        Hyperbolic Inverses
        -class sympy.functions.elementary.hyperbolic.atanh(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.atanh(arg)[source]#

        atanh(x) is the inverse hyperbolic tangent of x.

        The inverse hyperbolic tangent function.

        Examples

        @@ -2175,7 +2175,7 @@

        Hyperbolic Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2183,7 +2183,7 @@

        Hyperbolic Inverses
        -class sympy.functions.elementary.hyperbolic.acoth(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.acoth(arg)[source]#

        acoth(x) is the inverse hyperbolic cotangent of x.

        The inverse hyperbolic cotangent function.

        Examples

        @@ -2199,7 +2199,7 @@

        Hyperbolic Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2207,7 +2207,7 @@

        Hyperbolic Inverses
        -class sympy.functions.elementary.hyperbolic.asech(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.asech(arg)[source]#

        asech(x) is the inverse hyperbolic secant of x.

        The inverse hyperbolic secant function.

        Examples

        @@ -2248,7 +2248,7 @@

        Hyperbolic Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2256,7 +2256,7 @@

        Hyperbolic Inverses
        -class sympy.functions.elementary.hyperbolic.acsch(arg)[source]#
        +class sympy.functions.elementary.hyperbolic.acsch(arg)[source]#

        acsch(x) is the inverse hyperbolic cosecant of x.

        The inverse hyperbolic cosecant function.

        Examples

        @@ -2297,7 +2297,7 @@

        Hyperbolic Inverses
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2309,7 +2309,7 @@

        Hyperbolic Inverses#

        -class sympy.functions.elementary.integers.ceiling(arg)[source]#
        +class sympy.functions.elementary.integers.ceiling(arg)[source]#

        Ceiling is a univariate function which returns the smallest integer value not less than its argument. This implementation generalizes ceiling to complex numbers by taking the ceiling of the @@ -2349,7 +2349,7 @@

        Integer Functions
        -class sympy.functions.elementary.integers.floor(arg)[source]#
        +class sympy.functions.elementary.integers.floor(arg)[source]#

        Floor is a univariate function which returns the largest integer value not greater than its argument. This implementation generalizes floor to complex numbers by taking the floor of the @@ -2389,13 +2389,13 @@

        Integer Functions
        -class sympy.functions.elementary.integers.RoundFunction(arg)[source]#
        +class sympy.functions.elementary.integers.RoundFunction(arg)[source]#

        Abstract base class for rounding functions.

        -class sympy.functions.elementary.integers.frac(arg)[source]#
        +class sympy.functions.elementary.integers.frac(arg)[source]#

        Represents the fractional part of x

        For real numbers it is defined [R305] as

        @@ -2452,7 +2452,7 @@

        Integer Functions#

        -class sympy.functions.elementary.exponential.exp(arg)[source]#
        +class sympy.functions.elementary.exponential.exp(arg)[source]#

        The exponential function, \(e^x\).

        Parameters:
        @@ -2476,7 +2476,7 @@

        Exponential
        -as_real_imag(deep=True, **hints)[source]#
        +as_real_imag(deep=True, **hints)[source]#

        Returns this function as a 2-tuple representing a complex number.

        Examples

        >>> from sympy import exp, I
        @@ -2505,13 +2505,13 @@ 

        Exponential
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Returns the first derivative of this function.

        -static taylor_term(n, x, *previous_terms)[source]#
        +static taylor_term(n, x, *previous_terms)[source]#

        Calculates the next term in the Taylor series expansion.

        @@ -2519,7 +2519,7 @@

        Exponential
        -class sympy.functions.elementary.exponential.LambertW(x, k=None)[source]#
        +class sympy.functions.elementary.exponential.LambertW(x, k=None)[source]#

        The Lambert W function \(W(z)\) is defined as the inverse function of \(w \exp(w)\) [R307].

        Explanation

        @@ -2552,7 +2552,7 @@

        Exponential
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Return the first derivative of this function.

        @@ -2560,7 +2560,7 @@

        Exponential
        -class sympy.functions.elementary.exponential.log(arg, base=None)[source]#
        +class sympy.functions.elementary.exponential.log(arg, base=None)[source]#

        The natural logarithm function \(\ln(x)\) or \(\log(x)\).

        Explanation

        Logarithms are taken with the natural base, \(e\). To get @@ -2586,13 +2586,13 @@

        Exponential
        -as_base_exp()[source]#
        +as_base_exp()[source]#

        Returns this function in the form (base, exponent).

        -as_real_imag(deep=True, **hints)[source]#
        +as_real_imag(deep=True, **hints)[source]#

        Returns this function as a complex coordinate.

        Examples

        >>> from sympy import I, log
        @@ -2611,19 +2611,19 @@ 

        Exponential
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Returns the first derivative of the function.

        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns \(e^x\), the inverse function of \(\log(x)\).

        -static taylor_term(n, x, *previous_terms)[source]#
        +static taylor_term(n, x, *previous_terms)[source]#

        Returns the next term in the Taylor series expansion of \(\log(1+x)\).

        @@ -2631,7 +2631,7 @@

        Exponential
        -class sympy.functions.elementary.exponential.exp_polar(*args)[source]#
        +class sympy.functions.elementary.exponential.exp_polar(*args)[source]#

        Represent a polar number (see g-function Sphinx documentation).

        Explanation

        exp_polar represents the function @@ -2665,7 +2665,7 @@

        Exponential#

        -class sympy.functions.elementary.piecewise.ExprCondPair(expr, cond)[source]#
        +class sympy.functions.elementary.piecewise.ExprCondPair(expr, cond)[source]#

        Represents an expression, condition pair.

        @@ -2683,7 +2683,7 @@

        Piecewise
        -class sympy.functions.elementary.piecewise.Piecewise(*_args)[source]#
        +class sympy.functions.elementary.piecewise.Piecewise(*_args)[source]#

        Represents a piecewise function.

        Usage:

        @@ -2745,7 +2745,7 @@

        Piecewise
        -_eval_integral(x, _first=True, **kwargs)[source]#
        +_eval_integral(x, _first=True, **kwargs)[source]#

        Return the indefinite integral of the Piecewise such that subsequent substitution of x with a value will give the value of the integral (not including @@ -2770,7 +2770,7 @@

        Piecewise
        -as_expr_set_pairs(domain=None)[source]#
        +as_expr_set_pairs(domain=None)[source]#

        Return tuples for each argument of self that give the expression and the interval in which it is valid which is contained within the given domain. @@ -2797,13 +2797,13 @@

        Piecewise
        -doit(**hints)[source]#
        +doit(**hints)[source]#

        Evaluate this piecewise function.

        -classmethod eval(*_args)[source]#
        +classmethod eval(*_args)[source]#

        Either return a modified version of the args or, if no modifications were made, return None.

        Modifications that are made here:

        @@ -2831,7 +2831,7 @@

        Piecewise
        -piecewise_integrate(x, **kwargs)[source]#
        +piecewise_integrate(x, **kwargs)[source]#

        Return the Piecewise with each expression being replaced with its antiderivative. To obtain a continuous antiderivative, use the integrate() function or method.

        @@ -2869,7 +2869,7 @@

        Piecewise
        -sympy.functions.elementary.piecewise.piecewise_exclusive(expr, *, skip_nan=False, deep=True)[source]#
        +sympy.functions.elementary.piecewise.piecewise_exclusive(expr, *, skip_nan=False, deep=True)[source]#

        Rewrite Piecewise with mutually exclusive conditions.

        Parameters:
        @@ -2930,7 +2930,7 @@

        Piecewise
        -sympy.functions.elementary.piecewise.piecewise_fold(expr, evaluate=True)[source]#
        +sympy.functions.elementary.piecewise.piecewise_fold(expr, evaluate=True)[source]#

        Takes an expression containing a piecewise function and returns the expression in piecewise form. In addition, any ITE conditions are rewritten in negation normal form and simplified.

        @@ -2957,7 +2957,7 @@

        Piecewise#

        -class sympy.functions.elementary.miscellaneous.IdentityFunction[source]#
        +class sympy.functions.elementary.miscellaneous.IdentityFunction[source]#

        The identity function

        Examples

        >>> from sympy import Id, Symbol
        @@ -2970,7 +2970,7 @@ 

        Miscellaneous
        -class sympy.functions.elementary.miscellaneous.Min(*args)[source]#
        +class sympy.functions.elementary.miscellaneous.Min(*args)[source]#

        Return, if possible, the minimum value of the list. It is named Min and not min to avoid conflicts with the built-in function min.

        @@ -3004,7 +3004,7 @@

        Miscellaneous
        -class sympy.functions.elementary.miscellaneous.Max(*args)[source]#
        +class sympy.functions.elementary.miscellaneous.Max(*args)[source]#

        Return, if possible, the maximum value of the list.

        When number of arguments is equal one, then return this argument.

        @@ -3090,7 +3090,7 @@

        Miscellaneous
        -sympy.functions.elementary.miscellaneous.root(arg, n, k=0, evaluate=None)[source]#
        +sympy.functions.elementary.miscellaneous.root(arg, n, k=0, evaluate=None)[source]#

        Returns the k-th n-th root of arg.

        Parameters:
        @@ -3206,7 +3206,7 @@

        Miscellaneous
        -sympy.functions.elementary.miscellaneous.sqrt(arg, evaluate=None)[source]#
        +sympy.functions.elementary.miscellaneous.sqrt(arg, evaluate=None)[source]#

        Returns the principal square root.

        Parameters:
        @@ -3301,7 +3301,7 @@

        Miscellaneous
        -sympy.functions.elementary.miscellaneous.cbrt(arg, evaluate=None)[source]#
        +sympy.functions.elementary.miscellaneous.cbrt(arg, evaluate=None)[source]#

        Returns the principal cube root.

        Parameters:
        @@ -3364,7 +3364,7 @@

        Miscellaneous
        -sympy.functions.elementary.miscellaneous.real_root(arg, n=None, evaluate=None)[source]#
        +sympy.functions.elementary.miscellaneous.real_root(arg, n=None, evaluate=None)[source]#

        Return the real n’th-root of arg if possible.

        Parameters:
        diff --git a/dev/modules/functions/index.html b/dev/modules/functions/index.html index 6b2ae2fe54c..795ccc80d6f 100644 --- a/dev/modules/functions/index.html +++ b/dev/modules/functions/index.html @@ -743,7 +743,7 @@
        Documentation Version
        sympy.core.function.Function.

        -class sympy.core.function.Function(*args)[source]
        +class sympy.core.function.Function(*args)[source]

        Base class for applied mathematical functions.

        It also serves as a constructor for undefined function classes.

        See the Writing Custom Functions guide for details on how to subclass @@ -791,19 +791,19 @@

        Documentation Version
        to create a custom function.

        -as_base_exp()[source]
        +as_base_exp()[source]

        Returns the method as the 2-tuple (base, exponent).

        -fdiff(argindex=1)[source]
        +fdiff(argindex=1)[source]

        Returns the first derivative of the function.

        -classmethod is_singular(a)[source]
        +classmethod is_singular(a)[source]

        Tests whether the argument is an essential singularity or a branch point, or the functions is non-holomorphic.

        diff --git a/dev/modules/functions/special.html b/dev/modules/functions/special.html index 632fb38a88c..12b8c13a976 100644 --- a/dev/modules/functions/special.html +++ b/dev/modules/functions/special.html @@ -743,7 +743,7 @@
        Documentation Version

        Dirac Delta and Related Discontinuous Functions#

        -class sympy.functions.special.delta_functions.DiracDelta(arg, k=0)[source]#
        +class sympy.functions.special.delta_functions.DiracDelta(arg, k=0)[source]#

        The DiracDelta function and its derivatives.

        Explanation

        DiracDelta is not an ordinary function. It can be rigorously defined either @@ -820,7 +820,7 @@

        Dirac Delta and Related Discontinuous Functions
        -classmethod eval(arg, k=0)[source]#
        +classmethod eval(arg, k=0)[source]#

        Returns a simplified form or a value of DiracDelta depending on the argument passed by the DiracDelta object.

        @@ -883,7 +883,7 @@

        Dirac Delta and Related Discontinuous Functions
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Returns the first derivative of a DiracDelta Function.

        Parameters:
        @@ -925,7 +925,7 @@

        Dirac Delta and Related Discontinuous Functions
        -is_simple(x)[source]#
        +is_simple(x)[source]#

        Tells whether the argument(args[0]) of DiracDelta is a linear expression in x.

        @@ -962,7 +962,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.delta_functions.Heaviside(arg, H0=1 / 2)[source]#
        +class sympy.functions.special.delta_functions.Heaviside(arg, H0=1 / 2)[source]#

        Heaviside step function.

        Explanation

        The Heaviside step function has the following properties:

        @@ -1015,7 +1015,7 @@

        Dirac Delta and Related Discontinuous Functions
        -classmethod eval(arg, H0=1 / 2)[source]#
        +classmethod eval(arg, H0=1 / 2)[source]#

        Returns a simplified form or a value of Heaviside depending on the argument passed by the Heaviside object.

        @@ -1071,7 +1071,7 @@

        Dirac Delta and Related Discontinuous Functions
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Returns the first derivative of a Heaviside Function.

        Parameters:
        @@ -1110,7 +1110,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.singularity_functions.SingularityFunction(variable, offset, exponent)[source]#
        +class sympy.functions.special.singularity_functions.SingularityFunction(variable, offset, exponent)[source]#

        Singularity functions are a class of discontinuous functions.

        Explanation

        Singularity functions take a variable, an offset, and an exponent as @@ -1175,7 +1175,7 @@

        Dirac Delta and Related Discontinuous Functions
        -classmethod eval(variable, offset, exponent)[source]#
        +classmethod eval(variable, offset, exponent)[source]#

        Returns a simplified form or a value of Singularity Function depending on the argument passed by the object.

        Explanation

        @@ -1213,7 +1213,7 @@

        Dirac Delta and Related Discontinuous Functions
        -fdiff(argindex=1)[source]#
        +fdiff(argindex=1)[source]#

        Returns the first derivative of a DiracDelta Function.

        Explanation

        The difference between diff() and fdiff() is: diff() is the @@ -1231,7 +1231,7 @@

        Dirac Delta and Related Discontinuous Functions

        Gamma, Beta and Related Functions#

        -class sympy.functions.special.gamma_functions.gamma(arg)[source]#
        +class sympy.functions.special.gamma_functions.gamma(arg)[source]#

        The gamma function

        @@ -1324,7 +1324,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.gamma_functions.loggamma(z)[source]#
        +class sympy.functions.special.gamma_functions.loggamma(z)[source]#

        The loggamma function implements the logarithm of the gamma function (i.e., \(\log\Gamma(x)\)).

        Examples

        @@ -1452,7 +1452,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.gamma_functions.polygamma(n, z)[source]#
        +class sympy.functions.special.gamma_functions.polygamma(n, z)[source]#

        The function polygamma(n, z) returns log(gamma(z)).diff(n + 1).

        Explanation

        It is a meromorphic function on \(\mathbb{C}\) and defined as the \((n+1)\)-th @@ -1581,7 +1581,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.gamma_functions.digamma(z)[source]#
        +class sympy.functions.special.gamma_functions.digamma(z)[source]#

        The digamma function is the first derivative of the loggamma function

        @@ -1645,7 +1645,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.gamma_functions.trigamma(z)[source]#
        +class sympy.functions.special.gamma_functions.trigamma(z)[source]#

        The trigamma function is the second derivative of the loggamma function

        @@ -1708,7 +1708,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.gamma_functions.uppergamma(a, z)[source]#
        +class sympy.functions.special.gamma_functions.uppergamma(a, z)[source]#

        The upper incomplete gamma function.

        Explanation

        It can be defined as the meromorphic continuation of

        @@ -1794,7 +1794,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.gamma_functions.lowergamma(a, x)[source]#
        +class sympy.functions.special.gamma_functions.lowergamma(a, x)[source]#

        The lower incomplete gamma function.

        Explanation

        It can be defined as the meromorphic continuation of

        @@ -1867,7 +1867,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.gamma_functions.multigamma(x, p)[source]#
        +class sympy.functions.special.gamma_functions.multigamma(x, p)[source]#

        The multivariate gamma function is a generalization of the gamma function

        @@ -1927,7 +1927,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.beta_functions.beta(x, y=None)[source]#
        +class sympy.functions.special.beta_functions.beta(x, y=None)[source]#

        The beta integral is called the Eulerian integral of the first kind by Legendre:

        @@ -2035,7 +2035,7 @@

        Dirac Delta and Related Discontinuous Functions

        Error Functions and Fresnel Integrals#

        -class sympy.functions.special.error_functions.erf(arg)[source]#
        +class sympy.functions.special.error_functions.erf(arg)[source]#

        The Gauss error function.

        Explanation

        This function is defined as:

        @@ -2126,7 +2126,7 @@

        Dirac Delta and Related Discontinuous Functions
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2134,7 +2134,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.erfc(arg)[source]#
        +class sympy.functions.special.error_functions.erfc(arg)[source]#

        Complementary Error Function.

        Explanation

        The function is defined as:

        @@ -2225,7 +2225,7 @@

        Dirac Delta and Related Discontinuous Functions
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2233,7 +2233,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.erfi(z)[source]#
        +class sympy.functions.special.error_functions.erfi(z)[source]#

        Imaginary error function.

        Explanation

        The function erfi is defined as:

        @@ -2321,7 +2321,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.erf2(x, y)[source]#
        +class sympy.functions.special.error_functions.erf2(x, y)[source]#

        Two-argument error function.

        Explanation

        This function is defined as:

        @@ -2396,7 +2396,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.erfinv(z)[source]#
        +class sympy.functions.special.error_functions.erfinv(z)[source]#

        Inverse Error Function. The erfinv function is defined as:

        @@ -2456,7 +2456,7 @@

        Dirac Delta and Related Discontinuous Functions
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2464,7 +2464,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.erfcinv(z)[source]#
        +class sympy.functions.special.error_functions.erfcinv(z)[source]#

        Inverse Complementary Error Function. The erfcinv function is defined as:

        @@ -2518,7 +2518,7 @@

        Dirac Delta and Related Discontinuous Functions
        -inverse(argindex=1)[source]#
        +inverse(argindex=1)[source]#

        Returns the inverse of this function.

        @@ -2526,7 +2526,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.erf2inv(x, y)[source]#
        +class sympy.functions.special.error_functions.erf2inv(x, y)[source]#

        Two-argument Inverse error function. The erf2inv function is defined as:

        @@ -2586,13 +2586,13 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.FresnelIntegral(z)[source]#
        +class sympy.functions.special.error_functions.FresnelIntegral(z)[source]#

        Base class for the Fresnel integrals.

        -class sympy.functions.special.error_functions.fresnels(z)[source]#
        +class sympy.functions.special.error_functions.fresnels(z)[source]#

        Fresnel integral S.

        Explanation

        This function is defined by

        @@ -2692,7 +2692,7 @@

        Dirac Delta and Related Discontinuous Functions
        -class sympy.functions.special.error_functions.fresnelc(z)[source]#
        +class sympy.functions.special.error_functions.fresnelc(z)[source]#

        Fresnel integral C.

        Explanation

        This function is defined by

        @@ -2795,7 +2795,7 @@

        Dirac Delta and Related Discontinuous Functions#

        -class sympy.functions.special.error_functions.Ei(z)[source]#
        +class sympy.functions.special.error_functions.Ei(z)[source]#

        The classical exponential integral.

        Explanation

        For use in SymPy, this function is defined as

        @@ -2896,7 +2896,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.error_functions.expint(nu, z)[source]#
        +class sympy.functions.special.error_functions.expint(nu, z)[source]#

        Generalized exponential integral.

        Explanation

        This function is defined as

        @@ -3012,7 +3012,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -sympy.functions.special.error_functions.E1(z)[source]#
        +sympy.functions.special.error_functions.E1(z)[source]#

        Classical case of the generalized exponential integral.

        Explanation

        This is equivalent to expint(1, z).

        @@ -3051,7 +3051,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.error_functions.li(z)[source]#
        +class sympy.functions.special.error_functions.li(z)[source]#

        The classical logarithmic integral.

        Explanation

        For use in SymPy, this function is defined as

        @@ -3168,7 +3168,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.error_functions.Li(z)[source]#
        +class sympy.functions.special.error_functions.Li(z)[source]#

        The offset logarithmic integral.

        Explanation

        For use in SymPy, this function is defined as

        @@ -3248,7 +3248,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.error_functions.Si(z)[source]#
        +class sympy.functions.special.error_functions.Si(z)[source]#

        Sine integral.

        Explanation

        This function is defined by

        @@ -3328,7 +3328,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.error_functions.Ci(z)[source]#
        +class sympy.functions.special.error_functions.Ci(z)[source]#

        Cosine integral.

        Explanation

        This function is defined for positive \(x\) by

        @@ -3415,7 +3415,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.error_functions.Shi(z)[source]#
        +class sympy.functions.special.error_functions.Shi(z)[source]#

        Sinh integral.

        Explanation

        This function is defined by

        @@ -3487,7 +3487,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.error_functions.Chi(z)[source]#
        +class sympy.functions.special.error_functions.Chi(z)[source]#

        Cosh integral.

        Explanation

        This function is defined for positive \(x\) by

        @@ -3573,7 +3573,7 @@

        Exponential, Logarithmic and Trigonometric Integrals

        Bessel Type Functions#

        -class sympy.functions.special.bessel.BesselBase(nu, z)[source]#
        +class sympy.functions.special.bessel.BesselBase(nu, z)[source]#

        Abstract base class for Bessel-type functions.

        This class is meant to reduce code duplication. All Bessel-type functions can 1) be differentiated, with the derivatives @@ -3598,7 +3598,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.besselj(nu, z)[source]#
        +class sympy.functions.special.bessel.besselj(nu, z)[source]#

        Bessel function of the first kind.

        Explanation

        The Bessel \(J\) function of order \(\nu\) is defined to be the function @@ -3673,7 +3673,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.bessely(nu, z)[source]#
        +class sympy.functions.special.bessel.bessely(nu, z)[source]#

        Bessel function of the second kind.

        Explanation

        The Bessel \(Y\) function of order \(\nu\) is defined as

        @@ -3710,7 +3710,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.besseli(nu, z)[source]#
        +class sympy.functions.special.bessel.besseli(nu, z)[source]#

        Modified Bessel function of the first kind.

        Explanation

        The Bessel \(I\) function is a solution to the modified Bessel equation

        @@ -3747,7 +3747,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.besselk(nu, z)[source]#
        +class sympy.functions.special.bessel.besselk(nu, z)[source]#

        Modified Bessel function of the second kind.

        Explanation

        The Bessel \(K\) function of order \(\nu\) is defined as

        @@ -3781,7 +3781,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.hankel1(nu, z)[source]#
        +class sympy.functions.special.bessel.hankel1(nu, z)[source]#

        Hankel function of the first kind.

        Explanation

        This function is defined as

        @@ -3814,7 +3814,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.hankel2(nu, z)[source]#
        +class sympy.functions.special.bessel.hankel2(nu, z)[source]#

        Hankel function of the second kind.

        Explanation

        This function is defined as

        @@ -3848,7 +3848,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.jn(nu, z)[source]#
        +class sympy.functions.special.bessel.jn(nu, z)[source]#

        Spherical Bessel function of the first kind.

        Explanation

        This function is a solution to the spherical Bessel equation

        @@ -3904,7 +3904,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.yn(nu, z)[source]#
        +class sympy.functions.special.bessel.yn(nu, z)[source]#

        Spherical Bessel function of the second kind.

        Explanation

        This function is another solution to the spherical Bessel equation, and @@ -3950,7 +3950,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -sympy.functions.special.bessel.jn_zeros(n, k, method='sympy', dps=15)[source]#
        +sympy.functions.special.bessel.jn_zeros(n, k, method='sympy', dps=15)[source]#

        Zeros of the spherical Bessel function of the first kind.

        Parameters:
        @@ -3993,7 +3993,7 @@

        Exponential, Logarithmic and Trigonometric Integrals
        -class sympy.functions.special.bessel.marcumq(m, a, b)[source]#
        +class sympy.functions.special.bessel.marcumq(m, a, b)[source]#

        The Marcum Q-function.

        Explanation

        The Marcum Q-function is defined by the meromorphic continuation of

        @@ -4047,14 +4047,14 @@

        Exponential, Logarithmic and Trigonometric IntegralsAiry Functions#

        -class sympy.functions.special.bessel.AiryBase(*args)[source]#
        +class sympy.functions.special.bessel.AiryBase(*args)[source]#

        Abstract base class for Airy functions.

        This class is meant to reduce code duplication.

        -class sympy.functions.special.bessel.airyai(arg)[source]#
        +class sympy.functions.special.bessel.airyai(arg)[source]#

        The Airy function \(\operatorname{Ai}\) of the first kind.

        Explanation

        The Airy function \(\operatorname{Ai}(z)\) is defined to be the function @@ -4155,7 +4155,7 @@

        Airy Functions
        -class sympy.functions.special.bessel.airybi(arg)[source]#
        +class sympy.functions.special.bessel.airybi(arg)[source]#

        The Airy function \(\operatorname{Bi}\) of the second kind.

        Explanation

        The Airy function \(\operatorname{Bi}(z)\) is defined to be the function @@ -4258,7 +4258,7 @@

        Airy Functions
        -class sympy.functions.special.bessel.airyaiprime(arg)[source]#
        +class sympy.functions.special.bessel.airyaiprime(arg)[source]#

        The derivative \(\operatorname{Ai}^\prime\) of the Airy function of the first kind.

        Explanation

        @@ -4352,7 +4352,7 @@

        Airy Functions
        -class sympy.functions.special.bessel.airybiprime(arg)[source]#
        +class sympy.functions.special.bessel.airybiprime(arg)[source]#

        The derivative \(\operatorname{Bi}^\prime\) of the Airy function of the first kind.

        Explanation

        @@ -4531,7 +4531,7 @@

        B-Splines
        -sympy.functions.special.bsplines.bspline_basis_set(d, knots, x)[source]#
        +sympy.functions.special.bsplines.bspline_basis_set(d, knots, x)[source]#

        Return the len(knots)-d-1 B-splines at x of degree d with knots.

        @@ -4577,7 +4577,7 @@

        B-Splines
        -sympy.functions.special.bsplines.interpolating_spline(d, x, X, Y)[source]#
        +sympy.functions.special.bsplines.interpolating_spline(d, x, X, Y)[source]#

        Return spline of degree d, passing through the given X and Y values.

        @@ -4625,7 +4625,7 @@

        B-Splines

        Riemann Zeta and Related Functions#

        -class sympy.functions.special.zeta_functions.zeta(s, a=None)[source]#
        +class sympy.functions.special.zeta_functions.zeta(s, a=None)[source]#

        Hurwitz zeta function (or Riemann zeta function).

        Explanation

        For \(\operatorname{Re}(a) > 0\) and \(\operatorname{Re}(s) > 1\), this @@ -4737,7 +4737,7 @@

        B-Splines
        -class sympy.functions.special.zeta_functions.dirichlet_eta(s, a=None)[source]#
        +class sympy.functions.special.zeta_functions.dirichlet_eta(s, a=None)[source]#

        Dirichlet eta function.

        Explanation

        For \(\operatorname{Re}(s) > 0\) and \(0 < x \le 1\), this function is defined as

        @@ -4786,7 +4786,7 @@

        B-Splines
        -class sympy.functions.special.zeta_functions.polylog(s, z)[source]#
        +class sympy.functions.special.zeta_functions.polylog(s, z)[source]#

        Polylogarithm function.

        Explanation

        For \(|z| < 1\) and \(s \in \mathbb{C}\), the polylogarithm is @@ -4853,7 +4853,7 @@

        B-Splines
        -class sympy.functions.special.zeta_functions.lerchphi(*args)[source]#
        +class sympy.functions.special.zeta_functions.lerchphi(*args)[source]#

        Lerch transcendent (Lerch phi function).

        Explanation

        For \(\operatorname{Re}(a) > 0\), \(|z| < 1\) and \(s \in \mathbb{C}\), the @@ -4962,7 +4962,7 @@

        B-Splines
        -class sympy.functions.special.zeta_functions.stieltjes(n, a=None)[source]#
        +class sympy.functions.special.zeta_functions.stieltjes(n, a=None)[source]#

        Represents Stieltjes constants, \(\gamma_{k}\) that occur in Laurent Series expansion of the Riemann zeta function.

        Examples

        @@ -5003,7 +5003,7 @@

        B-Splines#

        -class sympy.functions.special.hyper.hyper(ap, bq, z)[source]#
        +class sympy.functions.special.hyper.hyper(ap, bq, z)[source]#

        The generalized hypergeometric function is defined by a series where the ratios of successive terms are a rational function of the summation index. When convergent, it is continued analytically to the largest @@ -5167,7 +5167,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.hyper.meijerg(*args)[source]#
        +class sympy.functions.special.hyper.meijerg(*args)[source]#

        The Meijer G-function is defined by a Mellin-Barnes type integral that resembles an inverse Mellin transform. It generalizes the hypergeometric functions.

        @@ -5338,7 +5338,7 @@

        Hypergeometric Functions
        -get_period()[source]#
        +get_period()[source]#

        Return a number \(P\) such that \(G(x*exp(I*P)) == G(x)\).

        Examples

        >>> from sympy import meijerg, pi, S
        @@ -5359,7 +5359,7 @@ 

        Hypergeometric Functions
        -integrand(s)[source]#
        +integrand(s)[source]#

        Get the defining integrand D(s).

        @@ -5380,7 +5380,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.hyper.appellf1(a, b1, b2, c, x, y)[source]#
        +class sympy.functions.special.hyper.appellf1(a, b1, b2, c, x, y)[source]#

        This is the Appell hypergeometric function of two variables as:

        @@ -5423,7 +5423,7 @@

        Hypergeometric Functions

        Elliptic integrals#

        -class sympy.functions.special.elliptic_integrals.elliptic_k(m)[source]#
        +class sympy.functions.special.elliptic_integrals.elliptic_k(m)[source]#

        The complete elliptic integral of the first kind, defined by

        @@ -5468,7 +5468,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.elliptic_integrals.elliptic_f(z, m)[source]#
        +class sympy.functions.special.elliptic_integrals.elliptic_f(z, m)[source]#

        The Legendre incomplete elliptic integral of the first kind, defined by

        @@ -5511,7 +5511,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.elliptic_integrals.elliptic_e(m, z=None)[source]#
        +class sympy.functions.special.elliptic_integrals.elliptic_e(m, z=None)[source]#

        Called with two arguments \(z\) and \(m\), evaluates the incomplete elliptic integral of the second kind, defined by

        @@ -5565,7 +5565,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.elliptic_integrals.elliptic_pi(n, m, z=None)[source]#
        +class sympy.functions.special.elliptic_integrals.elliptic_pi(n, m, z=None)[source]#

        Called with three arguments \(n\), \(z\) and \(m\), evaluates the Legendre incomplete elliptic integral of the third kind, defined by

        @@ -5620,14 +5620,14 @@

        Hypergeometric Functions

        Mathieu Functions#

        -class sympy.functions.special.mathieu_functions.MathieuBase(*args)[source]#
        +class sympy.functions.special.mathieu_functions.MathieuBase(*args)[source]#

        Abstract base class for Mathieu functions.

        This class is meant to reduce code duplication.

        -class sympy.functions.special.mathieu_functions.mathieus(a, q, z)[source]#
        +class sympy.functions.special.mathieu_functions.mathieus(a, q, z)[source]#

        The Mathieu Sine function \(S(a,q,z)\).

        Explanation

        This function is one solution of the Mathieu differential equation:

        @@ -5687,7 +5687,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.mathieu_functions.mathieuc(a, q, z)[source]#
        +class sympy.functions.special.mathieu_functions.mathieuc(a, q, z)[source]#

        The Mathieu Cosine function \(C(a,q,z)\).

        Explanation

        This function is one solution of the Mathieu differential equation:

        @@ -5747,7 +5747,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.mathieu_functions.mathieusprime(a, q, z)[source]#
        +class sympy.functions.special.mathieu_functions.mathieusprime(a, q, z)[source]#

        The derivative \(S^{\prime}(a,q,z)\) of the Mathieu Sine function.

        Explanation

        This function is one solution of the Mathieu differential equation:

        @@ -5807,7 +5807,7 @@

        Hypergeometric Functions
        -class sympy.functions.special.mathieu_functions.mathieucprime(a, q, z)[source]#
        +class sympy.functions.special.mathieu_functions.mathieucprime(a, q, z)[source]#

        The derivative \(C^{\prime}(a,q,z)\) of the Mathieu Cosine function.

        Explanation

        This function is one solution of the Mathieu differential equation:

        @@ -5875,7 +5875,7 @@

        Hypergeometric Functions#

        -class sympy.functions.special.polynomials.jacobi(n, a, b, x)[source]#
        +class sympy.functions.special.polynomials.jacobi(n, a, b, x)[source]#

        Jacobi polynomial \(P_n^{\left(\alpha, \beta\right)}(x)\).

        Explanation

        jacobi(n, alpha, beta, x) gives the \(n\)th Jacobi polynomial @@ -5957,7 +5957,7 @@

        Jacobi Polynomials
        -sympy.functions.special.polynomials.jacobi_normalized(n, a, b, x)[source]#
        +sympy.functions.special.polynomials.jacobi_normalized(n, a, b, x)[source]#

        Jacobi polynomial \(P_n^{\left(\alpha, \beta\right)}(x)\).

        Parameters:
        @@ -6016,7 +6016,7 @@

        Jacobi Polynomials#

        -class sympy.functions.special.polynomials.gegenbauer(n, a, x)[source]#
        +class sympy.functions.special.polynomials.gegenbauer(n, a, x)[source]#

        Gegenbauer polynomial \(C_n^{\left(\alpha\right)}(x)\).

        Explanation

        gegenbauer(n, alpha, x) gives the \(n\)th Gegenbauer polynomial @@ -6082,7 +6082,7 @@

        Gegenbauer PolynomialsChebyshev Polynomials#

        -class sympy.functions.special.polynomials.chebyshevt(n, x)[source]#
        +class sympy.functions.special.polynomials.chebyshevt(n, x)[source]#

        Chebyshev polynomial of the first kind, \(T_n(x)\).

        Explanation

        chebyshevt(n, x) gives the \(n\)th Chebyshev polynomial (of the first @@ -6149,7 +6149,7 @@

        Chebyshev Polynomials
        -class sympy.functions.special.polynomials.chebyshevu(n, x)[source]#
        +class sympy.functions.special.polynomials.chebyshevu(n, x)[source]#

        Chebyshev polynomial of the second kind, \(U_n(x)\).

        Explanation

        chebyshevu(n, x) gives the \(n\)th Chebyshev polynomial of the second @@ -6216,7 +6216,7 @@

        Chebyshev Polynomials
        -class sympy.functions.special.polynomials.chebyshevt_root(n, k)[source]#
        +class sympy.functions.special.polynomials.chebyshevt_root(n, k)[source]#

        chebyshev_root(n, k) returns the \(k\)th root (indexed from zero) of the \(n\)th Chebyshev polynomial of the first kind; that is, if \(0 \le k < n\), chebyshevt(n, chebyshevt_root(n, k)) == 0.

        @@ -6236,7 +6236,7 @@

        Chebyshev Polynomials
        -class sympy.functions.special.polynomials.chebyshevu_root(n, k)[source]#
        +class sympy.functions.special.polynomials.chebyshevu_root(n, k)[source]#

        chebyshevu_root(n, k) returns the \(k\)th root (indexed from zero) of the \(n\)th Chebyshev polynomial of the second kind; that is, if \(0 \le k < n\), chebyshevu(n, chebyshevu_root(n, k)) == 0.

        @@ -6259,7 +6259,7 @@

        Chebyshev PolynomialsLegendre Polynomials#

        -class sympy.functions.special.polynomials.legendre(n, x)[source]#
        +class sympy.functions.special.polynomials.legendre(n, x)[source]#

        legendre(n, x) gives the \(n\)th Legendre polynomial of \(x\), \(P_n(x)\)

        Explanation

        The Legendre polynomials are orthogonal on \([-1, 1]\) with respect to @@ -6307,7 +6307,7 @@

        Legendre Polynomials
        -class sympy.functions.special.polynomials.assoc_legendre(n, m, x)[source]#
        +class sympy.functions.special.polynomials.assoc_legendre(n, m, x)[source]#

        assoc_legendre(n, m, x) gives \(P_n^m(x)\), where \(n\) and \(m\) are the degree and order or an expression which is related to the nth order Legendre polynomial, \(P_n(x)\) in the following manner:

        @@ -6365,7 +6365,7 @@

        Legendre PolynomialsHermite Polynomials#

        -class sympy.functions.special.polynomials.hermite(n, x)[source]#
        +class sympy.functions.special.polynomials.hermite(n, x)[source]#

        hermite(n, x) gives the \(n\)th Hermite polynomial in \(x\), \(H_n(x)\).

        Explanation

        The Hermite polynomials are orthogonal on \((-\infty, \infty)\) @@ -6410,7 +6410,7 @@

        Hermite Polynomials
        -class sympy.functions.special.polynomials.hermite_prob(n, x)[source]#
        +class sympy.functions.special.polynomials.hermite_prob(n, x)[source]#

        hermite_prob(n, x) gives the \(n\)th probabilist’s Hermite polynomial in \(x\), \(He_n(x)\).

        Explanation

        @@ -6462,7 +6462,7 @@

        Hermite Polynomials#

        -class sympy.functions.special.polynomials.laguerre(n, x)[source]#
        +class sympy.functions.special.polynomials.laguerre(n, x)[source]#

        Returns the \(n\)th Laguerre polynomial in \(x\), \(L_n(x)\).

        Parameters:
        @@ -6520,7 +6520,7 @@

        Laguerre Polynomials
        -class sympy.functions.special.polynomials.assoc_laguerre(n, alpha, x)[source]#
        +class sympy.functions.special.polynomials.assoc_laguerre(n, alpha, x)[source]#

        Returns the \(n\)th generalized Laguerre polynomial in \(x\), \(L_n(x)\).

        Parameters:
        @@ -6600,7 +6600,7 @@

        Laguerre PolynomialsSpherical Harmonics#

        -class sympy.functions.special.spherical_harmonics.Ynm(n, m, theta, phi)[source]#
        +class sympy.functions.special.spherical_harmonics.Ynm(n, m, theta, phi)[source]#

        Spherical harmonics defined as

        @@ -6743,7 +6743,7 @@

        Spherical Harmonics
        -sympy.functions.special.spherical_harmonics.Ynm_c(n, m, theta, phi)[source]#
        +sympy.functions.special.spherical_harmonics.Ynm_c(n, m, theta, phi)[source]#

        Conjugate spherical harmonics defined as

        @@ -6791,7 +6791,7 @@

        Spherical Harmonics
        -class sympy.functions.special.spherical_harmonics.Znm(n, m, theta, phi)[source]#
        +class sympy.functions.special.spherical_harmonics.Znm(n, m, theta, phi)[source]#

        Real spherical harmonics defined as

        @@ -6857,7 +6857,7 @@

        Spherical Harmonics#

        -sympy.functions.special.tensor_functions.Eijk(*args, **kwargs)[source]#
        +sympy.functions.special.tensor_functions.Eijk(*args, **kwargs)[source]#

        Represent the Levi-Civita symbol.

        This is a compatibility wrapper to LeviCivita().

        @@ -6868,13 +6868,13 @@

        Tensor Functions
        -sympy.functions.special.tensor_functions.eval_levicivita(*args)[source]#
        +sympy.functions.special.tensor_functions.eval_levicivita(*args)[source]#

        Evaluate Levi-Civita symbol.

        -class sympy.functions.special.tensor_functions.LeviCivita(*args)[source]#
        +class sympy.functions.special.tensor_functions.LeviCivita(*args)[source]#

        Represent the Levi-Civita symbol.

        Explanation

        For even permutations of indices it returns 1, for odd permutations -1, and @@ -6903,7 +6903,7 @@

        Tensor Functions
        -class sympy.functions.special.tensor_functions.KroneckerDelta(i, j, delta_range=None)[source]#
        +class sympy.functions.special.tensor_functions.KroneckerDelta(i, j, delta_range=None)[source]#

        The discrete, or Kronecker, delta function.

        Parameters:
        @@ -6954,7 +6954,7 @@

        Tensor Functions
        -classmethod eval(i, j, delta_range=None)[source]#
        +classmethod eval(i, j, delta_range=None)[source]#

        Evaluates the discrete delta function.

        Examples

        >>> from sympy import KroneckerDelta
        diff --git a/dev/modules/geometry/curves.html b/dev/modules/geometry/curves.html
        index 1176d5385e1..59cc69ede52 100644
        --- a/dev/modules/geometry/curves.html
        +++ b/dev/modules/geometry/curves.html
        @@ -741,7 +741,7 @@ 
        Documentation Version

        Curves#

        -class sympy.geometry.curve.Curve(function, limits)[source]#
        +class sympy.geometry.curve.Curve(function, limits)[source]#

        A curve in space.

        A curve is defined by parametric functions for the coordinates, a parameter and the lower and upper bounds for the parameter value.

        @@ -823,7 +823,7 @@
        Documentation Version
        -arbitrary_point(parameter='t')[source]#
        +arbitrary_point(parameter='t')[source]#

        A parameterized point on the curve.

        Parameters:
        @@ -984,7 +984,7 @@
        Documentation Version
        -plot_interval(parameter='t')[source]#
        +plot_interval(parameter='t')[source]#

        The plot interval for the default geometric plot of the curve.

        Parameters:
        @@ -1024,7 +1024,7 @@
        Documentation Version
        -rotate(angle=0, pt=None)[source]#
        +rotate(angle=0, pt=None)[source]#

        This function is used to rotate a curve along given point pt at given angle(in radian).

        Parameters:
        @@ -1057,7 +1057,7 @@
        Documentation Version
        -scale(x=1, y=1, pt=None)[source]#
        +scale(x=1, y=1, pt=None)[source]#

        Override GeometryEntity.scale since Curve is not made up of Points.

        Returns:
        @@ -1078,7 +1078,7 @@
        Documentation Version
        -translate(x=0, y=0)[source]#
        +translate(x=0, y=0)[source]#

        Translate the Curve by (x, y).

        Returns:
        diff --git a/dev/modules/geometry/ellipses.html b/dev/modules/geometry/ellipses.html index 7a4c9bd744d..0bf55eb3df2 100644 --- a/dev/modules/geometry/ellipses.html +++ b/dev/modules/geometry/ellipses.html @@ -741,7 +741,7 @@
        Documentation Version

        Ellipses#

        -class sympy.geometry.ellipse.Ellipse(center=None, hradius=None, vradius=None, eccentricity=None, **kwargs)[source]#
        +class sympy.geometry.ellipse.Ellipse(center=None, hradius=None, vradius=None, eccentricity=None, **kwargs)[source]#

        An elliptical GeometryEntity.

        Parameters:
        @@ -857,7 +857,7 @@
        Documentation Version
        -arbitrary_point(parameter='t')[source]#
        +arbitrary_point(parameter='t')[source]#

        A parameterized point on the ellipse.

        Parameters:
        @@ -910,7 +910,7 @@
        Documentation Version
        -auxiliary_circle()[source]#
        +auxiliary_circle()[source]#

        Returns a Circle whose diameter is the major axis of the ellipse.

        Examples

        >>> from sympy import Ellipse, Point, symbols
        @@ -970,7 +970,7 @@ 
        Documentation Version
        -director_circle()[source]#
        +director_circle()[source]#

        Returns a Circle consisting of all points where two perpendicular tangent lines to the ellipse cross each other.

        @@ -1021,7 +1021,7 @@
        Documentation Version
        -encloses_point(p)[source]#
        +encloses_point(p)[source]#

        Return True if p is enclosed by (is inside of) self.

        Parameters:
        @@ -1053,7 +1053,7 @@
        Documentation Version
        -equation(x='x', y='y', _slope=None)[source]#
        +equation(x='x', y='y', _slope=None)[source]#

        Returns the equation of an ellipse aligned with the x and y axes; when slope is given, the equation returned corresponds to an ellipse with a major axis having that slope.

        @@ -1120,7 +1120,7 @@
        Documentation Version
        -evolute(x='x', y='y')[source]#
        +evolute(x='x', y='y')[source]#

        The equation of evolute of the ellipse.

        Parameters:
        @@ -1227,7 +1227,7 @@
        Documentation Version
        -intersection(o)[source]#
        +intersection(o)[source]#

        The intersection of this ellipse and another geometrical entity \(o\).

        @@ -1275,7 +1275,7 @@
        Documentation Version
        -is_tangent(o)[source]#
        +is_tangent(o)[source]#

        Is \(o\) tangent to the ellipse?

        Parameters:
        @@ -1388,7 +1388,7 @@
        Documentation Version
        -normal_lines(p, prec=None)[source]#
        +normal_lines(p, prec=None)[source]#

        Normal lines between \(p\) and the ellipse.

        Parameters:
        @@ -1450,7 +1450,7 @@
        Documentation Version
        -plot_interval(parameter='t')[source]#
        +plot_interval(parameter='t')[source]#

        The plot interval for the default geometric plot of the Ellipse.

        Parameters:
        @@ -1477,7 +1477,7 @@
        Documentation Version
        -polar_second_moment_of_area()[source]#
        +polar_second_moment_of_area()[source]#

        Returns the polar second moment of area of an Ellipse

        It is a constituent of the second moment of area, linked through the perpendicular axis theorem. While the planar second moment of @@ -1509,7 +1509,7 @@

        Documentation Version
        -random_point(seed=None)[source]#
        +random_point(seed=None)[source]#

        A random point on the ellipse.

        Returns:
        @@ -1554,7 +1554,7 @@
        Documentation Version
        -reflect(line)[source]#
        +reflect(line)[source]#

        Override GeometryEntity.reflect since the radius is not a GeometryEntity.

        Examples

        @@ -1579,7 +1579,7 @@
        Documentation Version
        -rotate(angle=0, pt=None)[source]#
        +rotate(angle=0, pt=None)[source]#

        Rotate angle radians counterclockwise about Point pt.

        Note: since the general ellipse is not supported, only rotations that are integer multiples of pi/2 are allowed.

        @@ -1595,7 +1595,7 @@
        Documentation Version
        -scale(x=1, y=1, pt=None)[source]#
        +scale(x=1, y=1, pt=None)[source]#

        Override GeometryEntity.scale since it is the major and minor axes which must be scaled and they are not GeometryEntities.

        Examples

        @@ -1610,7 +1610,7 @@
        Documentation Version
        -second_moment_of_area(point=None)[source]#
        +second_moment_of_area(point=None)[source]#

        Returns the second moment and product moment area of an ellipse.

        Parameters:
        @@ -1648,7 +1648,7 @@
        Documentation Version
        -section_modulus(point=None)[source]#
        +section_modulus(point=None)[source]#

        Returns a tuple with the section modulus of an ellipse

        Section modulus is a geometric property of an ellipse defined as the ratio of second moment of area to the distance of the extreme end of @@ -1737,7 +1737,7 @@

        Documentation Version
        -tangent_lines(p)[source]#
        +tangent_lines(p)[source]#

        Tangent lines between \(p\) and the ellipse.

        If \(p\) is on the ellipse, returns the tangent line through point \(p\). Otherwise, returns the tangent line(s) from \(p\) to the ellipse, or @@ -1796,7 +1796,7 @@

        Documentation Version
        -class sympy.geometry.ellipse.Circle(*args, **kwargs)[source]#
        +class sympy.geometry.ellipse.Circle(*args, **kwargs)[source]#

        A circle in space.

        Constructed simply from a center and a radius, from three non-collinear points, or the equation of a circle.

        @@ -1884,7 +1884,7 @@
        Documentation Version
        -equation(x='x', y='y')[source]#
        +equation(x='x', y='y')[source]#

        The equation of the circle.

        Parameters:
        @@ -1912,7 +1912,7 @@
        Documentation Version
        -intersection(o)[source]#
        +intersection(o)[source]#

        The intersection of this circle with another geometrical entity.

        Parameters:
        @@ -1963,7 +1963,7 @@
        Documentation Version
        -reflect(line)[source]#
        +reflect(line)[source]#

        Override GeometryEntity.reflect since the radius is not a GeometryEntity.

        Examples

        @@ -1976,7 +1976,7 @@
        Documentation Version
        -scale(x=1, y=1, pt=None)[source]#
        +scale(x=1, y=1, pt=None)[source]#

        Override GeometryEntity.scale since the radius is not a GeometryEntity.

        Examples

        diff --git a/dev/modules/geometry/entities.html b/dev/modules/geometry/entities.html index 69d960c52fa..d74effb0f0e 100644 --- a/dev/modules/geometry/entities.html +++ b/dev/modules/geometry/entities.html @@ -741,7 +741,7 @@
        Documentation Version

        Entities#

        -class sympy.geometry.entity.GeometryEntity(*args, **kwargs)[source]#
        +class sympy.geometry.entity.GeometryEntity(*args, **kwargs)[source]#

        The base class for all geometrical entities.

        This class does not represent any particular geometric entity, it only provides the implementation of some methods common to all subclasses.

        @@ -760,7 +760,7 @@
        Documentation Version
        -encloses(o)[source]#
        +encloses(o)[source]#

        Return True if o is inside (not on or outside) the boundaries of self.

        The object will be decomposed into Points and individual Entities need only define an encloses_point method for their class.

        @@ -782,7 +782,7 @@
        Documentation Version
        -intersection(o)[source]#
        +intersection(o)[source]#

        Returns a list of all of the intersections of self with o.

        Notes

        An entity is not required to implement this method.

        @@ -797,7 +797,7 @@
        Documentation Version
        -is_similar(other)[source]#
        +is_similar(other)[source]#

        Is this geometrical entity similar to another geometrical entity?

        Two entities are similar if a uniform scaling (enlarging or shrinking) of one of the entities will allow one to obtain the other.

        @@ -815,7 +815,7 @@
        Documentation Version
        -parameter_value(other, t)[source]#
        +parameter_value(other, t)[source]#

        Return the parameter corresponding to the given point. Evaluating an arbitrary point of the entity at this parameter value will return the given point.

        @@ -834,7 +834,7 @@
        Documentation Version
        -reflect(line)[source]#
        +reflect(line)[source]#

        Reflects an object across a line.

        Parameters:
        @@ -862,7 +862,7 @@
        Documentation Version
        -rotate(angle, pt=None)[source]#
        +rotate(angle, pt=None)[source]#

        Rotate angle radians counterclockwise about Point pt.

        The default pt is the origin, Point(0, 0)

        Examples

        @@ -882,7 +882,7 @@
        Documentation Version
        -scale(x=1, y=1, pt=None)[source]#
        +scale(x=1, y=1, pt=None)[source]#

        Scale the object by multiplying the x,y-coordinates by x and y.

        If pt is given, the scaling is done relative to that point; the object is shifted by -pt, scaled, and shifted by pt.

        @@ -905,7 +905,7 @@
        Documentation Version
        -translate(x=0, y=0)[source]#
        +translate(x=0, y=0)[source]#

        Shift the object by adding to the x,y-coordinates the values x and y.

        Examples

        >>> from sympy import RegularPolygon, Point, Polygon
        diff --git a/dev/modules/geometry/lines.html b/dev/modules/geometry/lines.html
        index 52d38d03a68..7951562ceb1 100644
        --- a/dev/modules/geometry/lines.html
        +++ b/dev/modules/geometry/lines.html
        @@ -741,7 +741,7 @@ 
        Documentation Version

        Lines#

        -class sympy.geometry.line.LinearEntity(p1, p2=None, **kwargs)[source]#
        +class sympy.geometry.line.LinearEntity(p1, p2=None, **kwargs)[source]#

        A base class for all linear entities (Line, Ray and Segment) in n-dimensional Euclidean space.

        Notes

        @@ -807,7 +807,7 @@
        Documentation Version
        -angle_between(l2)[source]#
        +angle_between(l2)[source]#

        Return the non-reflex angle formed by rays emanating from the origin with directions the same as the direction vectors of the linear entities.

        @@ -862,7 +862,7 @@
        Documentation Version
        -arbitrary_point(parameter='t')[source]#
        +arbitrary_point(parameter='t')[source]#

        A parameterized point on the Line.

        Parameters:
        @@ -905,7 +905,7 @@
        Documentation Version
        -static are_concurrent(*lines)[source]#
        +static are_concurrent(*lines)[source]#

        Is a sequence of linear entities concurrent?

        Two or more linear entities are concurrent if they all intersect at a single point.

        @@ -950,7 +950,7 @@
        Documentation Version
        -bisectors(other)[source]#
        +bisectors(other)[source]#

        Returns the perpendicular lines which pass through the intersections of self and other that are in the same plane.

        @@ -973,7 +973,7 @@
        Documentation Version
        -contains(other)[source]#
        +contains(other)[source]#

        Subclasses should implement this method and should return True if other is on the boundaries of self; False if not on the boundaries of self; @@ -1014,7 +1014,7 @@

        Documentation Version
        -intersection(other)[source]#
        +intersection(other)[source]#

        The intersection with another geometrical entity.

        Parameters:
        @@ -1061,7 +1061,7 @@
        Documentation Version
        -is_parallel(l2)[source]#
        +is_parallel(l2)[source]#

        Are two linear entities parallel?

        Parameters:
        @@ -1104,7 +1104,7 @@
        Documentation Version
        -is_perpendicular(l2)[source]#
        +is_perpendicular(l2)[source]#

        Are two linear entities perpendicular?

        Parameters:
        @@ -1145,7 +1145,7 @@
        Documentation Version
        -is_similar(other)[source]#
        +is_similar(other)[source]#

        Return True if self and other are contained in the same line.

        Examples

        >>> from sympy import Point, Line
        @@ -1210,7 +1210,7 @@ 
        Documentation Version
        -parallel_line(p)[source]#
        +parallel_line(p)[source]#

        Create a new Line parallel to this linear entity which passes through the point \(p\).

        @@ -1248,7 +1248,7 @@
        Documentation Version
        -perpendicular_line(p)[source]#
        +perpendicular_line(p)[source]#

        Create a new Line perpendicular to this linear entity which passes through the point \(p\).

        @@ -1284,7 +1284,7 @@
        Documentation Version
        -perpendicular_segment(p)[source]#
        +perpendicular_segment(p)[source]#

        Create a perpendicular line segment from \(p\) to this line.

        The endpoints of the segment are p and the closest point in the line containing self. (If self is not a line, the point might @@ -1353,7 +1353,7 @@

        Documentation Version
        -projection(other)[source]#
        +projection(other)[source]#

        Project a point, line, ray, or segment onto this linear entity.

        Parameters:
        @@ -1408,7 +1408,7 @@
        Documentation Version
        -random_point(seed=None)[source]#
        +random_point(seed=None)[source]#

        A random point on a LinearEntity.

        Returns:
        @@ -1438,7 +1438,7 @@
        Documentation Version
        -smallest_angle_between(l2)[source]#
        +smallest_angle_between(l2)[source]#

        Return the smallest angle formed at the intersection of the lines containing the linear entities.

        @@ -1468,7 +1468,7 @@
        Documentation Version
        -class sympy.geometry.line.Line(*args, **kwargs)[source]#
        +class sympy.geometry.line.Line(*args, **kwargs)[source]#

        An infinite line in space.

        A 2D line is declared with two distinct points, point and slope, or an equation. A 3D line may be defined with a point and a direction ratio.

        @@ -1533,7 +1533,7 @@
        Documentation Version
        -contains(other)[source]#
        +contains(other)[source]#

        Return True if \(other\) is on this Line, or False otherwise.

        Examples

        >>> from sympy import Line,Point
        @@ -1560,7 +1560,7 @@ 
        Documentation Version
        -distance(other)[source]#
        +distance(other)[source]#

        Finds the shortest distance between a line and a point.

        Raises:
        @@ -1587,13 +1587,13 @@
        Documentation Version
        -equals(other)[source]#
        +equals(other)[source]#

        Returns True if self and other are the same mathematical entities

        -plot_interval(parameter='t')[source]#
        +plot_interval(parameter='t')[source]#

        The plot interval for the default geometric plot of line. Gives values that will produce a line that is +/- 5 units long (where a unit is the distance between the two points that define the line).

        @@ -1625,7 +1625,7 @@
        Documentation Version
        -class sympy.geometry.line.Ray(p1, p2=None, **kwargs)[source]#
        +class sympy.geometry.line.Ray(p1, p2=None, **kwargs)[source]#

        A Ray is a semi-line in the space with a source point and a direction.

        Parameters:
        @@ -1679,7 +1679,7 @@
        Documentation Version
        -contains(other)[source]#
        +contains(other)[source]#

        Is other GeometryEntity contained in this Ray?

        Examples

        >>> from sympy import Ray,Point,Segment
        @@ -1709,7 +1709,7 @@ 
        Documentation Version
        -distance(other)[source]#
        +distance(other)[source]#

        Finds the shortest distance between the ray and a point.

        Raises:
        @@ -1738,13 +1738,13 @@
        Documentation Version
        -equals(other)[source]#
        +equals(other)[source]#

        Returns True if self and other are the same mathematical entities

        -plot_interval(parameter='t')[source]#
        +plot_interval(parameter='t')[source]#

        The plot interval for the default geometric plot of the Ray. Gives values that will produce a ray that is 10 units long (where a unit is the distance between the two points that define the ray).

        @@ -1797,7 +1797,7 @@
        Documentation Version
        -class sympy.geometry.line.Segment(p1, p2, **kwargs)[source]#
        +class sympy.geometry.line.Segment(p1, p2, **kwargs)[source]#

        A line segment in space.

        Parameters:
        @@ -1852,7 +1852,7 @@
        Documentation Version
        -contains(other)[source]#
        +contains(other)[source]#

        Is the other GeometryEntity contained within this Segment?

        Examples

        >>> from sympy import Point, Segment
        @@ -1875,7 +1875,7 @@ 
        Documentation Version
        -distance(other)[source]#
        +distance(other)[source]#

        Finds the shortest distance between a line segment and a point.

        Raises:
        @@ -1903,7 +1903,7 @@
        Documentation Version
        -equals(other)[source]#
        +equals(other)[source]#

        Returns True if self and other are the same mathematical entities

        @@ -1955,7 +1955,7 @@
        Documentation Version
        -perpendicular_bisector(p=None)[source]#
        +perpendicular_bisector(p=None)[source]#

        The perpendicular bisector of this segment.

        If no point is specified or the point specified is not on the bisector then the bisector is returned as a Line. Otherwise a @@ -1989,7 +1989,7 @@

        Documentation Version
        -plot_interval(parameter='t')[source]#
        +plot_interval(parameter='t')[source]#

        The plot interval for the default geometric plot of the Segment gives values that will produce the full segment in a plot.

        @@ -2020,7 +2020,7 @@
        Documentation Version
        -class sympy.geometry.line.LinearEntity2D(p1, p2=None, **kwargs)[source]#
        +class sympy.geometry.line.LinearEntity2D(p1, p2=None, **kwargs)[source]#

        A base class for all linear entities (line, ray and segment) in a 2-dimensional Euclidean space.

        Notes

        @@ -2060,7 +2060,7 @@
        Documentation Version
        -perpendicular_line(p)[source]#
        +perpendicular_line(p)[source]#

        Create a new Line perpendicular to this linear entity which passes through the point \(p\).

        @@ -2129,7 +2129,7 @@
        Documentation Version
        -class sympy.geometry.line.Line2D(p1, pt=None, slope=None, **kwargs)[source]#
        +class sympy.geometry.line.Line2D(p1, pt=None, slope=None, **kwargs)[source]#

        An infinite line in space 2D.

        A line is declared with two distinct points or a point and slope as defined using keyword \(slope\).

        @@ -2195,7 +2195,7 @@
        Documentation Version
        -equation(x='x', y='y')[source]#
        +equation(x='x', y='y')[source]#

        The equation of the line: ax + by + c.

        Parameters:
        @@ -2230,7 +2230,7 @@
        Documentation Version
        -class sympy.geometry.line.Ray2D(p1, pt=None, angle=None, **kwargs)[source]#
        +class sympy.geometry.line.Ray2D(p1, pt=None, angle=None, **kwargs)[source]#

        A Ray is a semi-line in the space with a source point and a direction.

        Parameters:
        @@ -2287,7 +2287,7 @@
        Documentation Version
        -closing_angle(r2)[source]#
        +closing_angle(r2)[source]#

        Return the angle by which r2 must be rotated so it faces the same direction as r1.

        @@ -2367,7 +2367,7 @@
        Documentation Version
        -class sympy.geometry.line.Segment2D(p1, p2, **kwargs)[source]#
        +class sympy.geometry.line.Segment2D(p1, p2, **kwargs)[source]#

        A line segment in 2D space.

        Parameters:
        @@ -2412,7 +2412,7 @@
        Documentation Version
        -class sympy.geometry.line.LinearEntity3D(p1, p2, **kwargs)[source]#
        +class sympy.geometry.line.LinearEntity3D(p1, p2, **kwargs)[source]#

        An base class for all linear entities (line, ray and segment) in a 3-dimensional Euclidean space.

        Notes

        @@ -2481,7 +2481,7 @@
        Documentation Version
        -class sympy.geometry.line.Line3D(p1, pt=None, direction_ratio=(), **kwargs)[source]#
        +class sympy.geometry.line.Line3D(p1, pt=None, direction_ratio=(), **kwargs)[source]#

        An infinite 3D line in space.

        A line is declared with two distinct points or a point and direction_ratio as defined using keyword \(direction_ratio\).

        @@ -2507,7 +2507,7 @@
        Documentation Version
        -distance(other)[source]#
        +distance(other)[source]#

        Finds the shortest distance between a line and another object.

        Parameters:
        @@ -2543,7 +2543,7 @@
        Documentation Version
        -equation(x='x', y='y', z='z')[source]#
        +equation(x='x', y='y', z='z')[source]#

        Return the equations that define the line in 3D.

        Parameters:
        @@ -2581,7 +2581,7 @@
        Documentation Version
        -class sympy.geometry.line.Ray3D(p1, pt=None, direction_ratio=(), **kwargs)[source]#
        +class sympy.geometry.line.Ray3D(p1, pt=None, direction_ratio=(), **kwargs)[source]#

        A Ray is a semi-line in the space with a source point and a direction.

        Parameters:
        @@ -2708,7 +2708,7 @@
        Documentation Version
        -class sympy.geometry.line.Segment3D(p1, p2, **kwargs)[source]#
        +class sympy.geometry.line.Segment3D(p1, p2, **kwargs)[source]#

        A line segment in a 3D space.

        Parameters:
        diff --git a/dev/modules/geometry/plane.html b/dev/modules/geometry/plane.html index 53470f5c10a..72ce7a1ac06 100644 --- a/dev/modules/geometry/plane.html +++ b/dev/modules/geometry/plane.html @@ -741,7 +741,7 @@
        Documentation Version

        Plane#

        -class sympy.geometry.plane.Plane(p1, a=None, b=None, **kwargs)[source]#
        +class sympy.geometry.plane.Plane(p1, a=None, b=None, **kwargs)[source]#

        A plane is a flat, two-dimensional surface. A plane is the two-dimensional analogue of a point (zero-dimensions), a line (one-dimension) and a solid (three-dimensions). A plane can generally be constructed by two types of @@ -773,7 +773,7 @@

        Documentation Version
        -angle_between(o)[source]#
        +angle_between(o)[source]#

        Angle between the plane and other geometric entity.

        Parameters:
        @@ -800,7 +800,7 @@
        Documentation Version
        -arbitrary_point(u=None, v=None)[source]#
        +arbitrary_point(u=None, v=None)[source]#

        Returns an arbitrary point on the Plane. If given two parameters, the point ranges over the entire plane. If given 1 or no parameters, returns a point with one parameter which, @@ -833,7 +833,7 @@

        Documentation Version
        -static are_concurrent(*planes)[source]#
        +static are_concurrent(*planes)[source]#

        Is a sequence of Planes concurrent?

        Two or more Planes are concurrent if their intersections are a common line.

        @@ -860,7 +860,7 @@
        Documentation Version
        -distance(o)[source]#
        +distance(o)[source]#

        Distance between the plane and another geometric entity.

        Parameters:
        @@ -890,7 +890,7 @@
        Documentation Version
        -equals(o)[source]#
        +equals(o)[source]#

        Returns True if self and o are the same mathematical entities.

        Examples

        >>> from sympy import Plane, Point3D
        @@ -909,7 +909,7 @@ 
        Documentation Version
        -equation(x=None, y=None, z=None)[source]#
        +equation(x=None, y=None, z=None)[source]#

        The equation of the Plane.

        Examples

        >>> from sympy import Point3D, Plane
        @@ -925,7 +925,7 @@ 
        Documentation Version
        -intersection(o)[source]#
        +intersection(o)[source]#

        The intersection with other geometrical entity.

        Parameters:
        @@ -954,7 +954,7 @@
        Documentation Version
        -is_coplanar(o)[source]#
        +is_coplanar(o)[source]#

        Returns True if \(o\) is coplanar with self, else False.

        Examples

        >>> from sympy import Plane
        @@ -971,7 +971,7 @@ 
        Documentation Version
        -is_parallel(l)[source]#
        +is_parallel(l)[source]#

        Is the given geometric entity parallel to the plane?

        Parameters:
        @@ -993,7 +993,7 @@
        Documentation Version
        -is_perpendicular(l)[source]#
        +is_perpendicular(l)[source]#

        Is the given geometric entity perpendicualar to the given plane?

        Parameters:
        @@ -1049,7 +1049,7 @@
        Documentation Version
        -parallel_plane(pt)[source]#
        +parallel_plane(pt)[source]#

        Plane parallel to the given plane and passing through the point pt.

        Parameters:
        @@ -1070,7 +1070,7 @@
        Documentation Version
        -parameter_value(other, u, v=None)[source]#
        +parameter_value(other, u, v=None)[source]#

        Return the parameter(s) corresponding to the given point.

        Examples

        >>> from sympy import pi, Plane
        @@ -1110,7 +1110,7 @@ 
        Documentation Version
        -perpendicular_line(pt)[source]#
        +perpendicular_line(pt)[source]#

        A line perpendicular to the given plane.

        Parameters:
        @@ -1131,7 +1131,7 @@
        Documentation Version
        -perpendicular_plane(*pts)[source]#
        +perpendicular_plane(*pts)[source]#

        Return a perpendicular passing through the given points. If the direction ratio between the points is the same as the Plane’s normal vector then, to select from the infinite number of possible planes, @@ -1163,7 +1163,7 @@

        Documentation Version
        -projection(pt)[source]#
        +projection(pt)[source]#

        Project the given point onto the plane along the plane normal.

        Parameters:
        @@ -1197,7 +1197,7 @@
        Documentation Version
        -projection_line(line)[source]#
        +projection_line(line)[source]#

        Project the given line onto the plane through the normal plane containing the line.

        @@ -1229,7 +1229,7 @@
        Documentation Version
        -random_point(seed=None)[source]#
        +random_point(seed=None)[source]#

        Returns a random point on the Plane.

        Returns:
        diff --git a/dev/modules/geometry/points.html b/dev/modules/geometry/points.html index 4a69ac82c73..4dfee878dc3 100644 --- a/dev/modules/geometry/points.html +++ b/dev/modules/geometry/points.html @@ -741,7 +741,7 @@
        Documentation Version

        Points#

        -class sympy.geometry.point.Point(*args, **kwargs)[source]#
        +class sympy.geometry.point.Point(*args, **kwargs)[source]#

        A point in a n-dimensional Euclidean space.

        Parameters:
        @@ -819,7 +819,7 @@
        Documentation Version
        -static affine_rank(*args)[source]#
        +static affine_rank(*args)[source]#

        The affine rank of a set of points is the dimension of the smallest affine space containing all the points. For example, if the points lie on a line (and are not all @@ -836,7 +836,7 @@

        Documentation Version
        -classmethod are_coplanar(*points)[source]#
        +classmethod are_coplanar(*points)[source]#

        Return True if there exists a plane in which all the points lie. A trivial True value is returned if \(len(points) < 3\) or all Points are 2-dimensional.

        @@ -868,7 +868,7 @@
        Documentation Version
        -canberra_distance(p)[source]#
        +canberra_distance(p)[source]#

        The Canberra Distance from self to point p.

        Returns the weighted sum of horizontal and vertical distances to point p.

        @@ -903,7 +903,7 @@
        Documentation Version
        -distance(other)[source]#
        +distance(other)[source]#

        The Euclidean distance between self and another GeometricEntity.

        Returns:
        @@ -941,19 +941,19 @@
        Documentation Version
        -dot(p)[source]#
        +dot(p)[source]#

        Return dot product of self with another Point.

        -equals(other)[source]#
        +equals(other)[source]#

        Returns whether the coordinates of self and other agree.

        -intersection(other)[source]#
        +intersection(other)[source]#

        The intersection between this point and another GeometryEntity.

        Parameters:
        @@ -979,7 +979,7 @@
        Documentation Version
        -is_collinear(*args)[source]#
        +is_collinear(*args)[source]#

        Returns \(True\) if there exists a line that contains \(self\) and \(points\). Returns \(False\) otherwise. A trivially True value is returned if no points are given.

        @@ -1010,7 +1010,7 @@
        Documentation Version
        -is_concyclic(*args)[source]#
        +is_concyclic(*args)[source]#

        Do \(self\) and the given sequence of points lie in a circle?

        Returns True if the set of points are concyclic and False otherwise. A trivial value of True is returned @@ -1054,7 +1054,7 @@

        Documentation Version
        -is_scalar_multiple(p)[source]#
        +is_scalar_multiple(p)[source]#

        Returns whether each coordinate of \(self\) is a scalar multiple of the corresponding coordinate in point p.

        @@ -1081,7 +1081,7 @@
        Documentation Version
        -midpoint(p)[source]#
        +midpoint(p)[source]#

        The midpoint between self and point p.

        Parameters:
        @@ -1130,7 +1130,7 @@
        Documentation Version
        -static project(a, b)[source]#
        +static project(a, b)[source]#

        Project the point \(a\) onto the line between the origin and point \(b\) along the normal direction.

        @@ -1162,7 +1162,7 @@
        Documentation Version
        -taxicab_distance(p)[source]#
        +taxicab_distance(p)[source]#

        The Taxicab Distance from self to point p.

        Returns the sum of the horizontal and vertical distances to point p.

        @@ -1198,7 +1198,7 @@
        Documentation Version
        -class sympy.geometry.point.Point2D(*args, _nocheck=False, **kwargs)[source]#
        +class sympy.geometry.point.Point2D(*args, _nocheck=False, **kwargs)[source]#

        A point in a 2-dimensional Euclidean space.

        Parameters:
        @@ -1280,7 +1280,7 @@
        Documentation Version
        -rotate(angle, pt=None)[source]#
        +rotate(angle, pt=None)[source]#

        Rotate angle radians counterclockwise about Point pt.

        Examples

        >>> from sympy import Point2D, pi
        @@ -1299,7 +1299,7 @@ 
        Documentation Version
        -scale(x=1, y=1, pt=None)[source]#
        +scale(x=1, y=1, pt=None)[source]#

        Scale the coordinates of the Point by multiplying by x and y after subtracting pt – default is (0, 0) – and then adding pt back again (i.e. pt is the point of @@ -1321,7 +1321,7 @@

        Documentation Version
        -transform(matrix)[source]#
        +transform(matrix)[source]#

        Return the point after applying the transformation described by the 3x3 Matrix, matrix.

        @@ -1332,7 +1332,7 @@
        Documentation Version
        -translate(x=0, y=0)[source]#
        +translate(x=0, y=0)[source]#

        Shift the Point by adding x and y to the coordinates of the Point.

        Examples

        >>> from sympy import Point2D
        @@ -1381,7 +1381,7 @@ 
        Documentation Version
        -class sympy.geometry.point.Point3D(*args, _nocheck=False, **kwargs)[source]#
        +class sympy.geometry.point.Point3D(*args, _nocheck=False, **kwargs)[source]#

        A point in a 3-dimensional Euclidean space.

        Parameters:
        @@ -1438,7 +1438,7 @@
        Documentation Version
        -static are_collinear(*points)[source]#
        +static are_collinear(*points)[source]#

        Is a sequence of points collinear?

        Test whether or not a set of points are collinear. Returns True if the set of points are collinear, or False otherwise.

        @@ -1482,7 +1482,7 @@
        Documentation Version
        -direction_cosine(point)[source]#
        +direction_cosine(point)[source]#

        Gives the direction cosine between 2 points

        Parameters:
        @@ -1503,7 +1503,7 @@
        Documentation Version
        -direction_ratio(point)[source]#
        +direction_ratio(point)[source]#

        Gives the direction ratio between 2 points

        Parameters:
        @@ -1524,7 +1524,7 @@
        Documentation Version
        -intersection(other)[source]#
        +intersection(other)[source]#

        The intersection between this point and another GeometryEntity.

        Parameters:
        @@ -1550,7 +1550,7 @@
        Documentation Version
        -scale(x=1, y=1, z=1, pt=None)[source]#
        +scale(x=1, y=1, z=1, pt=None)[source]#

        Scale the coordinates of the Point by multiplying by x and y after subtracting pt – default is (0, 0) – and then adding pt back again (i.e. pt is the point of @@ -1572,7 +1572,7 @@

        Documentation Version
        -transform(matrix)[source]#
        +transform(matrix)[source]#

        Return the point after applying the transformation described by the 4x4 Matrix, matrix.

        @@ -1583,7 +1583,7 @@
        Documentation Version
        -translate(x=0, y=0, z=0)[source]#
        +translate(x=0, y=0, z=0)[source]#

        Shift the Point by adding x and y to the coordinates of the Point.

        Examples

        >>> from sympy import Point3D
        diff --git a/dev/modules/geometry/polygons.html b/dev/modules/geometry/polygons.html
        index 241df7afde0..f0fc999ade5 100644
        --- a/dev/modules/geometry/polygons.html
        +++ b/dev/modules/geometry/polygons.html
        @@ -741,7 +741,7 @@ 
        Documentation Version

        Polygons#

        -class sympy.geometry.polygon.Polygon(*args, n=0, **kwargs)[source]#
        +class sympy.geometry.polygon.Polygon(*args, n=0, **kwargs)[source]#

        A two-dimensional polygon.

        A simple polygon in space. Can be constructed from a sequence of points or from a center, radius, number of sides and rotation angle.

        @@ -872,7 +872,7 @@
        Documentation Version
        -arbitrary_point(parameter='t')[source]#
        +arbitrary_point(parameter='t')[source]#

        A parameterized point on the polygon.

        The parameter, varying from 0 to 1, assigns points to the position on the perimeter that is that fraction of the total perimeter. So the @@ -950,7 +950,7 @@

        Documentation Version
        -bisectors(prec=None)[source]#
        +bisectors(prec=None)[source]#

        Returns angle bisectors of a polygon. If prec is given then approximate the point defining the ray to that precision.

        The distance between the points defining the bisector ray is 1.

        @@ -998,7 +998,7 @@
        Documentation Version
        -cut_section(line)[source]#
        +cut_section(line)[source]#

        Returns a tuple of two polygon segments that lie above and below the intersecting line respectively.

        @@ -1051,7 +1051,7 @@
        Documentation Version
        -distance(o)[source]#
        +distance(o)[source]#

        Returns the shortest distance between self and o.

        If o is a point, then self does not need to be convex. If o is another polygon self and o must be convex.

        @@ -1067,7 +1067,7 @@
        Documentation Version
        -encloses_point(p)[source]#
        +encloses_point(p)[source]#

        Return True if p is enclosed by (is inside of) self.

        Parameters:
        @@ -1105,7 +1105,7 @@
        Documentation Version
        -first_moment_of_area(point=None)[source]#
        +first_moment_of_area(point=None)[source]#

        Returns the first moment of area of a two-dimensional polygon with respect to a certain point of interest.

        First moment of area is a measure of the distribution of the area @@ -1160,7 +1160,7 @@

        Documentation Version
        -intersection(o)[source]#
        +intersection(o)[source]#

        The intersection of polygon and geometry entity.

        The intersection may be empty and can contain individual Points and complete Line Segments.

        @@ -1197,7 +1197,7 @@
        Documentation Version
        -is_convex()[source]#
        +is_convex()[source]#

        Is the polygon convex?

        A polygon is convex if all its interior angles are less than 180 degrees and there are no intersections between sides.

        @@ -1248,7 +1248,7 @@
        Documentation Version
        -plot_interval(parameter='t')[source]#
        +plot_interval(parameter='t')[source]#

        The plot interval for the default geometric plot of the polygon.

        Parameters:
        @@ -1275,7 +1275,7 @@
        Documentation Version
        -polar_second_moment_of_area()[source]#
        +polar_second_moment_of_area()[source]#

        Returns the polar modulus of a two-dimensional polygon

        It is a constituent of the second moment of area, linked through the perpendicular axis theorem. While the planar second moment of @@ -1304,7 +1304,7 @@

        Documentation Version
        -second_moment_of_area(point=None)[source]#
        +second_moment_of_area(point=None)[source]#

        Returns the second moment and product moment of area of a two dimensional polygon.

        Parameters:
        @@ -1345,7 +1345,7 @@
        Documentation Version
        -section_modulus(point=None)[source]#
        +section_modulus(point=None)[source]#

        Returns a tuple with the section modulus of a two-dimensional polygon.

        Section modulus is a geometric property of a polygon defined as the @@ -1451,7 +1451,7 @@

        Documentation Version
        -class sympy.geometry.polygon.RegularPolygon(c, r, n, rot=0, **kwargs)[source]#
        +class sympy.geometry.polygon.RegularPolygon(c, r, n, rot=0, **kwargs)[source]#

        A regular polygon.

        Such a polygon has all internal angles equal and all sides the same length.

        @@ -1697,7 +1697,7 @@
        Documentation Version
        -encloses_point(p)[source]#
        +encloses_point(p)[source]#

        Return True if p is enclosed by (is inside of) self.

        Parameters:
        @@ -1862,7 +1862,7 @@
        Documentation Version
        -reflect(line)[source]#
        +reflect(line)[source]#

        Override GeometryEntity.reflect since this is not made of only points.

        Examples

        @@ -1877,7 +1877,7 @@
        Documentation Version
        -rotate(angle, pt=None)[source]#
        +rotate(angle, pt=None)[source]#

        Override GeometryEntity.rotate to first rotate the RegularPolygon about its center.

        >>> from sympy import Point, RegularPolygon, pi
        @@ -1926,7 +1926,7 @@ 
        Documentation Version
        -scale(x=1, y=1, pt=None)[source]#
        +scale(x=1, y=1, pt=None)[source]#

        Override GeometryEntity.scale since it is the radius that must be scaled (if x == y) or else a new Polygon must be returned.

        >>> from sympy import RegularPolygon
        @@ -1946,7 +1946,7 @@ 
        Documentation Version
        -spin(angle)[source]#
        +spin(angle)[source]#

        Increment in place the virtual Polygon’s rotation by ccw angle.

        See also: rotate method which moves the center.

        >>> from sympy import Polygon, Point, pi
        @@ -1997,7 +1997,7 @@ 
        Documentation Version
        -class sympy.geometry.polygon.Triangle(*args, **kwargs)[source]#
        +class sympy.geometry.polygon.Triangle(*args, **kwargs)[source]#

        A polygon with three vertices and three sides.

        Parameters:
        @@ -2108,7 +2108,7 @@
        Documentation Version
        -bisectors()[source]#
        +bisectors()[source]#

        The angle bisectors of the triangle.

        An angle bisector of a triangle is a straight line through a vertex which cuts the corresponding angle in half.

        @@ -2380,7 +2380,7 @@
        Documentation Version
        -is_equilateral()[source]#
        +is_equilateral()[source]#

        Are all the sides the same length?

        Returns:
        @@ -2408,7 +2408,7 @@
        Documentation Version
        -is_isosceles()[source]#
        +is_isosceles()[source]#

        Are two or more of the sides the same length?

        Returns:
        @@ -2430,7 +2430,7 @@
        Documentation Version
        -is_right()[source]#
        +is_right()[source]#

        Is the triangle right-angled.

        Returns:
        @@ -2452,7 +2452,7 @@
        Documentation Version
        -is_scalene()[source]#
        +is_scalene()[source]#

        Are all the sides of the triangle of different lengths?

        Returns:
        @@ -2474,7 +2474,7 @@
        Documentation Version
        -is_similar(t2)[source]#
        +is_similar(t2)[source]#

        Is another triangle similar to this one.

        Two triangles are similar if one can be uniformly scaled to the other.

        diff --git a/dev/modules/geometry/utils.html b/dev/modules/geometry/utils.html index 4eb5b06986f..2aba35ff988 100644 --- a/dev/modules/geometry/utils.html +++ b/dev/modules/geometry/utils.html @@ -741,7 +741,7 @@
        Documentation Version

        Utils#

        -sympy.geometry.util.intersection(*entities, pairwise=False, **kwargs)[source]#
        +sympy.geometry.util.intersection(*entities, pairwise=False, **kwargs)[source]#

        The intersection of a collection of GeometryEntity instances.

        Parameters:
        @@ -798,7 +798,7 @@
        Documentation Version
        -sympy.geometry.util.convex_hull(*args, polygon=True)[source]#
        +sympy.geometry.util.convex_hull(*args, polygon=True)[source]#

        The convex hull surrounding the Points contained in the list of entities.

        Parameters:
        @@ -851,7 +851,7 @@
        Documentation Version
        -sympy.geometry.util.are_similar(e1, e2)[source]#
        +sympy.geometry.util.are_similar(e1, e2)[source]#

        Are two geometrical entities similar.

        Can one geometrical entity be uniformly scaled to the other?

        @@ -891,7 +891,7 @@
        Documentation Version
        -sympy.geometry.util.centroid(*args)[source]#
        +sympy.geometry.util.centroid(*args)[source]#

        Find the centroid (center of mass) of the collection containing only Points, Segments or Polygons. The centroid is the weighted average of the individual centroid where the weights are the lengths (of segments) or areas (of polygons). @@ -937,7 +937,7 @@

        Documentation Version
        -sympy.geometry.util.idiff(eq, y, x, n=1)[source]#
        +sympy.geometry.util.idiff(eq, y, x, n=1)[source]#

        Return dy/dx assuming that eq == 0.

        Parameters:
        diff --git a/dev/modules/holonomic/convert.html b/dev/modules/holonomic/convert.html index 3e43e902a42..1a674e4a7fb 100644 --- a/dev/modules/holonomic/convert.html +++ b/dev/modules/holonomic/convert.html @@ -743,7 +743,7 @@

        Converting other representations to holonomic#

        -sympy.holonomic.holonomic.from_hyper(func, x0=0, evalf=False)[source]#
        +sympy.holonomic.holonomic.from_hyper(func, x0=0, evalf=False)[source]#

        Converts a hypergeometric function to holonomic. func is the Hypergeometric Function and x0 is the point at which initial conditions are required.

        @@ -762,7 +762,7 @@

        Converting hypergeometric functions#

        -sympy.holonomic.holonomic.from_meijerg(func, x0=0, evalf=False, initcond=True, domain=QQ)[source]#
        +sympy.holonomic.holonomic.from_meijerg(func, x0=0, evalf=False, initcond=True, domain=QQ)[source]#

        Converts a Meijer G-function to Holonomic. func is the G-Function and x0 is the point at which initial conditions are required.

        @@ -781,7 +781,7 @@

        Converting Meijer G-functions#

        -sympy.holonomic.holonomic.expr_to_holonomic(func, x=None, x0=0, y0=None, lenics=None, domain=None, initcond=True)[source]#
        +sympy.holonomic.holonomic.expr_to_holonomic(func, x=None, x0=0, y0=None, lenics=None, domain=None, initcond=True)[source]#

        Converts a function or an expression to a holonomic function.

        Parameters:
        diff --git a/dev/modules/holonomic/internal.html b/dev/modules/holonomic/internal.html index aa5866b70b7..3d476413ced 100644 --- a/dev/modules/holonomic/internal.html +++ b/dev/modules/holonomic/internal.html @@ -741,14 +741,14 @@
        Documentation Version

        Internal API#

        -sympy.holonomic.holonomic._create_table(table, domain=QQ)[source]#
        +sympy.holonomic.holonomic._create_table(table, domain=QQ)[source]#

        Creates the look-up table. For a similar implementation see meijerint._create_lookup_table.

        -sympy.holonomic.holonomic._convert_poly_rat_alg(func, x, x0=0, y0=None, lenics=None, domain=QQ, initcond=True)[source]#
        +sympy.holonomic.holonomic._convert_poly_rat_alg(func, x, x0=0, y0=None, lenics=None, domain=QQ, initcond=True)[source]#

        Converts polynomials, rationals and algebraic functions to holonomic.

        diff --git a/dev/modules/holonomic/operations.html b/dev/modules/holonomic/operations.html index d439a2f2ae9..a7a520aba47 100644 --- a/dev/modules/holonomic/operations.html +++ b/dev/modules/holonomic/operations.html @@ -773,7 +773,7 @@

        Addition and Multiplication#

        -HolonomicFunction.integrate(limits, initcond=False)[source]#
        +HolonomicFunction.integrate(limits, initcond=False)[source]#

        Integrates the given holonomic function.

        Examples

        >>> from sympy.holonomic.holonomic import HolonomicFunction, DifferentialOperators
        @@ -791,7 +791,7 @@ 

        Integration and Differentiation
        -HolonomicFunction.diff(*args, **kwargs)[source]#
        +HolonomicFunction.diff(*args, **kwargs)[source]#

        Differentiation of the given Holonomic function.

        Examples

        >>> from sympy.holonomic.holonomic import HolonomicFunction, DifferentialOperators
        @@ -816,7 +816,7 @@ 

        Integration and Differentiation#

        -HolonomicFunction.composition(expr, *args, **kwargs)[source]#
        +HolonomicFunction.composition(expr, *args, **kwargs)[source]#

        Returns function after composition of a holonomic function with an algebraic function. The method cannot compute initial conditions for the result by itself, so they can be also be @@ -844,7 +844,7 @@

        Composition with polynomials#

        -HolonomicFunction.to_sequence(lb=True)[source]#
        +HolonomicFunction.to_sequence(lb=True)[source]#

        Finds recurrence relation for the coefficients in the series expansion of the function about \(x_0\), where \(x_0\) is the point at which the initial condition is stored.

        @@ -897,7 +897,7 @@

        Convert to holonomic sequence#

        -HolonomicFunction.series(n=6, coefficient=False, order=True, _recur=None)[source]#
        +HolonomicFunction.series(n=6, coefficient=False, order=True, _recur=None)[source]#

        Finds the power series expansion of given holonomic function about \(x_0\).

        Explanation

        A list of series might be returned if \(x_0\) is a regular point with @@ -925,7 +925,7 @@

        Series expansion#

        -HolonomicFunction.evalf(points, method='RK4', h=0.05, derivatives=False)[source]#
        +HolonomicFunction.evalf(points, method='RK4', h=0.05, derivatives=False)[source]#

        Finds numerical value of a holonomic function using numerical methods. (RK4 by default). A set of points (real or complex) must be provided which will be the path for the numerical integration.

        @@ -969,7 +969,7 @@

        Numerical evaluationConvert to a linear combination of hypergeometric functions#

        -HolonomicFunction.to_hyper(as_list=False, _recur=None)[source]#
        +HolonomicFunction.to_hyper(as_list=False, _recur=None)[source]#

        Returns a hypergeometric function (or linear combination of them) representing the given holonomic function.

        Explanation

        @@ -1002,7 +1002,7 @@

        Convert to a linear combination of hypergeometric functions#

        -HolonomicFunction.to_meijerg()[source]#
        +HolonomicFunction.to_meijerg()[source]#

        Returns a linear combination of Meijer G-functions.

        Examples

        >>> from sympy.holonomic import expr_to_holonomic
        @@ -1025,7 +1025,7 @@ 

        Convert to a linear combination of Meijer G-functionsConvert to expressions#

        -HolonomicFunction.to_expr()[source]#
        +HolonomicFunction.to_expr()[source]#

        Converts a Holonomic Function back to elementary functions.

        Examples

        >>> from sympy.holonomic.holonomic import HolonomicFunction, DifferentialOperators
        diff --git a/dev/modules/holonomic/represent.html b/dev/modules/holonomic/represent.html
        index 9f64bfefa0a..4dbcce54ceb 100644
        --- a/dev/modules/holonomic/represent.html
        +++ b/dev/modules/holonomic/represent.html
        @@ -772,7 +772,7 @@ 

        Representation of holonomic functions in SymPy
        -class sympy.holonomic.holonomic.HolonomicFunction(annihilator, x, x0=0, y0=None)[source]#
        +class sympy.holonomic.holonomic.HolonomicFunction(annihilator, x, x0=0, y0=None)[source]#

        A Holonomic Function is a solution to a linear homogeneous ordinary differential equation with polynomial coefficients. This differential equation can also be represented by an annihilator i.e. a Differential @@ -837,7 +837,7 @@

        Representation of holonomic functions in SymPy
        -class sympy.holonomic.holonomic.DifferentialOperator(list_of_poly, parent)[source]#
        +class sympy.holonomic.holonomic.DifferentialOperator(list_of_poly, parent)[source]#

        Differential Operators are elements of Weyl Algebra. The Operators are defined by a list of polynomials in the base ring and the parent ring of the Operator i.e. the algebra it belongs to.

        @@ -868,7 +868,7 @@

        Representation of holonomic functions in SymPy
        -is_singular(x0)[source]#
        +is_singular(x0)[source]#

        Checks if the differential equation is singular at x0.

        @@ -876,7 +876,7 @@

        Representation of holonomic functions in SymPy
        -sympy.holonomic.holonomic.DifferentialOperators(base, generator)[source]#
        +sympy.holonomic.holonomic.DifferentialOperators(base, generator)[source]#

        This function is used to create annihilators using Dx.

        Parameters:
        @@ -911,7 +911,7 @@

        Representation of holonomic functions in SymPy
        -class sympy.holonomic.holonomic.DifferentialOperatorAlgebra(base, generator)[source]#
        +class sympy.holonomic.holonomic.DifferentialOperatorAlgebra(base, generator)[source]#

        An Ore Algebra is a set of noncommutative polynomials in the intermediate Dx and coefficients in a base polynomial ring \(A\). It follows the commutation rule:

        diff --git a/dev/modules/integrals/g-functions.html b/dev/modules/integrals/g-functions.html index eacd224807f..746239c1e9b 100644 --- a/dev/modules/integrals/g-functions.html +++ b/dev/modules/integrals/g-functions.html @@ -1750,19 +1750,19 @@

        Implemented G-Function Formulae
        -exception sympy.integrals.meijerint._CoeffExpValueError[source]#
        +exception sympy.integrals.meijerint._CoeffExpValueError[source]#

        Exception raised by _get_coeff_exp, for internal use only.

        -sympy.integrals.meijerint._check_antecedents(g1, g2, x)[source]#
        +sympy.integrals.meijerint._check_antecedents(g1, g2, x)[source]#

        Return a condition under which the integral theorem applies.

        -sympy.integrals.meijerint._check_antecedents_1(g, x, helper=False)[source]#
        +sympy.integrals.meijerint._check_antecedents_1(g, x, helper=False)[source]#

        Return a condition under which the mellin transform of g exists. Any power of x has already been absorbed into the G function, so this is just \(\int_0^\infty g\, dx\).

        @@ -1773,13 +1773,13 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._check_antecedents_inversion(g, x)[source]#
        +sympy.integrals.meijerint._check_antecedents_inversion(g, x)[source]#

        Check antecedents for the laplace inversion integral.

        -sympy.integrals.meijerint._condsimp(cond, first=True)[source]#
        +sympy.integrals.meijerint._condsimp(cond, first=True)[source]#

        Do naive simplifications on cond.

        Explanation

        Note that this routine is completely ad-hoc, simplification rules being @@ -1796,13 +1796,13 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._create_lookup_table(table)[source]#
        +sympy.integrals.meijerint._create_lookup_table(table)[source]#

        Add formulae for the function -> meijerg lookup table.

        -sympy.integrals.meijerint._dummy(name, token, expr, **kwargs)[source]#
        +sympy.integrals.meijerint._dummy(name, token, expr, **kwargs)[source]#

        Return a dummy. This will return the same dummy if the same token+name is requested more than once, and it is not already in expr. This is for being cache-friendly.

        @@ -1810,20 +1810,20 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._dummy_(name, token, **kwargs)[source]#
        +sympy.integrals.meijerint._dummy_(name, token, **kwargs)[source]#

        Return a dummy associated to name and token. Same effect as declaring it globally.

        -sympy.integrals.meijerint._eval_cond(cond)[source]#
        +sympy.integrals.meijerint._eval_cond(cond)[source]#

        Re-evaluate the conditions.

        -sympy.integrals.meijerint._exponents(expr, x)[source]#
        +sympy.integrals.meijerint._exponents(expr, x)[source]#

        Find the exponents of x (not including zero) in expr.

        Examples

        >>> from sympy.integrals.meijerint import _exponents
        @@ -1843,7 +1843,7 @@ 

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._find_splitting_points(expr, x)[source]#
        +sympy.integrals.meijerint._find_splitting_points(expr, x)[source]#

        Find numbers a such that a linear substitution x -> x + a would (hopefully) simplify expr.

        Examples

        @@ -1862,20 +1862,20 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._flip_g(g)[source]#
        +sympy.integrals.meijerint._flip_g(g)[source]#

        Turn the G function into one of inverse argument (i.e. G(1/x) -> G’(x))

        -sympy.integrals.meijerint._functions(expr, x)[source]#
        +sympy.integrals.meijerint._functions(expr, x)[source]#

        Find the types of functions in expr, to estimate the complexity.

        -sympy.integrals.meijerint._get_coeff_exp(expr, x)[source]#
        +sympy.integrals.meijerint._get_coeff_exp(expr, x)[source]#

        When expr is known to be of the form c*x**b, with c and/or b possibly 1, return c, b.

        Examples

        @@ -1895,13 +1895,13 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._guess_expansion(f, x)[source]#
        +sympy.integrals.meijerint._guess_expansion(f, x)[source]#

        Try to guess sensible rewritings for integrand f(x).

        -sympy.integrals.meijerint._inflate_fox_h(g, a)[source]#
        +sympy.integrals.meijerint._inflate_fox_h(g, a)[source]#

        Let d denote the integrand in the definition of the G function g. Consider the function H which is defined in the same way, but with integrand d/Gamma(a*s) (contour conventions as usual).

        @@ -1912,14 +1912,14 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._inflate_g(g, n)[source]#
        +sympy.integrals.meijerint._inflate_g(g, n)[source]#

        Return C, h such that h is a G function of argument z**n and g = C*h.

        -sympy.integrals.meijerint._int0oo(g1, g2, x)[source]#
        +sympy.integrals.meijerint._int0oo(g1, g2, x)[source]#

        Express integral from zero to infinity g1*g2 using a G function, assuming the necessary conditions are fulfilled.

        Examples

        @@ -1936,7 +1936,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._int0oo_1(g, x)[source]#
        +sympy.integrals.meijerint._int0oo_1(g, x)[source]#

        Evaluate \(\int_0^\infty g\, dx\) using G functions, assuming the necessary conditions are fulfilled.

        Examples

        @@ -1951,20 +1951,20 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._int_inversion(g, x, t)[source]#
        +sympy.integrals.meijerint._int_inversion(g, x, t)[source]#

        Compute the laplace inversion integral, assuming the formula applies.

        -sympy.integrals.meijerint._is_analytic(f, x)[source]#
        +sympy.integrals.meijerint._is_analytic(f, x)[source]#

        Check if f(x), when expressed using G functions on the positive reals, will in fact agree with the G functions almost everywhere

        -sympy.integrals.meijerint._meijerint_definite_2(f, x)[source]#
        +sympy.integrals.meijerint._meijerint_definite_2(f, x)[source]#

        Try to integrate f dx from zero to infinity.

        The body of this function computes various ‘simplifications’ f1, f2, … of f (e.g. by calling expand_mul(), trigexpand() @@ -1976,7 +1976,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._meijerint_definite_3(f, x)[source]#
        +sympy.integrals.meijerint._meijerint_definite_3(f, x)[source]#

        Try to integrate f dx from zero to infinity.

        This function calls _meijerint_definite_4 to try to compute the integral. If this fails, it tries using linearity.

        @@ -1984,7 +1984,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._meijerint_definite_4(f, x, only_double=False)[source]#
        +sympy.integrals.meijerint._meijerint_definite_4(f, x, only_double=False)[source]#

        Try to integrate f dx from zero to infinity.

        Explanation

        This function tries to apply the integration theorems found in literature, @@ -1995,13 +1995,13 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._meijerint_indefinite_1(f, x)[source]#
        +sympy.integrals.meijerint._meijerint_indefinite_1(f, x)[source]#

        Helper that does not attempt any substitution.

        -sympy.integrals.meijerint._mul_args(f)[source]#
        +sympy.integrals.meijerint._mul_args(f)[source]#

        Return a list L such that Mul(*L) == f.

        If f is not a Mul or Pow, L=[f]. If f=g**n for an integer n, L=[g]*n. @@ -2010,7 +2010,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._mul_as_two_parts(f)[source]#
        +sympy.integrals.meijerint._mul_as_two_parts(f)[source]#

        Find all the ways to split f into a product of two terms. Return None on failure.

        Explanation

        @@ -2030,7 +2030,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._my_principal_branch(expr, period, full_pb=False)[source]#
        +sympy.integrals.meijerint._my_principal_branch(expr, period, full_pb=False)[source]#

        Bring expr nearer to its principal branch by removing superfluous factors. This function does not guarantee to yield the principal branch, @@ -2040,13 +2040,13 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._mytype(f: Basic, x: Symbol) tuple[type[Basic], ...][source]#
        +sympy.integrals.meijerint._mytype(f: Basic, x: Symbol) tuple[type[Basic], ...][source]#

        Create a hashable entity describing the type of f.

        -sympy.integrals.meijerint._rewrite1(f, x, recursive=True)[source]#
        +sympy.integrals.meijerint._rewrite1(f, x, recursive=True)[source]#

        Try to rewrite f using a (sum of) single G functions with argument a*x**b. Return fac, po, g such that f = fac*po*g, fac is independent of x. and po = x**s. @@ -2056,7 +2056,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._rewrite2(f, x)[source]#
        +sympy.integrals.meijerint._rewrite2(f, x)[source]#

        Try to rewrite f as a product of two G functions of arguments a*x**b. Return fac, po, g1, g2 such that f = fac*po*g1*g2, where fac is independent of x and po is x**s. @@ -2066,13 +2066,13 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._rewrite_inversion(fac, po, g, x)[source]#
        +sympy.integrals.meijerint._rewrite_inversion(fac, po, g, x)[source]#

        Absorb po == x**s into g.

        -sympy.integrals.meijerint._rewrite_saxena(fac, po, g1, g2, x, full_pb=False)[source]#
        +sympy.integrals.meijerint._rewrite_saxena(fac, po, g1, g2, x, full_pb=False)[source]#

        Rewrite the integral fac*po*g1*g2 from 0 to oo in terms of G functions with argument c*x.

        Explanation

        @@ -2097,7 +2097,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._rewrite_saxena_1(fac, po, g, x)[source]#
        +sympy.integrals.meijerint._rewrite_saxena_1(fac, po, g, x)[source]#

        Rewrite the integral fac*po*g dx, from zero to infinity, as integral fac*G, where G has argument a*x. Note po=x**s. Return fac, G.

        @@ -2105,7 +2105,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._rewrite_single(f, x, recursive=True)[source]#
        +sympy.integrals.meijerint._rewrite_single(f, x, recursive=True)[source]#

        Try to rewrite f as a sum of single G functions of the form C*x**s*G(a*x**b), where b is a rational number and C is independent of x. We guarantee that result.argument.as_coeff_mul(x) returns (a, (x**b,)) @@ -2116,7 +2116,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint._split_mul(f, x)[source]#
        +sympy.integrals.meijerint._split_mul(f, x)[source]#

        Split expression f into fac, po, g, where fac is a constant factor, po = x**s for some s independent of s, and g is “the rest”.

        Examples

        @@ -2131,7 +2131,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint.meijerint_definite(f, x, a, b)[source]#
        +sympy.integrals.meijerint.meijerint_definite(f, x, a, b)[source]#

        Integrate f over the interval [a, b], by rewriting it as a product of two G functions, or as a single G function.

        Return res, cond, where cond are convergence conditions.

        @@ -2152,7 +2152,7 @@

        Implemented G-Function Formulae
        -sympy.integrals.meijerint.meijerint_indefinite(f, x)[source]#
        +sympy.integrals.meijerint.meijerint_indefinite(f, x)[source]#

        Compute an indefinite integral of f by rewriting it as a G function.

        Examples

        >>> from sympy.integrals.meijerint import meijerint_indefinite
        @@ -2166,7 +2166,7 @@ 

        Implemented G-Function Formulae
        -sympy.integrals.meijerint.meijerint_inversion(f, x, t)[source]#
        +sympy.integrals.meijerint.meijerint_inversion(f, x, t)[source]#

        Compute the inverse laplace transform \(\int_{c+i\infty}^{c-i\infty} f(x) e^{tx}\, dx\), for real c larger than the real part of all singularities of f.

        diff --git a/dev/modules/integrals/integrals.html b/dev/modules/integrals/integrals.html index 075ea54596c..72ec2d157a9 100644 --- a/dev/modules/integrals/integrals.html +++ b/dev/modules/integrals/integrals.html @@ -789,7 +789,7 @@

        Examples

        SymPy has special support for definite integrals, and integral transforms.

        -sympy.integrals.transforms.mellin_transform(f, x, s, **hints)[source]#
        +sympy.integrals.transforms.mellin_transform(f, x, s, **hints)[source]#

        Compute the Mellin transform \(F(s)\) of \(f(x)\),

        @@ -826,7 +826,7 @@

        Examples
        -class sympy.integrals.transforms.MellinTransform(*args)[source]#
        +class sympy.integrals.transforms.MellinTransform(*args)[source]#

        Class representing unevaluated Mellin transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute Mellin transforms, see the mellin_transform() @@ -835,7 +835,7 @@

        Examples
        -sympy.integrals.transforms.inverse_mellin_transform(F, s, x, strip, **hints)[source]#
        +sympy.integrals.transforms.inverse_mellin_transform(F, s, x, strip, **hints)[source]#

        Compute the inverse Mellin transform of \(F(s)\) over the fundamental strip given by strip=(a, b).

        Explanation

        @@ -881,7 +881,7 @@

        Examples
        -class sympy.integrals.transforms.InverseMellinTransform(*args)[source]#
        +class sympy.integrals.transforms.InverseMellinTransform(*args)[source]#

        Class representing unevaluated inverse Mellin transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute inverse Mellin transforms, see the @@ -890,7 +890,7 @@

        Examples
        -sympy.integrals.transforms.laplace_transform(f, t, s, legacy_matrix=True, **hints)[source]#
        +sympy.integrals.transforms.laplace_transform(f, t, s, legacy_matrix=True, **hints)[source]#

        Compute the Laplace Transform \(F(s)\) of \(f(t)\),

        @@ -989,7 +989,7 @@

        Examples
        -sympy.integrals.transforms.laplace_correspondence(f, fdict, /)[source]#
        +sympy.integrals.transforms.laplace_correspondence(f, fdict, /)[source]#

        This helper function takes a function \(f\) that is the result of a laplace_transform or an inverse_laplace_transform. It replaces all unevaluated LaplaceTransform(y(t), t, s) by \(Y(s)\) for any \(s\) and @@ -1030,7 +1030,7 @@

        Examples
        -sympy.integrals.transforms.laplace_initial_conds(f, t, fdict, /)[source]#
        +sympy.integrals.transforms.laplace_initial_conds(f, t, fdict, /)[source]#

        This helper function takes a function \(f\) that is the result of a laplace_transform. It takes an fdict of the form {y: [1, 4, 2]}, where the values in the list are the initial value, the initial slope, the @@ -1071,7 +1071,7 @@

        Examples
        -class sympy.integrals.transforms.LaplaceTransform(*args)[source]#
        +class sympy.integrals.transforms.LaplaceTransform(*args)[source]#

        Class representing unevaluated Laplace transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute Laplace transforms, see the laplace_transform() @@ -1081,7 +1081,7 @@

        Examples tuple containing the same expression, a convergence plane, and conditions.

        -doit(**hints)[source]#
        +doit(**hints)[source]#

        Try to evaluate the transform in closed form.

        Explanation

        Standard hints are the following: @@ -1095,7 +1095,7 @@

        Examples
        -sympy.integrals.transforms.inverse_laplace_transform(F, s, t, plane=None, **hints)[source]#
        +sympy.integrals.transforms.inverse_laplace_transform(F, s, t, plane=None, **hints)[source]#

        Compute the inverse Laplace transform of \(F(s)\), defined as

        @@ -1132,14 +1132,14 @@

        Examples
        -class sympy.integrals.transforms.InverseLaplaceTransform(*args)[source]#
        +class sympy.integrals.transforms.InverseLaplaceTransform(*args)[source]#

        Class representing unevaluated inverse Laplace transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute inverse Laplace transforms, see the inverse_laplace_transform() docstring.

        -doit(**hints)[source]#
        +doit(**hints)[source]#

        Try to evaluate the transform in closed form.

        Explanation

        Standard hints are the following: @@ -1153,7 +1153,7 @@

        Examples
        -sympy.integrals.transforms.fourier_transform(f, x, k, **hints)[source]#
        +sympy.integrals.transforms.fourier_transform(f, x, k, **hints)[source]#

        Compute the unitary, ordinary-frequency Fourier transform of f, defined as

        @@ -1185,7 +1185,7 @@

        Examples
        -sympy.integrals.transforms._fourier_transform(f, x, k, a, b, name, simplify=True)[source]#
        +sympy.integrals.transforms._fourier_transform(f, x, k, a, b, name, simplify=True)[source]#

        Compute a general Fourier-type transform

        @@ -1197,7 +1197,7 @@

        Examples
        -class sympy.integrals.transforms.FourierTransform(*args)[source]#
        +class sympy.integrals.transforms.FourierTransform(*args)[source]#

        Class representing unevaluated Fourier transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute Fourier transforms, see the fourier_transform() @@ -1206,7 +1206,7 @@

        Examples
        -sympy.integrals.transforms.inverse_fourier_transform(F, k, x, **hints)[source]#
        +sympy.integrals.transforms.inverse_fourier_transform(F, k, x, **hints)[source]#

        Compute the unitary, ordinary-frequency inverse Fourier transform of \(F\), defined as

        @@ -1238,7 +1238,7 @@

        Examples
        -class sympy.integrals.transforms.InverseFourierTransform(*args)[source]#
        +class sympy.integrals.transforms.InverseFourierTransform(*args)[source]#

        Class representing unevaluated inverse Fourier transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute inverse Fourier transforms, see the @@ -1247,7 +1247,7 @@

        Examples
        -sympy.integrals.transforms.sine_transform(f, x, k, **hints)[source]#
        +sympy.integrals.transforms.sine_transform(f, x, k, **hints)[source]#

        Compute the unitary, ordinary-frequency sine transform of \(f\), defined as

        @@ -1277,7 +1277,7 @@

        Examples
        -class sympy.integrals.transforms.SineTransform(*args)[source]#
        +class sympy.integrals.transforms.SineTransform(*args)[source]#

        Class representing unevaluated sine transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute sine transforms, see the sine_transform() @@ -1286,7 +1286,7 @@

        Examples
        -sympy.integrals.transforms.inverse_sine_transform(F, k, x, **hints)[source]#
        +sympy.integrals.transforms.inverse_sine_transform(F, k, x, **hints)[source]#

        Compute the unitary, ordinary-frequency inverse sine transform of \(F\), defined as

        @@ -1317,7 +1317,7 @@

        Examples
        -class sympy.integrals.transforms.InverseSineTransform(*args)[source]#
        +class sympy.integrals.transforms.InverseSineTransform(*args)[source]#

        Class representing unevaluated inverse sine transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute inverse sine transforms, see the @@ -1326,7 +1326,7 @@

        Examples
        -sympy.integrals.transforms.cosine_transform(f, x, k, **hints)[source]#
        +sympy.integrals.transforms.cosine_transform(f, x, k, **hints)[source]#

        Compute the unitary, ordinary-frequency cosine transform of \(f\), defined as

        @@ -1356,7 +1356,7 @@

        Examples
        -class sympy.integrals.transforms.CosineTransform(*args)[source]#
        +class sympy.integrals.transforms.CosineTransform(*args)[source]#

        Class representing unevaluated cosine transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute cosine transforms, see the cosine_transform() @@ -1365,7 +1365,7 @@

        Examples
        -sympy.integrals.transforms.inverse_cosine_transform(F, k, x, **hints)[source]#
        +sympy.integrals.transforms.inverse_cosine_transform(F, k, x, **hints)[source]#

        Compute the unitary, ordinary-frequency inverse cosine transform of \(F\), defined as

        @@ -1395,7 +1395,7 @@

        Examples
        -class sympy.integrals.transforms.InverseCosineTransform(*args)[source]#
        +class sympy.integrals.transforms.InverseCosineTransform(*args)[source]#

        Class representing unevaluated inverse cosine transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute inverse cosine transforms, see the @@ -1404,7 +1404,7 @@

        Examples
        -sympy.integrals.transforms.hankel_transform(f, r, k, nu, **hints)[source]#
        +sympy.integrals.transforms.hankel_transform(f, r, k, nu, **hints)[source]#

        Compute the Hankel transform of \(f\), defined as

        @@ -1448,7 +1448,7 @@

        Examples
        -class sympy.integrals.transforms.HankelTransform(*args)[source]#
        +class sympy.integrals.transforms.HankelTransform(*args)[source]#

        Class representing unevaluated Hankel transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute Hankel transforms, see the hankel_transform() @@ -1457,7 +1457,7 @@

        Examples
        -sympy.integrals.transforms.inverse_hankel_transform(F, k, r, nu, **hints)[source]#
        +sympy.integrals.transforms.inverse_hankel_transform(F, k, r, nu, **hints)[source]#

        Compute the inverse Hankel transform of \(F\) defined as

        @@ -1501,7 +1501,7 @@

        Examples
        -class sympy.integrals.transforms.InverseHankelTransform(*args)[source]#
        +class sympy.integrals.transforms.InverseHankelTransform(*args)[source]#

        Class representing unevaluated inverse Hankel transforms.

        For usage of this class, see the IntegralTransform docstring.

        For how to compute inverse Hankel transforms, see the @@ -1510,7 +1510,7 @@

        Examples
        -class sympy.integrals.transforms.IntegralTransform(*args)[source]#
        +class sympy.integrals.transforms.IntegralTransform(*args)[source]#

        Base class for integral transforms.

        Explanation

        This class represents unevaluated transforms.

        @@ -1527,7 +1527,7 @@

        Examples number and possibly a convergence condition.

        -doit(**hints)[source]#
        +doit(**hints)[source]#

        Try to evaluate the transform in closed form.

        Explanation

        This general function handles linearity, but apart from that leaves @@ -1569,7 +1569,7 @@

        Examples
        -exception sympy.integrals.transforms.IntegralTransformError(transform, function, msg)[source]#
        +exception sympy.integrals.transforms.IntegralTransformError(transform, function, msg)[source]#

        Exception raised in relation to problems computing transforms.

        Explanation

        This class is mostly used internally; if integrals cannot be computed @@ -1592,7 +1592,7 @@

        Internalsratint().

        -sympy.integrals.rationaltools.ratint(f, x, **flags)[source]#
        +sympy.integrals.rationaltools.ratint(f, x, **flags)[source]#

        Performs indefinite integration of rational functions.

        Explanation

        Given a field \(K\) and a rational function \(f = p/q\), @@ -1623,7 +1623,7 @@

        Internals
        -sympy.integrals.rationaltools.ratint_ratpart(f, g, x)[source]#
        +sympy.integrals.rationaltools.ratint_ratpart(f, g, x)[source]#

        Horowitz-Ostrogradsky algorithm.

        Explanation

        Given a field K and polynomials f and g in K[x], such that f and g @@ -1652,7 +1652,7 @@

        Internals
        -sympy.integrals.rationaltools.ratint_logpart(f, g, x, t=None)[source]#
        +sympy.integrals.rationaltools.ratint_logpart(f, g, x, t=None)[source]#

        Lazard-Rioboo-Trager algorithm.

        Explanation

        Given a field K and polynomials f and g in K[x], such that f and g @@ -1691,7 +1691,7 @@

        Internals
        -sympy.integrals.trigonometry.trigintegrate(f, x, conds='piecewise')[source]#
        +sympy.integrals.trigonometry.trigintegrate(f, x, conds='piecewise')[source]#

        Integrate f = Mul(trig) over x.

        Examples

        >>> from sympy import sin, cos, tan, sec
        @@ -1732,7 +1732,7 @@ 

        Internalsdeltaintegrate() solves integrals with DiracDelta objects.

        -sympy.integrals.deltafunctions.deltaintegrate(f, x)[source]#
        +sympy.integrals.deltafunctions.deltaintegrate(f, x)[source]#

        Explanation

        The idea for integration is the following:

          @@ -1782,7 +1782,7 @@

          Internalssingularityintegrate() is applied if the function contains a SingularityFunction

          -sympy.integrals.singularityfunctions.singularityintegrate(f, x)[source]#
          +sympy.integrals.singularityfunctions.singularityintegrate(f, x)[source]#

          This function handles the indefinite integrations of Singularity functions. The integrate function calls this function internally whenever an instance of SingularityFunction is passed as argument.

          @@ -1835,7 +1835,7 @@

          Internals
          -sympy.integrals.risch.risch_integrate(f, x, extension=None, handle_first='log', separate_integral=False, rewrite_complex=None, conds='piecewise')[source]#
          +sympy.integrals.risch.risch_integrate(f, x, extension=None, handle_first='log', separate_integral=False, rewrite_complex=None, conds='piecewise')[source]#

          The Risch Integration Algorithm.

          Explanation

          Only transcendental functions are supported. Currently, only exponentials @@ -1935,7 +1935,7 @@

          Internals
          -class sympy.integrals.risch.NonElementaryIntegral(function, *symbols, **assumptions)[source]#
          +class sympy.integrals.risch.NonElementaryIntegral(function, *symbols, **assumptions)[source]#

          Represents a nonelementary Integral.

          Explanation

          If the result of integrate() is an instance of this class, it is @@ -1987,7 +1987,7 @@

          Internalsintegral_steps() function.

          -sympy.integrals.manualintegrate.manualintegrate(f, var)[source]#
          +sympy.integrals.manualintegrate.manualintegrate(f, var)[source]#

          Explanation

          Compute indefinite integral of a single variable using an algorithm that resembles what a student would do by hand.

          @@ -2030,7 +2030,7 @@

          Internals
          -sympy.integrals.manualintegrate.integral_steps(integrand, symbol, **options)[source]#
          +sympy.integrals.manualintegrate.integral_steps(integrand, symbol, **options)[source]#

          Returns the steps needed to compute an integral.

          Returns:
          @@ -2076,7 +2076,7 @@

          Internalsheurisch():

          -sympy.integrals.heurisch.heurisch(f, x, rewrite=False, hints=None, mappings=None, retries=3, degree_offset=0, unnecessary_permutations=None, _try_heurisch=None)[source]#
          +sympy.integrals.heurisch.heurisch(f, x, rewrite=False, hints=None, mappings=None, retries=3, degree_offset=0, unnecessary_permutations=None, _try_heurisch=None)[source]#

          Compute indefinite integral using heuristic Risch algorithm.

          Explanation

          This is a heuristic approach to indefinite integration in finite @@ -2162,7 +2162,7 @@

          Internals
          -sympy.integrals.heurisch.components(f, x)[source]#
          +sympy.integrals.heurisch.components(f, x)[source]#

          Returns a set of all functional components of the given expression which includes symbols, function applications and compositions and non-integer powers. Fractional powers are collected with @@ -2190,7 +2190,7 @@

          Internals#

          -sympy.integrals.integrals.integrate(f, var, ...)[source]#
          +sympy.integrals.integrals.integrate(f, var, ...)[source]#

          Deprecated since version 1.6: Using integrate() with Poly is deprecated. Use Poly.integrate() instead. See Using integrate with Poly.

          @@ -2339,7 +2339,7 @@

          API reference
          -sympy.integrals.integrals.line_integrate(field, Curve, variables)[source]#
          +sympy.integrals.integrals.line_integrate(field, Curve, variables)[source]#

          Compute the line integral.

          Examples

          >>> from sympy import Curve, line_integrate, E, ln
          @@ -2358,7 +2358,7 @@ 

          API referenceIntegral represents an unevaluated integral and has some methods that help in the integration of an expression.

          -class sympy.integrals.integrals.Integral(function, *symbols, **assumptions)[source]#
          +class sympy.integrals.integrals.Integral(function, *symbols, **assumptions)[source]#

          Represents unevaluated integral.

          @@ -2368,7 +2368,7 @@

          API reference
          -as_sum(n=None, method='midpoint', evaluate=True)[source]#
          +as_sum(n=None, method='midpoint', evaluate=True)[source]#

          Approximates a definite integral by a sum.

          Parameters:
          @@ -2478,7 +2478,7 @@

          API reference
          -doit(**hints)[source]#
          +doit(**hints)[source]#

          Perform the integration using any hints given.

          Examples

          >>> from sympy import Piecewise, S
          @@ -2520,7 +2520,7 @@ 

          API reference
          -principal_value(**kwargs)[source]#
          +principal_value(**kwargs)[source]#

          Compute the Cauchy Principal Value of the definite integral of a real function in the given interval on the real axis.

          Explanation

          @@ -2555,7 +2555,7 @@

          API reference
          -transform(x, u)[source]#
          +transform(x, u)[source]#

          Performs a change of variables from \(x\) to \(u\) using the relationship given by \(x\) and \(u\) which will define the transformations \(f\) and \(F\) (which are inverses of each other) as follows:

          @@ -2662,7 +2662,7 @@

          API referenceIntegral and Sum.

          -class sympy.concrete.expr_with_limits.ExprWithLimits(function, *symbols, **assumptions)[source]#
          +class sympy.concrete.expr_with_limits.ExprWithLimits(function, *symbols, **assumptions)[source]#
          property bound_symbols#
          @@ -2848,7 +2848,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_legendre(n, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_legendre(n, n_digits)[source]#

          Computes the Gauss-Legendre quadrature [R555] points and weights.

          Parameters:
          @@ -2915,7 +2915,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_laguerre(n, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_laguerre(n, n_digits)[source]#

          Computes the Gauss-Laguerre quadrature [R557] points and weights.

          Parameters:
          @@ -2982,7 +2982,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_hermite(n, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_hermite(n, n_digits)[source]#

          Computes the Gauss-Hermite quadrature [R559] points and weights.

          Parameters:
          @@ -3056,7 +3056,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_gen_laguerre(n, alpha, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_gen_laguerre(n, alpha, n_digits)[source]#

          Computes the generalized Gauss-Laguerre quadrature [R562] points and weights.

          Parameters:
          @@ -3132,7 +3132,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_chebyshev_t(n, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_chebyshev_t(n, n_digits)[source]#

          Computes the Gauss-Chebyshev quadrature [R564] points and weights of the first kind.

          @@ -3203,7 +3203,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_chebyshev_u(n, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_chebyshev_u(n, n_digits)[source]#

          Computes the Gauss-Chebyshev quadrature [R566] points and weights of the second kind.

          @@ -3268,7 +3268,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_jacobi(n, alpha, beta, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_jacobi(n, alpha, beta, n_digits)[source]#

          Computes the Gauss-Jacobi quadrature [R568] points and weights.

          Parameters:
          @@ -3343,7 +3343,7 @@

          Numeric Integrals
          -sympy.integrals.quadrature.gauss_lobatto(n, n_digits)[source]#
          +sympy.integrals.quadrature.gauss_lobatto(n, n_digits)[source]#

          Computes the Gauss-Lobatto quadrature [R571] points and weights.

          Parameters:
          @@ -3499,7 +3499,7 @@

          For 3-Polytopes/Polyhedra#

          -sympy.integrals.intpoly.polytope_integrate(poly, expr=None, *, clockwise=False, max_degree=None)[source]#
          +sympy.integrals.intpoly.polytope_integrate(poly, expr=None, *, clockwise=False, max_degree=None)[source]#

          Integrates polynomials over 2/3-Polytopes.

          Parameters:
          diff --git a/dev/modules/interactive.html b/dev/modules/interactive.html index dc3ece9fd57..692f90109b9 100644 --- a/dev/modules/interactive.html +++ b/dev/modules/interactive.html @@ -745,31 +745,31 @@
          Documentation Version

          Tools for setting up interactive sessions.

          -sympy.interactive.session.enable_automatic_int_sympification(shell)[source]#
          +sympy.interactive.session.enable_automatic_int_sympification(shell)[source]#

          Allow IPython to automatically convert integer literals to Integer.

          -sympy.interactive.session.enable_automatic_symbols(shell)[source]#
          +sympy.interactive.session.enable_automatic_symbols(shell)[source]#

          Allow IPython to automatically create symbols (isympy -a).

          -sympy.interactive.session.init_ipython_session(shell=None, argv=[], auto_symbols=False, auto_int_to_Integer=False)[source]#
          +sympy.interactive.session.init_ipython_session(shell=None, argv=[], auto_symbols=False, auto_int_to_Integer=False)[source]#

          Construct new IPython session.

          -sympy.interactive.session.init_python_session()[source]#
          +sympy.interactive.session.init_python_session()[source]#

          Construct new Python session.

          -sympy.interactive.session.init_session(ipython=None, pretty_print=True, order=None, use_unicode=None, use_latex=None, quiet=False, auto_symbols=False, auto_int_to_Integer=False, str_printer=None, pretty_printer=None, latex_printer=None, argv=[])[source]#
          +sympy.interactive.session.init_session(ipython=None, pretty_print=True, order=None, use_unicode=None, use_latex=None, quiet=False, auto_symbols=False, auto_int_to_Integer=False, str_printer=None, pretty_printer=None, latex_printer=None, argv=[])[source]#

          Initialize an embedded IPython or Python session. The IPython session is initiated with the –pylab option, without the numpy imports, so that matplotlib plotting can be interactive.

          @@ -887,7 +887,7 @@
          Documentation Version
          -sympy.interactive.session.int_to_Integer(s)[source]#
          +sympy.interactive.session.int_to_Integer(s)[source]#

          Wrap integer literals with Integer.

          This is based on the decistmt example from https://docs.python.org/3/library/tokenize.html.

          @@ -915,7 +915,7 @@
          Documentation Version

          Tools for setting up printing in interactive sessions.

          -sympy.interactive.printing.init_printing(pretty_print=True, order=None, use_unicode=None, use_latex=None, wrap_line=None, num_columns=None, no_global=False, ip=None, euler=False, forecolor=None, backcolor='Transparent', fontsize='10pt', latex_mode='plain', print_builtin=True, str_printer=None, pretty_printer=None, latex_printer=None, scale=1.0, **settings)[source]#
          +sympy.interactive.printing.init_printing(pretty_print=True, order=None, use_unicode=None, use_latex=None, wrap_line=None, num_columns=None, no_global=False, ip=None, euler=False, forecolor=None, backcolor='Transparent', fontsize='10pt', latex_mode='plain', print_builtin=True, str_printer=None, pretty_printer=None, latex_printer=None, scale=1.0, **settings)[source]#

          Initializes pretty-printer depending on the environment.

          Parameters:
          diff --git a/dev/modules/liealgebras/index.html b/dev/modules/liealgebras/index.html index 57cd1cf6d7f..de14821a25f 100644 --- a/dev/modules/liealgebras/index.html +++ b/dev/modules/liealgebras/index.html @@ -741,7 +741,7 @@
          Documentation Version

          Lie Algebra#

          -class sympy.liealgebras.root_system.RootSystem(cartantype)[source]#
          +class sympy.liealgebras.root_system.RootSystem(cartantype)[source]#

          Represent the root system of a simple Lie algebra

          Every simple Lie algebra has a unique root system. To find the root system, we first consider the Cartan subalgebra of g, which is the maximal @@ -776,7 +776,7 @@

          Documentation Version

          -add_as_roots(root1, root2)[source]#
          +add_as_roots(root1, root2)[source]#

          Add two roots together if and only if their sum is also a root

          It takes as input two vectors which should be roots. It then computes their sum and checks if it is in the list of all possible roots. If it @@ -795,7 +795,7 @@

          Documentation Version
          -add_simple_roots(root1, root2)[source]#
          +add_simple_roots(root1, root2)[source]#

          Add two simple roots together

          The function takes as input two integers, root1 and root2. It then uses these integers as keys in the dictionary of simple roots, and gets @@ -812,7 +812,7 @@

          Documentation Version
          -all_roots()[source]#
          +all_roots()[source]#

          Generate all the roots of a given root system

          The result is a dictionary where the keys are integer numbers. It generates the roots by getting the dictionary of all positive roots @@ -823,7 +823,7 @@

          Documentation Version
          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          Cartan matrix of Lie algebra associated with this root system

          Examples

          >>> from sympy.liealgebras.root_system import RootSystem
          @@ -839,7 +839,7 @@ 
          Documentation Version
          -dynkin_diagram()[source]#
          +dynkin_diagram()[source]#

          Dynkin diagram of the Lie algebra associated with this root system

          Examples

          >>> from sympy.liealgebras.root_system import RootSystem
          @@ -853,7 +853,7 @@ 
          Documentation Version
          -root_space()[source]#
          +root_space()[source]#

          Return the span of the simple roots

          The root space is the vector space spanned by the simple roots, i.e. it is a vector space with a distinguished basis, the simple roots. This @@ -870,7 +870,7 @@

          Documentation Version
          -simple_roots()[source]#
          +simple_roots()[source]#

          Generate the simple roots of the Lie algebra

          The rank of the Lie algebra determines the number of simple roots that it has. This method obtains the rank of the Lie algebra, and then uses @@ -890,13 +890,13 @@

          Documentation Version
          -class sympy.liealgebras.type_a.TypeA(n)[source]#
          +class sympy.liealgebras.type_a.TypeA(n)[source]#

          This class contains the information about the A series of simple Lie algebras. ====

          -basic_root(i, j)[source]#
          +basic_root(i, j)[source]#

          This is a method just to generate roots with a 1 iin the ith position and a -1 in the jth position.

          @@ -904,13 +904,13 @@
          Documentation Version
          -basis()[source]#
          +basis()[source]#

          Returns the number of independent generators of A_n

          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          Returns the Cartan matrix for A_n. The Cartan matrix matrix for a Lie algebra is generated by assigning an ordering to the simple @@ -931,7 +931,7 @@

          Documentation Version
          -dimension()[source]#
          +dimension()[source]#

          Dimension of the vector space V underlying the Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_type import CartanType
          @@ -944,19 +944,19 @@ 
          Documentation Version
          -highest_root()[source]#
          +highest_root()[source]#

          Returns the highest weight root for A_n

          -lie_algebra()[source]#
          +lie_algebra()[source]#

          Returns the Lie algebra associated with A_n

          -positive_roots()[source]#
          +positive_roots()[source]#

          This method generates all the positive roots of A_n. This is half of all of the roots of A_n; by multiplying all the positive roots by -1 we @@ -973,13 +973,13 @@

          Documentation Version
          -roots()[source]#
          +roots()[source]#

          Returns the total number of roots for A_n

          -simple_root(i)[source]#
          +simple_root(i)[source]#

          Every lie algebra has a unique root system. Given a root system Q, there is a subset of the roots such that an element of Q is called a @@ -1005,10 +1005,10 @@

          Documentation Version
          -class sympy.liealgebras.type_b.TypeB(n)[source]#
          +class sympy.liealgebras.type_b.TypeB(n)[source]#
          -basic_root(i, j)[source]#
          +basic_root(i, j)[source]#

          This is a method just to generate roots with a 1 iin the ith position and a -1 in the jth position.

          @@ -1016,13 +1016,13 @@
          Documentation Version
          -basis()[source]#
          +basis()[source]#

          Returns the number of independent generators of B_n

          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          Returns the Cartan matrix for B_n. The Cartan matrix matrix for a Lie algebra is generated by assigning an ordering to the simple @@ -1043,7 +1043,7 @@

          Documentation Version
          -dimension()[source]#
          +dimension()[source]#

          Dimension of the vector space V underlying the Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_type import CartanType
          @@ -1056,13 +1056,13 @@ 
          Documentation Version
          -lie_algebra()[source]#
          +lie_algebra()[source]#

          Returns the Lie algebra associated with B_n

          -positive_roots()[source]#
          +positive_roots()[source]#

          This method generates all the positive roots of A_n. This is half of all of the roots of B_n; by multiplying all the positive roots by -1 we @@ -1079,13 +1079,13 @@

          Documentation Version
          -roots()[source]#
          +roots()[source]#

          Returns the total number of roots for B_n”

          -simple_root(i)[source]#
          +simple_root(i)[source]#

          Every lie algebra has a unique root system. Given a root system Q, there is a subset of the roots such that an element of Q is called a @@ -1113,22 +1113,22 @@

          Documentation Version
          -class sympy.liealgebras.type_c.TypeC(n)[source]#
          +class sympy.liealgebras.type_c.TypeC(n)[source]#
          -basic_root(i, j)[source]#
          +basic_root(i, j)[source]#

          Generate roots with 1 in ith position and a -1 in jth position

          -basis()[source]#
          +basis()[source]#

          Returns the number of independent generators of C_n

          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          The Cartan matrix for C_n

          The Cartan matrix matrix for a Lie algebra is generated by assigning an ordering to the simple @@ -1149,7 +1149,7 @@

          Documentation Version
          -dimension()[source]#
          +dimension()[source]#

          Dimension of the vector space V underlying the Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_type import CartanType
          @@ -1162,13 +1162,13 @@ 
          Documentation Version
          -lie_algebra()[source]#
          +lie_algebra()[source]#

          Returns the Lie algebra associated with C_n”

          -positive_roots()[source]#
          +positive_roots()[source]#

          Generates all the positive roots of A_n

          This is half of all of the roots of C_n; by multiplying all the positive roots by -1 we get the negative roots.

          @@ -1184,13 +1184,13 @@
          Documentation Version
          -roots()[source]#
          +roots()[source]#

          Returns the total number of roots for C_n”

          -simple_root(i)[source]#
          +simple_root(i)[source]#

          The ith simple root for the C series

          Every lie algebra has a unique root system. Given a root system Q, there is a subset of the @@ -1218,10 +1218,10 @@

          Documentation Version
          -class sympy.liealgebras.type_d.TypeD(n)[source]#
          +class sympy.liealgebras.type_d.TypeD(n)[source]#
          -basic_root(i, j)[source]#
          +basic_root(i, j)[source]#

          This is a method just to generate roots with a 1 iin the ith position and a -1 in the jth position.

          @@ -1229,13 +1229,13 @@
          Documentation Version
          -basis()[source]#
          +basis()[source]#

          Returns the number of independent generators of D_n

          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          Returns the Cartan matrix for D_n. The Cartan matrix matrix for a Lie algebra is generated by assigning an ordering to the simple @@ -1256,7 +1256,7 @@

          Documentation Version
          -dimension()[source]#
          +dimension()[source]#

          Dmension of the vector space V underlying the Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_type import CartanType
          @@ -1269,13 +1269,13 @@ 
          Documentation Version
          -lie_algebra()[source]#
          +lie_algebra()[source]#

          Returns the Lie algebra associated with D_n”

          -positive_roots()[source]#
          +positive_roots()[source]#

          This method generates all the positive roots of A_n. This is half of all of the roots of D_n by multiplying all the positive roots by -1 we @@ -1292,13 +1292,13 @@

          Documentation Version
          -roots()[source]#
          +roots()[source]#

          Returns the total number of roots for D_n”

          -simple_root(i)[source]#
          +simple_root(i)[source]#

          Every lie algebra has a unique root system. Given a root system Q, there is a subset of the roots such that an element of Q is called a @@ -1326,10 +1326,10 @@

          Documentation Version
          -class sympy.liealgebras.type_e.TypeE(n)[source]#
          +class sympy.liealgebras.type_e.TypeE(n)[source]#
          -basic_root(i, j)[source]#
          +basic_root(i, j)[source]#

          This is a method just to generate roots with a -1 in the ith position and a 1 in the jth position.

          @@ -1337,13 +1337,13 @@
          Documentation Version
          -basis()[source]#
          +basis()[source]#

          Returns the number of independent generators of E_n

          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          Returns the Cartan matrix for G_2 The Cartan matrix matrix for a Lie algebra is generated by assigning an ordering to the simple @@ -1364,7 +1364,7 @@

          Documentation Version
          -dimension()[source]#
          +dimension()[source]#

          Dimension of the vector space V underlying the Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_type import CartanType
          @@ -1377,7 +1377,7 @@ 
          Documentation Version
          -positive_roots()[source]#
          +positive_roots()[source]#

          This method generates all the positive roots of A_n. This is half of all of the roots of E_n; by multiplying all the positive roots by -1 we @@ -1394,13 +1394,13 @@

          Documentation Version
          -roots()[source]#
          +roots()[source]#

          Returns the total number of roots of E_n

          -simple_root(i)[source]#
          +simple_root(i)[source]#

          Every lie algebra has a unique root system. Given a root system Q, there is a subset of the roots such that an element of Q is called a @@ -1423,22 +1423,22 @@

          Documentation Version
          -class sympy.liealgebras.type_f.TypeF(n)[source]#
          +class sympy.liealgebras.type_f.TypeF(n)[source]#
          -basic_root(i, j)[source]#
          +basic_root(i, j)[source]#

          Generate roots with 1 in ith position and -1 in jth position

          -basis()[source]#
          +basis()[source]#

          Returns the number of independent generators of F_4

          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          The Cartan matrix for F_4

          The Cartan matrix matrix for a Lie algebra is generated by assigning an ordering to the simple @@ -1459,7 +1459,7 @@

          Documentation Version
          -dimension()[source]#
          +dimension()[source]#

          Dimension of the vector space V underlying the Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_type import CartanType
          @@ -1472,7 +1472,7 @@ 
          Documentation Version
          -positive_roots()[source]#
          +positive_roots()[source]#

          Generate all the positive roots of A_n

          This is half of all of the roots of F_4; by multiplying all the positive roots by -1 we get the negative roots.

          @@ -1488,13 +1488,13 @@
          Documentation Version
          -roots()[source]#
          +roots()[source]#

          Returns the total number of roots for F_4

          -simple_root(i)[source]#
          +simple_root(i)[source]#

          The ith simple root of F_4

          Every lie algebra has a unique root system. Given a root system Q, there is a subset of the @@ -1517,16 +1517,16 @@

          Documentation Version
          -class sympy.liealgebras.type_g.TypeG(n)[source]#
          +class sympy.liealgebras.type_g.TypeG(n)[source]#
          -basis()[source]#
          +basis()[source]#

          Returns the number of independent generators of G_2

          -cartan_matrix()[source]#
          +cartan_matrix()[source]#

          The Cartan matrix for G_2

          The Cartan matrix matrix for a Lie algebra is generated by assigning an ordering to the simple @@ -1545,7 +1545,7 @@

          Documentation Version
          -dimension()[source]#
          +dimension()[source]#

          Dimension of the vector space V underlying the Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_type import CartanType
          @@ -1558,7 +1558,7 @@ 
          Documentation Version
          -positive_roots()[source]#
          +positive_roots()[source]#

          Generate all the positive roots of A_n

          This is half of all of the roots of A_n; by multiplying all the positive roots by -1 we get the negative roots.

          @@ -1574,13 +1574,13 @@
          Documentation Version
          -roots()[source]#
          +roots()[source]#

          Returns the total number of roots of G_2”

          -simple_root(i)[source]#
          +simple_root(i)[source]#

          The ith simple root of G_2

          Every lie algebra has a unique root system. Given a root system Q, there is a subset of the @@ -1603,7 +1603,7 @@

          Documentation Version
          -class sympy.liealgebras.weyl_group.WeylGroup(cartantype)[source]#
          +class sympy.liealgebras.weyl_group.WeylGroup(cartantype)[source]#

          For each semisimple Lie group, we have a Weyl group. It is a subgroup of the isometry group of the root system. Specifically, it’s the subgroup that is generated by reflections through the hyperplanes orthogonal to @@ -1611,7 +1611,7 @@

          Documentation Version
          group is a finite Coxeter group.

          -coxeter_diagram()[source]#
          +coxeter_diagram()[source]#

          This method returns the Coxeter diagram corresponding to a Weyl group. The Coxeter diagram can be obtained from a Lie algebra’s Dynkin diagram by deleting all arrows; the Coxeter diagram is the undirected graph. @@ -1632,7 +1632,7 @@

          Documentation Version
          -delete_doubles(reflections)[source]#
          +delete_doubles(reflections)[source]#

          This is a helper method for determining the order of an element in the Weyl group of G2. It takes a Weyl element and if repeated simple reflections in it, it deletes them.

          @@ -1640,7 +1640,7 @@
          Documentation Version
          -element_order(weylelt)[source]#
          +element_order(weylelt)[source]#

          This method returns the order of a given Weyl group element, which should be specified by the user in the form of products of the generating reflections, i.e. of the form r1*r2 etc.

          @@ -1658,7 +1658,7 @@
          Documentation Version
          -generators()[source]#
          +generators()[source]#

          This method creates the generating reflections of the Weyl group for a given Lie algebra. For a Lie algebra of rank n, there are n different generating reflections. This function returns them as @@ -1674,7 +1674,7 @@

          Documentation Version
          -group_name()[source]#
          +group_name()[source]#

          This method returns some general information about the Weyl group for a given Lie algebra. It returns the name of the group and the elements it acts on, if relevant.

          @@ -1682,7 +1682,7 @@
          Documentation Version
          -group_order()[source]#
          +group_order()[source]#

          This method returns the order of the Weyl group. For types A, B, C, D, and E the order depends on the rank of the Lie algebra. For types F and G, @@ -1698,7 +1698,7 @@

          Documentation Version
          -matrix_form(weylelt)[source]#
          +matrix_form(weylelt)[source]#

          This method takes input from the user in the form of products of the generating reflections, and returns the matrix corresponding to the element of the Weyl group. Since each element of the Weyl group is @@ -1722,23 +1722,23 @@

          Documentation Version
          -class sympy.liealgebras.cartan_type.CartanType_generator[source]#
          +class sympy.liealgebras.cartan_type.CartanType_generator[source]#

          Constructor for actually creating things

          -class sympy.liealgebras.cartan_type.Standard_Cartan(series, n)[source]#
          +class sympy.liealgebras.cartan_type.Standard_Cartan(series, n)[source]#

          Concrete base class for Cartan types such as A4, etc

          -rank()[source]#
          +rank()[source]#

          Returns the rank of the Lie algebra

          -series()[source]#
          +series()[source]#

          Returns the type of the Lie algebra

          @@ -1746,7 +1746,7 @@
          Documentation Version
          -sympy.liealgebras.dynkin_diagram.DynkinDiagram(t)[source]#
          +sympy.liealgebras.dynkin_diagram.DynkinDiagram(t)[source]#

          Display the Dynkin diagram of a given Lie algebra

          Works by generating the CartanType for the input, t, and then returning the Dynkin diagram method from the individual classes.

          @@ -1766,7 +1766,7 @@
          Documentation Version
          -sympy.liealgebras.cartan_matrix.CartanMatrix(ct)[source]#
          +sympy.liealgebras.cartan_matrix.CartanMatrix(ct)[source]#

          Access the Cartan matrix of a specific Lie algebra

          Examples

          >>> from sympy.liealgebras.cartan_matrix import CartanMatrix
          diff --git a/dev/modules/logic.html b/dev/modules/logic.html
          index 33df967c2d2..a88b4999dd8 100644
          --- a/dev/modules/logic.html
          +++ b/dev/modules/logic.html
          @@ -776,7 +776,7 @@ 

          Forming logical expressions
          -sympy.logic.boolalg.SOPform(variables, minterms, dontcares=None)[source]#
          +sympy.logic.boolalg.SOPform(variables, minterms, dontcares=None)[source]#

          The SOPform function uses simplified_pairs and a redundant group- eliminating algorithm to convert the list of all input combos that generate ‘1’ (the minterms) into the smallest sum-of-products form.

          @@ -837,7 +837,7 @@

          Forming logical expressions
          -sympy.logic.boolalg.POSform(variables, minterms, dontcares=None)[source]#
          +sympy.logic.boolalg.POSform(variables, minterms, dontcares=None)[source]#

          The POSform function uses simplified_pairs and a redundant-group eliminating algorithm to convert the list of all input combinations that generate ‘1’ (the minterms) into the smallest product-of-sums form.

          @@ -898,7 +898,7 @@

          Forming logical expressions
          -sympy.logic.boolalg.ANFform(variables, truthvalues)[source]#
          +sympy.logic.boolalg.ANFform(variables, truthvalues)[source]#

          The ANFform function converts the list of truth values to Algebraic Normal Form (ANF).

          The variables must be given as the first argument.

          @@ -942,11 +942,11 @@

          Forming logical expressions#

          -class sympy.logic.boolalg.Boolean(*args)[source]#
          +class sympy.logic.boolalg.Boolean(*args)[source]#

          A Boolean object is an object for which logic operations make sense.

          -as_set()[source]#
          +as_set()[source]#

          Rewrites Boolean expression in terms of real sets.

          Examples

          >>> from sympy import Symbol, Eq, Or, And
          @@ -965,7 +965,7 @@ 

          Boolean functions
          -equals(other)[source]#
          +equals(other)[source]#

          Returns True if the given formulas have the same truth table. For two formulas to be equal they must have the same literals.

          Examples

          @@ -985,7 +985,7 @@

          Boolean functions
          -class sympy.logic.boolalg.BooleanTrue[source]#
          +class sympy.logic.boolalg.BooleanTrue[source]#

          SymPy version of True, a singleton that can be accessed via S.true.

          This is the SymPy version of True, for use in the logic module. The primary advantage of using true instead of True is that shorthand Boolean @@ -1066,7 +1066,7 @@

          Boolean functions
          -as_set()[source]#
          +as_set()[source]#

          Rewrite logic operators and relationals in terms of real sets.

          Examples

          >>> from sympy import true
          @@ -1080,7 +1080,7 @@ 

          Boolean functions
          -class sympy.logic.boolalg.BooleanFalse[source]#
          +class sympy.logic.boolalg.BooleanFalse[source]#

          SymPy version of False, a singleton that can be accessed via S.false.

          This is the SymPy version of False, for use in the logic module. The primary advantage of using false instead of False is that shorthand @@ -1117,7 +1117,7 @@

          Boolean functions
          -as_set()[source]#
          +as_set()[source]#

          Rewrite logic operators and relationals in terms of real sets.

          Examples

          >>> from sympy import false
          @@ -1131,7 +1131,7 @@ 

          Boolean functions
          -class sympy.logic.boolalg.And(*args)[source]#
          +class sympy.logic.boolalg.And(*args)[source]#

          Logical AND function.

          It evaluates its arguments in order, returning false immediately when an argument is false and true if they are all true.

          @@ -1155,7 +1155,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Or(*args)[source]#
          +class sympy.logic.boolalg.Or(*args)[source]#

          Logical OR function

          It evaluates its arguments in order, returning true immediately when an argument is true, and false if they are all false.

          @@ -1179,7 +1179,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Not(arg)[source]#
          +class sympy.logic.boolalg.Not(arg)[source]#

          Logical Not function (negation)

          Returns true if the statement is false or False. Returns false if the statement is true or True.

          @@ -1223,7 +1223,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Xor(*args)[source]#
          +class sympy.logic.boolalg.Xor(*args)[source]#

          Logical XOR (exclusive OR) function.

          Returns True if an odd number of the arguments are True and the rest are False.

          @@ -1258,7 +1258,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Nand(*args)[source]#
          +class sympy.logic.boolalg.Nand(*args)[source]#

          Logical NAND function.

          It evaluates its arguments in order, giving True immediately if any of them are False, and False if they are all True.

          @@ -1280,7 +1280,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Nor(*args)[source]#
          +class sympy.logic.boolalg.Nor(*args)[source]#

          Logical NOR function.

          It evaluates its arguments in order, giving False immediately if any of them are True, and True if they are all False.

          @@ -1308,7 +1308,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Xnor(*args)[source]#
          +class sympy.logic.boolalg.Xnor(*args)[source]#

          Logical XNOR function.

          Returns False if an odd number of the arguments are True and the rest are False.

          @@ -1332,7 +1332,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Implies(*args)[source]#
          +class sympy.logic.boolalg.Implies(*args)[source]#

          Logical implication.

          A implies B is equivalent to if A then B. Mathematically, it is written as \(A \Rightarrow B\) and is equivalent to \(\neg A \vee B\) or ~A | B.

          @@ -1378,7 +1378,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Equivalent(*args)[source]#
          +class sympy.logic.boolalg.Equivalent(*args)[source]#

          Equivalence relation.

          Equivalent(A, B) is True iff A and B are both True or both False.

          Returns True if all of the arguments are logically equivalent. @@ -1399,7 +1399,7 @@

          Boolean functions
          -class sympy.logic.boolalg.ITE(*args)[source]#
          +class sympy.logic.boolalg.ITE(*args)[source]#

          If-then-else clause.

          ITE(A, B, C) evaluates and returns the result of B if A is true else it returns the result of C. All args must be Booleans.

          @@ -1433,7 +1433,7 @@

          Boolean functions
          -class sympy.logic.boolalg.Exclusive(*args)[source]#
          +class sympy.logic.boolalg.Exclusive(*args)[source]#

          True if only one or no argument is true.

          Exclusive(A, B, C) is equivalent to ~(A & B) & ~(A & C) & ~(B & C).

          For two arguments, this is equivalent to Xor.

          @@ -1453,7 +1453,7 @@

          Boolean functions
          -sympy.logic.boolalg.to_anf(expr, deep=True)[source]#
          +sympy.logic.boolalg.to_anf(expr, deep=True)[source]#

          Converts expr to Algebraic Normal Form (ANF).

          ANF is a canonical normal form, which means that two equivalent formulas will convert to the same ANF.

          @@ -1492,7 +1492,7 @@

          Boolean functions
          -sympy.logic.boolalg.to_cnf(expr, simplify=False, force=False)[source]#
          +sympy.logic.boolalg.to_cnf(expr, simplify=False, force=False)[source]#

          Convert a propositional logical sentence expr to conjunctive normal form: ((A | ~B | ...) & (B | C | ...) & ...). If simplify is True, expr is evaluated to its simplest CNF @@ -1512,7 +1512,7 @@

          Boolean functions
          -sympy.logic.boolalg.to_dnf(expr, simplify=False, force=False)[source]#
          +sympy.logic.boolalg.to_dnf(expr, simplify=False, force=False)[source]#

          Convert a propositional logical sentence expr to disjunctive normal form: ((A & ~B & ...) | (B & C & ...) | ...). If simplify is True, expr is evaluated to its simplest DNF form using @@ -1532,7 +1532,7 @@

          Boolean functions
          -sympy.logic.boolalg.to_nnf(expr, simplify=True)[source]#
          +sympy.logic.boolalg.to_nnf(expr, simplify=True)[source]#

          Converts expr to Negation Normal Form (NNF).

          A logical expression is in NNF if it contains only And, Or and Not, @@ -1551,7 +1551,7 @@

          Boolean functions
          -sympy.logic.boolalg.is_anf(expr)[source]#
          +sympy.logic.boolalg.is_anf(expr)[source]#

          Checks if expr is in Algebraic Normal Form (ANF).

          A logical expression is in ANF if it has the form

          @@ -1579,7 +1579,7 @@

          Boolean functions
          -sympy.logic.boolalg.is_cnf(expr)[source]#
          +sympy.logic.boolalg.is_cnf(expr)[source]#

          Test whether or not an expression is in conjunctive normal form.

          Examples

          >>> from sympy.logic.boolalg import is_cnf
          @@ -1596,7 +1596,7 @@ 

          Boolean functions
          -sympy.logic.boolalg.is_dnf(expr)[source]#
          +sympy.logic.boolalg.is_dnf(expr)[source]#

          Test whether or not an expression is in disjunctive normal form.

          Examples

          >>> from sympy.logic.boolalg import is_dnf
          @@ -1615,7 +1615,7 @@ 

          Boolean functions
          -sympy.logic.boolalg.is_nnf(expr, simplified=True)[source]#
          +sympy.logic.boolalg.is_nnf(expr, simplified=True)[source]#

          Checks if expr is in Negation Normal Form (NNF).

          A logical expression is in NNF if it contains only And, Or and Not, @@ -1640,7 +1640,7 @@

          Boolean functions
          -sympy.logic.boolalg.gateinputcount(expr)[source]#
          +sympy.logic.boolalg.gateinputcount(expr)[source]#

          Return the total number of inputs for the logic gates realizing the Boolean expression.

          @@ -1694,7 +1694,7 @@

          Boolean functions#

          -sympy.logic.boolalg.simplify_logic(expr, form=None, deep=True, force=False, dontcare=None)[source]#
          +sympy.logic.boolalg.simplify_logic(expr, form=None, deep=True, force=False, dontcare=None)[source]#

          This function simplifies a boolean function to its simplified version in SOP or POS form. The return type is an Or or And object in SymPy.

          @@ -1755,7 +1755,7 @@

          Simplification and equivalence-testing
          -sympy.logic.boolalg.bool_map(bool1, bool2)[source]#
          +sympy.logic.boolalg.bool_map(bool1, bool2)[source]#

          Return the simplified version of bool1, and the mapping of variables that makes the two expressions bool1 and bool2 represent the same logical behaviour for some correspondence between the variables @@ -1793,7 +1793,7 @@

          Manipulating expressions
          -sympy.logic.boolalg.distribute_and_over_or(expr)[source]#
          +sympy.logic.boolalg.distribute_and_over_or(expr)[source]#

          Given a sentence expr consisting of conjunctions and disjunctions of literals, return an equivalent sentence in CNF.

          Examples

          @@ -1807,7 +1807,7 @@

          Manipulating expressions
          -sympy.logic.boolalg.distribute_or_over_and(expr)[source]#
          +sympy.logic.boolalg.distribute_or_over_and(expr)[source]#

          Given a sentence expr consisting of conjunctions and disjunctions of literals, return an equivalent sentence in DNF.

          Note that the output is NOT simplified.

          @@ -1822,7 +1822,7 @@

          Manipulating expressions
          -sympy.logic.boolalg.distribute_xor_over_and(expr)[source]#
          +sympy.logic.boolalg.distribute_xor_over_and(expr)[source]#

          Given a sentence expr consisting of conjunction and exclusive disjunctions of literals, return an equivalent exclusive disjunction.

          @@ -1838,7 +1838,7 @@

          Manipulating expressions
          -sympy.logic.boolalg.eliminate_implications(expr)[source]#
          +sympy.logic.boolalg.eliminate_implications(expr)[source]#

          Change Implies and Equivalent into And, Or, and Not. That is, return an expression that is equivalent to expr, but has only @@ -1863,7 +1863,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.truth_table(expr, variables, input=True)[source]#
          +sympy.logic.boolalg.truth_table(expr, variables, input=True)[source]#

          Return a generator of all possible configurations of the input variables, and the result of the boolean expression for those values.

          @@ -1919,7 +1919,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.integer_to_term(n, bits=None, str=False)[source]#
          +sympy.logic.boolalg.integer_to_term(n, bits=None, str=False)[source]#

          Return a list of length bits corresponding to the binary value of n with small bits to the right (last). If bits is omitted, the length will be the number required to represent n. If the bits are @@ -1962,7 +1962,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.term_to_integer(term)[source]#
          +sympy.logic.boolalg.term_to_integer(term)[source]#

          Return an integer corresponding to the base-2 digits given by term.

          Parameters:
          @@ -1981,7 +1981,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.bool_maxterm(k, variables)[source]#
          +sympy.logic.boolalg.bool_maxterm(k, variables)[source]#

          Return the k-th maxterm.

          Each maxterm is assigned an index based on the opposite conventional binary encoding used for minterms. The maxterm @@ -2013,7 +2013,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.bool_minterm(k, variables)[source]#
          +sympy.logic.boolalg.bool_minterm(k, variables)[source]#

          Return the k-th minterm.

          Minterms are numbered by a binary encoding of the complementation pattern of the variables. This convention assigns the value 1 to @@ -2044,7 +2044,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.bool_monomial(k, variables)[source]#
          +sympy.logic.boolalg.bool_monomial(k, variables)[source]#

          Return the k-th monomial.

          Monomials are numbered by a binary encoding of the presence and absences of the variables. This convention assigns the value @@ -2077,7 +2077,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.anf_coeffs(truthvalues)[source]#
          +sympy.logic.boolalg.anf_coeffs(truthvalues)[source]#

          Convert a list of truth values of some boolean expression to the list of coefficients of the polynomial mod 2 (exclusive disjunction) representing the boolean expression in ANF @@ -2110,7 +2110,7 @@

          Truth tables and related functions
          -sympy.logic.boolalg.to_int_repr(clauses, symbols)[source]#
          +sympy.logic.boolalg.to_int_repr(clauses, symbols)[source]#

          Takes clauses in CNF format and puts them into an integer representation.

          Examples

          >>> from sympy.logic.boolalg import to_int_repr
          @@ -2145,7 +2145,7 @@ 

          Truth tables and related functionsTrue. If it is not satisfiable it will return False.

          -sympy.logic.inference.satisfiable(expr, algorithm=None, all_models=False, minimal=False, use_lra_theory=False)[source]#
          +sympy.logic.inference.satisfiable(expr, algorithm=None, all_models=False, minimal=False, use_lra_theory=False)[source]#

          Check satisfiability of a propositional sentence. Returns a model when it succeeds. Returns {true: true} for trivially true expressions.

          diff --git a/dev/modules/matrices/common.html b/dev/modules/matrices/common.html index 55cb9dfb33a..6f28a3e5596 100644 --- a/dev/modules/matrices/common.html +++ b/dev/modules/matrices/common.html @@ -741,7 +741,7 @@
          Documentation Version

          Common Matrices#

          -class sympy.matrices.common.MatrixCommon[source]#
          +class sympy.matrices.common.MatrixCommon[source]#

          All common matrix operations including basic arithmetic, shaping, and special matrices like \(zeros\), and \(eye\).

          @@ -786,19 +786,19 @@
          Documentation Version
          -__abs__()[source]#
          +__abs__()[source]#

          Returns a new matrix with entry-wise absolute values.

          -__add__(other)[source]#
          +__add__(other)[source]#

          Return self + other, raising ShapeError if shapes do not match.

          -__getitem__(key)[source]#
          +__getitem__(key)[source]#

          Implementations of __getitem__ should accept ints, in which case the matrix is indexed as a flat list, tuples (i,j) in which case the (i,j) entry is returned, slices, or mixed tuples (a,b) @@ -807,13 +807,13 @@

          Documentation Version
          -__len__()[source]#
          +__len__()[source]#

          The total number of entries in the matrix.

          -__mul__(other)[source]#
          +__mul__(other)[source]#

          Return self*other where other is either a scalar or a matrix of compatible dimensions.

          Examples

          @@ -841,7 +841,7 @@
          Documentation Version
          -__pow__(exp)[source]#
          +__pow__(exp)[source]#

          Return self**exp a scalar or symbol.

          @@ -853,13 +853,13 @@
          Documentation Version
          -adjoint()[source]#
          +adjoint()[source]#

          Conjugate transpose or Hermitian conjugation.

          -applyfunc(f)[source]#
          +applyfunc(f)[source]#

          Apply a function to each element of the matrix.

          Examples

          >>> from sympy import Matrix
          @@ -878,13 +878,13 @@ 
          Documentation Version
          -as_real_imag(deep=True, **hints)[source]#
          +as_real_imag(deep=True, **hints)[source]#

          Returns a tuple containing the (real, imaginary) part of matrix.

          -atoms(*types)[source]#
          +atoms(*types)[source]#

          Returns the atoms that form the current object.

          Examples

          >>> from sympy.abc import x, y
          @@ -905,7 +905,7 @@ 
          Documentation Version
          -col(j)[source]#
          +col(j)[source]#

          Elementary column selector.

          Examples

          >>> from sympy import eye
          @@ -923,13 +923,13 @@ 
          Documentation Version
          -col_del(col)[source]#
          +col_del(col)[source]#

          Delete the specified column.

          -col_insert(pos, other)[source]#
          +col_insert(pos, other)[source]#

          Insert one or more columns at the given column position.

          Examples

          >>> from sympy import zeros, ones
          @@ -950,7 +950,7 @@ 
          Documentation Version
          -col_join(other)[source]#
          +col_join(other)[source]#

          Concatenates two matrices along self’s last and other’s first row.

          Examples

          >>> from sympy import zeros, ones
          @@ -972,7 +972,7 @@ 
          Documentation Version
          -classmethod companion(poly)[source]#
          +classmethod companion(poly)[source]#

          Returns a companion matrix of a polynomial.

          Examples

          >>> from sympy import Matrix, Poly, Symbol, symbols
          @@ -992,7 +992,7 @@ 
          Documentation Version
          -conjugate()[source]#
          +conjugate()[source]#

          Return the by-element conjugation.

          Examples

          >>> from sympy import SparseMatrix, I
          @@ -1024,7 +1024,7 @@ 
          Documentation Version
          -classmethod diag(*args, strict=False, unpack=True, rows=None, cols=None, **kwargs)[source]#
          +classmethod diag(*args, strict=False, unpack=True, rows=None, cols=None, **kwargs)[source]#

          Returns a matrix with the specified diagonal. If matrices are passed, a block-diagonal matrix is created (i.e. the “direct sum” of the matrices).

          @@ -1108,7 +1108,7 @@
          Documentation Version
          -diagonal(k=0)[source]#
          +diagonal(k=0)[source]#

          Returns the kth diagonal of self. The main diagonal corresponds to \(k=0\); diagonals above and below correspond to \(k > 0\) and \(k < 0\), respectively. The values of \(self[i, j]\) @@ -1143,13 +1143,13 @@

          Documentation Version
          -evalf(n=15, subs=None, maxn=100, chop=False, strict=False, quad=None, verbose=False)[source]#
          +evalf(n=15, subs=None, maxn=100, chop=False, strict=False, quad=None, verbose=False)[source]#

          Apply evalf() to each element of self.

          -expand(deep=True, modulus=None, power_base=True, power_exp=True, mul=True, log=True, multinomial=True, basic=True, **hints)[source]#
          +expand(deep=True, modulus=None, power_base=True, power_exp=True, mul=True, log=True, multinomial=True, basic=True, **hints)[source]#

          Apply core.function.expand to each entry of the matrix.

          Examples

          >>> from sympy.abc import x
          @@ -1164,7 +1164,7 @@ 
          Documentation Version
          -extract(rowsList, colsList)[source]#
          +extract(rowsList, colsList)[source]#

          Return a submatrix by specifying a list of rows and columns. Negative indices can be given. All indices must be in the range \(-n \le i < n\) where \(n\) is the number of rows or columns.

          @@ -1213,7 +1213,7 @@
          Documentation Version
          -classmethod eye(rows, cols=None, **kwargs)[source]#
          +classmethod eye(rows, cols=None, **kwargs)[source]#

          Returns an identity matrix.

          Parameters:
          @@ -1240,7 +1240,7 @@
          Documentation Version
          -get_diag_blocks()[source]#
          +get_diag_blocks()[source]#

          Obtains the square sub-matrices on the main diagonal of a square matrix.

          Useful for inverting symbolic matrices or solving systems of linear equations which may be decoupled by having a block diagonal @@ -1264,7 +1264,7 @@

          Documentation Version
          -has(*patterns)[source]#
          +has(*patterns)[source]#

          Test whether any subexpression matches any of the patterns.

          Examples

          >>> from sympy import Matrix, SparseMatrix, Float
          @@ -1289,7 +1289,7 @@ 
          Documentation Version
          -classmethod hstack(*args)[source]#
          +classmethod hstack(*args)[source]#

          Return a matrix formed by joining args horizontally (i.e. by repeated application of row_join).

          Examples

          @@ -1304,7 +1304,7 @@
          Documentation Version
          -is_anti_symmetric(simplify=True)[source]#
          +is_anti_symmetric(simplify=True)[source]#

          Check if matrix M is an antisymmetric matrix, that is, M is a square matrix with all M[i, j] == -M[j, i].

          When simplify=True (default), the sum M[i, j] + M[j, i] is @@ -1368,7 +1368,7 @@

          Documentation Version
          -is_diagonal()[source]#
          +is_diagonal()[source]#

          Check if matrix is diagonal, that is matrix in which the entries outside the main diagonal are all zero.

          Examples

          @@ -1562,7 +1562,7 @@
          Documentation Version
          -is_symbolic()[source]#
          +is_symbolic()[source]#

          Checks if any elements contain Symbols.

          Examples

          >>> from sympy import Matrix
          @@ -1576,7 +1576,7 @@ 
          Documentation Version
          -is_symmetric(simplify=True)[source]#
          +is_symmetric(simplify=True)[source]#

          Check if matrix is symmetric matrix, that is square matrix and is equal to its transpose.

          By default, simplifications occur before testing symmetry. @@ -1765,7 +1765,7 @@

          Documentation Version
          -classmethod jordan_block(size=None, eigenvalue=None, *, band='upper', **kwargs)[source]#
          +classmethod jordan_block(size=None, eigenvalue=None, *, band='upper', **kwargs)[source]#

          Returns a Jordan block

          Parameters:
          @@ -1850,7 +1850,7 @@
          Documentation Version
          -lower_triangular(k=0)[source]#
          +lower_triangular(k=0)[source]#

          Return the elements on and below the kth diagonal of a matrix. If k is not specified then simply returns lower-triangular portion of a matrix

          @@ -1885,7 +1885,7 @@
          Documentation Version
          -multiply(other, dotprodsimp=None)[source]#
          +multiply(other, dotprodsimp=None)[source]#

          Same as __mul__() but with optional simplification.

          Parameters:
          @@ -1901,7 +1901,7 @@
          Documentation Version
          -multiply_elementwise(other)[source]#
          +multiply_elementwise(other)[source]#

          Return the Hadamard product (elementwise product) of A and B

          Examples

          >>> from sympy import Matrix
          @@ -1921,13 +1921,13 @@ 
          Documentation Version
          -n(*args, **kwargs)[source]#
          +n(*args, **kwargs)[source]#

          Apply evalf() to each element of self.

          -classmethod ones(rows, cols=None, **kwargs)[source]#
          +classmethod ones(rows, cols=None, **kwargs)[source]#

          Returns a matrix of ones.

          Parameters:
          @@ -1941,7 +1941,7 @@
          Documentation Version
          -permute(perm, orientation='rows', direction='forward')[source]#
          +permute(perm, orientation='rows', direction='forward')[source]#

          Permute the rows or columns of a matrix by the given list of swaps.

          @@ -2035,7 +2035,7 @@
          Documentation Version
          -permute_cols(swaps, direction='forward')[source]#
          +permute_cols(swaps, direction='forward')[source]#

          Alias for self.permute(swaps, orientation='cols', direction=direction)

          @@ -2046,7 +2046,7 @@
          Documentation Version
          -permute_rows(swaps, direction='forward')[source]#
          +permute_rows(swaps, direction='forward')[source]#

          Alias for self.permute(swaps, orientation='rows', direction=direction)

          @@ -2057,7 +2057,7 @@
          Documentation Version
          -pow(exp, method=None)[source]#
          +pow(exp, method=None)[source]#

          Return self**exp a scalar or symbol.

          Parameters:
          @@ -2079,7 +2079,7 @@
          Documentation Version
          -refine(assumptions=True)[source]#
          +refine(assumptions=True)[source]#

          Apply refine to each element of the matrix.

          Examples

          >>> from sympy import Symbol, Matrix, Abs, sqrt, Q
          @@ -2098,7 +2098,7 @@ 
          Documentation Version
          -replace(F, G, map=False, simultaneous=True, exact=None)[source]#
          +replace(F, G, map=False, simultaneous=True, exact=None)[source]#

          Replaces Function F in Matrix entries with Function G.

          Examples

          >>> from sympy import symbols, Function, Matrix
          @@ -2118,7 +2118,7 @@ 
          Documentation Version
          -reshape(rows, cols)[source]#
          +reshape(rows, cols)[source]#

          Reshape the matrix. Total number of elements must remain the same.

          Examples

          >>> from sympy import Matrix
          @@ -2140,7 +2140,7 @@ 
          Documentation Version
          -rmultiply(other, dotprodsimp=None)[source]#
          +rmultiply(other, dotprodsimp=None)[source]#

          Same as __rmul__() but with optional simplification.

          Parameters:
          @@ -2156,7 +2156,7 @@
          Documentation Version
          -rot90(k=1)[source]#
          +rot90(k=1)[source]#

          Rotates Matrix by 90 degrees

          Parameters:
          @@ -2194,7 +2194,7 @@
          Documentation Version
          -row(i)[source]#
          +row(i)[source]#

          Elementary row selector.

          Examples

          >>> from sympy import eye
          @@ -2210,13 +2210,13 @@ 
          Documentation Version
          -row_del(row)[source]#
          +row_del(row)[source]#

          Delete the specified row.

          -row_insert(pos, other)[source]#
          +row_insert(pos, other)[source]#

          Insert one or more rows at the given row position.

          Examples

          >>> from sympy import zeros, ones
          @@ -2238,7 +2238,7 @@ 
          Documentation Version
          -row_join(other)[source]#
          +row_join(other)[source]#

          Concatenates two matrices along self’s last and rhs’s first column

          Examples

          >>> from sympy import zeros, ones
          @@ -2276,7 +2276,7 @@ 
          Documentation Version
          -simplify(**kwargs)[source]#
          +simplify(**kwargs)[source]#

          Apply simplify to each element of the matrix.

          Examples

          >>> from sympy.abc import x, y
          @@ -2291,7 +2291,7 @@ 
          Documentation Version
          -subs(*args, **kwargs)[source]#
          +subs(*args, **kwargs)[source]#

          Return a new matrix with subs applied to each entry.

          Examples

          >>> from sympy.abc import x, y
          @@ -2308,7 +2308,7 @@ 
          Documentation Version
          -todod()[source]#
          +todod()[source]#

          Returns matrix as dict of dicts containing non-zero elements of the Matrix

          Examples

          >>> from sympy import Matrix
          @@ -2325,7 +2325,7 @@ 
          Documentation Version
          -todok()[source]#
          +todok()[source]#

          Return the matrix as dictionary of keys.

          Examples

          >>> from sympy import Matrix
          @@ -2338,7 +2338,7 @@ 
          Documentation Version
          -tolist()[source]#
          +tolist()[source]#

          Return the Matrix as a nested Python list.

          Examples

          >>> from sympy import Matrix, ones
          @@ -2364,7 +2364,7 @@ 
          Documentation Version
          -trace()[source]#
          +trace()[source]#

          Returns the trace of a square matrix i.e. the sum of the diagonal elements.

          Examples

          @@ -2378,7 +2378,7 @@
          Documentation Version
          -transpose()[source]#
          +transpose()[source]#

          Returns the transpose of the matrix.

          Examples

          >>> from sympy import Matrix
          @@ -2414,7 +2414,7 @@ 
          Documentation Version
          -upper_triangular(k=0)[source]#
          +upper_triangular(k=0)[source]#

          Return the elements on and above the kth diagonal of a matrix. If k is not specified then simply returns upper-triangular portion of a matrix

          @@ -2449,13 +2449,13 @@
          Documentation Version
          -values()[source]#
          +values()[source]#

          Return non-zero values of self.

          -vec()[source]#
          +vec()[source]#

          Return the Matrix converted into a one column matrix by stacking columns

          Examples

          >>> from sympy import Matrix
          @@ -2480,7 +2480,7 @@ 
          Documentation Version
          -vech(diagonal=True, check_symmetry=True)[source]#
          +vech(diagonal=True, check_symmetry=True)[source]#

          Reshapes the matrix into a column vector by stacking the elements in the lower triangle.

          @@ -2523,7 +2523,7 @@
          Documentation Version
          -classmethod vstack(*args)[source]#
          +classmethod vstack(*args)[source]#

          Return a matrix formed by joining args vertically (i.e. by repeated application of col_join).

          Examples

          @@ -2540,7 +2540,7 @@
          Documentation Version
          -classmethod wilkinson(n, **kwargs)[source]#
          +classmethod wilkinson(n, **kwargs)[source]#

          Returns two square Wilkinson Matrix of size 2*n + 1 \(W_{2n + 1}^-, W_{2n + 1}^+ =\) Wilkinson(n)

          Examples

          @@ -2586,7 +2586,7 @@
          Documentation Version
          -xreplace(rule)[source]#
          +xreplace(rule)[source]#

          Return a new matrix with xreplace applied to each entry.

          Examples

          >>> from sympy.abc import x, y
          @@ -2603,7 +2603,7 @@ 
          Documentation Version
          -classmethod zeros(rows, cols=None, **kwargs)[source]#
          +classmethod zeros(rows, cols=None, **kwargs)[source]#

          Returns a matrix of zeros.

          Parameters:
          @@ -2619,7 +2619,7 @@
          Documentation Version
          -class sympy.matrices.common.MatrixKind(element_kind=NumberKind)[source]#
          +class sympy.matrices.common.MatrixKind(element_kind=NumberKind)[source]#

          Kind for all matrices in SymPy.

          Basic class for this kind is MatrixBase and MatrixExpr, but any expression representing the matrix can have this.

          diff --git a/dev/modules/matrices/dense.html b/dev/modules/matrices/dense.html index 0b43dfa527a..20e09e8f62e 100644 --- a/dev/modules/matrices/dense.html +++ b/dev/modules/matrices/dense.html @@ -741,17 +741,17 @@
          Documentation Version

          Dense Matrices#

          -sympy.matrices.dense.Matrix[source]#
          +sympy.matrices.dense.Matrix[source]#

          alias of MutableDenseMatrix

          -class sympy.matrices.dense.DenseMatrix[source]#
          +class sympy.matrices.dense.DenseMatrix[source]#

          Matrix implementation based on DomainMatrix as the internal representation

          -LDLdecomposition(hermitian=True)[source]#
          +LDLdecomposition(hermitian=True)[source]#

          Returns the LDL Decomposition (L, D) of matrix A, such that L * D * L.H == A if hermitian flag is True, or L * D * L.T == A if hermitian is False. @@ -801,13 +801,13 @@

          Dense Matrices
          -as_immutable()[source]#
          +as_immutable()[source]#

          Returns an Immutable version of this Matrix

          -as_mutable()[source]#
          +as_mutable()[source]#

          Returns a mutable version of this matrix

          Examples

          >>> from sympy import ImmutableMatrix
          @@ -824,7 +824,7 @@ 

          Dense Matrices
          -cholesky(hermitian=True)[source]#
          +cholesky(hermitian=True)[source]#

          Returns the Cholesky-type decomposition L of a matrix A such that L * L.H == A if hermitian flag is True, or L * L.T == A if hermitian is False.

          @@ -878,7 +878,7 @@

          Dense Matrices
          -lower_triangular_solve(rhs)[source]#
          +lower_triangular_solve(rhs)[source]#

          Solves Ax = B, where A is a lower triangular matrix.

          See also

          @@ -888,7 +888,7 @@

          Dense Matrices
          -upper_triangular_solve(rhs)[source]#
          +upper_triangular_solve(rhs)[source]#

          Solves Ax = B, where A is an upper triangular matrix.

          See also

          @@ -900,10 +900,10 @@

          Dense Matrices
          -class sympy.matrices.dense.MutableDenseMatrix(*args, **kwargs)[source]#
          +class sympy.matrices.dense.MutableDenseMatrix(*args, **kwargs)[source]#
          -simplify(**kwargs)[source]#
          +simplify(**kwargs)[source]#

          Applies simplify to the elements of a matrix in place.

          This is a shortcut for M.applyfunc(lambda x: simplify(x, ratio, measure))

          @@ -916,7 +916,7 @@

          Dense Matrices
          -class sympy.matrices.immutable.ImmutableDenseMatrix(*args, **kwargs)[source]
          +class sympy.matrices.immutable.ImmutableDenseMatrix(*args, **kwargs)[source]

          Create an immutable version of a matrix.

          Examples

          >>> from sympy import eye, ImmutableMatrix
          diff --git a/dev/modules/matrices/expressions.html b/dev/modules/matrices/expressions.html
          index 0dac3e69640..c92f670e362 100644
          --- a/dev/modules/matrices/expressions.html
          +++ b/dev/modules/matrices/expressions.html
          @@ -778,7 +778,7 @@ 
          Documentation Version

          Matrix Expressions Core Reference#

          -class sympy.matrices.expressions.MatrixExpr(*args, **kwargs)[source]#
          +class sympy.matrices.expressions.MatrixExpr(*args, **kwargs)[source]#

          Superclass for Matrix Expressions

          MatrixExprs represent abstract matrices, linear transformations represented within a particular basis.

          @@ -801,13 +801,13 @@

          Matrix Expressions Core Reference
          -as_coeff_Mul(rational=False)[source]#
          +as_coeff_Mul(rational=False)[source]#

          Efficiently extract the coefficient of a product.

          -as_explicit()[source]#
          +as_explicit()[source]#

          Returns a dense Matrix with elements represented explicitly

          Returns an object of type ImmutableDenseMatrix.

          Examples

          @@ -833,7 +833,7 @@

          Matrix Expressions Core Reference
          -as_mutable()[source]#
          +as_mutable()[source]#

          Returns a dense, mutable matrix with elements represented explicitly

          Examples

          >>> from sympy import Identity
          @@ -860,7 +860,7 @@ 

          Matrix Expressions Core Reference
          -equals(other)[source]#
          +equals(other)[source]#

          Test elementwise equality between matrices, potentially of different types

          >>> from sympy import Identity, eye
          @@ -872,7 +872,7 @@ 

          Matrix Expressions Core Reference
          -static from_index_summation(expr, first_index=None, last_index=None, dimensions=None)[source]#
          +static from_index_summation(expr, first_index=None, last_index=None, dimensions=None)[source]#

          Parse expression of matrices with explicitly summed indices into a matrix expression without indices, if possible.

          This transformation expressed in mathematical notation:

          @@ -913,7 +913,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.MatrixSymbol(name, n, m)[source]#
          +class sympy.matrices.expressions.MatrixSymbol(name, n, m)[source]#

          Symbolic representation of a Matrix object

          Creates a SymPy Symbol to represent a Matrix. This matrix has a shape and can be included in Matrix Expressions

          @@ -931,7 +931,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.MatAdd(*args, evaluate=False, check=None, _sympify=True)[source]#
          +class sympy.matrices.expressions.MatAdd(*args, evaluate=False, check=None, _sympify=True)[source]#

          A Sum of Matrix Expressions

          MatAdd inherits from and operates like SymPy Add

          Examples

          @@ -947,7 +947,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.MatMul(*args, evaluate=False, check=None, _sympify=True)[source]#
          +class sympy.matrices.expressions.MatMul(*args, evaluate=False, check=None, _sympify=True)[source]#

          A product of matrix expressions

          Examples

          >>> from sympy import MatMul, MatrixSymbol
          @@ -962,12 +962,12 @@ 

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.MatPow(base, exp, evaluate=False, **options)[source]#
          +class sympy.matrices.expressions.MatPow(base, exp, evaluate=False, **options)[source]#

          -sympy.matrices.expressions.hadamard_product(*matrices)[source]#
          +sympy.matrices.expressions.hadamard_product(*matrices)[source]#

          Return the elementwise (aka Hadamard) product of matrices.

          Examples

          >>> from sympy import hadamard_product, MatrixSymbol
          @@ -985,7 +985,7 @@ 

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.HadamardProduct(*args, evaluate=False, check=None)[source]#
          +class sympy.matrices.expressions.HadamardProduct(*args, evaluate=False, check=None)[source]#

          Elementwise product of matrix expressions

          Examples

          Hadamard product for matrix symbols:

          @@ -1004,7 +1004,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.HadamardPower(base, exp)[source]#
          +class sympy.matrices.expressions.HadamardPower(base, exp)[source]#

          Elementwise power of matrix expressions

          Parameters:
          @@ -1058,7 +1058,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.Inverse(mat, exp=-1)[source]#
          +class sympy.matrices.expressions.Inverse(mat, exp=-1)[source]#

          The multiplicative inverse of a matrix expression

          This is a symbolic object that simply stores its argument without evaluating it. To actually compute the inverse, use the .inverse() @@ -1081,7 +1081,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.Transpose(*args, **kwargs)[source]#
          +class sympy.matrices.expressions.Transpose(*args, **kwargs)[source]#

          The transpose of a matrix expression.

          This is a symbolic object that simply stores its argument without evaluating it. To actually compute the transpose, use the transpose() @@ -1104,7 +1104,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.Trace(mat)[source]#
          +class sympy.matrices.expressions.Trace(mat)[source]#

          Matrix Trace

          Represents the trace of a matrix expression.

          Examples

          @@ -1125,7 +1125,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.FunctionMatrix(rows, cols, lamda)[source]#
          +class sympy.matrices.expressions.FunctionMatrix(rows, cols, lamda)[source]#

          Represents a matrix using a function (Lambda) which gives outputs according to the coordinates of each matrix entries.

          @@ -1193,7 +1193,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.PermutationMatrix(perm)[source]#
          +class sympy.matrices.expressions.PermutationMatrix(perm)[source]#

          A Permutation Matrix

          Parameters:
          @@ -1244,7 +1244,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.MatrixPermute(mat, perm, axis=0)[source]#
          +class sympy.matrices.expressions.MatrixPermute(mat, perm, axis=0)[source]#

          Symbolic representation for permuting matrix rows or columns.

          Parameters:
          @@ -1297,7 +1297,7 @@

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.Identity(n)[source]#
          +class sympy.matrices.expressions.Identity(n)[source]#

          The Matrix Identity I - multiplicative identity

          Examples

          >>> from sympy import Identity, MatrixSymbol
          @@ -1311,7 +1311,7 @@ 

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.ZeroMatrix(m, n)[source]#
          +class sympy.matrices.expressions.ZeroMatrix(m, n)[source]#

          The Matrix Zero 0 - additive identity

          Examples

          >>> from sympy import MatrixSymbol, ZeroMatrix
          @@ -1327,7 +1327,7 @@ 

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.CompanionMatrix(poly)[source]#
          +class sympy.matrices.expressions.CompanionMatrix(poly)[source]#

          A symbolic companion matrix of a polynomial.

          Examples

          >>> from sympy import Poly, Symbol, symbols
          @@ -1344,7 +1344,7 @@ 

          Matrix Expressions Core Reference
          -class sympy.matrices.expressions.MatrixSet(n, m, set)[source]#
          +class sympy.matrices.expressions.MatrixSet(n, m, set)[source]#

          MatrixSet represents the set of matrices with shape = (n, m) over the given set.

          Examples

          @@ -1369,7 +1369,7 @@

          Block MatricesImmutableMatrix objects.

          -class sympy.matrices.expressions.blockmatrix.BlockMatrix(*args, **kwargs)[source]#
          +class sympy.matrices.expressions.blockmatrix.BlockMatrix(*args, **kwargs)[source]#

          A BlockMatrix is a Matrix comprised of other matrices.

          The submatrices are stored in a SymPy Matrix object but accessed as part of a Matrix Expression

          @@ -1428,7 +1428,7 @@

          Block Matrices
          -LDUdecomposition()[source]#
          +LDUdecomposition()[source]#

          Returns the Block LDU decomposition of a 2x2 Block Matrix

          @@ -1474,7 +1474,7 @@

          Block Matrices
          -LUdecomposition()[source]#
          +LUdecomposition()[source]#

          Returns the Block LU decomposition of a 2x2 Block Matrix

          @@ -1519,7 +1519,7 @@

          Block Matrices
          -UDLdecomposition()[source]#
          +UDLdecomposition()[source]#

          Returns the Block UDL decomposition of a 2x2 Block Matrix

          @@ -1565,7 +1565,7 @@

          Block Matrices
          -schur(mat='A', generalized=False)[source]#
          +schur(mat='A', generalized=False)[source]#

          Return the Schur Complement of the 2x2 BlockMatrix

          Parameters:
          @@ -1640,7 +1640,7 @@

          Block Matrices
          -transpose()[source]#
          +transpose()[source]#

          Return transpose of matrix.

          Examples

          >>> from sympy import MatrixSymbol, BlockMatrix, ZeroMatrix
          @@ -1665,7 +1665,7 @@ 

          Block Matrices
          -class sympy.matrices.expressions.blockmatrix.BlockDiagMatrix(*mats)[source]#
          +class sympy.matrices.expressions.blockmatrix.BlockDiagMatrix(*mats)[source]#

          A sparse matrix with block matrices along its diagonals

          Examples

          >>> from sympy import MatrixSymbol, BlockDiagMatrix, symbols
          @@ -1687,7 +1687,7 @@ 

          Block Matrices
          -get_diag_blocks()[source]#
          +get_diag_blocks()[source]#

          Return the list of diagonal blocks of the matrix.

          Examples

          >>> from sympy import BlockDiagMatrix, Matrix
          @@ -1716,7 +1716,7 @@ 

          Block Matrices
          -sympy.matrices.expressions.blockmatrix.block_collapse(expr)[source]#
          +sympy.matrices.expressions.blockmatrix.block_collapse(expr)[source]#

          Evaluates a block matrix expression

          >>> from sympy import MatrixSymbol, BlockMatrix, symbols, Identity, ZeroMatrix, block_collapse
           >>> n,m,l = symbols('n m l')
          diff --git a/dev/modules/matrices/immutablematrices.html b/dev/modules/matrices/immutablematrices.html
          index 5c0a895f3a2..eaaa0f3f0b7 100644
          --- a/dev/modules/matrices/immutablematrices.html
          +++ b/dev/modules/matrices/immutablematrices.html
          @@ -771,13 +771,13 @@ 

          Immutable Matrices

          ImmutableMatrix Class Reference#

          -sympy.matrices.immutable.ImmutableMatrix[source]#
          +sympy.matrices.immutable.ImmutableMatrix[source]#

          alias of ImmutableDenseMatrix

          -class sympy.matrices.immutable.ImmutableDenseMatrix(*args, **kwargs)[source]#
          +class sympy.matrices.immutable.ImmutableDenseMatrix(*args, **kwargs)[source]#

          Create an immutable version of a matrix.

          Examples

          >>> from sympy import eye, ImmutableMatrix
          diff --git a/dev/modules/matrices/matrices.html b/dev/modules/matrices/matrices.html
          index b7196653c35..3de3c7547c1 100644
          --- a/dev/modules/matrices/matrices.html
          +++ b/dev/modules/matrices/matrices.html
          @@ -1263,12 +1263,12 @@ 

          Matrix Base ClassesDense Matrices, and Sparse Matrices.

          -class sympy.matrices.matrices.MatrixDeterminant[source]#
          +class sympy.matrices.matrices.MatrixDeterminant[source]#

          Provides basic matrix determinant operations. Should not be instantiated directly. See determinant.py for their implementations.

          -adjugate(method='berkowitz')[source]#
          +adjugate(method='berkowitz')[source]#

          Returns the adjugate, or classical adjoint, of a matrix. That is, the transpose of the matrix of cofactors.

          https://en.wikipedia.org/wiki/Adjugate

          @@ -1298,7 +1298,7 @@

          Matrix Base Classes
          -charpoly(x='lambda', simplify=<function _simplify>)[source]#
          +charpoly(x='lambda', simplify=<function _simplify>)[source]#

          Computes characteristic polynomial det(x*I - M) where I is the identity matrix.

          A PurePoly is returned, so using different variables for x does @@ -1367,7 +1367,7 @@

          Matrix Base Classes
          -cofactor(i, j, method='berkowitz')[source]#
          +cofactor(i, j, method='berkowitz')[source]#

          Calculate the cofactor of an element.

          Parameters:
          @@ -1393,7 +1393,7 @@

          Matrix Base Classes
          -cofactor_matrix(method='berkowitz')[source]#
          +cofactor_matrix(method='berkowitz')[source]#

          Return a matrix containing the cofactor of each element.

          Parameters:
          @@ -1421,7 +1421,7 @@

          Matrix Base Classes
          -det(method='bareiss', iszerofunc=None)[source]#
          +det(method='bareiss', iszerofunc=None)[source]#

          Computes the determinant of a matrix if M is a concrete matrix object otherwise return an expressions Determinant(M) if M is a MatrixSymbol or other expression.

          @@ -1509,7 +1509,7 @@

          Matrix Base Classes
          -minor(i, j, method='berkowitz')[source]#
          +minor(i, j, method='berkowitz')[source]#

          Return the (i,j) minor of M. That is, return the determinant of the matrix obtained by deleting the \(i`th row and `j`th column from ``M`\).

          @@ -1541,7 +1541,7 @@

          Matrix Base Classes
          -minor_submatrix(i, j)[source]#
          +minor_submatrix(i, j)[source]#

          Return the submatrix obtained by removing the \(i`th row and `j`th column from ``M`\) (works with Pythonic negative indices).

          @@ -1569,7 +1569,7 @@

          Matrix Base Classes
          -per()[source]#
          +per()[source]#

          Returns the permanent of a matrix. Unlike determinant, permanent is defined for both square and non-square matrices.

          For an m x n matrix, with m less than or equal to n, @@ -1616,12 +1616,12 @@

          Matrix Base Classes
          -class sympy.matrices.matrices.MatrixReductions[source]#
          +class sympy.matrices.matrices.MatrixReductions[source]#

          Provides basic matrix row/column operations. Should not be instantiated directly. See reductions.py for some of their implementations.

          -echelon_form(iszerofunc=<function _iszero>, simplify=False, with_pivots=False)[source]#
          +echelon_form(iszerofunc=<function _iszero>, simplify=False, with_pivots=False)[source]#

          Returns a matrix row-equivalent to M that is in echelon form. Note that echelon form of a matrix is not unique, however, properties like the row space and the null space are preserved.

          @@ -1638,7 +1638,7 @@

          Matrix Base Classes
          -elementary_col_op(op='n->kn', col=None, k=None, col1=None, col2=None)[source]#
          +elementary_col_op(op='n->kn', col=None, k=None, col1=None, col2=None)[source]#

          Performs the elementary column operation \(op\).

          \(op\) may be one of

          @@ -1664,7 +1664,7 @@

          Matrix Base Classes
          -elementary_row_op(op='n->kn', row=None, k=None, row1=None, row2=None)[source]#
          +elementary_row_op(op='n->kn', row=None, k=None, row1=None, row2=None)[source]#

          Performs the elementary row operation \(op\).

          \(op\) may be one of

          @@ -1698,7 +1698,7 @@

          Matrix Base Classes
          -rank(iszerofunc=<function _iszero>, simplify=False)[source]#
          +rank(iszerofunc=<function _iszero>, simplify=False)[source]#

          Returns the rank of a matrix.

          Examples

          >>> from sympy import Matrix
          @@ -1715,7 +1715,7 @@ 

          Matrix Base Classes
          -rref(iszerofunc=<function _iszero>, simplify=False, pivots=True, normalize_last=True)[source]#
          +rref(iszerofunc=<function _iszero>, simplify=False, pivots=True, normalize_last=True)[source]#

          Return reduced row-echelon form of matrix and indices of pivot vars.

          @@ -1791,7 +1791,7 @@

          Matrix Base Classes
          -rref_rhs(rhs)[source]#
          +rref_rhs(rhs)[source]#

          Return reduced row-echelon form of matrix, matrix showing rhs after reduction steps. rhs must have the same number of rows as self.

          @@ -1812,13 +1812,13 @@

          Matrix Base Classes
          -class sympy.matrices.matrices.MatrixSubspaces[source]#
          +class sympy.matrices.matrices.MatrixSubspaces[source]#

          Provides methods relating to the fundamental subspaces of a matrix. Should not be instantiated directly. See subspaces.py for their implementations.

          -columnspace(simplify=False)[source]#
          +columnspace(simplify=False)[source]#

          Returns a list of vectors (Matrix objects) that span columnspace of M

          Examples

          >>> from sympy import Matrix
          @@ -1846,7 +1846,7 @@ 

          Matrix Base Classes
          -nullspace(simplify=False, iszerofunc=<function _iszero>)[source]#
          +nullspace(simplify=False, iszerofunc=<function _iszero>)[source]#

          Returns list of vectors (Matrix objects) that span nullspace of M

          Examples

          >>> from sympy import Matrix
          @@ -1871,7 +1871,7 @@ 

          Matrix Base Classes
          -classmethod orthogonalize(*vecs, **kwargs)[source]#
          +classmethod orthogonalize(*vecs, **kwargs)[source]#

          Apply the Gram-Schmidt orthogonalization procedure to vectors supplied in vecs.

          @@ -1925,7 +1925,7 @@

          Matrix Base Classes
          -rowspace(simplify=False)[source]#
          +rowspace(simplify=False)[source]#

          Returns a list of vectors that span the row space of M.

          Examples

          >>> from sympy import Matrix
          @@ -1945,13 +1945,13 @@ 

          Matrix Base Classes
          -class sympy.matrices.matrices.MatrixEigen[source]#
          +class sympy.matrices.matrices.MatrixEigen[source]#

          Provides basic matrix eigenvalue/vector operations. Should not be instantiated directly. See eigen.py for their implementations.

          -bidiagonal_decomposition(upper=True)[source]#
          +bidiagonal_decomposition(upper=True)[source]#

          Returns \((U,B,V.H)\) for

          @@ -1983,7 +1983,7 @@

          Matrix Base Classes
          -bidiagonalize(upper=True)[source]#
          +bidiagonalize(upper=True)[source]#

          Returns \(B\), the Bidiagonalized form of the input matrix.

          Note: Bidiagonal Computation can hang for symbolic matrices.

          @@ -2009,7 +2009,7 @@

          Matrix Base Classes
          -diagonalize(reals_only=False, sort=False, normalize=False)[source]#
          +diagonalize(reals_only=False, sort=False, normalize=False)[source]#

          Return (P, D), where D is diagonal and

          D = P^-1 * M * P

          @@ -2059,7 +2059,7 @@

          Matrix Base Classes
          -eigenvals(error_when_incomplete=True, **flags)[source]#
          +eigenvals(error_when_incomplete=True, **flags)[source]#

          Compute eigenvalues of the matrix.

          Parameters:
          @@ -2135,7 +2135,7 @@

          Matrix Base Classes
          -eigenvects(error_when_incomplete=True, iszerofunc=<function _iszero>, **flags)[source]#
          +eigenvects(error_when_incomplete=True, iszerofunc=<function _iszero>, **flags)[source]#

          Compute eigenvectors of the matrix.

          Parameters:
          @@ -2211,7 +2211,7 @@

          Matrix Base Classes
          -is_diagonalizable(reals_only=False, **kwargs)[source]#
          +is_diagonalizable(reals_only=False, **kwargs)[source]#

          Returns True if a matrix is diagonalizable.

          Parameters:
          @@ -3109,7 +3109,7 @@

          Matrix Base Classes
          -jordan_form(calc_transform=True, **kwargs)[source]#
          +jordan_form(calc_transform=True, **kwargs)[source]#

          Return \((P, J)\) where \(J\) is a Jordan block matrix and \(P\) is a matrix such that \(M = P J P^{-1}\)

          @@ -3147,7 +3147,7 @@

          Matrix Base Classes
          -left_eigenvects(**flags)[source]#
          +left_eigenvects(**flags)[source]#

          Returns left eigenvectors and eigenvalues.

          This function returns the list of triples (eigenval, multiplicity, basis) for the left eigenvectors. Options are the same as for @@ -3176,7 +3176,7 @@

          Matrix Base Classes
          -singular_values()[source]#
          +singular_values()[source]#

          Compute the singular values of a Matrix

          Examples

          >>> from sympy import Matrix, Symbol
          @@ -3196,11 +3196,11 @@ 

          Matrix Base Classes
          -class sympy.matrices.matrices.MatrixCalculus[source]#
          +class sympy.matrices.matrices.MatrixCalculus[source]#

          Provides calculus-related matrix operations.

          -diff(*args, evaluate=True, **kwargs)[source]#
          +diff(*args, evaluate=True, **kwargs)[source]#

          Calculate the derivative of each element in the matrix.

          Examples

          >>> from sympy import Matrix
          @@ -3220,7 +3220,7 @@ 

          Matrix Base Classes
          -integrate(*args, **kwargs)[source]#
          +integrate(*args, **kwargs)[source]#

          Integrate each element of the matrix. args will be passed to the integrate function.

          Examples

          @@ -3245,7 +3245,7 @@

          Matrix Base Classes
          -jacobian(X)[source]#
          +jacobian(X)[source]#

          Calculates the Jacobian matrix (derivative of a vector-valued function).

          Parameters:
          @@ -3280,7 +3280,7 @@

          Matrix Base Classes
          -limit(*args)[source]#
          +limit(*args)[source]#

          Calculate the limit of each element in the matrix. args will be passed to the limit function.

          Examples

          @@ -3303,7 +3303,7 @@

          Matrix Base Classes
          -class sympy.matrices.matrices.MatrixBase[source]#
          +class sympy.matrices.matrices.MatrixBase[source]#

          Base class for matrix objects.

          @@ -3345,7 +3345,7 @@

          Matrix Base Classes
          -LDLdecomposition(hermitian=True)[source]#
          +LDLdecomposition(hermitian=True)[source]#

          Returns the LDL Decomposition (L, D) of matrix A, such that L * D * L.H == A if hermitian flag is True, or L * D * L.T == A if hermitian is False. @@ -3395,7 +3395,7 @@

          Matrix Base Classes
          -LDLsolve(rhs)[source]#
          +LDLsolve(rhs)[source]#

          Solves Ax = B using LDL decomposition, for a general square and non-singular matrix.

          For a non-square matrix with rows > cols, @@ -3416,7 +3416,7 @@

          Matrix Base Classes
          -LUdecomposition(iszerofunc=<function _iszero>, simpfunc=None, rankcheck=False)[source]#
          +LUdecomposition(iszerofunc=<function _iszero>, simpfunc=None, rankcheck=False)[source]#

          Returns (L, U, perm) where L is a lower triangular matrix with unit diagonal, U is an upper triangular matrix, and perm is a list of row swap index pairs. If A is the original matrix, then @@ -3479,7 +3479,7 @@

          Matrix Base Classes
          -LUdecompositionFF()[source]#
          +LUdecompositionFF()[source]#

          Compute a fraction-free LU decomposition.

          Returns 4 matrices P, L, D, U such that PA = L D**-1 U. If the elements of the matrix belong to some integral domain I, then all @@ -3501,7 +3501,7 @@

          Matrix Base Classes
          -LUdecomposition_Simple(iszerofunc=<function _iszero>, simpfunc=None, rankcheck=False)[source]#
          +LUdecomposition_Simple(iszerofunc=<function _iszero>, simpfunc=None, rankcheck=False)[source]#

          Compute the PLU decomposition of the matrix.

          Parameters:
          @@ -3764,7 +3764,7 @@

          Matrix Base Classes
          -LUsolve(rhs, iszerofunc=<function _iszero>)[source]#
          +LUsolve(rhs, iszerofunc=<function _iszero>)[source]#

          Solve the linear system Ax = rhs for x where A = M.

          This is for symbolic matrices, for real or complex ones use mpmath.lu_solve or mpmath.qr_solve.

          @@ -3776,7 +3776,7 @@

          Matrix Base Classes
          -QRdecomposition()[source]#
          +QRdecomposition()[source]#

          Returns a QR decomposition.

          Explanation

          A QR decomposition is a decomposition in the form \(A = Q R\) @@ -3948,7 +3948,7 @@

          Matrix Base Classes
          -QRsolve(b)[source]#
          +QRsolve(b)[source]#

          Solve the linear system Ax = b.

          M is the matrix A, the method argument is the vector b. The method returns the solution vector x. If b is a @@ -3968,13 +3968,13 @@

          Matrix Base Classes
          -add(b)[source]#
          +add(b)[source]#

          Return self + b.

          -analytic_func(f, x)[source]#
          +analytic_func(f, x)[source]#

          Computes f(A) where A is a Square Matrix and f is an analytic function.

          @@ -4006,7 +4006,7 @@

          Matrix Base Classes
          -cholesky(hermitian=True)[source]#
          +cholesky(hermitian=True)[source]#

          Returns the Cholesky-type decomposition L of a matrix A such that L * L.H == A if hermitian flag is True, or L * L.T == A if hermitian is False.

          @@ -4060,7 +4060,7 @@

          Matrix Base Classes
          -cholesky_solve(rhs)[source]#
          +cholesky_solve(rhs)[source]#

          Solves Ax = B using Cholesky decomposition, for a general square non-singular matrix. For a non-square matrix with rows > cols, @@ -4073,7 +4073,7 @@

          Matrix Base Classes
          -condition_number()[source]#
          +condition_number()[source]#

          Returns the condition number of a matrix.

          This is the maximum singular value divided by the minimum singular value

          Examples

          @@ -4091,7 +4091,7 @@

          Matrix Base Classes
          -connected_components()[source]#
          +connected_components()[source]#

          Returns the list of connected vertices of the graph when a square matrix is viewed as a weighted graph.

          Examples

          @@ -4119,7 +4119,7 @@

          Matrix Base Classes
          -connected_components_decomposition()[source]#
          +connected_components_decomposition()[source]#

          Decomposes a square matrix into block diagonal form only using the permutations.

          @@ -4188,7 +4188,7 @@

          Matrix Base Classes
          -copy()[source]#
          +copy()[source]#

          Returns the copy of a matrix.

          Examples

          >>> from sympy import Matrix
          @@ -4203,7 +4203,7 @@ 

          Matrix Base Classes
          -cramer_solve(rhs, det_method='laplace')[source]#
          +cramer_solve(rhs, det_method='laplace')[source]#

          Solves system of linear equations using Cramer’s rule.

          This method is relatively inefficient compared to other methods. However it only uses a single division, assuming a division-free determinant @@ -4257,7 +4257,7 @@

          Matrix Base Classes
          -cross(b)[source]#
          +cross(b)[source]#

          Return the cross product of self and b relaxing the condition of compatible dimensions: if each has 3 elements, a matrix of the same type and shape as self will be returned. If b has the same @@ -4276,7 +4276,7 @@

          Matrix Base Classes
          -diagonal_solve(rhs)[source]#
          +diagonal_solve(rhs)[source]#

          Solves Ax = B efficiently, where A is a diagonal Matrix, with non-zero diagonal entries.

          Examples

          @@ -4295,7 +4295,7 @@

          Matrix Base Classes
          -dot(b, hermitian=None, conjugate_convention=None)[source]#
          +dot(b, hermitian=None, conjugate_convention=None)[source]#

          Return the dot or inner product of two vectors of equal length. Here self must be a Matrix of size 1 x n or n x 1, and b must be either a matrix of size 1 x n, n x 1, or a list/tuple of length n. @@ -4345,7 +4345,7 @@

          Matrix Base Classes
          -dual()[source]#
          +dual()[source]#

          Returns the dual of a matrix.

          A dual of a matrix is:

          (1/2)*levicivita(i, j, k, l)*M(k, l) summed over indices \(k\) and \(l\)

          @@ -4358,7 +4358,7 @@

          Matrix Base Classes
          -exp()[source]#
          +exp()[source]#

          Return the exponential of a square matrix.

          Examples

          >>> from sympy import Symbol, Matrix
          @@ -4376,7 +4376,7 @@ 

          Matrix Base Classes
          -gauss_jordan_solve(B, freevar=False)[source]#
          +gauss_jordan_solve(B, freevar=False)[source]#

          Solves Ax = B using Gauss Jordan elimination.

          There may be zero, one, or infinite solutions. If one solution exists, it will be returned. If infinite solutions exist, it will @@ -4502,7 +4502,7 @@

          Matrix Base Classes
          -hat()[source]#
          +hat()[source]#

          Return the skew-symmetric matrix representing the cross product, so that self.hat() * b is equivalent to self.cross(b).

          Examples

          @@ -4541,7 +4541,7 @@

          Matrix Base Classes
          -inv(method=None, iszerofunc=<function _iszero>, try_block_diag=False)[source]#
          +inv(method=None, iszerofunc=<function _iszero>, try_block_diag=False)[source]#

          Return the inverse of a matrix using the method indicated. Default for dense matrices is is Gauss elimination, default for sparse matrices is LDL.

          @@ -4621,7 +4621,7 @@

          Matrix Base Classes
          -inv_mod(m)[source]#
          +inv_mod(m)[source]#

          Returns the inverse of the matrix \(K\) (mod \(m\)), if it exists.

          Method to find the matrix inverse of \(K\) (mod \(m\)) implemented in this function:

            @@ -4646,7 +4646,7 @@

            Matrix Base Classes
            -inverse_ADJ(iszerofunc=<function _iszero>)[source]#
            +inverse_ADJ(iszerofunc=<function _iszero>)[source]#

            Calculates the inverse using the adjugate matrix and a determinant.

            See also

            @@ -4656,7 +4656,7 @@

            Matrix Base Classes
            -inverse_BLOCK(iszerofunc=<function _iszero>)[source]#
            +inverse_BLOCK(iszerofunc=<function _iszero>)[source]#

            Calculates the inverse using BLOCKWISE inversion.

            See also

            @@ -4666,7 +4666,7 @@

            Matrix Base Classes
            -inverse_CH(iszerofunc=<function _iszero>)[source]#
            +inverse_CH(iszerofunc=<function _iszero>)[source]#

            Calculates the inverse using cholesky decomposition.

            See also

            @@ -4676,7 +4676,7 @@

            Matrix Base Classes
            -inverse_GE(iszerofunc=<function _iszero>)[source]#
            +inverse_GE(iszerofunc=<function _iszero>)[source]#

            Calculates the inverse using Gaussian elimination.

            See also

            @@ -4686,7 +4686,7 @@

            Matrix Base Classes
            -inverse_LDL(iszerofunc=<function _iszero>)[source]#
            +inverse_LDL(iszerofunc=<function _iszero>)[source]#

            Calculates the inverse using LDL decomposition.

            See also

            @@ -4696,7 +4696,7 @@

            Matrix Base Classes
            -inverse_LU(iszerofunc=<function _iszero>)[source]#
            +inverse_LU(iszerofunc=<function _iszero>)[source]#

            Calculates the inverse using LU decomposition.

            See also

            @@ -4706,7 +4706,7 @@

            Matrix Base Classes
            -inverse_QR(iszerofunc=<function _iszero>)[source]#
            +inverse_QR(iszerofunc=<function _iszero>)[source]#

            Calculates the inverse using QR decomposition.

            See also

            @@ -4716,7 +4716,7 @@

            Matrix Base Classes
            -classmethod irregular(ntop, *matrices, **kwargs)[source]#
            +classmethod irregular(ntop, *matrices, **kwargs)[source]#

            Return a matrix filled by the given matrices which are listed in order of appearance from left to right, top to bottom as they first appear in the matrix. They must fill the @@ -4736,7 +4736,7 @@

            Matrix Base Classes
            -is_nilpotent()[source]#
            +is_nilpotent()[source]#

            Checks if a matrix is nilpotent.

            A matrix B is nilpotent if for some integer k, B**k is a zero matrix.

            @@ -4756,7 +4756,7 @@

            Matrix Base Classes
            -key2bounds(keys)[source]#
            +key2bounds(keys)[source]#

            Converts a key with potentially mixed types of keys (integer and slice) into a tuple of ranges and raises an error if any index is out of self’s range.

            @@ -4768,7 +4768,7 @@

            Matrix Base Classes
            -key2ij(key)[source]#
            +key2ij(key)[source]#

            Converts key into canonical form, converting integers or indexable items into valid integers for self’s range or returning slices unchanged.

            @@ -4780,7 +4780,7 @@

            Matrix Base Classes
            -log(simplify=<function cancel>)[source]#
            +log(simplify=<function cancel>)[source]#

            Return the logarithm of a square matrix.

            Parameters:
            @@ -4837,7 +4837,7 @@

            Matrix Base Classes
            -lower_triangular_solve(rhs)[source]#
            +lower_triangular_solve(rhs)[source]#

            Solves Ax = B, where A is a lower triangular matrix.

            See also

            @@ -4847,7 +4847,7 @@

            Matrix Base Classes
            -norm(ord=None)[source]#
            +norm(ord=None)[source]#

            Return the Norm of a Matrix or Vector.

            In the simplest case this is the geometric size of the vector Other norms can be specified by the ord parameter

            @@ -4938,7 +4938,7 @@

            Matrix Base Classes
            -normalized(iszerofunc=<function _iszero>)[source]#
            +normalized(iszerofunc=<function _iszero>)[source]#

            Return the normalized version of self.

            Parameters:
            @@ -4972,7 +4972,7 @@

            Matrix Base Classes
            -pinv(method='RD')[source]#
            +pinv(method='RD')[source]#

            Calculate the Moore-Penrose pseudoinverse of the matrix.

            The Moore-Penrose pseudoinverse exists and is unique for any matrix. If the matrix is invertible, the pseudoinverse is the same as the @@ -5023,7 +5023,7 @@

            Matrix Base Classes
            -pinv_solve(B, arbitrary_matrix=None)[source]#
            +pinv_solve(B, arbitrary_matrix=None)[source]#

            Solve Ax = B using the Moore-Penrose pseudoinverse.

            There may be zero, one, or infinite solutions. If one solution exists, it will be returned. If infinite solutions exist, one will @@ -5094,7 +5094,7 @@

            Matrix Base Classes
            -print_nonzero(symb='X')[source]#
            +print_nonzero(symb='X')[source]#

            Shows location of non-zero entries for fast shape lookup.

            Examples

            >>> from sympy import Matrix, eye
            @@ -5118,7 +5118,7 @@ 

            Matrix Base Classes
            -project(v)[source]#
            +project(v)[source]#

            Return the projection of self onto the line containing v.

            Examples

            >>> from sympy import Matrix, S, sqrt
            @@ -5134,7 +5134,7 @@ 

            Matrix Base Classes
            -rank_decomposition(iszerofunc=<function _iszero>, simplify=False)[source]#
            +rank_decomposition(iszerofunc=<function _iszero>, simplify=False)[source]#

            Returns a pair of matrices (\(C\), \(F\)) with matching rank such that \(A = C F\).

            @@ -5222,7 +5222,7 @@

            Matrix Base Classes
            -singular_value_decomposition()[source]#
            +singular_value_decomposition()[source]#

            Returns a Condensed Singular Value decomposition.

            Explanation

            A Singular Value decomposition is a decomposition in the form \(A = U \Sigma V^H\) @@ -5393,7 +5393,7 @@

            Matrix Base Classes
            -solve(rhs, method='GJ')[source]#
            +solve(rhs, method='GJ')[source]#

            Solves linear equation where the unique solution exists.

            Parameters:
            @@ -5437,7 +5437,7 @@

            Matrix Base Classes
            -solve_least_squares(rhs, method='CH')[source]#
            +solve_least_squares(rhs, method='CH')[source]#

            Return the least-square fit to the data.

            Parameters:
            @@ -5512,7 +5512,7 @@

            Matrix Base Classes
            -strongly_connected_components()[source]#
            +strongly_connected_components()[source]#

            Returns the list of strongly connected vertices of the graph when a square matrix is viewed as a weighted graph.

            Examples

            @@ -5535,7 +5535,7 @@

            Matrix Base Classes
            -strongly_connected_components_decomposition(lower=True)[source]#
            +strongly_connected_components_decomposition(lower=True)[source]#

            Decomposes a square matrix into block triangular form only using the permutations.

            @@ -5636,7 +5636,7 @@

            Matrix Base Classes
            -table(printer, rowstart='[', rowend=']', rowsep='\n', colsep=', ', align='right')[source]#
            +table(printer, rowstart='[', rowend=']', rowsep='\n', colsep=', ', align='right')[source]#

            String form of Matrix as a table.

            printer is the printer to use for on the elements (generally something like StrPrinter())

            @@ -5678,7 +5678,7 @@

            Matrix Base Classes
            -upper_hessenberg_decomposition()[source]#
            +upper_hessenberg_decomposition()[source]#

            Converts a matrix into Hessenberg matrix H.

            Returns 2 matrices H, P s.t. \(P H P^{T} = A\), where H is an upper hessenberg matrix @@ -5716,7 +5716,7 @@

            Matrix Base Classes
            -upper_triangular_solve(rhs)[source]#
            +upper_triangular_solve(rhs)[source]#

            Solves Ax = B, where A is an upper triangular matrix.

            See also

            @@ -5726,7 +5726,7 @@

            Matrix Base Classes
            -vee()[source]#
            +vee()[source]#

            Return a 3x1 vector from a skew-symmetric matrix representing the cross product, so that self * b is equivalent to self.vee().cross(b).

            Examples

            @@ -5794,18 +5794,18 @@

            Matrix Base Classes#

            -class sympy.matrices.matrices.MatrixError[source]#
            +class sympy.matrices.matrices.MatrixError[source]#
            -class sympy.matrices.matrices.ShapeError[source]#
            +class sympy.matrices.matrices.ShapeError[source]#

            Wrong matrix shape

            -class sympy.matrices.matrices.NonSquareMatrixError[source]#
            +class sympy.matrices.matrices.NonSquareMatrixError[source]#
            @@ -5813,7 +5813,7 @@

            Matrix Exceptions#

            -sympy.matrices.dense.matrix_multiply_elementwise(A, B)[source]#
            +sympy.matrices.dense.matrix_multiply_elementwise(A, B)[source]#

            Return the Hadamard product (elementwise product) of A and B

            >>> from sympy import Matrix, matrix_multiply_elementwise
             >>> A = Matrix([[0, 1, 2], [3, 4, 5]])
            @@ -5832,7 +5832,7 @@ 

            Matrix Functions
            -sympy.matrices.dense.zeros(*args, **kwargs)[source]#
            +sympy.matrices.dense.zeros(*args, **kwargs)[source]#

            Returns a matrix of zeros with rows rows and cols columns; if cols is omitted a square matrix will be returned.

            @@ -5843,7 +5843,7 @@

            Matrix Functions
            -sympy.matrices.dense.ones(*args, **kwargs)[source]#
            +sympy.matrices.dense.ones(*args, **kwargs)[source]#

            Returns a matrix of ones with rows rows and cols columns; if cols is omitted a square matrix will be returned.

            @@ -5854,7 +5854,7 @@

            Matrix Functions
            -sympy.matrices.dense.eye(*args, **kwargs)[source]#
            +sympy.matrices.dense.eye(*args, **kwargs)[source]#

            Create square identity matrix n x n

            See also

            @@ -5864,7 +5864,7 @@

            Matrix Functions
            -sympy.matrices.dense.diag(*values, strict=True, unpack=False, **kwargs)[source]#
            +sympy.matrices.dense.diag(*values, strict=True, unpack=False, **kwargs)[source]#

            Returns a matrix with the provided values placed on the diagonal. If non-square matrices are included, they will produce a block-diagonal matrix.

            @@ -5898,7 +5898,7 @@

            Matrix Functions
            -sympy.matrices.dense.jordan_cell(eigenval, n)[source]#
            +sympy.matrices.dense.jordan_cell(eigenval, n)[source]#

            Create a Jordan block:

            Examples

            >>> from sympy import jordan_cell
            @@ -5915,7 +5915,7 @@ 

            Matrix Functions
            -sympy.matrices.dense.hessian(f, varlist, constraints=())[source]#
            +sympy.matrices.dense.hessian(f, varlist, constraints=())[source]#

            Compute Hessian matrix for a function f wrt parameters in varlist which may be given as a sequence or a row/column vector. A list of constraints may optionally be given.

            @@ -5960,7 +5960,7 @@

            Matrix Functions
            -sympy.matrices.dense.GramSchmidt(vlist, orthonormal=False)[source]#
            +sympy.matrices.dense.GramSchmidt(vlist, orthonormal=False)[source]#

            Apply the Gram-Schmidt process to a set of vectors.

            Parameters:
            @@ -6000,7 +6000,7 @@

            Matrix Functions
            -sympy.matrices.dense.wronskian(functions, var, method='bareiss')[source]#
            +sympy.matrices.dense.wronskian(functions, var, method='bareiss')[source]#

            Compute Wronskian for [] of functions

                             | f1       f2        ...   fn      |
                              | f1'      f2'       ...   fn'     |
            @@ -6020,7 +6020,7 @@ 

            Matrix Functions
            -sympy.matrices.dense.casoratian(seqs, n, zero=True)[source]#
            +sympy.matrices.dense.casoratian(seqs, n, zero=True)[source]#

            Given linear difference operator L of order ‘k’ and homogeneous equation Ly = 0 we want to compute kernel of L, which is a set of ‘k’ sequences: a(n), b(n), … z(n).

            @@ -6051,7 +6051,7 @@

            Matrix Functions
            -sympy.matrices.dense.randMatrix(r, c=None, min=0, max=99, seed=None, symmetric=False, percent=100, prng=None)[source]#
            +sympy.matrices.dense.randMatrix(r, c=None, min=0, max=99, seed=None, symmetric=False, percent=100, prng=None)[source]#

            Create random matrix with dimensions r x c. If c is omitted the matrix will be square. If symmetric is True the matrix must be square. If percent is less than 100 then only approximately the given @@ -6103,7 +6103,7 @@

            Matrix Functions#

            -sympy.matrices.dense.rot_givens(i, j, theta, dim=3)[source]#
            +sympy.matrices.dense.rot_givens(i, j, theta, dim=3)[source]#

            Returns a a Givens rotation matrix, a a rotation in the plane spanned by two coordinates axes.

            @@ -6206,7 +6206,7 @@

            Rotation matrices
            -sympy.matrices.dense.rot_axis1(theta)[source]#
            +sympy.matrices.dense.rot_axis1(theta)[source]#

            Returns a rotation matrix for a rotation of theta (in radians) about the 1-axis.

            Explanation

            @@ -6258,7 +6258,7 @@

            Rotation matrices
            -sympy.matrices.dense.rot_axis2(theta)[source]#
            +sympy.matrices.dense.rot_axis2(theta)[source]#

            Returns a rotation matrix for a rotation of theta (in radians) about the 2-axis.

            Explanation

            @@ -6310,7 +6310,7 @@

            Rotation matrices
            -sympy.matrices.dense.rot_axis3(theta)[source]#
            +sympy.matrices.dense.rot_axis3(theta)[source]#

            Returns a rotation matrix for a rotation of theta (in radians) about the 3-axis.

            Explanation

            @@ -6362,7 +6362,7 @@

            Rotation matrices
            -sympy.matrices.dense.rot_ccw_axis1(theta)[source]#
            +sympy.matrices.dense.rot_ccw_axis1(theta)[source]#

            Returns a rotation matrix for a rotation of theta (in radians) about the 1-axis.

            Explanation

            @@ -6414,7 +6414,7 @@

            Rotation matrices
            -sympy.matrices.dense.rot_ccw_axis2(theta)[source]#
            +sympy.matrices.dense.rot_ccw_axis2(theta)[source]#

            Returns a rotation matrix for a rotation of theta (in radians) about the 2-axis.

            Explanation

            @@ -6466,7 +6466,7 @@

            Rotation matrices
            -sympy.matrices.dense.rot_ccw_axis3(theta)[source]#
            +sympy.matrices.dense.rot_ccw_axis3(theta)[source]#

            Returns a rotation matrix for a rotation of theta (in radians) about the 3-axis.

            Explanation

            @@ -6521,7 +6521,7 @@

            Rotation matrices#

            -sympy.matrices.dense.list2numpy(l, dtype=<class 'object'>)[source]#
            +sympy.matrices.dense.list2numpy(l, dtype=<class 'object'>)[source]#

            Converts Python list of SymPy expressions to a NumPy array.

            See also

            @@ -6531,7 +6531,7 @@

            Numpy Utility Functions
            -sympy.matrices.dense.matrix2numpy(m, dtype=<class 'object'>)[source]#
            +sympy.matrices.dense.matrix2numpy(m, dtype=<class 'object'>)[source]#

            Converts SymPy’s matrix to a NumPy array.

            See also

            @@ -6541,7 +6541,7 @@

            Numpy Utility Functions
            -sympy.matrices.dense.symarray(prefix, shape, **kwargs)[source]#
            +sympy.matrices.dense.symarray(prefix, shape, **kwargs)[source]#

            Create a numpy ndarray of symbols (as an object array).

            The created symbols are named prefix_i1_i2_… You should thus provide a non-empty prefix if you want your symbols to be unique for different output @@ -6610,7 +6610,7 @@

            Numpy Utility Functions
            -sympy.matrices.matrices.a2idx(j, n=None)[source]#
            +sympy.matrices.matrices.a2idx(j, n=None)[source]#

            Return integer after making positive and validating against n.

            diff --git a/dev/modules/matrices/normalforms.html b/dev/modules/matrices/normalforms.html index f31ac7346f3..708c512adce 100644 --- a/dev/modules/matrices/normalforms.html +++ b/dev/modules/matrices/normalforms.html @@ -741,7 +741,7 @@
            Documentation Version

            Matrix Normal Forms#

            -sympy.matrices.normalforms.smith_normal_form(m, domain=None)[source]#
            +sympy.matrices.normalforms.smith_normal_form(m, domain=None)[source]#

            Return the Smith Normal Form of a matrix \(m\) over the ring \(domain\). This will only work if the ring is a principal ideal domain.

            Examples

            @@ -756,7 +756,7 @@
            Documentation Version
            -sympy.matrices.normalforms.hermite_normal_form(A, *, D=None, check_rank=False)[source]#
            +sympy.matrices.normalforms.hermite_normal_form(A, *, D=None, check_rank=False)[source]#

            Compute the Hermite Normal Form of a Matrix A of integers.

            Parameters:
            diff --git a/dev/modules/matrices/sparse.html b/dev/modules/matrices/sparse.html index ea55716e1d0..218933bb8b6 100644 --- a/dev/modules/matrices/sparse.html +++ b/dev/modules/matrices/sparse.html @@ -743,13 +743,13 @@
            Documentation Version

            SparseMatrix Class Reference#

            -sympy.matrices.sparse.SparseMatrix[source]#
            +sympy.matrices.sparse.SparseMatrix[source]#

            alias of MutableSparseMatrix

            -class sympy.matrices.sparse.MutableSparseMatrix(*args, **kwargs)[source]#
            +class sympy.matrices.sparse.MutableSparseMatrix(*args, **kwargs)[source]#
            @@ -757,7 +757,7 @@

            SparseMatrix Class Reference#

            -class sympy.matrices.immutable.ImmutableSparseMatrix(*args, **kwargs)[source]#
            +class sympy.matrices.immutable.ImmutableSparseMatrix(*args, **kwargs)[source]#

            Create an immutable version of a sparse matrix.

            Examples

            >>> from sympy import eye, ImmutableSparseMatrix
            diff --git a/dev/modules/matrices/sparsetools.html b/dev/modules/matrices/sparsetools.html
            index bb0660c66e4..e805575f698 100644
            --- a/dev/modules/matrices/sparsetools.html
            +++ b/dev/modules/matrices/sparsetools.html
            @@ -741,7 +741,7 @@ 
            Documentation Version

            Sparse Tools#

            -sympy.matrices.sparsetools._doktocsr()[source]#
            +sympy.matrices.sparsetools._doktocsr()[source]#

            Converts a sparse matrix to Compressed Sparse Row (CSR) format.

            Parameters:
            @@ -768,7 +768,7 @@
            Documentation Version
            -sympy.matrices.sparsetools._csrtodok()[source]#
            +sympy.matrices.sparsetools._csrtodok()[source]#

            Converts a CSR representation to DOK representation.

            Examples

            >>> from sympy.matrices.sparsetools import _csrtodok
            @@ -784,7 +784,7 @@ 
            Documentation Version
            -sympy.matrices.sparsetools.banded(**kwargs)[source]#
            +sympy.matrices.sparsetools.banded(**kwargs)[source]#

            Returns a SparseMatrix from the given dictionary describing the diagonals of the matrix. The keys are positive for upper diagonals and negative for those below the main diagonal. The diff --git a/dev/modules/ntheory.html b/dev/modules/ntheory.html index e4098dad861..b8f8c8d3cf3 100644 --- a/dev/modules/ntheory.html +++ b/dev/modules/ntheory.html @@ -743,7 +743,7 @@

            Documentation Version

            Ntheory Class Reference#

            -class sympy.ntheory.generate.Sieve(sieve_interval=1000000)[source]#
            +class sympy.ntheory.generate.Sieve(sieve_interval=1000000)[source]#

            A list of prime numbers, implemented as a dynamically growing sieve of Eratosthenes. When a lookup is requested involving an odd number that has not been sieved, the sieve is automatically @@ -760,7 +760,7 @@

            Ntheory Class Reference
            -extend(n)[source]#
            +extend(n)[source]#

            Grow the sieve to cover all primes <= n.

            Examples

            >>> from sympy import sieve
            @@ -774,7 +774,7 @@ 

            Ntheory Class Reference
            -extend_to_no(i)[source]#
            +extend_to_no(i)[source]#

            Extend to include the ith prime number.

            Parameters:
            @@ -796,7 +796,7 @@

            Ntheory Class Reference
            -mobiusrange(a, b)[source]#
            +mobiusrange(a, b)[source]#

            Generate all mobius numbers for the range [a, b).

            Parameters:
            @@ -820,7 +820,7 @@

            Ntheory Class Reference
            -primerange(a, b=None)[source]#
            +primerange(a, b=None)[source]#

            Generate all prime numbers in the range [2, a) or [a, b).

            Examples

            >>> from sympy import sieve, prime
            @@ -845,7 +845,7 @@ 

            Ntheory Class Reference
            -search(n)[source]#
            +search(n)[source]#

            Return the indices i, j of the primes that bound n.

            If n is prime then i == j.

            Although n can be an expression, if ceiling cannot convert @@ -862,7 +862,7 @@

            Ntheory Class Reference
            -totientrange(a, b)[source]#
            +totientrange(a, b)[source]#

            Generate all totient numbers for the range [a, b).

            Examples

            >>> from sympy import sieve
            @@ -879,7 +879,7 @@ 

            Ntheory Class ReferenceNtheory Functions Reference#

            -sympy.ntheory.generate.prime(nth)[source]#
            +sympy.ntheory.generate.prime(nth)[source]#

            Return the nth prime, with the primes indexed as prime(1) = 2, prime(2) = 3, etc…. The nth prime is approximately \(n\log(n)\).

            Logarithmic integral of \(x\) is a pretty nice approximation for number of @@ -936,7 +936,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.primepi(n)[source]#
            +sympy.ntheory.generate.primepi(n)[source]#

            Represents the prime counting function pi(n) = the number of prime numbers less than or equal to n.

            Algorithm Description:

            @@ -1007,7 +1007,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.nextprime(n, ith=1)[source]#
            +sympy.ntheory.generate.nextprime(n, ith=1)[source]#

            Return the ith prime greater than n.

            Parameters:
            @@ -1048,7 +1048,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.prevprime(n)[source]#
            +sympy.ntheory.generate.prevprime(n)[source]#

            Return the largest prime smaller than n.

            Notes

            Potential primes are located at 6*j +/- 1. This @@ -1071,7 +1071,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.primerange(a, b=None)[source]#
            +sympy.ntheory.generate.primerange(a, b=None)[source]#

            Generate a list of all prime numbers in the range [2, a), or [a, b).

            If the range exists in the default sieve, the values will @@ -1168,7 +1168,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.randprime(a, b)[source]#
            +sympy.ntheory.generate.randprime(a, b)[source]#

            Return a random prime number in the range [a, b).

            Bertrand’s postulate assures that randprime(a, 2*a) will always succeed for a > 1.

            @@ -1203,7 +1203,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.primorial(n, nth=True)[source]#
            +sympy.ntheory.generate.primorial(n, nth=True)[source]#

            Returns the product of the first n primes (default) or the primes less than or equal to n (when nth=False).

            Examples

            @@ -1254,7 +1254,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.cycle_length(f, x0, nmax=None, values=False)[source]#
            +sympy.ntheory.generate.cycle_length(f, x0, nmax=None, values=False)[source]#

            For a given iterated sequence, return a generator that gives the length of the iterated cycle (lambda) and the length of terms before the cycle begins (mu); if values is True then the @@ -1308,7 +1308,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.composite(nth)[source]#
            +sympy.ntheory.generate.composite(nth)[source]#

            Return the nth composite number, with the composite numbers indexed as composite(1) = 4, composite(2) = 6, etc….

            Examples

            @@ -1340,7 +1340,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.generate.compositepi(n)[source]#
            +sympy.ntheory.generate.compositepi(n)[source]#

            Return the number of positive composite numbers less than or equal to n. The first positive composite is 4, i.e. compositepi(4) = 1.

            Examples

            @@ -1370,7 +1370,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.factor_.smoothness(n)[source]#
            +sympy.ntheory.factor_.smoothness(n)[source]#

            Return the B-smooth and B-power smooth values of n.

            The smoothness of n is the largest prime factor of n; the power- smoothness is the largest divisor raised to its multiplicity.

            @@ -1392,7 +1392,7 @@

            Ntheory Functions Reference
            -sympy.ntheory.factor_.smoothness_p(n, m=-1, power=0, visual=None)[source]#
            +sympy.ntheory.factor_.smoothness_p(n, m=-1, power=0, visual=None)[source]#

            Return a list of [m, (p, (M, sm(p + m), psm(p + m)))…] where:

              @@ -1485,7 +1485,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.multiplicity(p, n)[source]#
              +sympy.ntheory.factor_.multiplicity(p, n)[source]#

              Find the greatest integer m such that p**m divides n.

              Examples

              >>> from sympy import multiplicity, Rational
              @@ -1517,7 +1517,7 @@ 

              Ntheory Functions Reference
              -sympy.ntheory.factor_.perfect_power(n, candidates=None, big=True, factor=True)[source]#
              +sympy.ntheory.factor_.perfect_power(n, candidates=None, big=True, factor=True)[source]#

              Return (b, e) such that n == b**e if n is a unique perfect power with e > 1, else False (e.g. 1 is not a perfect power). A ValueError is raised if n is not Rational.

              @@ -1581,7 +1581,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.pollard_rho(n, s=2, a=1, retries=5, seed=1234, max_steps=None, F=None)[source]#
              +sympy.ntheory.factor_.pollard_rho(n, s=2, a=1, retries=5, seed=1234, max_steps=None, F=None)[source]#

              Use Pollard’s rho method to try to extract a nontrivial factor of n. The returned factor may be a composite number. If no factor is found, None is returned.

              @@ -1667,7 +1667,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.pollard_pm1(n, B=10, a=2, retries=0, seed=1234)[source]#
              +sympy.ntheory.factor_.pollard_pm1(n, B=10, a=2, retries=0, seed=1234)[source]#

              Use Pollard’s p-1 method to try to extract a nontrivial factor of n. Either a divisor (perhaps composite) or None is returned.

              The value of a is the base that is used in the test gcd(a**M - 1, n). @@ -1798,7 +1798,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.factorint(n, limit=None, use_trial=True, use_rho=True, use_pm1=True, use_ecm=True, verbose=False, visual=None, multiple=False)[source]#
              +sympy.ntheory.factor_.factorint(n, limit=None, use_trial=True, use_rho=True, use_pm1=True, use_ecm=True, verbose=False, visual=None, multiple=False)[source]#

              Given a positive integer n, factorint(n) returns a dict containing the prime factors of n as keys and their respective multiplicities as values. For example:

              @@ -1962,7 +1962,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.factorrat(rat, limit=None, use_trial=True, use_rho=True, use_pm1=True, verbose=False, visual=None, multiple=False)[source]#
              +sympy.ntheory.factor_.factorrat(rat, limit=None, use_trial=True, use_rho=True, use_pm1=True, verbose=False, visual=None, multiple=False)[source]#

              Given a Rational r, factorrat(r) returns a dict containing the prime factors of r as keys and their respective multiplicities as values. For example:

              @@ -1990,7 +1990,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.primefactors(n, limit=None, verbose=False, **kwargs)[source]#
              +sympy.ntheory.factor_.primefactors(n, limit=None, verbose=False, **kwargs)[source]#

              Return a sorted list of n’s prime factors, ignoring multiplicity and any composite factor that remains if the limit was set too low for complete factorization. Unlike factorint(), primefactors() does @@ -2039,7 +2039,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.divisors(n, generator=False, proper=False)[source]#
              +sympy.ntheory.factor_.divisors(n, generator=False, proper=False)[source]#

              Return all divisors of n sorted from 1..n by default. If generator is True an unordered generator is returned.

              The number of divisors of n can be quite large if there are many @@ -2068,7 +2068,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.proper_divisors(n, generator=False)[source]#
              +sympy.ntheory.factor_.proper_divisors(n, generator=False)[source]#

              Return all divisors of n except n, sorted by default. If generator is True an unordered generator is returned.

              Examples

              @@ -2089,7 +2089,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.divisor_count(n, modulus=1, proper=False)[source]#
              +sympy.ntheory.factor_.divisor_count(n, modulus=1, proper=False)[source]#

              Return the number of divisors of n. If modulus is not 1 then only those that are divisible by modulus are counted. If proper is True then the divisor of n will not be counted.

              @@ -2111,7 +2111,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.proper_divisor_count(n, modulus=1)[source]#
              +sympy.ntheory.factor_.proper_divisor_count(n, modulus=1)[source]#

              Return the number of proper divisors of n.

              Examples

              >>> from sympy import proper_divisor_count
              @@ -2129,7 +2129,7 @@ 

              Ntheory Functions Reference
              -sympy.ntheory.factor_.udivisors(n, generator=False)[source]#
              +sympy.ntheory.factor_.udivisors(n, generator=False)[source]#

              Return all unitary divisors of n sorted from 1..n by default. If generator is True an unordered generator is returned.

              The number of unitary divisors of n can be quite large if there are many @@ -2166,7 +2166,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.udivisor_count(n)[source]#
              +sympy.ntheory.factor_.udivisor_count(n)[source]#

              Return the number of unitary divisors of n.

              Parameters:
              @@ -2194,7 +2194,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.antidivisors(n, generator=False)[source]#
              +sympy.ntheory.factor_.antidivisors(n, generator=False)[source]#

              Return all antidivisors of n sorted from 1..n by default.

              Antidivisors [R638] of n are numbers that do not divide n by the largest possible margin. If generator is True an unordered generator is returned.

              @@ -2224,7 +2224,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.antidivisor_count(n)[source]#
              +sympy.ntheory.factor_.antidivisor_count(n)[source]#

              Return the number of antidivisors [R639] of n.

              Parameters:
              @@ -2255,7 +2255,7 @@

              Ntheory Functions Reference
              -class sympy.ntheory.factor_.totient(n)[source]#
              +class sympy.ntheory.factor_.totient(n)[source]#

              Calculate the Euler totient function phi(n)

              totient(n) or \(\phi(n)\) is the number of positive integers \(\leq\) n that are relatively prime to n.

              @@ -2293,7 +2293,7 @@

              Ntheory Functions Reference
              -class sympy.ntheory.factor_.reduced_totient(n)[source]#
              +class sympy.ntheory.factor_.reduced_totient(n)[source]#

              Calculate the Carmichael reduced totient function lambda(n)

              reduced_totient(n) or \(\lambda(n)\) is the smallest m > 0 such that \(k^m \equiv 1 \mod n\) for all k relatively prime to n.

              @@ -2326,7 +2326,7 @@

              Ntheory Functions Reference
              -class sympy.ntheory.factor_.divisor_sigma(n, k=1)[source]#
              +class sympy.ntheory.factor_.divisor_sigma(n, k=1)[source]#

              Calculate the divisor function \(\sigma_k(n)\) for positive integer n

              divisor_sigma(n, k) is equal to sum([x**k for x in divisors(n)])

              If n’s prime factorization is:

              @@ -2380,7 +2380,7 @@

              Ntheory Functions Reference
              -class sympy.ntheory.factor_.udivisor_sigma(n, k=1)[source]#
              +class sympy.ntheory.factor_.udivisor_sigma(n, k=1)[source]#

              Calculate the unitary divisor function \(\sigma_k^*(n)\) for positive integer n

              udivisor_sigma(n, k) is equal to sum([x**k for x in udivisors(n)])

              If n’s prime factorization is:

              @@ -2431,7 +2431,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.core(n, t=2)[source]#
              +sympy.ntheory.factor_.core(n, t=2)[source]#

              Calculate core(n, t) = \(core_t(n)\) of a positive integer n

              core_2(n) is equal to the squarefree part of n

              If n’s prime factorization is:

              @@ -2483,7 +2483,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.digits(n, b=10, digits=None)[source]#
              +sympy.ntheory.factor_.digits(n, b=10, digits=None)[source]#

              Return a list of the digits of n in base b. The first element in the list is b (or -b if n is negative).

              @@ -2533,7 +2533,7 @@

              Ntheory Functions Reference
              -class sympy.ntheory.factor_.primenu(n)[source]#
              +class sympy.ntheory.factor_.primenu(n)[source]#

              Calculate the number of distinct prime factors for a positive integer n.

              If n’s prime factorization is:

              @@ -2568,7 +2568,7 @@

              Ntheory Functions Reference
              -class sympy.ntheory.factor_.primeomega(n)[source]#
              +class sympy.ntheory.factor_.primeomega(n)[source]#

              Calculate the number of prime factors counting multiplicities for a positive integer n.

              If n’s prime factorization is:

              @@ -2604,7 +2604,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.mersenne_prime_exponent(nth)[source]#
              +sympy.ntheory.factor_.mersenne_prime_exponent(nth)[source]#

              Returns the exponent i for the nth Mersenne prime (which has the form \(2^i - 1\)).

              Examples

              @@ -2619,7 +2619,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.is_perfect(n)[source]#
              +sympy.ntheory.factor_.is_perfect(n)[source]#

              Returns True if n is a perfect number, else False.

              A perfect number is equal to the sum of its positive, proper divisors.

              Examples

              @@ -2647,7 +2647,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.is_mersenne_prime(n)[source]#
              +sympy.ntheory.factor_.is_mersenne_prime(n)[source]#

              Returns True if n is a Mersenne prime, else False.

              A Mersenne prime is a prime number having the form \(2^i - 1\).

              Examples

              @@ -2669,7 +2669,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.abundance(n)[source]#
              +sympy.ntheory.factor_.abundance(n)[source]#

              Returns the difference between the sum of the positive proper divisors of a number and the number.

              Examples

              @@ -2688,7 +2688,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.is_abundant(n)[source]#
              +sympy.ntheory.factor_.is_abundant(n)[source]#

              Returns True if n is an abundant number, else False.

              A abundant number is smaller than the sum of its positive proper divisors.

              Examples

              @@ -2710,7 +2710,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.is_deficient(n)[source]#
              +sympy.ntheory.factor_.is_deficient(n)[source]#

              Returns True if n is a deficient number, else False.

              A deficient number is greater than the sum of its positive proper divisors.

              Examples

              @@ -2732,7 +2732,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.factor_.is_amicable(m, n)[source]#
              +sympy.ntheory.factor_.is_amicable(m, n)[source]#

              Returns True if the numbers \(m\) and \(n\) are “amicable”, else False.

              Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to that of the other.

              @@ -2755,7 +2755,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.modular.symmetric_residue(a, m)[source]#
              +sympy.ntheory.modular.symmetric_residue(a, m)[source]#

              Return the residual mod m such that it is within half of the modulus.

              >>> from sympy.ntheory.modular import symmetric_residue
               >>> symmetric_residue(1, 6)
              @@ -2768,7 +2768,7 @@ 

              Ntheory Functions Reference
              -sympy.ntheory.modular.crt(m, v, symmetric=False, check=True)[source]#
              +sympy.ntheory.modular.crt(m, v, symmetric=False, check=True)[source]#

              Chinese Remainder Theorem.

              The moduli in m are assumed to be pairwise coprime. The output is then an integer f, such that f = v_i mod m_i for each pair out @@ -2824,7 +2824,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.modular.crt1(m)[source]#
              +sympy.ntheory.modular.crt1(m)[source]#

              First part of Chinese Remainder Theorem, for multiple application.

              Examples

              >>> from sympy.ntheory.modular import crt, crt1, crt2
              @@ -2864,7 +2864,7 @@ 

              Ntheory Functions Reference
              -sympy.ntheory.modular.crt2(m, v, mm, e, s, symmetric=False)[source]#
              +sympy.ntheory.modular.crt2(m, v, mm, e, s, symmetric=False)[source]#

              Second part of Chinese Remainder Theorem, for multiple application.

              See crt1 for usage.

              Examples

              @@ -2886,7 +2886,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.modular.solve_congruence(*remainder_modulus_pairs, **hint)[source]#
              +sympy.ntheory.modular.solve_congruence(*remainder_modulus_pairs, **hint)[source]#

              Compute the integer n that has the residual ai when it is divided by mi where the ai and mi are given as pairs to this function: ((a1, m1), (a2, m2), …). If there is no solution, @@ -2940,7 +2940,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.multinomial.binomial_coefficients(n)[source]#
              +sympy.ntheory.multinomial.binomial_coefficients(n)[source]#

              Return a dictionary containing pairs \({(k1,k2) : C_kn}\) where \(C_kn\) are binomial coefficients and \(n=k1+k2\).

              Examples

              @@ -2958,7 +2958,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.multinomial.binomial_coefficients_list(n)[source]#
              +sympy.ntheory.multinomial.binomial_coefficients_list(n)[source]#

              Return a list of binomial coefficients as rows of the Pascal’s triangle.

              Examples

              @@ -2975,7 +2975,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.multinomial.multinomial_coefficients(m, n)[source]#
              +sympy.ntheory.multinomial.multinomial_coefficients(m, n)[source]#

              Return a dictionary containing pairs {(k1,k2,..,km) : C_kn} where C_kn are multinomial coefficients such that n=k1+k2+..+km.

              @@ -3002,7 +3002,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.multinomial.multinomial_coefficients_iterator(m, n, _tuple=<class 'tuple'>)[source]#
              +sympy.ntheory.multinomial.multinomial_coefficients_iterator(m, n, _tuple=<class 'tuple'>)[source]#

              multinomial coefficient iterator

              This routine has been optimized for \(m\) large with respect to \(n\) by taking advantage of the fact that when the monomial tuples \(t\) are stripped of @@ -3026,7 +3026,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.partitions_.npartitions(n, verbose=False)[source]#
              +sympy.ntheory.partitions_.npartitions(n, verbose=False)[source]#

              Calculate the partition function P(n), i.e. the number of ways that n can be written as a sum of positive integers.

              P(n) is computed using the Hardy-Ramanujan-Rademacher formula [R655].

              @@ -3049,7 +3049,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_fermat_pseudoprime(n, a)[source]#
              +sympy.ntheory.primetest.is_fermat_pseudoprime(n, a)[source]#

              Returns True if n is prime or is an odd composite integer that is coprime to a and satisfy the modular arithmetic congruence relation:

              @@ -3098,7 +3098,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_euler_pseudoprime(n, a)[source]#
              +sympy.ntheory.primetest.is_euler_pseudoprime(n, a)[source]#

              Returns True if n is prime or is an odd composite integer that is coprime to a and satisfy the modular arithmetic congruence relation:

              @@ -3146,7 +3146,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_euler_jacobi_pseudoprime(n, a)[source]#
              +sympy.ntheory.primetest.is_euler_jacobi_pseudoprime(n, a)[source]#

              Returns True if n is prime or is an odd composite integer that is coprime to a and satisfy the modular arithmetic congruence relation:

              @@ -3193,7 +3193,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_square(n, prep=True)[source]#
              +sympy.ntheory.primetest.is_square(n, prep=True)[source]#

              Return True if n == a * a for some integer a, else False. If n is suspected of not being a square then this is a quick method of confirming that it is not.

              @@ -3220,7 +3220,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.mr(n, bases)[source]#
              +sympy.ntheory.primetest.mr(n, bases)[source]#

              Perform a Miller-Rabin strong pseudoprime test on n using a given list of bases/witnesses.

              Examples

              @@ -3245,7 +3245,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_lucas_prp(n)[source]#
              +sympy.ntheory.primetest.is_lucas_prp(n)[source]#

              Standard Lucas compositeness test with Selfridge parameters. Returns False if n is definitely composite, and True if n is a Lucas probable prime.

              @@ -3289,7 +3289,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_strong_lucas_prp(n)[source]#
              +sympy.ntheory.primetest.is_strong_lucas_prp(n)[source]#

              Strong Lucas compositeness test with Selfridge parameters. Returns False if n is definitely composite, and True if n is a strong Lucas probable prime.

              @@ -3334,7 +3334,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_extra_strong_lucas_prp(n)[source]#
              +sympy.ntheory.primetest.is_extra_strong_lucas_prp(n)[source]#

              Extra Strong Lucas compositeness test. Returns False if n is definitely composite, and True if n is an “extra strong” Lucas probable prime.

              @@ -3381,7 +3381,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.isprime(n)[source]#
              +sympy.ntheory.primetest.isprime(n)[source]#

              Test if n is a prime number (True) or not (False). For n < 2^64 the answer is definitive; larger n values have a small probability of actually being pseudoprimes.

              @@ -3452,7 +3452,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.primetest.is_gaussian_prime(num)[source]#
              +sympy.ntheory.primetest.is_gaussian_prime(num)[source]#

              Test if num is a Gaussian prime number.

              References

              @@ -3465,7 +3465,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.n_order(a, n)[source]#
              +sympy.ntheory.residue_ntheory.n_order(a, n)[source]#

              Returns the order of a modulo n.

              Parameters:
              @@ -3505,7 +3505,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.is_primitive_root(a, p)[source]#
              +sympy.ntheory.residue_ntheory.is_primitive_root(a, p)[source]#

              Returns True if a is a primitive root of p.

              Parameters:
              @@ -3556,7 +3556,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.primitive_root(p, smallest=True)[source]#
              +sympy.ntheory.residue_ntheory.primitive_root(p, smallest=True)[source]#

              Returns a primitive root of p or None.

              Parameters:
              @@ -3623,7 +3623,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.sqrt_mod(a, p, all_roots=False)[source]#
              +sympy.ntheory.residue_ntheory.sqrt_mod(a, p, all_roots=False)[source]#

              Find a root of x**2 = a mod p.

              Parameters:
              @@ -3650,7 +3650,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.sqrt_mod_iter(a, p, domain=<class 'int'>)[source]#
              +sympy.ntheory.residue_ntheory.sqrt_mod_iter(a, p, domain=<class 'int'>)[source]#

              Iterate over solutions to x**2 = a mod p.

              Parameters:
              @@ -3676,7 +3676,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.quadratic_residues(p) list[int][source]#
              +sympy.ntheory.residue_ntheory.quadratic_residues(p) list[int][source]#

              Returns the list of quadratic residues.

              Examples

              >>> from sympy.ntheory.residue_ntheory import quadratic_residues
              @@ -3688,7 +3688,7 @@ 

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.nthroot_mod(a, n, p, all_roots=False)[source]#
              +sympy.ntheory.residue_ntheory.nthroot_mod(a, n, p, all_roots=False)[source]#

              Find the solutions to x**n = a mod p.

              Parameters:
              @@ -3763,7 +3763,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.is_nthpow_residue(a, n, m)[source]#
              +sympy.ntheory.residue_ntheory.is_nthpow_residue(a, n, m)[source]#

              Returns True if x**n == a (mod m) has solutions.

              References

              @@ -3778,7 +3778,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.is_quad_residue(a, p)[source]#
              +sympy.ntheory.residue_ntheory.is_quad_residue(a, p)[source]#

              Returns True if a (mod p) is in the set of squares mod p, i.e a % p in set([i**2 % p for i in range(p)]).

              @@ -3826,7 +3826,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.legendre_symbol(a, p)[source]#
              +sympy.ntheory.residue_ntheory.legendre_symbol(a, p)[source]#

              Returns the Legendre symbol \((a / p)\).

              For an integer a and an odd prime p, the Legendre symbol is defined as

              @@ -3860,7 +3860,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.jacobi_symbol(m, n)[source]#
              +sympy.ntheory.residue_ntheory.jacobi_symbol(m, n)[source]#

              Returns the Jacobi symbol \((m / n)\).

              For any integer m and any positive odd integer n the Jacobi symbol is defined as the product of the Legendre symbols corresponding to the @@ -3915,7 +3915,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.kronecker_symbol(a, n)[source]#
              +sympy.ntheory.residue_ntheory.kronecker_symbol(a, n)[source]#

              Returns the Kronecker symbol \((a / n)\).

              Parameters:
              @@ -3946,7 +3946,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.discrete_log(n, a, b, order=None, prime_order=None)[source]#
              +sympy.ntheory.residue_ntheory.discrete_log(n, a, b, order=None, prime_order=None)[source]#

              Compute the discrete logarithm of a to the base b modulo n.

              This is a recursive function to reduce the discrete logarithm problem in cyclic groups of composite order to the problem in cyclic groups of prime @@ -3983,7 +3983,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.quadratic_congruence(a, b, c, n)[source]#
              +sympy.ntheory.residue_ntheory.quadratic_congruence(a, b, c, n)[source]#

              Find the solutions to \(a x^2 + b x + c \equiv 0 \pmod{n}\).

              Parameters:
              @@ -4021,7 +4021,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.polynomial_congruence(expr, m)[source]#
              +sympy.ntheory.residue_ntheory.polynomial_congruence(expr, m)[source]#

              Find the solutions to a polynomial congruence equation modulo m.

              Parameters:
              @@ -4048,7 +4048,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.residue_ntheory.binomial_mod(n, m, k)[source]#
              +sympy.ntheory.residue_ntheory.binomial_mod(n, m, k)[source]#

              Compute binomial(n, m) % k.

              Parameters:
              @@ -4083,7 +4083,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.continued_fraction.continued_fraction(a) list[source]#
              +sympy.ntheory.continued_fraction.continued_fraction(a) list[source]#

              Return the continued fraction representation of a Rational or quadratic irrational.

              Examples

              @@ -4101,7 +4101,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.continued_fraction.continued_fraction_convergents(cf)[source]#
              +sympy.ntheory.continued_fraction.continued_fraction_convergents(cf)[source]#

              Return an iterator over the convergents of a continued fraction (cf).

              The parameter should be in either of the following to forms: - A list of partial quotients, possibly with the last element being a list @@ -4158,7 +4158,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.continued_fraction.continued_fraction_iterator(x)[source]#
              +sympy.ntheory.continued_fraction.continued_fraction_iterator(x)[source]#

              Return continued fraction expansion of x as iterator.

              Examples

              >>> from sympy import Rational, pi
              @@ -4196,7 +4196,7 @@ 

              Ntheory Functions Reference
              -sympy.ntheory.continued_fraction.continued_fraction_periodic(p, q, d=0, s=1) list[source]#
              +sympy.ntheory.continued_fraction.continued_fraction_periodic(p, q, d=0, s=1) list[source]#

              Find the periodic continued fraction expansion of a quadratic irrational.

              Compute the continued fraction expansion of a rational or a quadratic irrational number, i.e. \(\frac{p + s\sqrt{d}}{q}\), where @@ -4263,7 +4263,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.continued_fraction.continued_fraction_reduce(cf)[source]#
              +sympy.ntheory.continued_fraction.continued_fraction_reduce(cf)[source]#

              Reduce a continued fraction to a rational or quadratic irrational.

              Compute the rational or quadratic irrational number from its terminating or periodic continued fraction expansion. The @@ -4303,7 +4303,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.digits.count_digits(n, b=10)[source]#
              +sympy.ntheory.digits.count_digits(n, b=10)[source]#

              Return a dictionary whose keys are the digits of n in the given base, b, with keys indicating the digits appearing in the number and values indicating how many times that digit appeared.

              @@ -4344,7 +4344,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.digits.digits(n, b=10, digits=None)[source]#
              +sympy.ntheory.digits.digits(n, b=10, digits=None)[source]#

              Return a list of the digits of n in base b. The first element in the list is b (or -b if n is negative).

              @@ -4394,7 +4394,7 @@

              Ntheory Functions Reference
              -sympy.ntheory.digits.is_palindromic(n, b=10)[source]#
              +sympy.ntheory.digits.is_palindromic(n, b=10)[source]#

              return True if n is the same when read from left to right or right to left in the given base, b.

              Examples

              @@ -4427,7 +4427,7 @@

              Ntheory Functions Reference
              -class sympy.ntheory.mobius(n)[source]#
              +class sympy.ntheory.mobius(n)[source]#

              Mobius function maps natural number to {-1, 0, 1}

              It is defined as follows:
                @@ -4474,7 +4474,7 @@

                Ntheory Functions Reference
                -sympy.ntheory.egyptian_fraction.egyptian_fraction(r, algorithm='Greedy')[source]#
                +sympy.ntheory.egyptian_fraction.egyptian_fraction(r, algorithm='Greedy')[source]#

                Return the list of denominators of an Egyptian fraction expansion [R685] of the said rational \(r\).

                @@ -4581,7 +4581,7 @@

                Ntheory Functions Reference
                -sympy.ntheory.bbp_pi.pi_hex_digits(n, prec=14)[source]#
                +sympy.ntheory.bbp_pi.pi_hex_digits(n, prec=14)[source]#

                Returns a string containing prec (default 14) digits starting at the nth digit of pi in hex. Counting of digits starts at 0 and the decimal is not counted, so for n = 0 the @@ -4645,7 +4645,7 @@

                Ntheory Functions Reference
                -sympy.ntheory.ecm.ecm(n, B1=10000, B2=100000, max_curve=200, seed=1234)[source]#
                +sympy.ntheory.ecm.ecm(n, B1=10000, B2=100000, max_curve=200, seed=1234)[source]#

                Performs factorization using Lenstra’s Elliptic curve method.

                This function repeatedly calls _ecm_one_factor to compute the factors of n. First all the small factors are taken out using trial division. @@ -4696,7 +4696,7 @@

                Examples with two 25 digit factors. \(qs\) is able to factorize this in around 248s.

                -sympy.ntheory.qs.qs(N, prime_bound, M, ERROR_TERM=25, seed=1234)[source]#
                +sympy.ntheory.qs.qs(N, prime_bound, M, ERROR_TERM=25, seed=1234)[source]#

                Performs factorization using Self-Initializing Quadratic Sieve. In SIQS, let N be a number to be factored, and this N should not be a perfect power. If we find two integers such that X**2 = Y**2 modN and diff --git a/dev/modules/parsing.html b/dev/modules/parsing.html index e5a9ca3ef18..9eba37e1936 100644 --- a/dev/modules/parsing.html +++ b/dev/modules/parsing.html @@ -743,7 +743,7 @@

                Documentation Version

                Parsing Functions Reference#

                -sympy.parsing.sympy_parser.parse_expr(s: str, local_dict: ~typing.Dict[str, ~typing.Any] | None = None, transformations: ~typing.Tuple[~typing.Callable[[~typing.List[~typing.Tuple[int, str]], ~typing.Dict[str, ~typing.Any], ~typing.Dict[str, ~typing.Any]], ~typing.List[~typing.Tuple[int, str]]], ...] | str = (<function lambda_notation>, <function auto_symbol>, <function repeated_decimals>, <function auto_number>, <function factorial_notation>), global_dict: ~typing.Dict[str, ~typing.Any] | None = None, evaluate=True)[source]#
                +sympy.parsing.sympy_parser.parse_expr(s: str, local_dict: ~typing.Dict[str, ~typing.Any] | None = None, transformations: ~typing.Tuple[~typing.Callable[[~typing.List[~typing.Tuple[int, str]], ~typing.Dict[str, ~typing.Any], ~typing.Dict[str, ~typing.Any]], ~typing.List[~typing.Tuple[int, str]]], ...] | str = (<function lambda_notation>, <function auto_symbol>, <function repeated_decimals>, <function auto_number>, <function factorial_notation>), global_dict: ~typing.Dict[str, ~typing.Any] | None = None, evaluate=True)[source]#

                Converts the string s to a SymPy expression, in local_dict.

                Parameters:
                @@ -874,26 +874,26 @@

                Parsing Functions Reference
                -sympy.parsing.sympy_parser.stringify_expr(s: str, local_dict: Dict[str, Any], global_dict: Dict[str, Any], transformations: Tuple[Callable[[List[Tuple[int, str]], Dict[str, Any], Dict[str, Any]], List[Tuple[int, str]]], ...]) str[source]#
                +sympy.parsing.sympy_parser.stringify_expr(s: str, local_dict: Dict[str, Any], global_dict: Dict[str, Any], transformations: Tuple[Callable[[List[Tuple[int, str]], Dict[str, Any], Dict[str, Any]], List[Tuple[int, str]]], ...]) str[source]#

                Converts the string s to Python code, in local_dict

                Generally, parse_expr should be used.

                -sympy.parsing.sympy_parser.eval_expr(code, local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.eval_expr(code, local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Evaluate Python code generated by stringify_expr.

                Generally, parse_expr should be used.

                -sympy.parsing.maxima.parse_maxima(str, globals=None, name_dict={})[source]#
                +sympy.parsing.maxima.parse_maxima(str, globals=None, name_dict={})[source]#
                -sympy.parsing.mathematica.parse_mathematica(s)[source]#
                +sympy.parsing.mathematica.parse_mathematica(s)[source]#

                Translate a string containing a Wolfram Mathematica expression to a SymPy expression.

                If the translator is unable to find a suitable SymPy expression, the @@ -958,7 +958,7 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.split_symbols(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.split_symbols(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Splits symbol names for implicit multiplication.

                Intended to let expressions like xyz be parsed as x*y*z. Does not split Greek character names, so theta will not become @@ -968,7 +968,7 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.split_symbols_custom(predicate: Callable[[str], bool])[source]#
                +sympy.parsing.sympy_parser.split_symbols_custom(predicate: Callable[[str], bool])[source]#

                Creates a transformation that splits symbol names.

                predicate should return True if the symbol name is to be split.

                For instance, to retain the default behavior but avoid splitting certain @@ -991,7 +991,7 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.implicit_multiplication(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any]) List[Tuple[int, str]][source]#
                +sympy.parsing.sympy_parser.implicit_multiplication(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any]) List[Tuple[int, str]][source]#

                Makes the multiplication operator optional in most cases.

                Use this before implicit_application(), otherwise expressions like sin 2x will be parsed as x * sin(2) rather than sin(2*x).

                @@ -1007,7 +1007,7 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.implicit_application(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any]) List[Tuple[int, str]][source]#
                +sympy.parsing.sympy_parser.implicit_application(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any]) List[Tuple[int, str]][source]#

                Makes parentheses optional in some cases for function calls.

                Use this after implicit_multiplication(), otherwise expressions like sin 2x will be parsed as x * sin(2) rather than @@ -1024,7 +1024,7 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.function_exponentiation(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.function_exponentiation(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Allows functions to be exponentiated, e.g. cos**2(x).

                Examples

                >>> from sympy.parsing.sympy_parser import (parse_expr,
                @@ -1038,7 +1038,7 @@ 

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.implicit_multiplication_application(result: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any]) List[Tuple[int, str]][source]#
                +sympy.parsing.sympy_parser.implicit_multiplication_application(result: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any]) List[Tuple[int, str]][source]#

                Allows a slightly relaxed syntax.

                -sympy.parsing.sympy_parser.convert_xor(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.convert_xor(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Treats XOR, ^, as exponentiation, **.

                @@ -1075,7 +1075,7 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.lambda_notation(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.lambda_notation(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Substitutes “lambda” with its SymPy equivalent Lambda(). However, the conversion does not take place if only “lambda” is passed because that is a syntax error.

                @@ -1083,20 +1083,20 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.auto_symbol(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.auto_symbol(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Inserts calls to Symbol/Function for undefined variables.

                -sympy.parsing.sympy_parser.repeated_decimals(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.repeated_decimals(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Allows 0.2[1] notation to represent the repeated decimal 0.2111… (19/90)

                Run this before auto_number.

                -sympy.parsing.sympy_parser.auto_number(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.auto_number(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Converts numeric literals to use SymPy equivalents.

                Complex numbers use I, integer literals use Integer, and float literals use Float.

                @@ -1104,7 +1104,7 @@

                Parsing Transformations Reference
                -sympy.parsing.sympy_parser.factorial_notation(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#
                +sympy.parsing.sympy_parser.factorial_notation(tokens: List[Tuple[int, str]], local_dict: Dict[str, Any], global_dict: Dict[str, Any])[source]#

                Allows standard notation for factorial.

                @@ -1120,7 +1120,7 @@

                Experimental \(\mathrm{\LaTeX}\)<

                \(\mathrm{\LaTeX}\) Parsing Functions Reference#

                -sympy.parsing.latex.parse_latex(s, strict=False, backend='antlr')[source]#
                +sympy.parsing.latex.parse_latex(s, strict=False, backend='antlr')[source]#

                Converts the input LaTeX string s to a SymPy Expr.

                Parameters:
                @@ -1294,7 +1294,7 @@

                Lark \(\mathrm{\LaTeX}\) P

                Lark \(\mathrm{\LaTeX}\) Parser Functions#

                -sympy.parsing.latex.parse_latex_lark(s: str)[source]#
                +sympy.parsing.latex.parse_latex_lark(s: str)[source]#

                Experimental LaTeX parser using Lark.

                This function is still under development and its API may change with the next releases of SymPy.

                @@ -1305,7 +1305,7 @@

                Lark \(\mathrm{\LaTeX}\) P

                Lark \(\mathrm{\LaTeX}\) Parser Classes#

                -class sympy.parsing.latex.lark.LarkLaTeXParser(print_debug_output=False, transform=True, grammar_file=None, transformer=None)[source]#
                +class sympy.parsing.latex.lark.LarkLaTeXParser(print_debug_output=False, transform=True, grammar_file=None, transformer=None)[source]#

                Class for converting input \(\mathrm{\LaTeX}\) strings into SymPy Expressions. It holds all the necessary internal data for doing so, and exposes hooks for customizing its behavior.

                @@ -1338,7 +1338,7 @@

                Lark \(\mathrm{\LaTeX}\) P
                -class sympy.parsing.latex.lark.TransformToSymPyExpr[source]#
                +class sympy.parsing.latex.lark.TransformToSymPyExpr[source]#

                Returns a SymPy expression that is generated by traversing the lark.Tree passed to the .transform() function.

                @@ -1365,7 +1365,7 @@

                Lark \(\mathrm{\LaTeX}\) P

                \(\mathrm{\LaTeX}\) Parsing Exceptions Reference#

                -class sympy.parsing.latex.LaTeXParsingError[source]#
                +class sympy.parsing.latex.LaTeXParsingError[source]#
                @@ -1373,7 +1373,7 @@

                \(\mathrm{\LaTeX}\) Parsin

                SymPy Expression Reference#

                -class sympy.parsing.sym_expr.SymPyExpression(source_code=None, mode=None)[source]#
                +class sympy.parsing.sym_expr.SymPyExpression(source_code=None, mode=None)[source]#

                Class to store and handle SymPy expressions

                This class will hold SymPy Expressions and handle the API for the conversion to and from different languages.

                @@ -1444,7 +1444,7 @@

                \(\mathrm{\LaTeX}\) Parsin

              -convert_to_c()[source]#
              +convert_to_c()[source]#

              Returns a list with the c source code for the SymPy expressions

              Examples

              >>> from sympy.parsing.sym_expr import SymPyExpression
              @@ -1466,7 +1466,7 @@ 

              \(\mathrm{\LaTeX}\) Parsin
              -convert_to_expr(src_code, mode)[source]#
              +convert_to_expr(src_code, mode)[source]#

              Converts the given source code to SymPy Expressions

              Examples

              >>> from sympy.parsing.sym_expr import SymPyExpression
              @@ -1505,7 +1505,7 @@ 

              \(\mathrm{\LaTeX}\) Parsin
              -convert_to_fortran()[source]#
              +convert_to_fortran()[source]#

              Returns a list with the fortran source code for the SymPy expressions

              Examples

              >>> from sympy.parsing.sym_expr import SymPyExpression
              @@ -1526,7 +1526,7 @@ 

              \(\mathrm{\LaTeX}\) Parsin
              -convert_to_python()[source]#
              +convert_to_python()[source]#

              Returns a list with Python code for the SymPy expressions

              Examples

              >>> from sympy.parsing.sym_expr import SymPyExpression
              @@ -1547,7 +1547,7 @@ 

              \(\mathrm{\LaTeX}\) Parsin
              -return_expr()[source]#
              +return_expr()[source]#

              Returns the expression list

              Examples

              >>> from sympy.parsing.sym_expr import SymPyExpression
              diff --git a/dev/modules/physics/biomechanics/api/activation.html b/dev/modules/physics/biomechanics/api/activation.html
              index 1741cc52206..43febee8512 100644
              --- a/dev/modules/physics/biomechanics/api/activation.html
              +++ b/dev/modules/physics/biomechanics/api/activation.html
              @@ -750,7 +750,7 @@ 
              Documentation Version
              module.

              -class sympy.physics.biomechanics.activation.ActivationBase(name)[source]#
              +class sympy.physics.biomechanics.activation.ActivationBase(name)[source]#

              Abstract base class for all activation dynamics classes to inherit from.

              Notes

              Instances of this class cannot be directly instantiated by users. However, @@ -864,7 +864,7 @@

              Documentation Version
              -abstract rhs()[source]#
              +abstract rhs()[source]#

              Explanation

              The solution to the linear system of ordinary differential equations governing the activation dynamics:

              @@ -882,7 +882,7 @@
              Documentation Version
              -abstract classmethod with_defaults(name)[source]#
              +abstract classmethod with_defaults(name)[source]#

              Alternate constructor that provides recommended defaults for constants.

              @@ -900,7 +900,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.activation.FirstOrderActivationDeGroote2016(name, activation_time_constant=None, deactivation_time_constant=None, smoothing_rate=None)[source]#
              +class sympy.physics.biomechanics.activation.FirstOrderActivationDeGroote2016(name, activation_time_constant=None, deactivation_time_constant=None, smoothing_rate=None)[source]#

              First-order activation dynamics based on De Groote et al., 2016 [1].

              Explanation

              Gives the first-order activation dynamics equation for the rate of change @@ -1032,7 +1032,7 @@

              Documentation Version
              -rhs()[source]#
              +rhs()[source]#

              Ordered column matrix of equations for the solution of M x' = F.

              Explanation

              The solution to the linear system of ordinary differential equations @@ -1077,7 +1077,7 @@

              Documentation Version
              -classmethod with_defaults(name)[source]#
              +classmethod with_defaults(name)[source]#

              Alternate constructor that will use the published constants.

              Explanation

              Returns an instance of FirstOrderActivationDeGroote2016 using the @@ -1101,7 +1101,7 @@

              Documentation Version
              -class sympy.physics.biomechanics.activation.ZerothOrderActivation(name)[source]#
              +class sympy.physics.biomechanics.activation.ZerothOrderActivation(name)[source]#

              Simple zeroth-order activation dynamics mapping excitation to activation.

              Explanation

              @@ -1205,7 +1205,7 @@
              Documentation Version
              -rhs()[source]#
              +rhs()[source]#

              Ordered column matrix of equations for the solution of M x' = F.

              Explanation

              The solution to the linear system of ordinary differential equations @@ -1230,7 +1230,7 @@

              Documentation Version
              -classmethod with_defaults(name)[source]#
              +classmethod with_defaults(name)[source]#

              Alternate constructor that provides recommended defaults for constants.

              Explanation

              diff --git a/dev/modules/physics/biomechanics/api/curve.html b/dev/modules/physics/biomechanics/api/curve.html index 018769e8969..21aee356645 100644 --- a/dev/modules/physics/biomechanics/api/curve.html +++ b/dev/modules/physics/biomechanics/api/curve.html @@ -742,19 +742,19 @@
              Documentation Version

              Implementations of characteristic curves for musculotendon models.

              -class sympy.physics.biomechanics.curve.CharacteristicCurveCollection(tendon_force_length: CharacteristicCurveFunction, tendon_force_length_inverse: CharacteristicCurveFunction, fiber_force_length_passive: CharacteristicCurveFunction, fiber_force_length_passive_inverse: CharacteristicCurveFunction, fiber_force_length_active: CharacteristicCurveFunction, fiber_force_velocity: CharacteristicCurveFunction, fiber_force_velocity_inverse: CharacteristicCurveFunction)[source]#
              +class sympy.physics.biomechanics.curve.CharacteristicCurveCollection(tendon_force_length: CharacteristicCurveFunction, tendon_force_length_inverse: CharacteristicCurveFunction, fiber_force_length_passive: CharacteristicCurveFunction, fiber_force_length_passive_inverse: CharacteristicCurveFunction, fiber_force_length_active: CharacteristicCurveFunction, fiber_force_velocity: CharacteristicCurveFunction, fiber_force_velocity_inverse: CharacteristicCurveFunction)[source]#

              Simple data container to group together related characteristic curves.

              -class sympy.physics.biomechanics.curve.CharacteristicCurveFunction[source]#
              +class sympy.physics.biomechanics.curve.CharacteristicCurveFunction[source]#

              Base class for all musculotendon characteristic curve functions.

              -class sympy.physics.biomechanics.curve.FiberForceLengthActiveDeGroote2016(l_M_tilde, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11)[source]#
              +class sympy.physics.biomechanics.curve.FiberForceLengthActiveDeGroote2016(l_M_tilde, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11)[source]#

              Active muscle fiber force-length curve based on De Groote et al., 2016 [1].

              Explanation

              @@ -852,7 +852,7 @@
              Documentation Version
              -doit(deep=True, evaluate=True, **hints)[source]#
              +doit(deep=True, evaluate=True, **hints)[source]#

              Evaluate the expression defining the function.

              Parameters:
              @@ -879,7 +879,7 @@
              Documentation Version
              -classmethod eval(l_M_tilde, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11)[source]#
              +classmethod eval(l_M_tilde, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11)[source]#

              Evaluation of basic inputs.

              Parameters:
              @@ -953,7 +953,7 @@
              Documentation Version
              -fdiff(argindex=1)[source]#
              +fdiff(argindex=1)[source]#

              Derivative of the function with respect to a single argument.

              Parameters:
              @@ -969,7 +969,7 @@
              Documentation Version
              -classmethod with_defaults(l_M_tilde)[source]#
              +classmethod with_defaults(l_M_tilde)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              @@ -1003,7 +1003,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.curve.FiberForceLengthPassiveDeGroote2016(l_M_tilde, c0, c1)[source]#
              +class sympy.physics.biomechanics.curve.FiberForceLengthPassiveDeGroote2016(l_M_tilde, c0, c1)[source]#

              Passive muscle fiber force-length curve based on De Groote et al., 2016 [1].

              Explanation

              @@ -1077,7 +1077,7 @@
              Documentation Version
              -doit(deep=True, evaluate=True, **hints)[source]#
              +doit(deep=True, evaluate=True, **hints)[source]#

              Evaluate the expression defining the function.

              Parameters:
              @@ -1104,7 +1104,7 @@
              Documentation Version
              -classmethod eval(l_M_tilde, c0, c1)[source]#
              +classmethod eval(l_M_tilde, c0, c1)[source]#

              Evaluation of basic inputs.

              Parameters:
              @@ -1128,7 +1128,7 @@
              Documentation Version
              -fdiff(argindex=1)[source]#
              +fdiff(argindex=1)[source]#

              Derivative of the function with respect to a single argument.

              Parameters:
              @@ -1144,7 +1144,7 @@
              Documentation Version
              -inverse(argindex=1)[source]#
              +inverse(argindex=1)[source]#

              Inverse function.

              Parameters:
              @@ -1158,7 +1158,7 @@
              Documentation Version
              -classmethod with_defaults(l_M_tilde)[source]#
              +classmethod with_defaults(l_M_tilde)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              @@ -1181,7 +1181,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.curve.FiberForceLengthPassiveInverseDeGroote2016(fl_M_pas, c0, c1)[source]#
              +class sympy.physics.biomechanics.curve.FiberForceLengthPassiveInverseDeGroote2016(fl_M_pas, c0, c1)[source]#

              Inverse passive muscle fiber force-length curve based on De Groote et al., 2016 [1].

              Explanation

              @@ -1249,7 +1249,7 @@
              Documentation Version

              -doit(deep=True, evaluate=True, **hints)[source]#
              +doit(deep=True, evaluate=True, **hints)[source]#

              Evaluate the expression defining the function.

              Parameters:
              @@ -1276,7 +1276,7 @@
              Documentation Version
              -classmethod eval(fl_M_pas, c0, c1)[source]#
              +classmethod eval(fl_M_pas, c0, c1)[source]#

              Evaluation of basic inputs.

              Parameters:
              @@ -1300,7 +1300,7 @@
              Documentation Version
              -fdiff(argindex=1)[source]#
              +fdiff(argindex=1)[source]#

              Derivative of the function with respect to a single argument.

              Parameters:
              @@ -1316,7 +1316,7 @@
              Documentation Version
              -inverse(argindex=1)[source]#
              +inverse(argindex=1)[source]#

              Inverse function.

              Parameters:
              @@ -1330,7 +1330,7 @@
              Documentation Version
              -classmethod with_defaults(fl_M_pas)[source]#
              +classmethod with_defaults(fl_M_pas)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              @@ -1354,7 +1354,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.curve.FiberForceVelocityDeGroote2016(v_M_tilde, c0, c1, c2, c3)[source]#
              +class sympy.physics.biomechanics.curve.FiberForceVelocityDeGroote2016(v_M_tilde, c0, c1, c2, c3)[source]#

              Muscle fiber force-velocity curve based on De Groote et al., 2016 [1].

              Explanation

              Gives the normalized muscle fiber force produced as a function of @@ -1436,7 +1436,7 @@

              Documentation Version
              -doit(deep=True, evaluate=True, **hints)[source]#
              +doit(deep=True, evaluate=True, **hints)[source]#

              Evaluate the expression defining the function.

              Parameters:
              @@ -1463,7 +1463,7 @@
              Documentation Version
              -classmethod eval(v_M_tilde, c0, c1, c2, c3)[source]#
              +classmethod eval(v_M_tilde, c0, c1, c2, c3)[source]#

              Evaluation of basic inputs.

              Parameters:
              @@ -1497,7 +1497,7 @@
              Documentation Version
              -fdiff(argindex=1)[source]#
              +fdiff(argindex=1)[source]#

              Derivative of the function with respect to a single argument.

              Parameters:
              @@ -1513,7 +1513,7 @@
              Documentation Version
              -inverse(argindex=1)[source]#
              +inverse(argindex=1)[source]#

              Inverse function.

              Parameters:
              @@ -1527,7 +1527,7 @@
              Documentation Version
              -classmethod with_defaults(v_M_tilde)[source]#
              +classmethod with_defaults(v_M_tilde)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              @@ -1551,7 +1551,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.curve.FiberForceVelocityInverseDeGroote2016(fv_M, c0, c1, c2, c3)[source]#
              +class sympy.physics.biomechanics.curve.FiberForceVelocityInverseDeGroote2016(fv_M, c0, c1, c2, c3)[source]#

              Inverse muscle fiber force-velocity curve based on De Groote et al., 2016 [1].

              Explanation

              @@ -1618,7 +1618,7 @@
              Documentation Version

              -doit(deep=True, evaluate=True, **hints)[source]#
              +doit(deep=True, evaluate=True, **hints)[source]#

              Evaluate the expression defining the function.

              Parameters:
              @@ -1645,7 +1645,7 @@
              Documentation Version
              -classmethod eval(fv_M, c0, c1, c2, c3)[source]#
              +classmethod eval(fv_M, c0, c1, c2, c3)[source]#

              Evaluation of basic inputs.

              Parameters:
              @@ -1680,7 +1680,7 @@
              Documentation Version
              -fdiff(argindex=1)[source]#
              +fdiff(argindex=1)[source]#

              Derivative of the function with respect to a single argument.

              Parameters:
              @@ -1696,7 +1696,7 @@
              Documentation Version
              -inverse(argindex=1)[source]#
              +inverse(argindex=1)[source]#

              Inverse function.

              Parameters:
              @@ -1710,7 +1710,7 @@
              Documentation Version
              -classmethod with_defaults(fv_M)[source]#
              +classmethod with_defaults(fv_M)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              @@ -1735,7 +1735,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.curve.TendonForceLengthDeGroote2016(l_T_tilde, c0, c1, c2, c3)[source]#
              +class sympy.physics.biomechanics.curve.TendonForceLengthDeGroote2016(l_T_tilde, c0, c1, c2, c3)[source]#

              Tendon force-length curve based on De Groote et al., 2016 [1].

              Explanation

              Gives the normalized tendon force produced as a function of normalized @@ -1813,7 +1813,7 @@

              Documentation Version
              -doit(deep=True, evaluate=True, **hints)[source]#
              +doit(deep=True, evaluate=True, **hints)[source]#

              Evaluate the expression defining the function.

              Parameters:
              @@ -1840,7 +1840,7 @@
              Documentation Version
              -classmethod eval(l_T_tilde, c0, c1, c2, c3)[source]#
              +classmethod eval(l_T_tilde, c0, c1, c2, c3)[source]#

              Evaluation of basic inputs.

              Parameters:
              @@ -1874,7 +1874,7 @@
              Documentation Version
              -fdiff(argindex=1)[source]#
              +fdiff(argindex=1)[source]#

              Derivative of the function with respect to a single argument.

              Parameters:
              @@ -1890,7 +1890,7 @@
              Documentation Version
              -inverse(argindex=1)[source]#
              +inverse(argindex=1)[source]#

              Inverse function.

              Parameters:
              @@ -1904,7 +1904,7 @@
              Documentation Version
              -classmethod with_defaults(l_T_tilde)[source]#
              +classmethod with_defaults(l_T_tilde)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              @@ -1928,7 +1928,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.curve.TendonForceLengthInverseDeGroote2016(fl_T, c0, c1, c2, c3)[source]#
              +class sympy.physics.biomechanics.curve.TendonForceLengthInverseDeGroote2016(fl_T, c0, c1, c2, c3)[source]#

              Inverse tendon force-length curve based on De Groote et al., 2016 [1].

              Explanation

              Gives the normalized tendon length that produces a specific normalized @@ -1995,7 +1995,7 @@

              Documentation Version

              -doit(deep=True, evaluate=True, **hints)[source]#
              +doit(deep=True, evaluate=True, **hints)[source]#

              Evaluate the expression defining the function.

              Parameters:
              @@ -2022,7 +2022,7 @@
              Documentation Version
              -classmethod eval(fl_T, c0, c1, c2, c3)[source]#
              +classmethod eval(fl_T, c0, c1, c2, c3)[source]#

              Evaluation of basic inputs.

              Parameters:
              @@ -2056,7 +2056,7 @@
              Documentation Version
              -fdiff(argindex=1)[source]#
              +fdiff(argindex=1)[source]#

              Derivative of the function with respect to a single argument.

              Parameters:
              @@ -2072,7 +2072,7 @@
              Documentation Version
              -inverse(argindex=1)[source]#
              +inverse(argindex=1)[source]#

              Inverse function.

              Parameters:
              @@ -2086,7 +2086,7 @@
              Documentation Version
              -classmethod with_defaults(fl_T)[source]#
              +classmethod with_defaults(fl_T)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              diff --git a/dev/modules/physics/biomechanics/api/musculotendon.html b/dev/modules/physics/biomechanics/api/musculotendon.html index d8ab351d652..881683eff68 100644 --- a/dev/modules/physics/biomechanics/api/musculotendon.html +++ b/dev/modules/physics/biomechanics/api/musculotendon.html @@ -749,7 +749,7 @@
              Documentation Version
              and are specific to a given musculotendon model.

              -class sympy.physics.biomechanics.musculotendon.MusculotendonBase(name, pathway, activation_dynamics, *, musculotendon_dynamics=MusculotendonFormulation.RIGID_TENDON, tendon_slack_length=None, peak_isometric_force=None, optimal_fiber_length=None, maximal_fiber_velocity=None, optimal_pennation_angle=None, fiber_damping_coefficient=None, with_defaults=False)[source]#
              +class sympy.physics.biomechanics.musculotendon.MusculotendonBase(name, pathway, activation_dynamics, *, musculotendon_dynamics=MusculotendonFormulation.RIGID_TENDON, tendon_slack_length=None, peak_isometric_force=None, optimal_fiber_length=None, maximal_fiber_velocity=None, optimal_pennation_angle=None, fiber_damping_coefficient=None, with_defaults=False)[source]#

              Abstract base class for all musculotendon classes to inherit from.

              Parameters:
              @@ -954,7 +954,7 @@
              Documentation Version
              -abstract curves()[source]#
              +abstract curves()[source]#

              Return a CharacteristicCurveCollection of the curves related to the specific model.

              @@ -1123,7 +1123,7 @@
              Documentation Version
              -rhs()[source]#
              +rhs()[source]#

              Ordered column matrix of equations for the solution of M x' = F.

              Explanation

              The solution to the linear system of ordinary differential equations @@ -1171,7 +1171,7 @@

              Documentation Version
              -classmethod with_defaults(name, pathway, activation_dynamics, *, musculotendon_dynamics=MusculotendonFormulation.RIGID_TENDON, tendon_slack_length=None, peak_isometric_force=None, optimal_fiber_length=None, v_M_max=10.0000000000000, alpha_opt=0.0, beta=0.100000000000000)[source]#
              +classmethod with_defaults(name, pathway, activation_dynamics, *, musculotendon_dynamics=MusculotendonFormulation.RIGID_TENDON, tendon_slack_length=None, peak_isometric_force=None, optimal_fiber_length=None, v_M_max=10.0000000000000, alpha_opt=0.0, beta=0.100000000000000)[source]#

              Recommended constructor that will use the published constants.

              Parameters:
              @@ -1285,7 +1285,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.musculotendon.MusculotendonDeGroote2016(name, pathway, activation_dynamics, *, musculotendon_dynamics=MusculotendonFormulation.RIGID_TENDON, tendon_slack_length=None, peak_isometric_force=None, optimal_fiber_length=None, maximal_fiber_velocity=None, optimal_pennation_angle=None, fiber_damping_coefficient=None, with_defaults=False)[source]#
              +class sympy.physics.biomechanics.musculotendon.MusculotendonDeGroote2016(name, pathway, activation_dynamics, *, musculotendon_dynamics=MusculotendonFormulation.RIGID_TENDON, tendon_slack_length=None, peak_isometric_force=None, optimal_fiber_length=None, maximal_fiber_velocity=None, optimal_pennation_angle=None, fiber_damping_coefficient=None, with_defaults=False)[source]#

              Musculotendon model using the curves of De Groote et al., 2016 [1].

              Parameters:
              @@ -1659,7 +1659,7 @@
              Documentation Version
              -class sympy.physics.biomechanics.musculotendon.MusculotendonFormulation(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
              +class sympy.physics.biomechanics.musculotendon.MusculotendonFormulation(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

              Enumeration of types of musculotendon dynamics formulations.

              Explanation

              An (integer) enumeration is used as it allows for clearer selection of the diff --git a/dev/modules/physics/continuum_mechanics/beam.html b/dev/modules/physics/continuum_mechanics/beam.html index 872a5438db8..8e742fad4af 100644 --- a/dev/modules/physics/continuum_mechanics/beam.html +++ b/dev/modules/physics/continuum_mechanics/beam.html @@ -743,7 +743,7 @@

              Documentation Version
              singularity functions in mechanics.

              -class sympy.physics.continuum_mechanics.beam.Beam(length, elastic_modulus, second_moment, area=A, variable=x, base_char='C')[source]#
              +class sympy.physics.continuum_mechanics.beam.Beam(length, elastic_modulus, second_moment, area=A, variable=x, base_char='C')[source]#

              A Beam is a structural element that is capable of withstanding load primarily by resisting against bending. Beams are characterized by their cross sectional profile(Second moment of area), their length @@ -860,7 +860,7 @@

              Documentation Version
              -apply_load(value, start, order, end=None)[source]#
              +apply_load(value, start, order, end=None)[source]#

              This method adds up the loads given to a particular beam object.

              Parameters:
              @@ -928,7 +928,7 @@
              Documentation Version
              -apply_support(loc, type='fixed')[source]#
              +apply_support(loc, type='fixed')[source]#

              This method applies support to a particular beam object.

              Parameters:
              @@ -983,7 +983,7 @@
              Documentation Version
              -bending_moment()[source]#
              +bending_moment()[source]#

              Returns a Singularity Function expression which represents the bending moment curve of the Beam object.

              Examples

              @@ -1046,7 +1046,7 @@
              Documentation Version
              -deflection()[source]#
              +deflection()[source]#

              Returns a Singularity Function expression which represents the elastic curve or deflection of the Beam object.

              Examples

              @@ -1078,7 +1078,7 @@
              Documentation Version
              -draw(pictorial=True)[source]#
              +draw(pictorial=True)[source]#

              Returns a plot object representing the beam diagram of the beam. In particular, the diagram might include:

                @@ -1177,7 +1177,7 @@
                Documentation Version
                -join(beam, via='fixed')[source]#
                +join(beam, via='fixed')[source]#

                This method joins two beams to make a new composite beam system. Passed Beam class instance is attached to the right end of calling object. This method can be used to form beams having Discontinuous @@ -1257,28 +1257,28 @@

                Documentation Version
                -max_bmoment()[source]#
                +max_bmoment()[source]#

                Returns maximum Shear force and its coordinate in the Beam object.

                -max_deflection()[source]#
                +max_deflection()[source]#

                Returns point of max deflection and its corresponding deflection value in a Beam object.

                -max_shear_force()[source]#
                +max_shear_force()[source]#

                Returns maximum Shear force and its coordinate in the Beam object.

                -plot_bending_moment(subs=None)[source]#
                +plot_bending_moment(subs=None)[source]#

                Returns a plot for Bending moment present in the Beam object.

                Parameters:
                @@ -1322,7 +1322,7 @@
                Documentation Version
                -plot_deflection(subs=None)[source]#
                +plot_deflection(subs=None)[source]#

                Returns a plot for deflection curve of the Beam object.

                Parameters:
                @@ -1367,7 +1367,7 @@
                Documentation Version
                -plot_ild_moment(subs=None)[source]#
                +plot_ild_moment(subs=None)[source]#

                Plots the Influence Line Diagram for Moment under the effect of a moving load. This function should be called after calling solve_for_ild_moment().

                @@ -1410,7 +1410,7 @@
                Documentation Version
                -plot_ild_reactions(subs=None)[source]#
                +plot_ild_reactions(subs=None)[source]#

                Plots the Influence Line Diagram of Reaction Forces under the effect of a moving load. This function should be called after calling solve_for_ild_reactions().

                @@ -1459,7 +1459,7 @@
                Documentation Version
                -plot_ild_shear(subs=None)[source]#
                +plot_ild_shear(subs=None)[source]#

                Plots the Influence Line Diagram for Shear under the effect of a moving load. This function should be called after calling solve_for_ild_shear().

                @@ -1502,7 +1502,7 @@
                Documentation Version
                -plot_loading_results(subs=None)[source]#
                +plot_loading_results(subs=None)[source]#

                Returns a subplot of Shear Force, Bending Moment, Slope and Deflection of the Beam object.

                @@ -1543,7 +1543,7 @@
                Documentation Version
                -plot_shear_force(subs=None)[source]#
                +plot_shear_force(subs=None)[source]#

                Returns a plot for Shear force present in the Beam object.

                Parameters:
                @@ -1587,7 +1587,7 @@
                Documentation Version
                -plot_shear_stress(subs=None)[source]#
                +plot_shear_stress(subs=None)[source]#

                Returns a plot of shear stress present in the beam object.

                Parameters:
                @@ -1632,7 +1632,7 @@
                Documentation Version
                -plot_slope(subs=None)[source]#
                +plot_slope(subs=None)[source]#

                Returns a plot for slope of deflection curve of the Beam object.

                Parameters:
                @@ -1676,7 +1676,7 @@
                Documentation Version
                -point_cflexure()[source]#
                +point_cflexure()[source]#

                Returns a Set of point(s) with zero bending moment and where bending moment curve of the beam object changes its sign from negative to positive or vice versa.

                @@ -1714,7 +1714,7 @@
                Documentation Version
                -remove_load(value, start, order, end=None)[source]#
                +remove_load(value, start, order, end=None)[source]#

                This method removes a particular load present on the beam object. Returns a ValueError if the load passed as an argument is not present on the beam.

                @@ -1777,7 +1777,7 @@
                Documentation Version
                -shear_force()[source]#
                +shear_force()[source]#

                Returns a Singularity Function expression which represents the shear force curve of the Beam object.

                Examples

                @@ -1808,14 +1808,14 @@
                Documentation Version
                -shear_stress()[source]#
                +shear_stress()[source]#

                Returns an expression representing the Shear Stress curve of the Beam object.

                -slope()[source]#
                +slope()[source]#

                Returns a Singularity Function expression which represents the slope the elastic curve of the Beam object.

                Examples

                @@ -1847,7 +1847,7 @@
                Documentation Version
                -solve_for_ild_moment(distance, value, *reactions)[source]#
                +solve_for_ild_moment(distance, value, *reactions)[source]#

                Determines the Influence Line Diagram equations for moment at a specified point under the effect of a moving load.

                @@ -1890,7 +1890,7 @@
                Documentation Version
                -solve_for_ild_reactions(value, *reactions)[source]#
                +solve_for_ild_reactions(value, *reactions)[source]#

                Determines the Influence Line Diagram equations for reaction forces under the effect of a moving load.

                @@ -1927,7 +1927,7 @@
                Documentation Version
                -solve_for_ild_shear(distance, value, *reactions)[source]#
                +solve_for_ild_shear(distance, value, *reactions)[source]#

                Determines the Influence Line Diagram equations for shear at a specified point under the effect of a moving load.

                @@ -1970,7 +1970,7 @@
                Documentation Version
                -solve_for_reaction_loads(*reactions)[source]#
                +solve_for_reaction_loads(*reactions)[source]#

                Solves for the reaction forces.

                Examples

                There is a beam of length 30 meters. A moment of magnitude 120 Nm is @@ -2033,7 +2033,7 @@

                Documentation Version
                -class sympy.physics.continuum_mechanics.beam.Beam3D(length, elastic_modulus, shear_modulus, second_moment, area, variable=x)[source]#
                +class sympy.physics.continuum_mechanics.beam.Beam3D(length, elastic_modulus, shear_modulus, second_moment, area, variable=x)[source]#

                This class handles loads applied in any direction of a 3D space along with unequal values of Second moment along different axes.

                @@ -2087,14 +2087,14 @@
                Documentation Version
                -angular_deflection()[source]#
                +angular_deflection()[source]#

                Returns a function in x depicting how the angular deflection, due to moments in the x-axis on the beam, varies with x.

                -apply_load(value, start, order, dir='y')[source]#
                +apply_load(value, start, order, dir='y')[source]#

                This method adds up the force load to a particular beam object.

                Parameters:
                @@ -2121,7 +2121,7 @@
                Documentation Version
                -apply_moment_load(value, start, order, dir='y')[source]#
                +apply_moment_load(value, start, order, dir='y')[source]#

                This method adds up the moment loads to a particular beam object.

                Parameters:
                @@ -2154,19 +2154,19 @@
                Documentation Version
                -axial_force()[source]#
                +axial_force()[source]#

                Returns expression of Axial shear force present inside the Beam object.

                -axial_stress()[source]#
                +axial_stress()[source]#

                Returns expression of Axial stress present inside the Beam object.

                -bending_moment()[source]#
                +bending_moment()[source]#

                Returns a list of three expressions which represents the bending moment curve of the Beam object along all three axes.

                @@ -2201,7 +2201,7 @@
                Documentation Version
                -deflection()[source]#
                +deflection()[source]#

                Returns a three element list representing deflection curve along all the three axes.

                @@ -2214,7 +2214,7 @@
                Documentation Version
                -max_bending_moment()[source]#
                +max_bending_moment()[source]#

                Returns point of max bending moment and its corresponding bending moment value along all directions in a Beam object as a list. solve_for_reaction_loads() must be called before using this function.

                @@ -2244,7 +2244,7 @@
                Documentation Version
                -max_bmoment()[source]#
                +max_bmoment()[source]#

                Returns point of max bending moment and its corresponding bending moment value along all directions in a Beam object as a list. solve_for_reaction_loads() must be called before using this function.

                @@ -2274,7 +2274,7 @@
                Documentation Version
                -max_deflection()[source]#
                +max_deflection()[source]#

                Returns point of max deflection and its corresponding deflection value along all directions in a Beam object as a list. solve_for_reaction_loads() and solve_slope_deflection() must be called @@ -2306,7 +2306,7 @@

                Documentation Version
                -max_shear_force()[source]#
                +max_shear_force()[source]#

                Returns point of max shear force and its corresponding shear value along all directions in a Beam object as a list. solve_for_reaction_loads() must be called before using this function.

                @@ -2342,7 +2342,7 @@
                Documentation Version
                -plot_bending_moment(dir='all', subs=None)[source]#
                +plot_bending_moment(dir='all', subs=None)[source]#

                Returns a plot for bending moment along all three directions present in the Beam object.

                @@ -2395,7 +2395,7 @@
                Documentation Version
                -plot_deflection(dir='all', subs=None)[source]#
                +plot_deflection(dir='all', subs=None)[source]#

                Returns a plot for Deflection along all three directions present in the Beam object.

                @@ -2449,7 +2449,7 @@
                Documentation Version
                -plot_loading_results(dir='x', subs=None)[source]#
                +plot_loading_results(dir='x', subs=None)[source]#

                Returns a subplot of Shear Force, Bending Moment, Slope and Deflection of the Beam object along the direction specified.

                @@ -2506,7 +2506,7 @@
                Documentation Version
                -plot_shear_force(dir='all', subs=None)[source]#
                +plot_shear_force(dir='all', subs=None)[source]#

                Returns a plot for Shear force along all three directions present in the Beam object.

                @@ -2559,7 +2559,7 @@
                Documentation Version
                -plot_shear_stress(dir='all', subs=None)[source]#
                +plot_shear_stress(dir='all', subs=None)[source]#

                Returns a plot for Shear Stress along all three directions present in the Beam object.

                @@ -2612,7 +2612,7 @@
                Documentation Version
                -plot_slope(dir='all', subs=None)[source]#
                +plot_slope(dir='all', subs=None)[source]#

                Returns a plot for Slope along all three directions present in the Beam object.

                @@ -2666,7 +2666,7 @@
                Documentation Version
                -polar_moment()[source]#
                +polar_moment()[source]#

                Returns the polar moment of area of the beam about the X axis with respect to the centroid.

                Examples

                @@ -2692,7 +2692,7 @@
                Documentation Version
                -shear_force()[source]#
                +shear_force()[source]#

                Returns a list of three expressions which represents the shear force curve of the Beam object along all three axes.

                @@ -2705,21 +2705,21 @@
                Documentation Version
                -shear_stress()[source]#
                +shear_stress()[source]#

                Returns a list of three expressions which represents the shear stress curve of the Beam object along all three axes.

                -slope()[source]#
                +slope()[source]#

                Returns a three element list representing slope of deflection curve along all the three axes.

                -solve_for_reaction_loads(*reaction)[source]#
                +solve_for_reaction_loads(*reaction)[source]#

                Solves for the reaction forces.

                Examples

                There is a beam of length 30 meters. It it supported by rollers at @@ -2747,7 +2747,7 @@

                Documentation Version
                -solve_for_torsion()[source]#
                +solve_for_torsion()[source]#

                Solves for the angular deflection due to the torsional effects of moments being applied in the x-direction i.e. out of or into the beam.

                Here, a positive torque means the direction of the torque is positive @@ -2770,7 +2770,7 @@

                Documentation Version
                -torsional_moment()[source]#
                +torsional_moment()[source]#

                Returns expression of Torsional moment present inside the Beam object.

                diff --git a/dev/modules/physics/continuum_mechanics/cable.html b/dev/modules/physics/continuum_mechanics/cable.html index 5e983914669..ad86ddcc77e 100644 --- a/dev/modules/physics/continuum_mechanics/cable.html +++ b/dev/modules/physics/continuum_mechanics/cable.html @@ -745,7 +745,7 @@

                Cable (Docstrings)
                -class sympy.physics.continuum_mechanics.cable.Cable(support_1, support_2)[source]#
                +class sympy.physics.continuum_mechanics.cable.Cable(support_1, support_2)[source]#

                Cables are structures in engineering that support the applied transverse loads through the tensile resistance developed in its members.

                @@ -770,7 +770,7 @@

                Cable (Docstrings)
                -apply_length(length)[source]#
                +apply_length(length)[source]#

                This method specifies the length of the cable

                Parameters:
                @@ -792,7 +792,7 @@

                Cable (Docstrings)
                -apply_load(order, load)[source]#
                +apply_load(order, load)[source]#

                This method adds load to the cable.

                Parameters:
                @@ -860,7 +860,7 @@

                Cable (Docstrings)
                -change_support(label, new_support)[source]#
                +change_support(label, new_support)[source]#

                This method changes the mentioned support with a new support.

                Parameters:
                @@ -928,7 +928,7 @@

                Cable (Docstrings)
                -remove_loads(*args)[source]#
                +remove_loads(*args)[source]#

                This methods removes the specified loads.

                Parameters:
                diff --git a/dev/modules/physics/continuum_mechanics/truss.html b/dev/modules/physics/continuum_mechanics/truss.html index 47f3cb32197..51e7fa11c1a 100644 --- a/dev/modules/physics/continuum_mechanics/truss.html +++ b/dev/modules/physics/continuum_mechanics/truss.html @@ -743,7 +743,7 @@
                Documentation Version
                to 2D Trusses.

                -class sympy.physics.continuum_mechanics.truss.Truss[source]#
                +class sympy.physics.continuum_mechanics.truss.Truss[source]#

                A Truss is an assembly of members such as beams, connected by nodes, that create a rigid structure. In engineering, a truss is a structure that @@ -767,7 +767,7 @@

                Documentation Version

              -add_member(*args)[source]#
              +add_member(*args)[source]#

              This method adds a member between any two nodes in the given truss.

              Parameters:
              @@ -799,7 +799,7 @@
              Documentation Version
              -add_node(*args)[source]#
              +add_node(*args)[source]#

              This method adds a node to the truss along with its name/label and its location. Multiple nodes can be added at the same time.

              @@ -834,7 +834,7 @@
              Documentation Version
              -apply_load(*args)[source]#
              +apply_load(*args)[source]#

              This method applies external load(s) at the specified node(s).

              Parameters:
              @@ -871,7 +871,7 @@
              Documentation Version
              -apply_support(*args)[source]#
              +apply_support(*args)[source]#

              This method adds a pinned or roller support at specified node(s).

              Parameters:
              @@ -899,7 +899,7 @@
              Documentation Version
              -change_member_label(*args)[source]#
              +change_member_label(*args)[source]#

              This method changes the label(s) of the specified member(s).

              Parameters:
              @@ -936,7 +936,7 @@
              Documentation Version
              -change_node_label(*args)[source]#
              +change_node_label(*args)[source]#

              This method changes the label(s) of the specified node(s).

              Parameters:
              @@ -967,7 +967,7 @@
              Documentation Version
              -draw(subs_dict=None)[source]#
              +draw(subs_dict=None)[source]#

              Returns a plot object of the Truss with all its nodes, members, supports and loads.

              @@ -1063,7 +1063,7 @@
              Documentation Version
              -remove_load(*args)[source]#
              +remove_load(*args)[source]#

              This method removes already present external load(s) at specified node(s).

              @@ -1103,7 +1103,7 @@
              Documentation Version
              -remove_member(*args)[source]#
              +remove_member(*args)[source]#

              This method removes members from the given truss.

              Parameters:
              @@ -1129,7 +1129,7 @@
              Documentation Version
              -remove_node(*args)[source]#
              +remove_node(*args)[source]#

              This method removes a node from the truss. Multiple nodes can be removed at the same time.

              @@ -1156,7 +1156,7 @@
              Documentation Version
              -remove_support(*args)[source]#
              +remove_support(*args)[source]#

              This method removes support from specified node(s.)

              Parameters:
              @@ -1182,7 +1182,7 @@
              Documentation Version
              -solve()[source]#
              +solve()[source]#

              This method solves for all reaction forces of all supports and all internal forces of all the members in the truss, provided the Truss is solvable.

              A Truss is solvable if the following condition is met,

              diff --git a/dev/modules/physics/control/control_plots.html b/dev/modules/physics/control/control_plots.html index db54f9f30b9..86a1bf0b32c 100644 --- a/dev/modules/physics/control/control_plots.html +++ b/dev/modules/physics/control/control_plots.html @@ -747,7 +747,7 @@

              Control System PlotsPole-Zero Plot#

              -control_plots.pole_zero_plot(pole_color='blue', pole_markersize=10, zero_color='orange', zero_markersize=7, grid=True, show_axes=True, show=True, **kwargs)[source]#
              +control_plots.pole_zero_plot(pole_color='blue', pole_markersize=10, zero_color='orange', zero_markersize=7, grid=True, show_axes=True, show=True, **kwargs)[source]#

              Returns the Pole-Zero plot (also known as PZ Plot or PZ Map) of a system.

              A Pole-Zero plot is a graphical representation of a system’s poles and zeros. It is plotted on a complex plane, with circular markers representing @@ -823,7 +823,7 @@

              Pole-Zero Plot
              -control_plots.pole_zero_numerical_data()[source]#
              +control_plots.pole_zero_numerical_data()[source]#

              Returns the numerical data of poles and zeros of the system. It is internally used by pole_zero_plot to get the data for plotting poles and zeros. Users can use this data to further @@ -877,7 +877,7 @@

              Pole-Zero Plot#

              -control_plots.bode_plot(initial_exp=-5, final_exp=5, grid=True, show_axes=False, show=True, freq_unit='rad/sec', phase_unit='rad', phase_unwrap=True, **kwargs)[source]#
              +control_plots.bode_plot(initial_exp=-5, final_exp=5, grid=True, show_axes=False, show=True, freq_unit='rad/sec', phase_unit='rad', phase_unwrap=True, **kwargs)[source]#

              Returns the Bode phase and magnitude plots of a continuous-time system.

              Parameters:
              @@ -942,21 +942,21 @@

              Bode Plot
              -control_plots.bode_magnitude_plot(initial_exp=-5, final_exp=5, color='b', show_axes=False, grid=True, show=True, freq_unit='rad/sec', **kwargs)[source]#
              +control_plots.bode_magnitude_plot(initial_exp=-5, final_exp=5, color='b', show_axes=False, grid=True, show=True, freq_unit='rad/sec', **kwargs)[source]#

              Returns the Bode magnitude plot of a continuous-time system.

              See bode_plot for all the parameters.

              -control_plots.bode_phase_plot(initial_exp=-5, final_exp=5, color='b', show_axes=False, grid=True, show=True, freq_unit='rad/sec', phase_unit='rad', phase_unwrap=True, **kwargs)[source]#
              +control_plots.bode_phase_plot(initial_exp=-5, final_exp=5, color='b', show_axes=False, grid=True, show=True, freq_unit='rad/sec', phase_unit='rad', phase_unwrap=True, **kwargs)[source]#

              Returns the Bode phase plot of a continuous-time system.

              See bode_plot for all the parameters.

              -control_plots.bode_magnitude_numerical_data(initial_exp=-5, final_exp=5, freq_unit='rad/sec', **kwargs)[source]#
              +control_plots.bode_magnitude_numerical_data(initial_exp=-5, final_exp=5, freq_unit='rad/sec', **kwargs)[source]#

              Returns the numerical data of the Bode magnitude plot of the system. It is internally used by bode_magnitude_plot to get the data for plotting Bode magnitude plot. Users can use this data to further @@ -1021,7 +1021,7 @@

              Bode Plot
              -control_plots.bode_phase_numerical_data(initial_exp=-5, final_exp=5, freq_unit='rad/sec', phase_unit='rad', phase_unwrap=True, **kwargs)[source]#
              +control_plots.bode_phase_numerical_data(initial_exp=-5, final_exp=5, freq_unit='rad/sec', phase_unit='rad', phase_unwrap=True, **kwargs)[source]#

              Returns the numerical data of the Bode phase plot of the system. It is internally used by bode_phase_plot to get the data for plotting Bode phase plot. Users can use this data to further @@ -1097,7 +1097,7 @@

              Bode Plot#

              -control_plots.impulse_response_plot(color='b', prec=8, lower_limit=0, upper_limit=10, show_axes=False, grid=True, show=True, **kwargs)[source]#
              +control_plots.impulse_response_plot(color='b', prec=8, lower_limit=0, upper_limit=10, show_axes=False, grid=True, show=True, **kwargs)[source]#

              Returns the unit impulse response (Input is the Dirac-Delta Function) of a continuous-time system.

              @@ -1166,7 +1166,7 @@

              Impulse-Response Plot
              -control_plots.impulse_response_numerical_data(prec=8, lower_limit=0, upper_limit=10, **kwargs)[source]#
              +control_plots.impulse_response_numerical_data(prec=8, lower_limit=0, upper_limit=10, **kwargs)[source]#

              Returns the numerical values of the points in the impulse response plot of a SISO continuous-time system. By default, adaptive sampling is used. If the user wants to instead get an uniformly @@ -1242,7 +1242,7 @@

              Impulse-Response PlotStep-Response Plot#

              -control_plots.step_response_plot(color='b', prec=8, lower_limit=0, upper_limit=10, show_axes=False, grid=True, show=True, **kwargs)[source]#
              +control_plots.step_response_plot(color='b', prec=8, lower_limit=0, upper_limit=10, show_axes=False, grid=True, show=True, **kwargs)[source]#

              Returns the unit step response of a continuous-time system. It is the response of the system when the input signal is a step function.

              @@ -1311,7 +1311,7 @@

              Step-Response Plot
              -control_plots.step_response_numerical_data(prec=8, lower_limit=0, upper_limit=10, **kwargs)[source]#
              +control_plots.step_response_numerical_data(prec=8, lower_limit=0, upper_limit=10, **kwargs)[source]#

              Returns the numerical values of the points in the step response plot of a SISO continuous-time system. By default, adaptive sampling is used. If the user wants to instead get an uniformly @@ -1387,7 +1387,7 @@

              Step-Response Plot#

              -control_plots.ramp_response_plot(slope=1, color='b', prec=8, lower_limit=0, upper_limit=10, show_axes=False, grid=True, show=True, **kwargs)[source]#
              +control_plots.ramp_response_plot(slope=1, color='b', prec=8, lower_limit=0, upper_limit=10, show_axes=False, grid=True, show=True, **kwargs)[source]#

              Returns the ramp response of a continuous-time system.

              Ramp function is defined as the straight line passing through origin (\(f(x) = mx\)). The slope of @@ -1463,7 +1463,7 @@

              Ramp-Response Plot
              -control_plots.ramp_response_numerical_data(slope=1, prec=8, lower_limit=0, upper_limit=10, **kwargs)[source]#
              +control_plots.ramp_response_numerical_data(slope=1, prec=8, lower_limit=0, upper_limit=10, **kwargs)[source]#

              Returns the numerical values of the points in the ramp response plot of a SISO continuous-time system. By default, adaptive sampling is used. If the user wants to instead get an uniformly diff --git a/dev/modules/physics/control/lti.html b/dev/modules/physics/control/lti.html index ca7bbe7fe38..402efb4e838 100644 --- a/dev/modules/physics/control/lti.html +++ b/dev/modules/physics/control/lti.html @@ -743,7 +743,7 @@

              Control API

              lti#

              -class sympy.physics.control.lti.TransferFunction(num, den, var)[source]#
              +class sympy.physics.control.lti.TransferFunction(num, den, var)[source]#

              A class for representing LTI (Linear, time-invariant) systems that can be strictly described by ratio of polynomials in the Laplace transform complex variable. The arguments are num, den, and var, where num and den are numerator and @@ -934,7 +934,7 @@

              Control API
              -dc_gain()[source]#
              +dc_gain()[source]#

              Computes the gain of the response as the frequency approaches zero.

              The DC gain is infinite for systems with pure integrators.

              Examples

              @@ -975,7 +975,7 @@

              Control API
              -eval_frequency(other)[source]#
              +eval_frequency(other)[source]#

              Returns the system response at any point in the real or complex plane.

              Examples

              >>> from sympy.abc import s, p, a
              @@ -996,7 +996,7 @@ 

              Control API
              -expand()[source]#
              +expand()[source]#

              Returns the transfer function with numerator and denominator in expanded form.

              Examples

              @@ -1014,7 +1014,7 @@

              Control API
              -classmethod from_coeff_lists(num_list, den_list, var)[source]#
              +classmethod from_coeff_lists(num_list, den_list, var)[source]#

              Creates a new TransferFunction efficiently from a list of coefficients.

              Parameters:
              @@ -1057,7 +1057,7 @@

              Control API
              -classmethod from_rational_expression(expr, var=None)[source]#
              +classmethod from_rational_expression(expr, var=None)[source]#

              Creates a new TransferFunction efficiently from a rational expression.

              Parameters:
              @@ -1123,7 +1123,7 @@

              Control API
              -classmethod from_zpk(zeros, poles, gain, var)[source]#
              +classmethod from_zpk(zeros, poles, gain, var)[source]#

              Creates a new TransferFunction from given zeros, poles and gain.

              Parameters:
              @@ -1205,7 +1205,7 @@

              Control API
              -is_stable()[source]#
              +is_stable()[source]#

              Returns True if the transfer function is asymptotically stable; else False.

              This would not check the marginal or conditional stability of the system.

              Examples

              @@ -1266,7 +1266,7 @@

              Control API
              -poles()[source]#
              +poles()[source]#

              Returns the poles of a transfer function.

              Examples

              >>> from sympy.abc import s, p, a
              @@ -1286,7 +1286,7 @@ 

              Control API
              -to_expr()[source]#
              +to_expr()[source]#

              Converts a TransferFunction object to SymPy Expr.

              Examples

              >>> from sympy.abc import s, p, a, b
              @@ -1327,7 +1327,7 @@ 

              Control API
              -zeros()[source]#
              +zeros()[source]#

              Returns the zeros of a transfer function.

              Examples

              >>> from sympy.abc import s, p, a
              @@ -1349,7 +1349,7 @@ 

              Control API
              -class sympy.physics.control.lti.Series(*args, evaluate=False)[source]#
              +class sympy.physics.control.lti.Series(*args, evaluate=False)[source]#

              A class for representing a series configuration of SISO systems.

              Parameters:
              @@ -1419,7 +1419,7 @@

              Control API
              -doit(**hints)[source]#
              +doit(**hints)[source]#

              Returns the resultant transfer function obtained after evaluating the transfer functions in series configuration.

              Examples

              @@ -1503,7 +1503,7 @@

              Control API
              -to_expr()[source]#
              +to_expr()[source]#

              Returns the equivalent Expr object.

              @@ -1529,7 +1529,7 @@

              Control API
              -class sympy.physics.control.lti.Parallel(*args, evaluate=False)[source]#
              +class sympy.physics.control.lti.Parallel(*args, evaluate=False)[source]#

              A class for representing a parallel configuration of SISO systems.

              Parameters:
              @@ -1597,7 +1597,7 @@

              Control API
              -doit(**hints)[source]#
              +doit(**hints)[source]#

              Returns the resultant transfer function obtained after evaluating the transfer functions in parallel configuration.

              Examples

              @@ -1681,7 +1681,7 @@

              Control API
              -to_expr()[source]#
              +to_expr()[source]#

              Returns the equivalent Expr object.

              @@ -1707,7 +1707,7 @@

              Control API
              -class sympy.physics.control.lti.Feedback(sys1, sys2=None, sign=-1)[source]#
              +class sympy.physics.control.lti.Feedback(sys1, sys2=None, sign=-1)[source]#

              A class for representing closed-loop feedback interconnection between two SISO input/output systems.

              The first argument, sys1, is the feedforward part of the closed-loop @@ -1795,7 +1795,7 @@

              Control API
              -doit(cancel=False, expand=False, **hints)[source]#
              +doit(cancel=False, expand=False, **hints)[source]#

              Returns the resultant transfer function obtained by the feedback interconnection.

              Examples

              @@ -1925,7 +1925,7 @@

              Control API
              -class sympy.physics.control.lti.TransferFunctionMatrix(arg)[source]#
              +class sympy.physics.control.lti.TransferFunctionMatrix(arg)[source]#

              A class for representing the MIMO (multiple-input and multiple-output) generalization of the SISO (single-input and single-output) transfer function.

              It is a matrix of transfer functions (TransferFunction, SISO-Series or SISO-Parallel). @@ -2279,7 +2279,7 @@

              Control API
              -elem_poles()[source]#
              +elem_poles()[source]#

              Returns the poles of each element of the TransferFunctionMatrix.

              Note

              @@ -2307,7 +2307,7 @@

              Control API
              -elem_zeros()[source]#
              +elem_zeros()[source]#

              Returns the zeros of each element of the TransferFunctionMatrix.

              Note

              @@ -2335,7 +2335,7 @@

              Control API
              -eval_frequency(other)[source]#
              +eval_frequency(other)[source]#

              Evaluates system response of each transfer function in the TransferFunctionMatrix at any point in the real or complex plane.

              Examples

              >>> from sympy.abc import s
              @@ -2362,13 +2362,13 @@ 

              Control API
              -expand(**hints)[source]#
              +expand(**hints)[source]#

              Expands the transfer function matrix

              -classmethod from_Matrix(matrix, var)[source]#
              +classmethod from_Matrix(matrix, var)[source]#

              Creates a new TransferFunctionMatrix efficiently from a SymPy Matrix of Expr objects.

              Parameters:
              @@ -2467,7 +2467,7 @@

              Control API
              -transpose()[source]#
              +transpose()[source]#

              Returns the transpose of the TransferFunctionMatrix (switched input and output layers).

              @@ -2502,7 +2502,7 @@

              Control API
              -class sympy.physics.control.lti.MIMOSeries(*args, evaluate=False)[source]#
              +class sympy.physics.control.lti.MIMOSeries(*args, evaluate=False)[source]#

              A class for representing a series configuration of MIMO systems.

              Parameters:
              @@ -2579,7 +2579,7 @@

              Control API
              -doit(cancel=False, **kwargs)[source]#
              +doit(cancel=False, **kwargs)[source]#

              Returns the resultant transfer function matrix obtained after evaluating the MIMO systems arranged in a series configuration.

              Examples

              @@ -2635,7 +2635,7 @@

              Control API
              -class sympy.physics.control.lti.MIMOParallel(*args, evaluate=False)[source]#
              +class sympy.physics.control.lti.MIMOParallel(*args, evaluate=False)[source]#

              A class for representing a parallel configuration of MIMO systems.

              Parameters:
              @@ -2713,7 +2713,7 @@

              Control API
              -doit(**hints)[source]#
              +doit(**hints)[source]#

              Returns the resultant transfer function matrix obtained after evaluating the MIMO systems arranged in a parallel configuration.

              Examples

              @@ -2770,7 +2770,7 @@

              Control API
              -class sympy.physics.control.lti.MIMOFeedback(sys1, sys2, sign=-1)[source]#
              +class sympy.physics.control.lti.MIMOFeedback(sys1, sys2, sign=-1)[source]#

              A class for representing closed-loop feedback interconnection between two MIMO input/output systems.

              @@ -2856,7 +2856,7 @@

              Control API
              -doit(cancel=True, expand=False, **hints)[source]#
              +doit(cancel=True, expand=False, **hints)[source]#

              Returns the resultant transfer function matrix obtained by the feedback interconnection.

              Examples

              @@ -3062,7 +3062,7 @@

              Control API
              -sympy.physics.control.lti.gbt(tf, sample_per, alpha)[source]#
              +sympy.physics.control.lti.gbt(tf, sample_per, alpha)[source]#

              Returns falling coefficients of H(z) from numerator and denominator.

              Explanation

              Where H(z) is the corresponding discretized transfer function, @@ -3117,7 +3117,7 @@

              Control API
              -sympy.physics.control.lti.bilinear(tf, sample_per)[source]#
              +sympy.physics.control.lti.bilinear(tf, sample_per)[source]#

              Returns falling coefficients of H(z) from numerator and denominator.

              Explanation

              Where H(z) is the corresponding discretized transfer function, @@ -3144,7 +3144,7 @@

              Control API
              -sympy.physics.control.lti.forward_diff(tf, sample_per)[source]#
              +sympy.physics.control.lti.forward_diff(tf, sample_per)[source]#

              Returns falling coefficients of H(z) from numerator and denominator.

              Explanation

              Where H(z) is the corresponding discretized transfer function, @@ -3171,7 +3171,7 @@

              Control API
              -sympy.physics.control.lti.backward_diff(tf, sample_per)[source]#
              +sympy.physics.control.lti.backward_diff(tf, sample_per)[source]#

              Returns falling coefficients of H(z) from numerator and denominator.

              Explanation

              Where H(z) is the corresponding discretized transfer function, diff --git a/dev/modules/physics/hep/index.html b/dev/modules/physics/hep/index.html index 95884d06fee..233b66a131c 100644 --- a/dev/modules/physics/hep/index.html +++ b/dev/modules/physics/hep/index.html @@ -772,7 +772,7 @@

              Examples
              -sympy.physics.hep.gamma_matrices.extract_type_tens(expression, component)[source]#
              +sympy.physics.hep.gamma_matrices.extract_type_tens(expression, component)[source]#

              Extract from a TensExpr all tensors with \(component\).

              Returns two tensor expressions:

                @@ -783,7 +783,7 @@

                Examples
                -sympy.physics.hep.gamma_matrices.gamma_trace(t)[source]#
                +sympy.physics.hep.gamma_matrices.gamma_trace(t)[source]#

                trace of a single line of gamma matrices

                Examples

                >>> from sympy.physics.hep.gamma_matrices import GammaMatrix as G,         gamma_trace, LorentzIndex
                @@ -804,7 +804,7 @@ 

                Examples
                -sympy.physics.hep.gamma_matrices.kahane_simplify(expression)[source]#
                +sympy.physics.hep.gamma_matrices.kahane_simplify(expression)[source]#

                This function cancels contracted elements in a product of four dimensional gamma matrices, resulting in an expression equal to the given one, without the contracted gamma matrices.

                @@ -871,7 +871,7 @@

                Examples
                -sympy.physics.hep.gamma_matrices.simplify_gpgp(ex, sort=True)[source]#
                +sympy.physics.hep.gamma_matrices.simplify_gpgp(ex, sort=True)[source]#

                simplify products G(i)*p(-i)*G(j)*p(-j) -> p(i)*p(-i)

                Examples

                >>> from sympy.physics.hep.gamma_matrices import GammaMatrix as G,         LorentzIndex, simplify_gpgp
                diff --git a/dev/modules/physics/hydrogen.html b/dev/modules/physics/hydrogen.html
                index 4609d1641b5..6afa65575fb 100644
                --- a/dev/modules/physics/hydrogen.html
                +++ b/dev/modules/physics/hydrogen.html
                @@ -741,7 +741,7 @@ 
                Documentation Version

                Hydrogen Wavefunctions#

                -sympy.physics.hydrogen.E_nl(n, Z=1)[source]#
                +sympy.physics.hydrogen.E_nl(n, Z=1)[source]#

                Returns the energy of the state (n, l) in Hartree atomic units.

                The energy does not depend on “l”.

                @@ -776,7 +776,7 @@
                Documentation Version
                -sympy.physics.hydrogen.E_nl_dirac(n, l, spin_up=True, Z=1, c=137.035999037000)[source]#
                +sympy.physics.hydrogen.E_nl_dirac(n, l, spin_up=True, Z=1, c=137.035999037000)[source]#

                Returns the relativistic energy of the state (n, l, spin) in Hartree atomic units.

                The energy is calculated from the Dirac equation. The rest mass energy is @@ -838,7 +838,7 @@

                Documentation Version
                -sympy.physics.hydrogen.Psi_nlm(n, l, m, r, phi, theta, Z=1)[source]#
                +sympy.physics.hydrogen.Psi_nlm(n, l, m, r, phi, theta, Z=1)[source]#

                Returns the Hydrogen wave function psi_{nlm}. It’s the product of the radial wavefunction R_{nl} and the spherical harmonic Y_{l}^{m}.

                @@ -905,7 +905,7 @@
                Documentation Version
                -sympy.physics.hydrogen.R_nl(n, l, r, Z=1)[source]#
                +sympy.physics.hydrogen.R_nl(n, l, r, Z=1)[source]#

                Returns the Hydrogen radial wavefunction R_{nl}.

                Parameters:
                diff --git a/dev/modules/physics/matrices.html b/dev/modules/physics/matrices.html index 879b745a0ae..70a9a11a458 100644 --- a/dev/modules/physics/matrices.html +++ b/dev/modules/physics/matrices.html @@ -742,7 +742,7 @@
                Documentation Version

                Known matrices related to physics

                -sympy.physics.matrices.mdft(n)[source]#
                +sympy.physics.matrices.mdft(n)[source]#

                Deprecated since version 1.9: Use DFT from sympy.matrices.expressions.fourier instead.

                To get identical behavior to mdft(n), use DFT(n).as_explicit().

                @@ -751,7 +751,7 @@
                Documentation Version
                -sympy.physics.matrices.mgamma(mu, lower=False)[source]#
                +sympy.physics.matrices.mgamma(mu, lower=False)[source]#

                Returns a Dirac gamma matrix \(\gamma^\mu\) in the standard (Dirac) representation.

                Explanation

                @@ -780,7 +780,7 @@
                Documentation Version
                -sympy.physics.matrices.msigma(i)[source]#
                +sympy.physics.matrices.msigma(i)[source]#

                Returns a Pauli matrix \(\sigma_i\) with \(i=1,2,3\).

                Examples

                >>> from sympy.physics.matrices import msigma
                @@ -801,7 +801,7 @@ 
                Documentation Version
                -sympy.physics.matrices.pat_matrix(m, dx, dy, dz)[source]#
                +sympy.physics.matrices.pat_matrix(m, dx, dy, dz)[source]#

                Returns the Parallel Axis Theorem matrix to translate the inertia matrix a distance of \((dx, dy, dz)\) for a body of mass m.

                Examples

                diff --git a/dev/modules/physics/mechanics/api/actuator.html b/dev/modules/physics/mechanics/api/actuator.html index 10a7c30c018..bb003199c7d 100644 --- a/dev/modules/physics/mechanics/api/actuator.html +++ b/dev/modules/physics/mechanics/api/actuator.html @@ -742,14 +742,14 @@
                Documentation Version

                Implementations of actuators for linked force and torque application.

                -class sympy.physics.mechanics.actuator.ActuatorBase[source]#
                +class sympy.physics.mechanics.actuator.ActuatorBase[source]#

                Abstract base class for all actuator classes to inherit from.

                Notes

                Instances of this class cannot be directly instantiated by users. However, it can be used to created custom actuator types through subclassing.

                -abstract to_loads()[source]#
                +abstract to_loads()[source]#

                Loads required by the equations of motion method classes.

                Explanation

                KanesMethod requires a list of Point-Vector tuples to be @@ -766,7 +766,7 @@

                Documentation Version
                -class sympy.physics.mechanics.actuator.ForceActuator(force, pathway)[source]#
                +class sympy.physics.mechanics.actuator.ForceActuator(force, pathway)[source]#

                Force-producing actuator.

                Parameters:
                @@ -844,7 +844,7 @@
                Documentation Version
                -to_loads()[source]#
                +to_loads()[source]#

                Loads required by the equations of motion method classes.

                Explanation

                KanesMethod requires a list of Point-Vector tuples to be @@ -915,7 +915,7 @@

                Documentation Version
                -class sympy.physics.mechanics.actuator.LinearDamper(damping, pathway)[source]#
                +class sympy.physics.mechanics.actuator.LinearDamper(damping, pathway)[source]#

                A damper whose force is a linear function of its extension velocity.

                Parameters:
                @@ -1025,7 +1025,7 @@
                Documentation Version
                -class sympy.physics.mechanics.actuator.LinearSpring(stiffness, pathway, equilibrium_length=0)[source]#
                +class sympy.physics.mechanics.actuator.LinearSpring(stiffness, pathway, equilibrium_length=0)[source]#

                A spring with its spring force as a linear function of its length.

                Parameters:
                @@ -1153,7 +1153,7 @@
                Documentation Version
                -class sympy.physics.mechanics.actuator.TorqueActuator(torque, axis, target_frame, reaction_frame=None)[source]#
                +class sympy.physics.mechanics.actuator.TorqueActuator(torque, axis, target_frame, reaction_frame=None)[source]#

                Torque-producing actuator.

                Parameters:
                @@ -1204,7 +1204,7 @@
                Documentation Version
                when one is passed instead of a ReferenceFrame.

                -classmethod at_pin_joint(torque, pin_joint)[source]#
                +classmethod at_pin_joint(torque, pin_joint)[source]#

                Alternate construtor to instantiate from a PinJoint instance.

                Parameters:
                @@ -1283,7 +1283,7 @@
                Documentation Version
                -to_loads()[source]#
                +to_loads()[source]#

                Loads required by the equations of motion method classes.

                Explanation

                KanesMethod requires a list of Point-Vector tuples to be diff --git a/dev/modules/physics/mechanics/api/body.html b/dev/modules/physics/mechanics/api/body.html index 3992fe66a36..e494791a217 100644 --- a/dev/modules/physics/mechanics/api/body.html +++ b/dev/modules/physics/mechanics/api/body.html @@ -741,7 +741,7 @@

                Documentation Version

                Body (Docstrings)#

                -class sympy.physics.mechanics.body.Body(name, masscenter=None, mass=None, frame=None, central_inertia=None)[source]#
                +class sympy.physics.mechanics.body.Body(name, masscenter=None, mass=None, frame=None, central_inertia=None)[source]#

                Body is a common representation of either a RigidBody or a Particle SymPy object depending on what is passed in during initialization. If a mass is passed in and central_inertia is left as None, the Particle object is @@ -838,7 +838,7 @@

                Documentation Version
                -ang_vel_in(body)[source]#
                +ang_vel_in(body)[source]#

                Returns this body’s angular velocity with respect to the provided rigid body or reference frame.

                @@ -865,7 +865,7 @@
                Documentation Version
                -apply_force(force, point=None, reaction_body=None, reaction_point=None)[source]#
                +apply_force(force, point=None, reaction_body=None, reaction_point=None)[source]#

                Add force to the body(s).

                Parameters:
                @@ -951,7 +951,7 @@
                Documentation Version
                -apply_torque(torque, reaction_body=None)[source]#
                +apply_torque(torque, reaction_body=None)[source]#

                Add torque to the body(s).

                Parameters:
                @@ -1024,7 +1024,7 @@
                Documentation Version
                -clear_loads()[source]#
                +clear_loads()[source]#

                Clears the Body’s loads list.

                Example

                >>> from sympy.physics.mechanics import Body
                @@ -1042,7 +1042,7 @@ 
                Documentation Version
                -dcm(body)[source]#
                +dcm(body)[source]#

                Returns the direction cosine matrix of this body relative to the provided rigid body or reference frame.

                @@ -1080,7 +1080,7 @@
                Documentation Version
                -kinetic_energy(frame)[source]#
                +kinetic_energy(frame)[source]#

                Kinetic energy of the body.

                Parameters:
                @@ -1125,7 +1125,7 @@
                Documentation Version
                -masscenter_vel(body)[source]#
                +masscenter_vel(body)[source]#

                Returns the velocity of the mass center with respect to the provided rigid body or reference frame.

                @@ -1151,7 +1151,7 @@
                Documentation Version
                -parallel_axis(point, frame=None)[source]#
                +parallel_axis(point, frame=None)[source]#

                Returns the inertia dyadic of the body with respect to another point.

                @@ -1188,7 +1188,7 @@
                Documentation Version
                -remove_load(about=None)[source]#
                +remove_load(about=None)[source]#

                Remove load about a point or frame.

                Parameters:
                diff --git a/dev/modules/physics/mechanics/api/expr_manip.html b/dev/modules/physics/mechanics/api/expr_manip.html index 4d4a49020d7..5076fbd3a2c 100644 --- a/dev/modules/physics/mechanics/api/expr_manip.html +++ b/dev/modules/physics/mechanics/api/expr_manip.html @@ -741,7 +741,7 @@
                Documentation Version

                Expression Manipulation (Docstrings)#

                -sympy.physics.mechanics.msubs(expr, *sub_dicts, smart=False, **kwargs)[source]#
                +sympy.physics.mechanics.msubs(expr, *sub_dicts, smart=False, **kwargs)[source]#

                A custom subs for use on expressions derived in physics.mechanics.

                Traverses the expression tree once, performing the subs found in sub_dicts. Terms inside Derivative expressions are ignored:

                @@ -779,7 +779,7 @@

                Expression Manipulation (Docstrings)
                -sympy.physics.mechanics.find_dynamicsymbols(expression, exclude=None, reference_frame=None)[source]#
                +sympy.physics.mechanics.find_dynamicsymbols(expression, exclude=None, reference_frame=None)[source]#

                Find all dynamicsymbols in expression.

                Parameters:
                diff --git a/dev/modules/physics/mechanics/api/joint.html b/dev/modules/physics/mechanics/api/joint.html index 63f4f75612b..577360fcc70 100644 --- a/dev/modules/physics/mechanics/api/joint.html +++ b/dev/modules/physics/mechanics/api/joint.html @@ -743,7 +743,7 @@

                Joints Framework (Docstrings)

                Joint (Docstrings)#

                -class sympy.physics.mechanics.joint.Joint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, parent_axis=None, child_axis=None, parent_joint_pos=None, child_joint_pos=None)[source]#
                +class sympy.physics.mechanics.joint.Joint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, parent_axis=None, child_axis=None, parent_joint_pos=None, child_joint_pos=None)[source]#

                Abstract base class for all specific joints.

                Parameters:
                @@ -958,7 +958,7 @@

                Joints Framework (Docstrings)
                -class sympy.physics.mechanics.joint.PinJoint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, parent_axis=None, child_axis=None, joint_axis=None, parent_joint_pos=None, child_joint_pos=None)[source]#
                +class sympy.physics.mechanics.joint.PinJoint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, parent_axis=None, child_axis=None, joint_axis=None, parent_joint_pos=None, child_joint_pos=None)[source]#

                Pin (Revolute) Joint.

                ../../../../_images/PinJoint.svg
                Parameters:
                @@ -1223,7 +1223,7 @@

                Joints Framework (Docstrings)
                -class sympy.physics.mechanics.joint.PrismaticJoint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, parent_axis=None, child_axis=None, joint_axis=None, parent_joint_pos=None, child_joint_pos=None)[source]#
                +class sympy.physics.mechanics.joint.PrismaticJoint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, parent_axis=None, child_axis=None, joint_axis=None, parent_joint_pos=None, child_joint_pos=None)[source]#

                Prismatic (Sliding) Joint.

                ../../../../_images/PrismaticJoint.svg
                Parameters:
                @@ -1492,7 +1492,7 @@

                Joints Framework (Docstrings)
                -class sympy.physics.mechanics.joint.CylindricalJoint(name, parent, child, rotation_coordinate=None, translation_coordinate=None, rotation_speed=None, translation_speed=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, joint_axis=None)[source]#
                +class sympy.physics.mechanics.joint.CylindricalJoint(name, parent, child, rotation_coordinate=None, translation_coordinate=None, rotation_speed=None, translation_speed=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, joint_axis=None)[source]#

                Cylindrical Joint.

                ../../../../_images/CylindricalJoint.svg
                @@ -1781,7 +1781,7 @@

                Joints Framework (Docstrings)
                -class sympy.physics.mechanics.joint.PlanarJoint(name, parent, child, rotation_coordinate=None, planar_coordinates=None, rotation_speed=None, planar_speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None)[source]#
                +class sympy.physics.mechanics.joint.PlanarJoint(name, parent, child, rotation_coordinate=None, planar_coordinates=None, rotation_speed=None, planar_speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None)[source]#

                Planar Joint.

                ../../../../_images/PlanarJoint.svg
                @@ -2130,7 +2130,7 @@

                Joints Framework (Docstrings)
                -class sympy.physics.mechanics.joint.SphericalJoint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, rot_type='BODY', amounts=None, rot_order=123)[source]#
                +class sympy.physics.mechanics.joint.SphericalJoint(name, parent, child, coordinates=None, speeds=None, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None, rot_type='BODY', amounts=None, rot_order=123)[source]#

                Spherical (Ball-and-Socket) Joint.

                ../../../../_images/SphericalJoint.svg
                @@ -2361,7 +2361,7 @@

                Joints Framework (Docstrings)
                -class sympy.physics.mechanics.joint.WeldJoint(name, parent, child, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None)[source]#
                +class sympy.physics.mechanics.joint.WeldJoint(name, parent, child, parent_point=None, child_point=None, parent_interframe=None, child_interframe=None)[source]#

                Weld Joint.

                ../../../../_images/WeldJoint.svg
                @@ -2546,7 +2546,7 @@

                Joints Framework (Docstrings)
                -class sympy.physics.mechanics.jointsmethod.JointsMethod(newtonion, *joints)[source]#
                +class sympy.physics.mechanics.jointsmethod.JointsMethod(newtonion, *joints)[source]#

                Method for formulating the equations of motion using a set of interconnected bodies with joints.

                Parameters:
                @@ -2642,7 +2642,7 @@

                Joints Framework (Docstrings)
                -form_eoms(method=<class 'sympy.physics.mechanics.kane.KanesMethod'>)[source]#
                +form_eoms(method=<class 'sympy.physics.mechanics.kane.KanesMethod'>)[source]#

                Method to form system’s equation of motions.

                Parameters:
                @@ -2724,7 +2724,7 @@

                Joints Framework (Docstrings)
                -rhs(inv_method=None)[source]#
                +rhs(inv_method=None)[source]#

                Returns equations that can be solved numerically.

                Parameters:
                diff --git a/dev/modules/physics/mechanics/api/kane_lagrange.html b/dev/modules/physics/mechanics/api/kane_lagrange.html index badd2494b99..4cc002c4675 100644 --- a/dev/modules/physics/mechanics/api/kane_lagrange.html +++ b/dev/modules/physics/mechanics/api/kane_lagrange.html @@ -741,7 +741,7 @@
                Documentation Version

                Kane’s Method & Lagrange’s Method (Docstrings)#

                -class sympy.physics.mechanics.kane.KanesMethod(frame, q_ind, u_ind, kd_eqs=None, q_dependent=None, configuration_constraints=None, u_dependent=None, velocity_constraints=None, acceleration_constraints=None, u_auxiliary=None, bodies=None, forcelist=None, explicit_kinematics=True, kd_eqs_solver='LU', constraint_solver='LU')[source]#
                +class sympy.physics.mechanics.kane.KanesMethod(frame, q_ind, u_ind, kd_eqs=None, q_dependent=None, configuration_constraints=None, u_dependent=None, velocity_constraints=None, acceleration_constraints=None, u_auxiliary=None, bodies=None, forcelist=None, explicit_kinematics=True, kd_eqs_solver='LU', constraint_solver='LU')[source]#

                Kane’s method object.

                Parameters:
                @@ -979,7 +979,7 @@
                Documentation Version
                -kanes_equations(bodies=None, loads=None)[source]#
                +kanes_equations(bodies=None, loads=None)[source]#

                Method to form Kane’s equations, Fr + Fr* = 0.

                Parameters:
                @@ -1008,13 +1008,13 @@
                Documentation Version
                -kindiffdict()[source]#
                +kindiffdict()[source]#

                Returns a dictionary mapping q’ to u.

                -linearize(*, new_method=None, linear_solver='LU', **kwargs)[source]#
                +linearize(*, new_method=None, linear_solver='LU', **kwargs)[source]#

                Linearize the equations of motion about a symbolic operating point.

                Parameters:
                @@ -1082,7 +1082,7 @@
                Documentation Version
                -rhs(inv_method=None)[source]#
                +rhs(inv_method=None)[source]#

                Returns the system’s equations of motion in first order form. The output is the right hand side of:

                x' = |q'| =: f(q, u, r, p, t)
                @@ -1105,7 +1105,7 @@ 
                Documentation Version
                -to_linearizer(linear_solver='LU')[source]#
                +to_linearizer(linear_solver='LU')[source]#

                Returns an instance of the Linearizer class, initiated from the data in the KanesMethod class. This may be more desirable than using the linearize class method, as the Linearizer object will allow more @@ -1139,7 +1139,7 @@

                Documentation Version
                -class sympy.physics.mechanics.lagrange.LagrangesMethod(Lagrangian, qs, forcelist=None, bodies=None, frame=None, hol_coneqs=None, nonhol_coneqs=None)[source]#
                +class sympy.physics.mechanics.lagrange.LagrangesMethod(Lagrangian, qs, forcelist=None, bodies=None, frame=None, hol_coneqs=None, nonhol_coneqs=None)[source]#

                Lagrange’s method object.

                Explanation

                This object generates the equations of motion in a two step procedure. The @@ -1243,7 +1243,7 @@

                Documentation Version
                -form_lagranges_equations()[source]#
                +form_lagranges_equations()[source]#

                Method to form Lagrange’s equations of motion.

                Returns a vector of equations of motion using Lagrange’s equations of the second kind.

                @@ -1251,7 +1251,7 @@
                Documentation Version
                -linearize(q_ind=None, qd_ind=None, q_dep=None, qd_dep=None, linear_solver='LU', **kwargs)[source]#
                +linearize(q_ind=None, qd_ind=None, q_dep=None, qd_dep=None, linear_solver='LU', **kwargs)[source]#

                Linearize the equations of motion about a symbolic operating point.

                Parameters:
                @@ -1316,7 +1316,7 @@
                Documentation Version
                -rhs(inv_method=None, **kwargs)[source]#
                +rhs(inv_method=None, **kwargs)[source]#

                Returns equations that can be solved numerically.

                Parameters:
                @@ -1332,7 +1332,7 @@
                Documentation Version
                -solve_multipliers(op_point=None, sol_type='dict')[source]#
                +solve_multipliers(op_point=None, sol_type='dict')[source]#

                Solves for the values of the lagrange multipliers symbolically at the specified operating point.

                @@ -1355,7 +1355,7 @@
                Documentation Version
                -to_linearizer(q_ind=None, qd_ind=None, q_dep=None, qd_dep=None, linear_solver='LU')[source]#
                +to_linearizer(q_ind=None, qd_ind=None, q_dep=None, qd_dep=None, linear_solver='LU')[source]#

                Returns an instance of the Linearizer class, initiated from the data in the LagrangesMethod class. This may be more desirable than using the linearize class method, as the Linearizer object will allow more diff --git a/dev/modules/physics/mechanics/api/linearize.html b/dev/modules/physics/mechanics/api/linearize.html index 7c3b7a96ce0..baf91ae9e2a 100644 --- a/dev/modules/physics/mechanics/api/linearize.html +++ b/dev/modules/physics/mechanics/api/linearize.html @@ -741,7 +741,7 @@

                Documentation Version

                Linearization (Docstrings)#

                -class sympy.physics.mechanics.linearize.Linearizer(f_0, f_1, f_2, f_3, f_4, f_c, f_v, f_a, q, u, q_i=None, q_d=None, u_i=None, u_d=None, r=None, lams=None, linear_solver='LU')[source]#
                +class sympy.physics.mechanics.linearize.Linearizer(f_0, f_1, f_2, f_3, f_4, f_c, f_v, f_a, q, u, q_i=None, q_d=None, u_i=None, u_d=None, r=None, lams=None, linear_solver='LU')[source]#

                This object holds the general model form for a dynamic system. This model is used for computing the linearized form of the system, while properly dealing with constraints leading to dependent coordinates and @@ -781,7 +781,7 @@

                Documentation Version
                -__init__(f_0, f_1, f_2, f_3, f_4, f_c, f_v, f_a, q, u, q_i=None, q_d=None, u_i=None, u_d=None, r=None, lams=None, linear_solver='LU')[source]#
                +__init__(f_0, f_1, f_2, f_3, f_4, f_c, f_v, f_a, q, u, q_i=None, q_d=None, u_i=None, u_d=None, r=None, lams=None, linear_solver='LU')[source]#
                Parameters:

                f_0, f_1, f_2, f_3, f_4, f_c, f_v, f_a : array_like

                @@ -832,7 +832,7 @@
                Documentation Version
                -linearize(op_point=None, A_and_B=False, simplify=False)[source]#
                +linearize(op_point=None, A_and_B=False, simplify=False)[source]#

                Linearize the system about the operating point. Note that q_op, u_op, qd_op, ud_op must satisfy the equations of motion. These may be either symbolic or numeric.

                diff --git a/dev/modules/physics/mechanics/api/part_bod.html b/dev/modules/physics/mechanics/api/part_bod.html index ea60530092a..e8bdc6b33e1 100644 --- a/dev/modules/physics/mechanics/api/part_bod.html +++ b/dev/modules/physics/mechanics/api/part_bod.html @@ -743,7 +743,7 @@
                Documentation Version

                Bodies#

                -class sympy.physics.mechanics.particle.Particle(name, point=None, mass=None)[source]#
                +class sympy.physics.mechanics.particle.Particle(name, point=None, mass=None)[source]#

                A particle.

                Parameters:
                @@ -783,7 +783,7 @@

                Bodies#
                -angular_momentum(point, frame)[source]#
                +angular_momentum(point, frame)[source]#

                Angular momentum of the particle about the point.

                Parameters:
                @@ -823,7 +823,7 @@

                Bodies#
                -kinetic_energy(frame)[source]#
                +kinetic_energy(frame)[source]#

                Kinetic energy of the particle.

                Parameters:
                @@ -856,7 +856,7 @@

                Bodies#
                -linear_momentum(frame)[source]#
                +linear_momentum(frame)[source]#

                Linear momentum of the particle.

                Parameters:
                @@ -908,7 +908,7 @@

                Bodies#
                -parallel_axis(point, frame)[source]#
                +parallel_axis(point, frame)[source]#

                Returns an inertia dyadic of the particle with respect to another point and frame.

                @@ -959,7 +959,7 @@

                Bodies#
                -class sympy.physics.mechanics.rigidbody.RigidBody(name, masscenter=None, frame=None, mass=None, inertia=None)[source]#
                +class sympy.physics.mechanics.rigidbody.RigidBody(name, masscenter=None, frame=None, mass=None, inertia=None)[source]#

                An idealized rigid body.

                Explanation

                This is essentially a container which holds the various components which @@ -1009,7 +1009,7 @@

                Bodies#
                -angular_momentum(point, frame)[source]#
                +angular_momentum(point, frame)[source]#

                Returns the angular momentum of the rigid body about a point in the given frame.

                @@ -1071,7 +1071,7 @@

                Bodies#
                -kinetic_energy(frame)[source]#
                +kinetic_energy(frame)[source]#

                Kinetic energy of the rigid body.

                Parameters:
                @@ -1111,7 +1111,7 @@

                Bodies#
                -linear_momentum(frame)[source]#
                +linear_momentum(frame)[source]#

                Linear momentum of the rigid body.

                Parameters:
                @@ -1165,7 +1165,7 @@

                Bodies#
                -parallel_axis(point, frame=None)[source]#
                +parallel_axis(point, frame=None)[source]#

                Returns the inertia dyadic of the body with respect to another point.

                Parameters:
                @@ -1230,7 +1230,7 @@

                Bodies#Inertias#

                -class sympy.physics.mechanics.inertia.Inertia(dyadic, point)[source]#
                +class sympy.physics.mechanics.inertia.Inertia(dyadic, point)[source]#

                Inertia object consisting of a Dyadic and a Point of reference.

                Explanation

                This is a simple class to store the Point and Dyadic, belonging to an @@ -1265,7 +1265,7 @@

                Inertias

                -classmethod from_inertia_scalars(point, frame, ixx, iyy, izz, ixy=0, iyz=0, izx=0)[source]#
                +classmethod from_inertia_scalars(point, frame, ixx, iyy, izz, ixy=0, iyz=0, izx=0)[source]#

                Simple way to create an Inertia object based on the tensor values.

                Parameters:
                @@ -1330,7 +1330,7 @@

                Inertias
                -sympy.physics.mechanics.inertia.inertia(frame, ixx, iyy, izz, ixy=0, iyz=0, izx=0)[source]#
                +sympy.physics.mechanics.inertia.inertia(frame, ixx, iyy, izz, ixy=0, iyz=0, izx=0)[source]#

                Simple way to create inertia Dyadic object.

                Parameters:
                @@ -1378,7 +1378,7 @@

                Inertias
                -sympy.physics.mechanics.inertia.inertia_of_point_mass(mass, pos_vec, frame)[source]#
                +sympy.physics.mechanics.inertia.inertia_of_point_mass(mass, pos_vec, frame)[source]#

                Inertia dyadic of a point mass relative to point O.

                Parameters:
                @@ -1413,7 +1413,7 @@

                Inertias

                Loads#

                -class sympy.physics.mechanics.loads.Force(point, force)[source]#
                +class sympy.physics.mechanics.loads.Force(point, force)[source]#

                Force acting upon a point.

                Explanation

                A force is a vector that is bound to a line of action. This class stores @@ -1441,7 +1441,7 @@

                Loads#<
                -class sympy.physics.mechanics.loads.Torque(frame, torque)[source]#
                +class sympy.physics.mechanics.loads.Torque(frame, torque)[source]#

                Torque acting upon a frame.

                Explanation

                A torque is a free vector that is acting on a reference frame, which is @@ -1471,7 +1471,7 @@

                Loads#<

                Other Functions#

                -sympy.physics.mechanics.functions.center_of_mass(point, *bodies)[source]#
                +sympy.physics.mechanics.functions.center_of_mass(point, *bodies)[source]#

                Returns the position vector from the given point to the center of mass of the given bodies(particles or rigidbodies).

                Example

                @@ -1504,7 +1504,7 @@

                Other Functions
                -sympy.physics.mechanics.functions.linear_momentum(frame, *body)[source]#
                +sympy.physics.mechanics.functions.linear_momentum(frame, *body)[source]#

                Linear momentum of the system.

                Parameters:
                @@ -1545,7 +1545,7 @@

                Other Functions
                -sympy.physics.mechanics.functions.angular_momentum(point, frame, *body)[source]#
                +sympy.physics.mechanics.functions.angular_momentum(point, frame, *body)[source]#

                Angular momentum of a system.

                Parameters:
                @@ -1594,7 +1594,7 @@

                Other Functions
                -sympy.physics.mechanics.functions.kinetic_energy(frame, *body)[source]#
                +sympy.physics.mechanics.functions.kinetic_energy(frame, *body)[source]#

                Kinetic energy of a multibody system.

                Parameters:
                @@ -1641,7 +1641,7 @@

                Other Functions
                -sympy.physics.mechanics.functions.potential_energy(*body)[source]#
                +sympy.physics.mechanics.functions.potential_energy(*body)[source]#

                Potential energy of a multibody system.

                Parameters:
                @@ -1684,7 +1684,7 @@

                Other Functions
                -sympy.physics.mechanics.functions.Lagrangian(frame, *body)[source]#
                +sympy.physics.mechanics.functions.Lagrangian(frame, *body)[source]#

                Lagrangian of a multibody system.

                Parameters:
                @@ -1734,7 +1734,7 @@

                Other Functions
                -sympy.physics.mechanics.functions.find_dynamicsymbols(expression, exclude=None, reference_frame=None)[source]#
                +sympy.physics.mechanics.functions.find_dynamicsymbols(expression, exclude=None, reference_frame=None)[source]#

                Find all dynamicsymbols in expression.

                Parameters:
                diff --git a/dev/modules/physics/mechanics/api/pathway.html b/dev/modules/physics/mechanics/api/pathway.html index bdd1a2f3c3f..3308693fde0 100644 --- a/dev/modules/physics/mechanics/api/pathway.html +++ b/dev/modules/physics/mechanics/api/pathway.html @@ -742,7 +742,7 @@
                Documentation Version

                Implementations of pathways for use by actuators.

                -class sympy.physics.mechanics.pathway.LinearPathway(*attachments)[source]#
                +class sympy.physics.mechanics.pathway.LinearPathway(*attachments)[source]#

                Linear pathway between a pair of attachment points.

                Parameters:
                @@ -832,7 +832,7 @@
                Documentation Version
                -to_loads(force)[source]#
                +to_loads(force)[source]#

                Loads required by the equations of motion method classes.

                Parameters:
                @@ -886,7 +886,7 @@
                Documentation Version
                -class sympy.physics.mechanics.pathway.ObstacleSetPathway(*attachments)[source]#
                +class sympy.physics.mechanics.pathway.ObstacleSetPathway(*attachments)[source]#

                Obstacle-set pathway between a set of attachment points.

                Parameters:
                @@ -967,7 +967,7 @@
                Documentation Version
                -to_loads(force)[source]#
                +to_loads(force)[source]#

                Loads required by the equations of motion method classes.

                Parameters:
                @@ -1034,7 +1034,7 @@
                Documentation Version
                -class sympy.physics.mechanics.pathway.PathwayBase(*attachments)[source]#
                +class sympy.physics.mechanics.pathway.PathwayBase(*attachments)[source]#

                Abstract base class for all pathway classes to inherit from.

                Notes

                Instances of this class cannot be directly instantiated by users. However, @@ -1059,7 +1059,7 @@

                Documentation Version
                -abstract to_loads(force)[source]#
                +abstract to_loads(force)[source]#

                Loads required by the equations of motion method classes.

                Explanation

                KanesMethod requires a list of Point-Vector tuples to be @@ -1076,7 +1076,7 @@

                Documentation Version
                -class sympy.physics.mechanics.pathway.WrappingPathway(attachment_1, attachment_2, geometry)[source]#
                +class sympy.physics.mechanics.pathway.WrappingPathway(attachment_1, attachment_2, geometry)[source]#

                Pathway that wraps a geometry object.

                Parameters:
                @@ -1163,7 +1163,7 @@
                Documentation Version
                -to_loads(force)[source]#
                +to_loads(force)[source]#

                Loads required by the equations of motion method classes.

                Parameters:
                diff --git a/dev/modules/physics/mechanics/api/system.html b/dev/modules/physics/mechanics/api/system.html index 94c87c6e2e9..f587f864aee 100644 --- a/dev/modules/physics/mechanics/api/system.html +++ b/dev/modules/physics/mechanics/api/system.html @@ -741,7 +741,7 @@
                Documentation Version

                SymbolicSystem (Docstrings)#

                -class sympy.physics.mechanics._system.System(frame=None, origin=None)[source]#
                +class sympy.physics.mechanics._system.System(frame=None, origin=None)[source]#

                Class to define a system and form the equations of motion.

                Explanation

                A System instance stores the different objects associated with a model, @@ -962,7 +962,7 @@

                SymbolicSystem (Docstrings)
                -add_actuators(*actuators)[source]#
                +add_actuators(*actuators)[source]#

                Add actuator(s) to the system.

                Parameters:
                @@ -976,7 +976,7 @@

                SymbolicSystem (Docstrings)
                -add_bodies(*bodies)[source]#
                +add_bodies(*bodies)[source]#

                Add body(ies) to the system.

                Parameters:
                @@ -990,7 +990,7 @@

                SymbolicSystem (Docstrings)
                -add_coordinates(*coordinates, independent=True)[source]#
                +add_coordinates(*coordinates, independent=True)[source]#

                Add generalized coordinate(s) to the system.

                Parameters:
                @@ -1010,7 +1010,7 @@

                SymbolicSystem (Docstrings)
                -add_holonomic_constraints(*constraints)[source]#
                +add_holonomic_constraints(*constraints)[source]#

                Add holonomic constraint(s) to the system.

                Parameters:
                @@ -1025,7 +1025,7 @@

                SymbolicSystem (Docstrings)
                -add_joints(*joints)[source]#
                +add_joints(*joints)[source]#

                Add joint(s) to the system.

                Parameters:
                @@ -1049,7 +1049,7 @@

                SymbolicSystem (Docstrings)
                -add_kdes(*kdes)[source]#
                +add_kdes(*kdes)[source]#

                Add kinematic differential equation(s) to the system.

                Parameters:
                @@ -1063,7 +1063,7 @@

                SymbolicSystem (Docstrings)
                -add_loads(*loads)[source]#
                +add_loads(*loads)[source]#

                Add load(s) to the system.

                Parameters:
                @@ -1077,7 +1077,7 @@

                SymbolicSystem (Docstrings)
                -add_nonholonomic_constraints(*constraints)[source]#
                +add_nonholonomic_constraints(*constraints)[source]#

                Add nonholonomic constraint(s) to the system.

                Parameters:
                @@ -1092,7 +1092,7 @@

                SymbolicSystem (Docstrings)
                -add_speeds(*speeds, independent=True)[source]#
                +add_speeds(*speeds, independent=True)[source]#

                Add generalized speed(s) to the system.

                Parameters:
                @@ -1111,7 +1111,7 @@

                SymbolicSystem (Docstrings)
                -apply_gravity(acceleration)[source]#
                +apply_gravity(acceleration)[source]#

                Apply gravity to all bodies in the system.

                Parameters:
                @@ -1150,7 +1150,7 @@

                SymbolicSystem (Docstrings)
                -form_eoms(eom_method=<class 'sympy.physics.mechanics.kane.KanesMethod'>, **kwargs)[source]#
                +form_eoms(eom_method=<class 'sympy.physics.mechanics.kane.KanesMethod'>, **kwargs)[source]#

                Form the equations of motion of the system.

                Parameters:
                @@ -1210,13 +1210,13 @@

                SymbolicSystem (Docstrings)
                -classmethod from_newtonian(newtonian)[source]#
                +classmethod from_newtonian(newtonian)[source]#

                Constructs the system with respect to a Newtonian body.

                -get_body(name)[source]#
                +get_body(name)[source]#

                Retrieve a body from the system by name.

                Parameters:
                @@ -1236,7 +1236,7 @@

                SymbolicSystem (Docstrings)
                -get_joint(name)[source]#
                +get_joint(name)[source]#

                Retrieve a joint from the system by name.

                Parameters:
                @@ -1341,7 +1341,7 @@

                SymbolicSystem (Docstrings)
                -rhs(inv_method=None)[source]#
                +rhs(inv_method=None)[source]#

                Compute the equations of motion in the explicit form.

                Parameters:
                @@ -1390,7 +1390,7 @@

                SymbolicSystem (Docstrings)
                -validate_system(eom_method=<class 'sympy.physics.mechanics.kane.KanesMethod'>, check_duplicates=False)[source]#
                +validate_system(eom_method=<class 'sympy.physics.mechanics.kane.KanesMethod'>, check_duplicates=False)[source]#

                Validates the system using some basic checks.

                Parameters:
                @@ -1468,7 +1468,7 @@

                SymbolicSystem (Docstrings)
                -class sympy.physics.mechanics.system.SymbolicSystem(coord_states, right_hand_side, speeds=None, mass_matrix=None, coordinate_derivatives=None, alg_con=None, output_eqns={}, coord_idxs=None, speed_idxs=None, bodies=None, loads=None)[source]#
                +class sympy.physics.mechanics.system.SymbolicSystem(coord_states, right_hand_side, speeds=None, mass_matrix=None, coordinate_derivatives=None, alg_con=None, output_eqns={}, coord_idxs=None, speed_idxs=None, bodies=None, loads=None)[source]#

                SymbolicSystem is a class that contains all the information about a system in a symbolic format such as the equations of motions and the bodies and loads in the system.

                @@ -1670,7 +1670,7 @@

                SymbolicSystem (Docstrings)
                -compute_explicit_form()[source]#
                +compute_explicit_form()[source]#

                If the explicit right hand side of the combined equations of motion is to provided upon initialization, this method will calculate it. This calculation can potentially take awhile to compute.

                @@ -1678,7 +1678,7 @@

                SymbolicSystem (Docstrings)
                -constant_symbols()[source]#
                +constant_symbols()[source]#

                Returns a column matrix containing all of the symbols in the system that do not depend on time

                @@ -1707,7 +1707,7 @@

                SymbolicSystem (Docstrings)
                -dynamic_symbols()[source]#
                +dynamic_symbols()[source]#

                Returns a column matrix containing all of the symbols in the system that depend on time

                diff --git a/dev/modules/physics/mechanics/api/wrapping_geometry.html b/dev/modules/physics/mechanics/api/wrapping_geometry.html index 4192fd4ed8b..172ad7698ef 100644 --- a/dev/modules/physics/mechanics/api/wrapping_geometry.html +++ b/dev/modules/physics/mechanics/api/wrapping_geometry.html @@ -742,7 +742,7 @@
                Documentation Version

                Geometry objects for use by wrapping pathways.

                -class sympy.physics.mechanics.wrapping_geometry.WrappingCylinder(radius, point, axis)[source]#
                +class sympy.physics.mechanics.wrapping_geometry.WrappingCylinder(radius, point, axis)[source]#

                A solid (infinite) cylindrical object.

                Parameters:
                @@ -802,7 +802,7 @@
                Documentation Version
                -geodesic_end_vectors(point_1, point_2)[source]#
                +geodesic_end_vectors(point_1, point_2)[source]#

                The vectors parallel to the geodesic at the two end points.

                Parameters:
                @@ -820,7 +820,7 @@
                Documentation Version
                -geodesic_length(point_1, point_2)[source]#
                +geodesic_length(point_1, point_2)[source]#

                The shortest distance between two points on a geometry’s surface.

                Parameters:
                @@ -893,7 +893,7 @@
                Documentation Version
                -point_on_surface(point)[source]#
                +point_on_surface(point)[source]#

                Returns True if a point is on the cylinder’s surface.

                Parameters:
                @@ -918,14 +918,14 @@
                Documentation Version
                -class sympy.physics.mechanics.wrapping_geometry.WrappingGeometryBase[source]#
                +class sympy.physics.mechanics.wrapping_geometry.WrappingGeometryBase[source]#

                Abstract base class for all geometry classes to inherit from.

                Notes

                Instances of this class cannot be directly instantiated by users. However, it can be used to created custom geometry types through subclassing.

                -abstract geodesic_end_vectors(point_1, point_2)[source]#
                +abstract geodesic_end_vectors(point_1, point_2)[source]#

                The vectors parallel to the geodesic at the two end points.

                Parameters:
                @@ -943,7 +943,7 @@
                Documentation Version
                -abstract geodesic_length(point_1, point_2)[source]#
                +abstract geodesic_length(point_1, point_2)[source]#

                Returns the shortest distance between two points on a geometry’s surface.

                @@ -968,7 +968,7 @@
                Documentation Version
                -abstract point_on_surface(point)[source]#
                +abstract point_on_surface(point)[source]#

                Returns True if a point is on the geometry’s surface.

                Parameters:
                @@ -985,7 +985,7 @@
                Documentation Version
                -class sympy.physics.mechanics.wrapping_geometry.WrappingSphere(radius, point)[source]#
                +class sympy.physics.mechanics.wrapping_geometry.WrappingSphere(radius, point)[source]#

                A solid spherical object.

                Parameters:
                @@ -1027,7 +1027,7 @@
                Documentation Version

                -geodesic_end_vectors(point_1, point_2)[source]#
                +geodesic_end_vectors(point_1, point_2)[source]#

                The vectors parallel to the geodesic at the two end points.

                Parameters:
                @@ -1045,7 +1045,7 @@
                Documentation Version
                -geodesic_length(point_1, point_2)[source]#
                +geodesic_length(point_1, point_2)[source]#

                Returns the shortest distance between two points on the sphere’s surface.

                @@ -1118,7 +1118,7 @@
                Documentation Version
                -point_on_surface(point)[source]#
                +point_on_surface(point)[source]#

                Returns True if a point is on the sphere’s surface.

                Parameters:
                diff --git a/dev/modules/physics/optics/gaussopt.html b/dev/modules/physics/optics/gaussopt.html index 2ac950ea643..5e16dc945e6 100644 --- a/dev/modules/physics/optics/gaussopt.html +++ b/dev/modules/physics/optics/gaussopt.html @@ -760,7 +760,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.BeamParameter(wavelen, z, z_r=None, w=None, n=1)[source]#
                +class sympy.physics.optics.gaussopt.BeamParameter(wavelen, z, z_r=None, w=None, n=1)[source]#

                Representation for a gaussian ray in the Ray Transfer Matrix formalism.

                Parameters:
                @@ -925,7 +925,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.CurvedMirror(R)[source]#
                +class sympy.physics.optics.gaussopt.CurvedMirror(R)[source]#

                Ray Transfer Matrix for reflection from curved surface.

                Parameters:
                @@ -950,7 +950,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.CurvedRefraction(R, n1, n2)[source]#
                +class sympy.physics.optics.gaussopt.CurvedRefraction(R, n1, n2)[source]#

                Ray Transfer Matrix for refraction on curved interface.

                Parameters:
                @@ -986,7 +986,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.FlatMirror[source]#
                +class sympy.physics.optics.gaussopt.FlatMirror[source]#

                Ray Transfer Matrix for reflection.

                Examples

                >>> from sympy.physics.optics import FlatMirror
                @@ -1004,7 +1004,7 @@ 
                Documentation Version
                -class sympy.physics.optics.gaussopt.FlatRefraction(n1, n2)[source]#
                +class sympy.physics.optics.gaussopt.FlatRefraction(n1, n2)[source]#

                Ray Transfer Matrix for refraction.

                Parameters:
                @@ -1036,7 +1036,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.FreeSpace(d)[source]#
                +class sympy.physics.optics.gaussopt.FreeSpace(d)[source]#

                Ray Transfer Matrix for free space.

                Parameters:
                @@ -1061,7 +1061,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.GeometricRay(*args)[source]#
                +class sympy.physics.optics.gaussopt.GeometricRay(*args)[source]#

                Representation for a geometric ray in the Ray Transfer Matrix formalism.

                Parameters:
                @@ -1132,7 +1132,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.RayTransferMatrix(*args)[source]#
                +class sympy.physics.optics.gaussopt.RayTransferMatrix(*args)[source]#

                Base class for a Ray Transfer Matrix.

                It should be used if there is not already a more specific subclass mentioned in See Also.

                @@ -1245,7 +1245,7 @@
                Documentation Version
                -class sympy.physics.optics.gaussopt.ThinLens(f)[source]#
                +class sympy.physics.optics.gaussopt.ThinLens(f)[source]#

                Ray Transfer Matrix for a thin lens.

                Parameters:
                @@ -1273,7 +1273,7 @@
                Documentation Version
                -sympy.physics.optics.gaussopt.conjugate_gauss_beams(wavelen, waist_in, waist_out, **kwargs)[source]#
                +sympy.physics.optics.gaussopt.conjugate_gauss_beams(wavelen, waist_in, waist_out, **kwargs)[source]#

                Find the optical setup conjugating the object/image waists.

                Parameters:
                @@ -1329,7 +1329,7 @@
                Documentation Version
                -sympy.physics.optics.gaussopt.gaussian_conj(s_in, z_r_in, f)[source]#
                +sympy.physics.optics.gaussopt.gaussian_conj(s_in, z_r_in, f)[source]#

                Conjugation relation for gaussian beams.

                Parameters:
                @@ -1384,7 +1384,7 @@
                Documentation Version
                -sympy.physics.optics.gaussopt.geometric_conj_ab(a, b)[source]#
                +sympy.physics.optics.gaussopt.geometric_conj_ab(a, b)[source]#

                Conjugation relation for geometrical beams under paraxial conditions.

                Explanation

                Takes the distances to the optical element and returns the needed @@ -1405,7 +1405,7 @@

                Documentation Version
                -sympy.physics.optics.gaussopt.geometric_conj_af(a, f)[source]#
                +sympy.physics.optics.gaussopt.geometric_conj_af(a, f)[source]#

                Conjugation relation for geometrical beams under paraxial conditions.

                Explanation

                Takes the object distance (for geometric_conj_af) or the image distance @@ -1429,7 +1429,7 @@

                Documentation Version
                -sympy.physics.optics.gaussopt.geometric_conj_bf(a, f)[source]#
                +sympy.physics.optics.gaussopt.geometric_conj_bf(a, f)[source]#

                Conjugation relation for geometrical beams under paraxial conditions.

                Explanation

                Takes the object distance (for geometric_conj_af) or the image distance @@ -1453,7 +1453,7 @@

                Documentation Version
                -sympy.physics.optics.gaussopt.rayleigh2waist(z_r, wavelen)[source]#
                +sympy.physics.optics.gaussopt.rayleigh2waist(z_r, wavelen)[source]#

                Calculate the waist from the rayleigh range of a gaussian beam.

                Examples

                >>> from sympy.physics.optics import rayleigh2waist
                @@ -1471,7 +1471,7 @@ 
                Documentation Version
                -sympy.physics.optics.gaussopt.waist2rayleigh(w, wavelen, n=1)[source]#
                +sympy.physics.optics.gaussopt.waist2rayleigh(w, wavelen, n=1)[source]#

                Calculate the rayleigh range from the waist of a gaussian beam.

                Examples

                >>> from sympy.physics.optics import waist2rayleigh
                diff --git a/dev/modules/physics/optics/medium.html b/dev/modules/physics/optics/medium.html
                index fea55c38905..114f3a4a444 100644
                --- a/dev/modules/physics/optics/medium.html
                +++ b/dev/modules/physics/optics/medium.html
                @@ -745,7 +745,7 @@ 
                Documentation Version

              -class sympy.physics.optics.medium.Medium(name, permittivity=None, permeability=None, n=None)[source]#
              +class sympy.physics.optics.medium.Medium(name, permittivity=None, permeability=None, n=None)[source]#

              This class represents an optical medium. The prime reason to implement this is to facilitate refraction, Fermat’s principle, etc.

              diff --git a/dev/modules/physics/optics/polarization.html b/dev/modules/physics/optics/polarization.html index c77b847ebf5..1960746af01 100644 --- a/dev/modules/physics/optics/polarization.html +++ b/dev/modules/physics/optics/polarization.html @@ -829,7 +829,7 @@

              References
              -sympy.physics.optics.polarization.half_wave_retarder(theta)[source]#
              +sympy.physics.optics.polarization.half_wave_retarder(theta)[source]#

              A half-wave retarder Jones matrix at angle theta.

              Parameters:
              @@ -863,7 +863,7 @@

              References
              -sympy.physics.optics.polarization.jones_2_stokes(e)[source]#
              +sympy.physics.optics.polarization.jones_2_stokes(e)[source]#

              Return the Stokes vector for a Jones vector e.

              Parameters:
              @@ -905,7 +905,7 @@

              References
              -sympy.physics.optics.polarization.jones_vector(psi, chi)[source]#
              +sympy.physics.optics.polarization.jones_vector(psi, chi)[source]#

              A Jones vector corresponding to a polarization ellipse with \(psi\) tilt, and \(chi\) circularity.

              @@ -1002,7 +1002,7 @@

              References
              -sympy.physics.optics.polarization.linear_polarizer(theta=0)[source]#
              +sympy.physics.optics.polarization.linear_polarizer(theta=0)[source]#

              A linear polarizer Jones matrix with transmission axis at an angle theta.

              @@ -1037,7 +1037,7 @@

              References
              -sympy.physics.optics.polarization.mueller_matrix(J)[source]#
              +sympy.physics.optics.polarization.mueller_matrix(J)[source]#

              The Mueller matrix corresponding to Jones matrix \(J\).

              Parameters:
              @@ -1110,7 +1110,7 @@

              References
              -sympy.physics.optics.polarization.phase_retarder(theta=0, delta=0)[source]#
              +sympy.physics.optics.polarization.phase_retarder(theta=0, delta=0)[source]#

              A phase retarder Jones matrix with retardance delta at angle theta.

              Parameters:
              @@ -1153,7 +1153,7 @@

              References
              -sympy.physics.optics.polarization.polarizing_beam_splitter(Tp=1, Rs=1, Ts=0, Rp=0, phia=0, phib=0)[source]#
              +sympy.physics.optics.polarization.polarizing_beam_splitter(Tp=1, Rs=1, Ts=0, Rp=0, phia=0, phib=0)[source]#

              A polarizing beam splitter Jones matrix at angle \(theta\).

              Parameters:
              @@ -1222,7 +1222,7 @@

              References
              -sympy.physics.optics.polarization.quarter_wave_retarder(theta)[source]#
              +sympy.physics.optics.polarization.quarter_wave_retarder(theta)[source]#

              A quarter-wave retarder Jones matrix at angle theta.

              Parameters:
              @@ -1260,7 +1260,7 @@

              References
              -sympy.physics.optics.polarization.reflective_filter(R)[source]#
              +sympy.physics.optics.polarization.reflective_filter(R)[source]#

              A reflective filter Jones matrix with reflectance R.

              Parameters:
              @@ -1291,7 +1291,7 @@

              References
              -sympy.physics.optics.polarization.stokes_vector(psi, chi, p=1, I=1)[source]#
              +sympy.physics.optics.polarization.stokes_vector(psi, chi, p=1, I=1)[source]#

              A Stokes vector corresponding to a polarization ellipse with psi tilt, and chi circularity.

              @@ -1416,7 +1416,7 @@

              References
              -sympy.physics.optics.polarization.transmissive_filter(T)[source]#
              +sympy.physics.optics.polarization.transmissive_filter(T)[source]#

              An attenuator Jones matrix with transmittance T.

              Parameters:
              diff --git a/dev/modules/physics/optics/utils.html b/dev/modules/physics/optics/utils.html index 4050ddecbbc..44b94e5f9ac 100644 --- a/dev/modules/physics/optics/utils.html +++ b/dev/modules/physics/optics/utils.html @@ -754,7 +754,7 @@
              Documentation Version

          -sympy.physics.optics.utils.brewster_angle(medium1, medium2)[source]#
          +sympy.physics.optics.utils.brewster_angle(medium1, medium2)[source]#

          This function calculates the Brewster’s angle of incidence to Medium 2 from Medium 1 in radians.

          @@ -779,7 +779,7 @@
          Documentation Version
          -sympy.physics.optics.utils.critical_angle(medium1, medium2)[source]#
          +sympy.physics.optics.utils.critical_angle(medium1, medium2)[source]#

          This function calculates the critical angle of incidence (marking the onset of total internal) to Medium 2 from Medium 1 in radians.

          @@ -804,7 +804,7 @@
          Documentation Version
          -sympy.physics.optics.utils.deviation(incident, medium1, medium2, normal=None, plane=None)[source]#
          +sympy.physics.optics.utils.deviation(incident, medium1, medium2, normal=None, plane=None)[source]#

          This function calculates the angle of deviation of a ray due to refraction at planar surface.

          @@ -853,7 +853,7 @@
          Documentation Version
          -sympy.physics.optics.utils.fresnel_coefficients(angle_of_incidence, medium1, medium2)[source]#
          +sympy.physics.optics.utils.fresnel_coefficients(angle_of_incidence, medium1, medium2)[source]#

          This function uses Fresnel equations to calculate reflection and transmission coefficients. Those are obtained for both polarisations when the electric field vector is in the plane of incidence (labelled ‘p’) @@ -905,7 +905,7 @@

          Documentation Version
          -sympy.physics.optics.utils.hyperfocal_distance(f, N, c)[source]#
          +sympy.physics.optics.utils.hyperfocal_distance(f, N, c)[source]#
          Parameters:

          f: sympifiable

          @@ -932,7 +932,7 @@
          Documentation Version
          -sympy.physics.optics.utils.lens_formula(focal_length=None, u=None, v=None)[source]#
          +sympy.physics.optics.utils.lens_formula(focal_length=None, u=None, v=None)[source]#

          This function provides one of the three parameters when two of them are supplied. This is valid only for paraxial rays.

          @@ -969,7 +969,7 @@
          Documentation Version
          -sympy.physics.optics.utils.lens_makers_formula(n_lens, n_surr, r1, r2, d=0)[source]#
          +sympy.physics.optics.utils.lens_makers_formula(n_lens, n_surr, r1, r2, d=0)[source]#

          This function calculates focal length of a lens. It follows cartesian sign convention.

          @@ -1011,7 +1011,7 @@
          Documentation Version
          -sympy.physics.optics.utils.mirror_formula(focal_length=None, u=None, v=None)[source]#
          +sympy.physics.optics.utils.mirror_formula(focal_length=None, u=None, v=None)[source]#

          This function provides one of the three parameters when two of them are supplied. This is valid only for paraxial rays.

          @@ -1048,7 +1048,7 @@
          Documentation Version
          -sympy.physics.optics.utils.refraction_angle(incident, medium1, medium2, normal=None, plane=None)[source]#
          +sympy.physics.optics.utils.refraction_angle(incident, medium1, medium2, normal=None, plane=None)[source]#

          This function calculates transmitted vector after refraction at planar surface. medium1 and medium2 can be Medium or any sympifiable object. If incident is a number then treated as angle of incidence (in radians) @@ -1122,7 +1122,7 @@

          Documentation Version
          -sympy.physics.optics.utils.transverse_magnification(si, so)[source]#
          +sympy.physics.optics.utils.transverse_magnification(si, so)[source]#

          Calculates the transverse magnification, which is the ratio of the image size to the object size.

          diff --git a/dev/modules/physics/optics/waves.html b/dev/modules/physics/optics/waves.html index 00da24d4335..e6fc33c509a 100644 --- a/dev/modules/physics/optics/waves.html +++ b/dev/modules/physics/optics/waves.html @@ -746,7 +746,7 @@
          Documentation Version

        -class sympy.physics.optics.waves.TWave(amplitude, frequency=None, phase=0, time_period=None, n=n)[source]#
        +class sympy.physics.optics.waves.TWave(amplitude, frequency=None, phase=0, time_period=None, n=n)[source]#

        This is a simple transverse sine wave travelling in a one-dimensional space. Basic properties are required at the time of creation of the object, but they can be changed later with respective methods provided.

        diff --git a/dev/modules/physics/paulialgebra.html b/dev/modules/physics/paulialgebra.html index bfbc7043cbc..432d716bf30 100644 --- a/dev/modules/physics/paulialgebra.html +++ b/dev/modules/physics/paulialgebra.html @@ -753,7 +753,7 @@

        References
        -sympy.physics.paulialgebra.evaluate_pauli_product(arg)[source]#
        +sympy.physics.paulialgebra.evaluate_pauli_product(arg)[source]#

        Help function to evaluate Pauli matrices product with symbolic objects.

        diff --git a/dev/modules/physics/qho_1d.html b/dev/modules/physics/qho_1d.html index be353fea56b..600ed14177b 100644 --- a/dev/modules/physics/qho_1d.html +++ b/dev/modules/physics/qho_1d.html @@ -741,7 +741,7 @@
        Documentation Version

        Quantum Harmonic Oscillator in 1-D#

        -sympy.physics.qho_1d.E_n(n, omega)[source]#
        +sympy.physics.qho_1d.E_n(n, omega)[source]#

        Returns the Energy of the One-dimensional harmonic oscillator.

        Parameters:
        @@ -772,7 +772,7 @@
        Documentation Version
        -sympy.physics.qho_1d.coherent_state(n, alpha)[source]#
        +sympy.physics.qho_1d.coherent_state(n, alpha)[source]#

        Returns <n|alpha> for the coherent states of 1D harmonic oscillator. See https://en.wikipedia.org/wiki/Coherent_states

        @@ -791,7 +791,7 @@
        Documentation Version
        -sympy.physics.qho_1d.psi_n(n, x, m, omega)[source]#
        +sympy.physics.qho_1d.psi_n(n, x, m, omega)[source]#

        Returns the wavefunction psi_{n} for the One-dimensional harmonic oscillator.

        Parameters:
        diff --git a/dev/modules/physics/quantum/anticommutator.html b/dev/modules/physics/quantum/anticommutator.html index c95239205f4..5dd0f4a669a 100644 --- a/dev/modules/physics/quantum/anticommutator.html +++ b/dev/modules/physics/quantum/anticommutator.html @@ -742,7 +742,7 @@
        Documentation Version

        The anti-commutator: {A,B} = A*B + B*A.

        -class sympy.physics.quantum.anticommutator.AntiCommutator(A, B)[source]#
        +class sympy.physics.quantum.anticommutator.AntiCommutator(A, B)[source]#

        The standard anticommutator, in an unevaluated state.

        Parameters:
        @@ -805,7 +805,7 @@
        Documentation Version

        -doit(**hints)[source]#
        +doit(**hints)[source]#

        Evaluate anticommutator

        diff --git a/dev/modules/physics/quantum/cartesian.html b/dev/modules/physics/quantum/cartesian.html index dde8cf425c5..7ab84c350fc 100644 --- a/dev/modules/physics/quantum/cartesian.html +++ b/dev/modules/physics/quantum/cartesian.html @@ -746,19 +746,19 @@
        Documentation Version

      -class sympy.physics.quantum.cartesian.PositionBra3D(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.PositionBra3D(*args, **kwargs)[source]#

      3D cartesian position eigenbra

      -class sympy.physics.quantum.cartesian.PositionKet3D(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.PositionKet3D(*args, **kwargs)[source]#

      3D cartesian position eigenket

      -class sympy.physics.quantum.cartesian.PositionState3D(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.PositionState3D(*args, **kwargs)[source]#

      Base class for 3D cartesian position eigenstates

      @@ -782,7 +782,7 @@
      Documentation Version
      -class sympy.physics.quantum.cartesian.PxBra(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.PxBra(*args, **kwargs)[source]#

      1D cartesian momentum eigenbra.

      @@ -794,7 +794,7 @@
      Documentation Version
      -class sympy.physics.quantum.cartesian.PxKet(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.PxKet(*args, **kwargs)[source]#

      1D cartesian momentum eigenket.

      @@ -806,13 +806,13 @@
      Documentation Version
      -class sympy.physics.quantum.cartesian.PxOp(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.PxOp(*args, **kwargs)[source]#

      1D cartesian momentum operator.

      -class sympy.physics.quantum.cartesian.XBra(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.XBra(*args, **kwargs)[source]#

      1D cartesian position eigenbra.

      @@ -824,7 +824,7 @@
      Documentation Version
      -class sympy.physics.quantum.cartesian.XKet(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.XKet(*args, **kwargs)[source]#

      1D cartesian position eigenket.

      @@ -836,19 +836,19 @@
      Documentation Version
      -class sympy.physics.quantum.cartesian.XOp(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.XOp(*args, **kwargs)[source]#

      1D cartesian position operator.

      -class sympy.physics.quantum.cartesian.YOp(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.YOp(*args, **kwargs)[source]#

      Y cartesian coordinate operator (for 2D or 3D systems)

      -class sympy.physics.quantum.cartesian.ZOp(*args, **kwargs)[source]#
      +class sympy.physics.quantum.cartesian.ZOp(*args, **kwargs)[source]#

      Z cartesian coordinate operator (for 3D systems)

      diff --git a/dev/modules/physics/quantum/cg.html b/dev/modules/physics/quantum/cg.html index 5c4c32b213d..8bfd285518c 100644 --- a/dev/modules/physics/quantum/cg.html +++ b/dev/modules/physics/quantum/cg.html @@ -742,7 +742,7 @@
      Documentation Version

      Clebsch-Gordon Coefficients.

      -class sympy.physics.quantum.cg.CG(j1, m1, j2, m2, j3, m3)[source]#
      +class sympy.physics.quantum.cg.CG(j1, m1, j2, m2, j3, m3)[source]#

      Class for Clebsch-Gordan coefficient.

      Parameters:
      @@ -805,7 +805,7 @@
      Documentation Version
      -class sympy.physics.quantum.cg.Wigner3j(j1, m1, j2, m2, j3, m3)[source]#
      +class sympy.physics.quantum.cg.Wigner3j(j1, m1, j2, m2, j3, m3)[source]#

      Class for the Wigner-3j symbols.

      Parameters:
      @@ -850,7 +850,7 @@
      Documentation Version
      -class sympy.physics.quantum.cg.Wigner6j(j1, j2, j12, j3, j, j23)[source]#
      +class sympy.physics.quantum.cg.Wigner6j(j1, j2, j12, j3, j, j23)[source]#

      Class for the Wigner-6j symbols

      See also

      @@ -863,7 +863,7 @@
      Documentation Version
      -class sympy.physics.quantum.cg.Wigner9j(j1, j2, j12, j3, j4, j34, j13, j24, j)[source]#
      +class sympy.physics.quantum.cg.Wigner9j(j1, j2, j12, j3, j4, j34, j13, j24, j)[source]#

      Class for the Wigner-9j symbols

      See also

      @@ -876,7 +876,7 @@
      Documentation Version
      -sympy.physics.quantum.cg.cg_simp(e)[source]#
      +sympy.physics.quantum.cg.cg_simp(e)[source]#

      Simplify and combine CG coefficients.

      Explanation

      This function uses various symmetry and properties of sums and diff --git a/dev/modules/physics/quantum/circuitplot.html b/dev/modules/physics/quantum/circuitplot.html index f7f96acc59d..8dbbd6bb361 100644 --- a/dev/modules/physics/quantum/circuitplot.html +++ b/dev/modules/physics/quantum/circuitplot.html @@ -755,47 +755,47 @@

      Documentation Version

    -class sympy.physics.quantum.circuitplot.CircuitPlot(c, nqubits, **kwargs)[source]#
    +class sympy.physics.quantum.circuitplot.CircuitPlot(c, nqubits, **kwargs)[source]#

    A class for managing a circuit plot.

    -control_line(gate_idx, min_wire, max_wire)[source]#
    +control_line(gate_idx, min_wire, max_wire)[source]#

    Draw a vertical control line.

    -control_point(gate_idx, wire_idx)[source]#
    +control_point(gate_idx, wire_idx)[source]#

    Draw a control point.

    -not_point(gate_idx, wire_idx)[source]#
    +not_point(gate_idx, wire_idx)[source]#

    Draw a NOT gates as the circle with plus in the middle.

    -one_qubit_box(t, gate_idx, wire_idx)[source]#
    +one_qubit_box(t, gate_idx, wire_idx)[source]#

    Draw a box for a single qubit gate.

    -swap_point(gate_idx, wire_idx)[source]#
    +swap_point(gate_idx, wire_idx)[source]#

    Draw a swap point as a cross.

    -two_qubit_box(t, gate_idx, wire_idx)[source]#
    +two_qubit_box(t, gate_idx, wire_idx)[source]#

    Draw a box for a two qubit gate. Does not work yet.

    -update(kwargs)[source]#
    +update(kwargs)[source]#

    Load the kwargs into the instance dict.

    @@ -803,13 +803,13 @@
    Documentation Version
    -sympy.physics.quantum.circuitplot.CreateCGate(name, latexname=None)[source]#
    +sympy.physics.quantum.circuitplot.CreateCGate(name, latexname=None)[source]#

    Use a lexical closure to make a controlled gate.

    -class sympy.physics.quantum.circuitplot.Mx(*args, **kwargs)[source]#
    +class sympy.physics.quantum.circuitplot.Mx(*args, **kwargs)[source]#

    Mock-up of an x measurement gate.

    This is in circuitplot rather than gate.py because it’s not a real gate, it just draws one.

    @@ -817,7 +817,7 @@
    Documentation Version
    -class sympy.physics.quantum.circuitplot.Mz(*args, **kwargs)[source]#
    +class sympy.physics.quantum.circuitplot.Mz(*args, **kwargs)[source]#

    Mock-up of a z measurement gate.

    This is in circuitplot rather than gate.py because it’s not a real gate, it just draws one.

    @@ -825,7 +825,7 @@
    Documentation Version
    -sympy.physics.quantum.circuitplot.circuit_plot(c, nqubits, **kwargs)[source]#
    +sympy.physics.quantum.circuitplot.circuit_plot(c, nqubits, **kwargs)[source]#

    Draw the circuit diagram for the circuit with nqubits.

    Parameters:
    @@ -844,7 +844,7 @@
    Documentation Version
    -sympy.physics.quantum.circuitplot.labeller(n, symbol='q')[source]#
    +sympy.physics.quantum.circuitplot.labeller(n, symbol='q')[source]#

    Autogenerate labels for wires of quantum circuits.

    Parameters:
    diff --git a/dev/modules/physics/quantum/commutator.html b/dev/modules/physics/quantum/commutator.html index ba527ae6af0..048cfa32b4d 100644 --- a/dev/modules/physics/quantum/commutator.html +++ b/dev/modules/physics/quantum/commutator.html @@ -742,7 +742,7 @@
    Documentation Version

    The commutator: [A,B] = A*B - B*A.

    -class sympy.physics.quantum.commutator.Commutator(A, B)[source]#
    +class sympy.physics.quantum.commutator.Commutator(A, B)[source]#

    The standard commutator, in an unevaluated state.

    Parameters:
    @@ -817,7 +817,7 @@
    Documentation Version

    -doit(**hints)[source]#
    +doit(**hints)[source]#

    Evaluate commutator

    diff --git a/dev/modules/physics/quantum/constants.html b/dev/modules/physics/quantum/constants.html index 33d2e665ca5..39b17fb2c6b 100644 --- a/dev/modules/physics/quantum/constants.html +++ b/dev/modules/physics/quantum/constants.html @@ -742,7 +742,7 @@
    Documentation Version

    Constants (like hbar) related to quantum mechanics.

    -class sympy.physics.quantum.constants.HBar[source]#
    +class sympy.physics.quantum.constants.HBar[source]#

    Reduced Plank’s constant in numerical and symbolic form [R727].

    Examples

    >>> from sympy.physics.quantum.constants import hbar
    diff --git a/dev/modules/physics/quantum/dagger.html b/dev/modules/physics/quantum/dagger.html
    index f7115c4dc23..20315964deb 100644
    --- a/dev/modules/physics/quantum/dagger.html
    +++ b/dev/modules/physics/quantum/dagger.html
    @@ -742,7 +742,7 @@ 
    Documentation Version

    Hermitian conjugation.

    -class sympy.physics.quantum.dagger.Dagger(arg)[source]#
    +class sympy.physics.quantum.dagger.Dagger(arg)[source]#

    General Hermitian conjugate operation.

    Parameters:
    diff --git a/dev/modules/physics/quantum/gate.html b/dev/modules/physics/quantum/gate.html index ac5da1822ac..2d7d6a18413 100644 --- a/dev/modules/physics/quantum/gate.html +++ b/dev/modules/physics/quantum/gate.html @@ -753,7 +753,7 @@
    Documentation Version

-class sympy.physics.quantum.gate.CGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.CGate(*args, **kwargs)[source]#

A general unitary gate with control qubits.

A general control gate applies a target gate to a set of targets if all of the control qubits have a particular values (set by @@ -776,13 +776,13 @@

Documentation Version
-decompose(**options)[source]#
+decompose(**options)[source]#

Decompose the controlled gate into CNOT and single qubits gates.

-eval_controls(qubit)[source]#
+eval_controls(qubit)[source]#

Return True/False to indicate if the controls are satisfied.

@@ -808,7 +808,7 @@
Documentation Version
-plot_gate(circ_plot, gate_idx)[source]#
+plot_gate(circ_plot, gate_idx)[source]#

Plot the controlled gate. If simplify_cgate is true, simplify C-X and C-Z gates into their more familiar forms.

@@ -823,20 +823,20 @@
Documentation Version
-class sympy.physics.quantum.gate.CGateS(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.CGateS(*args, **kwargs)[source]#

Version of CGate that allows gate simplifications. I.e. cnot looks like an oplus, cphase has dots, etc.

-sympy.physics.quantum.gate.CNOT[source]#
+sympy.physics.quantum.gate.CNOT[source]#

alias of CNotGate

-class sympy.physics.quantum.gate.CNotGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.CNotGate(*args, **kwargs)[source]#

Two qubit controlled-NOT.

This gate performs the NOT or X gate on the target qubit if the control qubits all have the value 1.

@@ -885,7 +885,7 @@
Documentation Version
-class sympy.physics.quantum.gate.Gate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.Gate(*args, **kwargs)[source]#

Non-controlled unitary gate operator that acts on qubits.

This is a general abstract gate that needs to be subclassed to do anything useful.

@@ -899,7 +899,7 @@
Documentation Version
-get_target_matrix(format='sympy')[source]#
+get_target_matrix(format='sympy')[source]#

The matrix representation of the target part of the gate.

Parameters:
@@ -935,13 +935,13 @@
Documentation Version
-sympy.physics.quantum.gate.H[source]#
+sympy.physics.quantum.gate.H[source]#

alias of HadamardGate

-class sympy.physics.quantum.gate.HadamardGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.HadamardGate(*args, **kwargs)[source]#

The single qubit Hadamard gate.

Parameters:
@@ -968,7 +968,7 @@
Documentation Version
-class sympy.physics.quantum.gate.IdentityGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.IdentityGate(*args, **kwargs)[source]#

The single qubit identity gate.

Parameters:
@@ -982,19 +982,19 @@
Documentation Version
-class sympy.physics.quantum.gate.OneQubitGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.OneQubitGate(*args, **kwargs)[source]#

A single qubit unitary gate base class.

-sympy.physics.quantum.gate.Phase[source]#
+sympy.physics.quantum.gate.Phase[source]#

alias of PhaseGate

-class sympy.physics.quantum.gate.PhaseGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.PhaseGate(*args, **kwargs)[source]#

The single qubit phase, or S, gate.

This gate rotates the phase of the state by pi/2 if the state is |1> and does nothing if the state is |0>.

@@ -1010,19 +1010,19 @@
Documentation Version
-sympy.physics.quantum.gate.S[source]#
+sympy.physics.quantum.gate.S[source]#

alias of PhaseGate

-sympy.physics.quantum.gate.SWAP[source]#
+sympy.physics.quantum.gate.SWAP[source]#

alias of SwapGate

-class sympy.physics.quantum.gate.SwapGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.SwapGate(*args, **kwargs)[source]#

Two qubit SWAP gate.

This gate swap the values of the two qubits.

@@ -1035,7 +1035,7 @@
Documentation Version
-decompose(**options)[source]#
+decompose(**options)[source]#

Decompose the SWAP gate into CNOT gates.

@@ -1043,13 +1043,13 @@
Documentation Version
-sympy.physics.quantum.gate.T[source]#
+sympy.physics.quantum.gate.T[source]#

alias of TGate

-class sympy.physics.quantum.gate.TGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.TGate(*args, **kwargs)[source]#

The single qubit pi/8 gate.

This gate rotates the phase of the state by pi/4 if the state is |1> and does nothing if the state is |0>.

@@ -1065,13 +1065,13 @@
Documentation Version
-class sympy.physics.quantum.gate.TwoQubitGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.TwoQubitGate(*args, **kwargs)[source]#

A two qubit unitary gate base class.

-class sympy.physics.quantum.gate.UGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.UGate(*args, **kwargs)[source]#

General gate specified by a set of targets and a target matrix.

Parameters:
@@ -1085,7 +1085,7 @@
Documentation Version
-get_target_matrix(format='sympy')[source]#
+get_target_matrix(format='sympy')[source]#

The matrix rep. of the target part of the gate.

Parameters:
@@ -1107,13 +1107,13 @@
Documentation Version
-sympy.physics.quantum.gate.X[source]#
+sympy.physics.quantum.gate.X[source]#

alias of XGate

-class sympy.physics.quantum.gate.XGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.XGate(*args, **kwargs)[source]#

The single qubit X, or NOT, gate.

Parameters:
@@ -1127,13 +1127,13 @@
Documentation Version
-sympy.physics.quantum.gate.Y[source]#
+sympy.physics.quantum.gate.Y[source]#

alias of YGate

-class sympy.physics.quantum.gate.YGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.YGate(*args, **kwargs)[source]#

The single qubit Y gate.

Parameters:
@@ -1147,13 +1147,13 @@
Documentation Version
-sympy.physics.quantum.gate.Z[source]#
+sympy.physics.quantum.gate.Z[source]#

alias of ZGate

-class sympy.physics.quantum.gate.ZGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.gate.ZGate(*args, **kwargs)[source]#

The single qubit Z gate.

Parameters:
@@ -1167,7 +1167,7 @@
Documentation Version
-sympy.physics.quantum.gate.gate_simp(circuit)[source]#
+sympy.physics.quantum.gate.gate_simp(circuit)[source]#

Simplifies gates symbolically

It first sorts gates using gate_sort. It then applies basic simplification rules to the circuit, e.g., XGate**2 = Identity

@@ -1175,7 +1175,7 @@
Documentation Version
-sympy.physics.quantum.gate.gate_sort(circuit)[source]#
+sympy.physics.quantum.gate.gate_sort(circuit)[source]#

Sorts the gates while keeping track of commutation relations

This function uses a bubble sort to rearrange the order of gate application. Keeps track of Quantum computations special commutation @@ -1186,7 +1186,7 @@

Documentation Version
-sympy.physics.quantum.gate.normalized(normalize)[source]#
+sympy.physics.quantum.gate.normalized(normalize)[source]#

Set flag controlling normalization of Hadamard gates by \(1/\sqrt{2}\).

This is a global setting that can be used to simplify the look of various expressions, by leaving off the leading \(1/\sqrt{2}\) of the Hadamard gate.

@@ -1204,7 +1204,7 @@
Documentation Version
-sympy.physics.quantum.gate.random_circuit(ngates, nqubits, gate_space=(<class 'sympy.physics.quantum.gate.XGate'>, <class 'sympy.physics.quantum.gate.YGate'>, <class 'sympy.physics.quantum.gate.ZGate'>, <class 'sympy.physics.quantum.gate.PhaseGate'>, <class 'sympy.physics.quantum.gate.TGate'>, <class 'sympy.physics.quantum.gate.HadamardGate'>, <class 'sympy.physics.quantum.gate.CNotGate'>, <class 'sympy.physics.quantum.gate.SwapGate'>))[source]#
+sympy.physics.quantum.gate.random_circuit(ngates, nqubits, gate_space=(<class 'sympy.physics.quantum.gate.XGate'>, <class 'sympy.physics.quantum.gate.YGate'>, <class 'sympy.physics.quantum.gate.ZGate'>, <class 'sympy.physics.quantum.gate.PhaseGate'>, <class 'sympy.physics.quantum.gate.TGate'>, <class 'sympy.physics.quantum.gate.HadamardGate'>, <class 'sympy.physics.quantum.gate.CNotGate'>, <class 'sympy.physics.quantum.gate.SwapGate'>))[source]#

Return a random circuit of ngates and nqubits.

This uses an equally weighted sample of (X, Y, Z, S, T, H, CNOT, SWAP) gates.

diff --git a/dev/modules/physics/quantum/grover.html b/dev/modules/physics/quantum/grover.html index 2da46001354..a5dfe0228ef 100644 --- a/dev/modules/physics/quantum/grover.html +++ b/dev/modules/physics/quantum/grover.html @@ -749,7 +749,7 @@
Documentation Version
-class sympy.physics.quantum.grover.OracleGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.grover.OracleGate(*args, **kwargs)[source]#

A black box gate.

The gate marks the desired qubits of an unknown function by flipping the sign of the qubits. The unknown function returns true when it @@ -795,7 +795,7 @@

Documentation Version
-class sympy.physics.quantum.grover.WGate(*args, **kwargs)[source]#
+class sympy.physics.quantum.grover.WGate(*args, **kwargs)[source]#

General n qubit W Gate in Grover’s algorithm.

The gate performs the operation 2|phi><phi| - 1 on some qubits. |phi> = (tensor product of n Hadamards)*(|0> with n qubits)

@@ -811,7 +811,7 @@
Documentation Version
-sympy.physics.quantum.grover.apply_grover(oracle, nqubits, iterations=None)[source]#
+sympy.physics.quantum.grover.apply_grover(oracle, nqubits, iterations=None)[source]#

Applies grover’s algorithm.

Parameters:
@@ -842,7 +842,7 @@
Documentation Version
-sympy.physics.quantum.grover.grover_iteration(qstate, oracle)[source]#
+sympy.physics.quantum.grover.grover_iteration(qstate, oracle)[source]#

Applies one application of the Oracle and W Gate, WV.

Parameters:
@@ -878,7 +878,7 @@
Documentation Version
-sympy.physics.quantum.grover.superposition_basis(nqubits)[source]#
+sympy.physics.quantum.grover.superposition_basis(nqubits)[source]#

Creates an equal superposition of the computational basis.

Parameters:
diff --git a/dev/modules/physics/quantum/hilbert.html b/dev/modules/physics/quantum/hilbert.html index a8c74416073..973390b6492 100644 --- a/dev/modules/physics/quantum/hilbert.html +++ b/dev/modules/physics/quantum/hilbert.html @@ -745,7 +745,7 @@
Documentation Version
* Matt Curry

-class sympy.physics.quantum.hilbert.ComplexSpace(dimension)[source]#
+class sympy.physics.quantum.hilbert.ComplexSpace(dimension)[source]#

Finite dimensional Hilbert space of complex vectors.

The elements of this Hilbert space are n-dimensional complex valued vectors with the usual inner product that takes the complex conjugate @@ -776,7 +776,7 @@

Documentation Version
-class sympy.physics.quantum.hilbert.DirectSumHilbertSpace(*args)[source]#
+class sympy.physics.quantum.hilbert.DirectSumHilbertSpace(*args)[source]#

A direct sum of Hilbert spaces [R730].

This class uses the + operator to represent direct sums between different Hilbert spaces.

@@ -808,7 +808,7 @@
Documentation Version

-classmethod eval(args)[source]#
+classmethod eval(args)[source]#

Evaluates the direct product.

@@ -822,7 +822,7 @@
Documentation Version
-class sympy.physics.quantum.hilbert.FockSpace[source]#
+class sympy.physics.quantum.hilbert.FockSpace[source]#

The Hilbert space for second quantization.

Technically, this Hilbert space is a infinite direct sum of direct products of single particle Hilbert spaces [R731]. This is a mess, so we have @@ -848,7 +848,7 @@

Documentation Version
-class sympy.physics.quantum.hilbert.HilbertSpace[source]#
+class sympy.physics.quantum.hilbert.HilbertSpace[source]#

An abstract Hilbert space for quantum mechanics.

In short, a Hilbert space is an abstract vector space that is complete with inner products defined [R732].

@@ -877,7 +877,7 @@
Documentation Version
-class sympy.physics.quantum.hilbert.L2(interval)[source]#
+class sympy.physics.quantum.hilbert.L2(interval)[source]#

The Hilbert space of square integrable functions on an interval.

An L2 object takes in a single SymPy Interval argument which represents the interval its functions (vectors) are defined on.

@@ -897,7 +897,7 @@
Documentation Version
-class sympy.physics.quantum.hilbert.TensorPowerHilbertSpace(*args)[source]#
+class sympy.physics.quantum.hilbert.TensorPowerHilbertSpace(*args)[source]#

An exponentiated Hilbert space [R733].

Tensor powers (repeated tensor products) are represented by the operator ** Identical Hilbert spaces that are multiplied together @@ -939,7 +939,7 @@

Documentation Version
-class sympy.physics.quantum.hilbert.TensorProductHilbertSpace(*args)[source]#
+class sympy.physics.quantum.hilbert.TensorProductHilbertSpace(*args)[source]#

A tensor product of Hilbert spaces [R734].

The tensor product between Hilbert spaces is represented by the operator * Products of the same Hilbert space will be combined into @@ -984,7 +984,7 @@

Documentation Version
-classmethod eval(args)[source]#
+classmethod eval(args)[source]#

Evaluates the direct product.

diff --git a/dev/modules/physics/quantum/innerproduct.html b/dev/modules/physics/quantum/innerproduct.html index 6636d131637..2ba15dff240 100644 --- a/dev/modules/physics/quantum/innerproduct.html +++ b/dev/modules/physics/quantum/innerproduct.html @@ -742,7 +742,7 @@
Documentation Version

Symbolic inner product.

-class sympy.physics.quantum.innerproduct.InnerProduct(bra, ket)[source]#
+class sympy.physics.quantum.innerproduct.InnerProduct(bra, ket)[source]#

An unevaluated inner product between a Bra and a Ket [1].

Parameters:
diff --git a/dev/modules/physics/quantum/operator.html b/dev/modules/physics/quantum/operator.html index 518e7f44283..2b94cda3965 100644 --- a/dev/modules/physics/quantum/operator.html +++ b/dev/modules/physics/quantum/operator.html @@ -750,7 +750,7 @@
Documentation Version
-class sympy.physics.quantum.operator.DifferentialOperator(*args, **kwargs)[source]#
+class sympy.physics.quantum.operator.DifferentialOperator(*args, **kwargs)[source]#

An operator for representing the differential operator, i.e. d/dx

It is initialized by passing two arguments. The first is an arbitrary expression that involves a function, such as Derivative(f(x), x). The @@ -864,7 +864,7 @@

Documentation Version
-class sympy.physics.quantum.operator.HermitianOperator(*args, **kwargs)[source]#
+class sympy.physics.quantum.operator.HermitianOperator(*args, **kwargs)[source]#

A Hermitian operator that satisfies H == Dagger(H).

Parameters:
@@ -886,7 +886,7 @@
Documentation Version
-class sympy.physics.quantum.operator.IdentityOperator(*args, **kwargs)[source]#
+class sympy.physics.quantum.operator.IdentityOperator(*args, **kwargs)[source]#

An identity operator I that satisfies op * I == I * op == op for any operator op.

@@ -908,7 +908,7 @@
Documentation Version
-class sympy.physics.quantum.operator.Operator(*args, **kwargs)[source]#
+class sympy.physics.quantum.operator.Operator(*args, **kwargs)[source]#

Base class for non-commuting quantum operators.

An operator maps between quantum states [R736]. In quantum mechanics, observables (including, but not limited to, measured physical values) are @@ -983,7 +983,7 @@

Documentation Version
-class sympy.physics.quantum.operator.OuterProduct(*args, **old_assumptions)[source]#
+class sympy.physics.quantum.operator.OuterProduct(*args, **old_assumptions)[source]#

An unevaluated outer product between a ket and bra.

This constructs an outer product between any subclass of KetBase and BraBase as |a><b|. An OuterProduct inherits from Operator as they act as @@ -1063,7 +1063,7 @@

Documentation Version
-class sympy.physics.quantum.operator.UnitaryOperator(*args, **kwargs)[source]#
+class sympy.physics.quantum.operator.UnitaryOperator(*args, **kwargs)[source]#

A unitary operator that satisfies U*Dagger(U) == 1.

Parameters:
diff --git a/dev/modules/physics/quantum/operatorset.html b/dev/modules/physics/quantum/operatorset.html index 3984976ec61..84de96fe762 100644 --- a/dev/modules/physics/quantum/operatorset.html +++ b/dev/modules/physics/quantum/operatorset.html @@ -752,7 +752,7 @@
Documentation Version
- Update the dictionary with a complete list of state-operator pairs

-sympy.physics.quantum.operatorset.operators_to_state(operators, **options)[source]#
+sympy.physics.quantum.operatorset.operators_to_state(operators, **options)[source]#

Returns the eigenstate of the given operator or set of operators

A global function for mapping operator classes to their associated states. It takes either an Operator or a set of operators and @@ -803,7 +803,7 @@

Documentation Version
-sympy.physics.quantum.operatorset.state_to_operators(state, **options)[source]#
+sympy.physics.quantum.operatorset.state_to_operators(state, **options)[source]#

Returns the operator or set of operators corresponding to the given eigenstate

A global function for mapping state classes to their associated diff --git a/dev/modules/physics/quantum/piab.html b/dev/modules/physics/quantum/piab.html index 14cf41dd8c5..7ac77c08b5d 100644 --- a/dev/modules/physics/quantum/piab.html +++ b/dev/modules/physics/quantum/piab.html @@ -742,19 +742,19 @@

Documentation Version

1D quantum particle in a box.

-class sympy.physics.quantum.piab.PIABBra(*args, **kwargs)[source]#
+class sympy.physics.quantum.piab.PIABBra(*args, **kwargs)[source]#

Particle in a box eigenbra.

-class sympy.physics.quantum.piab.PIABHamiltonian(*args, **kwargs)[source]#
+class sympy.physics.quantum.piab.PIABHamiltonian(*args, **kwargs)[source]#

Particle in a box Hamiltonian operator.

-class sympy.physics.quantum.piab.PIABKet(*args, **kwargs)[source]#
+class sympy.physics.quantum.piab.PIABKet(*args, **kwargs)[source]#

Particle in a box eigenket.

diff --git a/dev/modules/physics/quantum/qapply.html b/dev/modules/physics/quantum/qapply.html index d7a8e95a43e..27a965d8d3a 100644 --- a/dev/modules/physics/quantum/qapply.html +++ b/dev/modules/physics/quantum/qapply.html @@ -744,7 +744,7 @@
Documentation Version
* Sometimes the final result needs to be expanded, we should do this by hand.

-sympy.physics.quantum.qapply.qapply(e, **options)[source]#
+sympy.physics.quantum.qapply.qapply(e, **options)[source]#

Apply operators to states in a quantum expression.

Parameters:
diff --git a/dev/modules/physics/quantum/qft.html b/dev/modules/physics/quantum/qft.html index e22062f7b6d..1ce6e7267e9 100644 --- a/dev/modules/physics/quantum/qft.html +++ b/dev/modules/physics/quantum/qft.html @@ -752,11 +752,11 @@
Documentation Version
-class sympy.physics.quantum.qft.IQFT(*args, **kwargs)[source]#
+class sympy.physics.quantum.qft.IQFT(*args, **kwargs)[source]#

The inverse quantum Fourier transform.

-decompose()[source]#
+decompose()[source]#

Decomposes IQFT into elementary gates.

@@ -764,11 +764,11 @@
Documentation Version
-class sympy.physics.quantum.qft.QFT(*args, **kwargs)[source]#
+class sympy.physics.quantum.qft.QFT(*args, **kwargs)[source]#

The forward quantum Fourier transform.

-decompose()[source]#
+decompose()[source]#

Decomposes QFT into elementary gates.

@@ -776,13 +776,13 @@
Documentation Version
-sympy.physics.quantum.qft.Rk[source]#
+sympy.physics.quantum.qft.Rk[source]#

alias of RkGate

-class sympy.physics.quantum.qft.RkGate(*args)[source]#
+class sympy.physics.quantum.qft.RkGate(*args)[source]#

This is the R_k gate of the QTF.

diff --git a/dev/modules/physics/quantum/qubit.html b/dev/modules/physics/quantum/qubit.html index 3c64aebd629..de1deed08d4 100644 --- a/dev/modules/physics/quantum/qubit.html +++ b/dev/modules/physics/quantum/qubit.html @@ -746,7 +746,7 @@
Documentation Version
* Update tests.

-class sympy.physics.quantum.qubit.IntQubit(*args, **kwargs)[source]#
+class sympy.physics.quantum.qubit.IntQubit(*args, **kwargs)[source]#

A qubit ket that store integers as binary numbers in qubit values.

The differences between this class and Qubit are:

    @@ -821,13 +821,13 @@
    Documentation Version
    -class sympy.physics.quantum.qubit.IntQubitBra(*args, **kwargs)[source]#
    +class sympy.physics.quantum.qubit.IntQubitBra(*args, **kwargs)[source]#

    A qubit bra that store integers as binary numbers in qubit values.

    -class sympy.physics.quantum.qubit.Qubit(*args, **kwargs)[source]#
    +class sympy.physics.quantum.qubit.Qubit(*args, **kwargs)[source]#

    A multi-qubit ket in the computational (z) basis.

    We use the normal convention that the least significant qubit is on the right, so |00001> has a 1 in the least significant qubit.

    @@ -884,7 +884,7 @@
    Documentation Version
    -class sympy.physics.quantum.qubit.QubitBra(*args, **kwargs)[source]#
    +class sympy.physics.quantum.qubit.QubitBra(*args, **kwargs)[source]#

    A multi-qubit bra in the computational (z) basis.

    We use the normal convention that the least significant qubit is on the right, so |00001> has a 1 in the least significant qubit.

    @@ -907,7 +907,7 @@
    Documentation Version
    -sympy.physics.quantum.qubit.matrix_to_density(mat)[source]#
    +sympy.physics.quantum.qubit.matrix_to_density(mat)[source]#

    Works by finding the eigenvectors and eigenvalues of the matrix. We know we can decompose rho by doing: sum(EigenVal*|Eigenvect><Eigenvect|)

    @@ -915,7 +915,7 @@
    Documentation Version
    -sympy.physics.quantum.qubit.matrix_to_qubit(matrix)[source]#
    +sympy.physics.quantum.qubit.matrix_to_qubit(matrix)[source]#

    Convert from the matrix repr. to a sum of Qubit objects.

    Parameters:
    @@ -939,7 +939,7 @@
    Documentation Version
    -sympy.physics.quantum.qubit.measure_all(qubit, format='sympy', normalize=True)[source]#
    +sympy.physics.quantum.qubit.measure_all(qubit, format='sympy', normalize=True)[source]#

    Perform an ensemble measurement of all qubits.

    Parameters:
    @@ -980,7 +980,7 @@
    Documentation Version
    -sympy.physics.quantum.qubit.measure_all_oneshot(qubit, format='sympy')[source]#
    +sympy.physics.quantum.qubit.measure_all_oneshot(qubit, format='sympy')[source]#

    Perform a oneshot ensemble measurement on all qubits.

    A oneshot measurement is equivalent to performing a measurement on a quantum system. This type of measurement does not return the probabilities @@ -1012,7 +1012,7 @@

    Documentation Version
    -sympy.physics.quantum.qubit.measure_partial(qubit, bits, format='sympy', normalize=True)[source]#
    +sympy.physics.quantum.qubit.measure_partial(qubit, bits, format='sympy', normalize=True)[source]#

    Perform a partial ensemble measure on the specified qubits.

    Parameters:
    @@ -1057,7 +1057,7 @@
    Documentation Version
    -sympy.physics.quantum.qubit.measure_partial_oneshot(qubit, bits, format='sympy')[source]#
    +sympy.physics.quantum.qubit.measure_partial_oneshot(qubit, bits, format='sympy')[source]#

    Perform a partial oneshot measurement on the specified qubits.

    A oneshot measurement is equivalent to performing a measurement on a quantum system. This type of measurement does not return the probabilities @@ -1093,7 +1093,7 @@

    Documentation Version
    -sympy.physics.quantum.qubit.qubit_to_matrix(qubit, format='sympy')[source]#
    +sympy.physics.quantum.qubit.qubit_to_matrix(qubit, format='sympy')[source]#

    Converts an Add/Mul of Qubit objects into it’s matrix representation

    This function is the inverse of matrix_to_qubit and is a shorthand for represent(qubit).

    diff --git a/dev/modules/physics/quantum/represent.html b/dev/modules/physics/quantum/represent.html index 21571c67a41..44a4ff3c492 100644 --- a/dev/modules/physics/quantum/represent.html +++ b/dev/modules/physics/quantum/represent.html @@ -747,7 +747,7 @@
    Documentation Version
-sympy.physics.quantum.represent.enumerate_states(*args, **options)[source]#
+sympy.physics.quantum.represent.enumerate_states(*args, **options)[source]#

Returns instances of the given state with dummy indices appended

Operates in two different modes:

    @@ -781,7 +781,7 @@
    Documentation Version
    -sympy.physics.quantum.represent.get_basis(expr, *, basis=None, replace_none=True, **options)[source]#
    +sympy.physics.quantum.represent.get_basis(expr, *, basis=None, replace_none=True, **options)[source]#

    Returns a basis state instance corresponding to the basis specified in options=s. If no basis is specified, the function tries to form a default basis state of the given expression.

    @@ -828,7 +828,7 @@
    Documentation Version
    -sympy.physics.quantum.represent.integrate_result(orig_expr, result, **options)[source]#
    +sympy.physics.quantum.represent.integrate_result(orig_expr, result, **options)[source]#

    Returns the result of integrating over any unities (|x><x|) in the given expression. Intended for integrating over the result of representations in continuous bases.

    @@ -870,7 +870,7 @@
    Documentation Version
    -sympy.physics.quantum.represent.rep_expectation(expr, **options)[source]#
    +sympy.physics.quantum.represent.rep_expectation(expr, **options)[source]#

    Returns an <x'|A|x> type representation for the given operator.

    Parameters:
    @@ -895,7 +895,7 @@
    Documentation Version
    -sympy.physics.quantum.represent.rep_innerproduct(expr, **options)[source]#
    +sympy.physics.quantum.represent.rep_innerproduct(expr, **options)[source]#

    Returns an innerproduct like representation (e.g. <x'|x>) for the given state.

    Attempts to calculate inner product with a bra from the specified @@ -923,7 +923,7 @@

    Documentation Version
    -sympy.physics.quantum.represent.represent(expr, **options)[source]#
    +sympy.physics.quantum.represent.represent(expr, **options)[source]#

    Represent the quantum expression in the given basis.

    In quantum mechanics abstract states and operators can be represented in various basis sets. Under this operation the follow transforms happen:

    diff --git a/dev/modules/physics/quantum/shor.html b/dev/modules/physics/quantum/shor.html index c279751f340..1fa00fa9d27 100644 --- a/dev/modules/physics/quantum/shor.html +++ b/dev/modules/physics/quantum/shor.html @@ -748,7 +748,7 @@
    Documentation Version
    -class sympy.physics.quantum.shor.CMod(*args, **kwargs)[source]#
    +class sympy.physics.quantum.shor.CMod(*args, **kwargs)[source]#

    A controlled mod gate.

    This is black box controlled Mod function for use by shor’s algorithm. TODO: implement a decompose property that returns how to do this in terms @@ -775,7 +775,7 @@

    Documentation Version
    -sympy.physics.quantum.shor.period_find(a, N)[source]#
    +sympy.physics.quantum.shor.period_find(a, N)[source]#

    Finds the period of a in modulo N arithmetic

    This is quantum part of Shor’s algorithm. It takes two registers, puts first in superposition of states with Hadamards so: |k>|0> @@ -785,7 +785,7 @@

    Documentation Version
    -sympy.physics.quantum.shor.shor(N)[source]#
    +sympy.physics.quantum.shor.shor(N)[source]#

    This function implements Shor’s factoring algorithm on the Integer N

    The algorithm starts by picking a random number (a) and seeing if it is coprime with N. If it is not, then the gcd of the two numbers is a factor diff --git a/dev/modules/physics/quantum/spin.html b/dev/modules/physics/quantum/spin.html index 87a2e38d152..d515a809ec9 100644 --- a/dev/modules/physics/quantum/spin.html +++ b/dev/modules/physics/quantum/spin.html @@ -742,13 +742,13 @@

    Documentation Version

    Quantum mechanical angular momemtum.

    -class sympy.physics.quantum.spin.J2Op(*args, **kwargs)[source]#
    +class sympy.physics.quantum.spin.J2Op(*args, **kwargs)[source]#

    The J^2 operator.

    -class sympy.physics.quantum.spin.JxBra(j, m)[source]#
    +class sympy.physics.quantum.spin.JxBra(j, m)[source]#

    Eigenbra of Jx.

    See JzKet for the usage of spin eigenstates.

    @@ -762,7 +762,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JxBraCoupled(j, m, jn, *jcoupling)[source]#
    +class sympy.physics.quantum.spin.JxBraCoupled(j, m, jn, *jcoupling)[source]#

    Coupled eigenbra of Jx.

    See JzKetCoupled for the usage of coupled spin eigenstates.

    @@ -776,7 +776,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JxKet(j, m)[source]#
    +class sympy.physics.quantum.spin.JxKet(j, m)[source]#

    Eigenket of Jx.

    See JzKet for the usage of spin eigenstates.

    @@ -790,7 +790,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JxKetCoupled(j, m, jn, *jcoupling)[source]#
    +class sympy.physics.quantum.spin.JxKetCoupled(j, m, jn, *jcoupling)[source]#

    Coupled eigenket of Jx.

    See JzKetCoupled for the usage of coupled spin eigenstates.

    @@ -804,7 +804,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JyBra(j, m)[source]#
    +class sympy.physics.quantum.spin.JyBra(j, m)[source]#

    Eigenbra of Jy.

    See JzKet for the usage of spin eigenstates.

    @@ -818,7 +818,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JyBraCoupled(j, m, jn, *jcoupling)[source]#
    +class sympy.physics.quantum.spin.JyBraCoupled(j, m, jn, *jcoupling)[source]#

    Coupled eigenbra of Jy.

    See JzKetCoupled for the usage of coupled spin eigenstates.

    @@ -832,7 +832,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JyKet(j, m)[source]#
    +class sympy.physics.quantum.spin.JyKet(j, m)[source]#

    Eigenket of Jy.

    See JzKet for the usage of spin eigenstates.

    @@ -846,7 +846,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JyKetCoupled(j, m, jn, *jcoupling)[source]#
    +class sympy.physics.quantum.spin.JyKetCoupled(j, m, jn, *jcoupling)[source]#

    Coupled eigenket of Jy.

    See JzKetCoupled for the usage of coupled spin eigenstates.

    @@ -860,7 +860,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JzBra(j, m)[source]#
    +class sympy.physics.quantum.spin.JzBra(j, m)[source]#

    Eigenbra of Jz.

    See the JzKet for the usage of spin eigenstates.

    @@ -874,7 +874,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JzBraCoupled(j, m, jn, *jcoupling)[source]#
    +class sympy.physics.quantum.spin.JzBraCoupled(j, m, jn, *jcoupling)[source]#

    Coupled eigenbra of Jz.

    See the JzKetCoupled for the usage of coupled spin eigenstates.

    @@ -888,7 +888,7 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JzKet(j, m)[source]#
    +class sympy.physics.quantum.spin.JzKet(j, m)[source]#

    Eigenket of Jz.

    Spin state which is an eigenstate of the Jz operator. Uncoupled states, that is states representing the interaction of multiple separate spin @@ -1004,7 +1004,7 @@

    Documentation Version
    -class sympy.physics.quantum.spin.JzKetCoupled(j, m, jn, *jcoupling)[source]#
    +class sympy.physics.quantum.spin.JzKetCoupled(j, m, jn, *jcoupling)[source]#

    Coupled eigenket of Jz

    Spin state that is an eigenket of Jz which represents the coupling of separate spin spaces.

    @@ -1122,13 +1122,13 @@
    Documentation Version
    -class sympy.physics.quantum.spin.JzOp(*args, **kwargs)[source]#
    +class sympy.physics.quantum.spin.JzOp(*args, **kwargs)[source]#

    The Jz operator.

    -class sympy.physics.quantum.spin.Rotation(*args, **kwargs)[source]#
    +class sympy.physics.quantum.spin.Rotation(*args, **kwargs)[source]#

    Wigner D operator in terms of Euler angles.

    Defines the rotation operator in terms of the Euler angles defined by the z-y-z convention for a passive transformation. That is the coordinate @@ -1190,7 +1190,7 @@

    Documentation Version
    -classmethod D(j, m, mp, alpha, beta, gamma)[source]#
    +classmethod D(j, m, mp, alpha, beta, gamma)[source]#

    Wigner D-function.

    Returns an instance of the WignerD class corresponding to the Wigner-D function specified by the parameters.

    @@ -1243,7 +1243,7 @@
    Documentation Version
    -classmethod d(j, m, mp, beta)[source]#
    +classmethod d(j, m, mp, beta)[source]#

    Wigner small-d function.

    Returns an instance of the WignerD class corresponding to the Wigner-D function specified by the parameters with the alpha and gamma angles @@ -1291,7 +1291,7 @@

    Documentation Version
    -class sympy.physics.quantum.spin.WignerD(*args, **hints)[source]#
    +class sympy.physics.quantum.spin.WignerD(*args, **hints)[source]#

    Wigner-D function

    The Wigner D-function gives the matrix elements of the rotation operator in the jm-representation. For the Euler angles \(\alpha\), @@ -1384,7 +1384,7 @@

    Documentation Version
    -sympy.physics.quantum.spin.couple(expr, jcoupling_list=None)[source]#
    +sympy.physics.quantum.spin.couple(expr, jcoupling_list=None)[source]#

    Couple a tensor product of spin states

    This function can be used to couple an uncoupled tensor product of spin states. All of the eigenstates to be coupled must be of the same class. It @@ -1443,7 +1443,7 @@

    Documentation Version
    -sympy.physics.quantum.spin.uncouple(expr, jn=None, jcoupling_list=None)[source]#
    +sympy.physics.quantum.spin.uncouple(expr, jn=None, jcoupling_list=None)[source]#

    Uncouple a coupled spin state

    Gives the uncoupled representation of a coupled spin state. Arguments must be either a spin state that is a subclass of CoupledSpinState or a spin diff --git a/dev/modules/physics/quantum/state.html b/dev/modules/physics/quantum/state.html index 80395b44274..71684aa0e36 100644 --- a/dev/modules/physics/quantum/state.html +++ b/dev/modules/physics/quantum/state.html @@ -742,7 +742,7 @@

    Documentation Version

    Dirac notation for states.

    -class sympy.physics.quantum.state.Bra(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.Bra(*args, **kwargs)[source]#

    A general time-independent Bra in quantum mechanics.

    Inherits from State and BraBase. A Bra is the dual of a Ket [R741]. This class and its subclasses will be the main classes that users will use for @@ -802,7 +802,7 @@

    Documentation Version
    -class sympy.physics.quantum.state.BraBase(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.BraBase(*args, **kwargs)[source]#

    Base class for Bras.

    This class defines the dual property and the brackets for printing. This is an abstract base class and you should not instantiate it directly, @@ -811,7 +811,7 @@

    Documentation Version
    -class sympy.physics.quantum.state.Ket(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.Ket(*args, **kwargs)[source]#

    A general time-independent Ket in quantum mechanics.

    Inherits from State and KetBase. This class should be used as the base class for all physical, time-independent Kets in a system. This class @@ -875,7 +875,7 @@

    Documentation Version
    -class sympy.physics.quantum.state.KetBase(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.KetBase(*args, **kwargs)[source]#

    Base class for Kets.

    This class defines the dual property and the brackets for printing. This is an abstract base class and you should not instantiate it directly, instead @@ -884,13 +884,13 @@

    Documentation Version
    -class sympy.physics.quantum.state.OrthogonalBra(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.OrthogonalBra(*args, **kwargs)[source]#

    Orthogonal Bra in quantum mechanics.

    -class sympy.physics.quantum.state.OrthogonalKet(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.OrthogonalKet(*args, **kwargs)[source]#

    Orthogonal Ket in quantum mechanics.

    The inner product of two states with different labels will give zero, states with the same label will give one.

    @@ -908,19 +908,19 @@
    Documentation Version
    -class sympy.physics.quantum.state.OrthogonalState(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.OrthogonalState(*args, **kwargs)[source]#

    General abstract quantum state used as a base class for Ket and Bra.

    -class sympy.physics.quantum.state.State(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.State(*args, **kwargs)[source]#

    General abstract quantum state used as a base class for Ket and Bra.

    -class sympy.physics.quantum.state.StateBase(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.StateBase(*args, **kwargs)[source]#

    Abstract base class for general abstract states in quantum mechanics.

    All other state classes defined will need to inherit from this class. It carries the basic structure for all other states such as dual, _eval_adjoint @@ -935,7 +935,7 @@

    Documentation Version
    -classmethod dual_class()[source]#
    +classmethod dual_class()[source]#

    Return the class used to construct the dual.

    @@ -949,7 +949,7 @@
    Documentation Version
    -class sympy.physics.quantum.state.TimeDepBra(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.TimeDepBra(*args, **kwargs)[source]#

    General time-dependent Bra in quantum mechanics.

    This inherits from TimeDepState and BraBase and is the main class that should be used for Bras that vary with time. Its dual is a TimeDepBra.

    @@ -982,7 +982,7 @@
    Documentation Version
    -class sympy.physics.quantum.state.TimeDepKet(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.TimeDepKet(*args, **kwargs)[source]#

    General time-dependent Ket in quantum mechanics.

    This inherits from TimeDepState and KetBase and is the main class that should be used for Kets that vary with time. Its dual is a @@ -1022,7 +1022,7 @@

    Documentation Version
    -class sympy.physics.quantum.state.TimeDepState(*args, **kwargs)[source]#
    +class sympy.physics.quantum.state.TimeDepState(*args, **kwargs)[source]#

    Base class for a general time-dependent quantum state.

    This class is used as a base class for any time-dependent state. The main difference between this class and the time-independent state is that this @@ -1054,7 +1054,7 @@

    Documentation Version
    -class sympy.physics.quantum.state.Wavefunction(*args)[source]#
    +class sympy.physics.quantum.state.Wavefunction(*args)[source]#

    Class for representations in continuous bases

    This class takes an expression and coordinates in its constructor. It can be used to easily calculate normalizations and probabilities.

    @@ -1224,7 +1224,7 @@
    Documentation Version
    -normalize()[source]#
    +normalize()[source]#

    Return a normalized version of the Wavefunction

    Examples

    >>> from sympy import symbols, pi
    @@ -1243,7 +1243,7 @@ 
    Documentation Version
    -prob()[source]#
    +prob()[source]#

    Return the absolute magnitude of the w.f., \(|\psi(x)|^2\)

    Examples

    >>> from sympy import symbols, pi
    diff --git a/dev/modules/physics/quantum/tensorproduct.html b/dev/modules/physics/quantum/tensorproduct.html
    index 20fc0af0ee5..6b6ba73375a 100644
    --- a/dev/modules/physics/quantum/tensorproduct.html
    +++ b/dev/modules/physics/quantum/tensorproduct.html
    @@ -742,7 +742,7 @@ 
    Documentation Version

    Abstract tensor product.

    -class sympy.physics.quantum.tensorproduct.TensorProduct(*args)[source]#
    +class sympy.physics.quantum.tensorproduct.TensorProduct(*args)[source]#

    The tensor product of two or more arguments.

    For matrices, this uses matrix_tensor_product to compute the Kronecker or tensor product matrix. For other objects a symbolic TensorProduct @@ -811,7 +811,7 @@

    Documentation Version
    -sympy.physics.quantum.tensorproduct.tensor_product_simp(e, **hints)[source]#
    +sympy.physics.quantum.tensorproduct.tensor_product_simp(e, **hints)[source]#

    Try to simplify and combine TensorProducts.

    In general this will try to pull expressions inside of TensorProducts. It currently only works for relatively simple cases where the products have diff --git a/dev/modules/physics/secondquant.html b/dev/modules/physics/secondquant.html index 7d53a236eb7..fc71d989f2a 100644 --- a/dev/modules/physics/secondquant.html +++ b/dev/modules/physics/secondquant.html @@ -744,7 +744,7 @@

    Documentation Version
    of Many-Particle Systems.”

    -class sympy.physics.secondquant.AnnihilateBoson(k)[source]#
    +class sympy.physics.secondquant.AnnihilateBoson(k)[source]#

    Bosonic annihilation operator.

    Examples

    >>> from sympy.physics.secondquant import B
    @@ -755,7 +755,7 @@ 
    Documentation Version
    -apply_operator(state)[source]#
    +apply_operator(state)[source]#

    Apply state to self if self is not symbolic and state is a FockStateKet, else multiply self by state.

    Examples

    @@ -773,11 +773,11 @@
    Documentation Version
    -class sympy.physics.secondquant.AnnihilateFermion(k)[source]#
    +class sympy.physics.secondquant.AnnihilateFermion(k)[source]#

    Fermionic annihilation operator.

    -apply_operator(state)[source]#
    +apply_operator(state)[source]#

    Apply state to self if self is not symbolic and state is a FockStateKet, else multiply self by state.

    Examples

    @@ -885,7 +885,7 @@
    Documentation Version
    -class sympy.physics.secondquant.AntiSymmetricTensor(symbol, upper, lower)[source]#
    +class sympy.physics.secondquant.AntiSymmetricTensor(symbol, upper, lower)[source]#

    Stores upper and lower indices in separate Tuple’s.

    Each group of indices is assumed to be antisymmetric.

    Examples

    @@ -955,37 +955,37 @@
    Documentation Version
    -sympy.physics.secondquant.B[source]#
    +sympy.physics.secondquant.B[source]#

    alias of AnnihilateBoson

    -sympy.physics.secondquant.BBra[source]#
    +sympy.physics.secondquant.BBra[source]#

    alias of FockStateBosonBra

    -sympy.physics.secondquant.BKet[source]#
    +sympy.physics.secondquant.BKet[source]#

    alias of FockStateBosonKet

    -sympy.physics.secondquant.Bd[source]#
    +sympy.physics.secondquant.Bd[source]#

    alias of CreateBoson

    -class sympy.physics.secondquant.BosonicBasis[source]#
    +class sympy.physics.secondquant.BosonicBasis[source]#

    Base class for a basis set of bosonic Fock states.

    -class sympy.physics.secondquant.Commutator(a, b)[source]#
    +class sympy.physics.secondquant.Commutator(a, b)[source]#

    The Commutator: [A, B] = A*B - B*A

    The arguments are ordered according to .__cmp__()

    Examples

    @@ -1026,7 +1026,7 @@
    Documentation Version
    -doit(**hints)[source]#
    +doit(**hints)[source]#

    Enables the computation of complex expressions.

    Examples

    >>> from sympy.physics.secondquant import Commutator, F, Fd
    @@ -1042,7 +1042,7 @@ 
    Documentation Version
    -classmethod eval(a, b)[source]#
    +classmethod eval(a, b)[source]#

    The Commutator [A,B] is on canonical form if A < B.

    Examples

    >>> from sympy.physics.secondquant import Commutator, F, Fd
    @@ -1059,11 +1059,11 @@ 
    Documentation Version
    -class sympy.physics.secondquant.CreateBoson(k)[source]#
    +class sympy.physics.secondquant.CreateBoson(k)[source]#

    Bosonic creation operator.

    -apply_operator(state)[source]#
    +apply_operator(state)[source]#

    Apply state to self if self is not symbolic and state is a FockStateKet, else multiply self by state.

    Examples

    @@ -1081,11 +1081,11 @@
    Documentation Version
    -class sympy.physics.secondquant.CreateFermion(k)[source]#
    +class sympy.physics.secondquant.CreateFermion(k)[source]#

    Fermionic creation operator.

    -apply_operator(state)[source]#
    +apply_operator(state)[source]#

    Apply state to self if self is not symbolic and state is a FockStateKet, else multiply self by state.

    Examples

    @@ -1193,7 +1193,7 @@
    Documentation Version
    -class sympy.physics.secondquant.Dagger(arg)[source]#
    +class sympy.physics.secondquant.Dagger(arg)[source]#

    Hermitian conjugate of creation/annihilation operators.

    Examples

    >>> from sympy import I
    @@ -1208,7 +1208,7 @@ 
    Documentation Version
    -classmethod eval(arg)[source]#
    +classmethod eval(arg)[source]#

    Evaluates the Dagger instance.

    Examples

    >>> from sympy import I
    @@ -1228,31 +1228,31 @@ 
    Documentation Version
    -sympy.physics.secondquant.F[source]#
    +sympy.physics.secondquant.F[source]#

    alias of AnnihilateFermion

    -sympy.physics.secondquant.FBra[source]#
    +sympy.physics.secondquant.FBra[source]#

    alias of FockStateFermionBra

    -sympy.physics.secondquant.FKet[source]#
    +sympy.physics.secondquant.FKet[source]#

    alias of FockStateFermionKet

    -sympy.physics.secondquant.Fd[source]#
    +sympy.physics.secondquant.Fd[source]#

    alias of CreateFermion

    -class sympy.physics.secondquant.FixedBosonicBasis(n_particles, n_levels)[source]#
    +class sympy.physics.secondquant.FixedBosonicBasis(n_particles, n_levels)[source]#

    Fixed particle number basis set.

    Examples

    >>> from sympy.physics.secondquant import FixedBosonicBasis
    @@ -1268,7 +1268,7 @@ 
    Documentation Version
    -index(state)[source]#
    +index(state)[source]#

    Returns the index of state in basis.

    Examples

    >>> from sympy.physics.secondquant import FixedBosonicBasis
    @@ -1281,7 +1281,7 @@ 
    Documentation Version
    -state(i)[source]#
    +state(i)[source]#

    Returns the state that lies at index i of the basis

    Examples

    >>> from sympy.physics.secondquant import FixedBosonicBasis
    @@ -1296,7 +1296,7 @@ 
    Documentation Version
    -class sympy.physics.secondquant.FockState(occupations)[source]#
    +class sympy.physics.secondquant.FockState(occupations)[source]#

    Many particle Fock state with a sequence of occupation numbers.

    Anywhere you can have a FockState, you can also have S.Zero. All code must check for this!

    @@ -1305,7 +1305,7 @@
    Documentation Version
    -class sympy.physics.secondquant.FockStateBosonBra(occupations)[source]#
    +class sympy.physics.secondquant.FockStateBosonBra(occupations)[source]#

    Describes a collection of BosonBra particles.

    Examples

    >>> from sympy.physics.secondquant import BBra
    @@ -1317,7 +1317,7 @@ 
    Documentation Version
    -class sympy.physics.secondquant.FockStateBosonKet(occupations)[source]#
    +class sympy.physics.secondquant.FockStateBosonKet(occupations)[source]#

    Many particle Fock state with a sequence of occupation numbers.

    Occupation numbers can be any integer >= 0.

    Examples

    @@ -1330,13 +1330,13 @@
    Documentation Version
    -class sympy.physics.secondquant.FockStateBra(occupations)[source]#
    +class sympy.physics.secondquant.FockStateBra(occupations)[source]#

    Representation of a bra.

    -class sympy.physics.secondquant.FockStateFermionBra(occupations, fermi_level=0)[source]#
    +class sympy.physics.secondquant.FockStateFermionBra(occupations, fermi_level=0)[source]#

    Examples

    >>> from sympy.physics.secondquant import FBra
     >>> FBra([1, 2])
    @@ -1351,7 +1351,7 @@ 
    Documentation Version
    -class sympy.physics.secondquant.FockStateFermionKet(occupations, fermi_level=0)[source]#
    +class sympy.physics.secondquant.FockStateFermionKet(occupations, fermi_level=0)[source]#

    Many-particle Fock state with a sequence of occupied orbits.

    Explanation

    Each state can only have one particle, so we choose to store a list of @@ -1370,13 +1370,13 @@

    Documentation Version
    -class sympy.physics.secondquant.FockStateKet(occupations)[source]#
    +class sympy.physics.secondquant.FockStateKet(occupations)[source]#

    Representation of a ket.

    -class sympy.physics.secondquant.InnerProduct(bra, ket)[source]#
    +class sympy.physics.secondquant.InnerProduct(bra, ket)[source]#

    An unevaluated inner product between a bra and ket.

    Explanation

    Currently this class just reduces things to a product of @@ -1399,7 +1399,7 @@

    Documentation Version
    -class sympy.physics.secondquant.KroneckerDelta(i, j, delta_range=None)[source]#
    +class sympy.physics.secondquant.KroneckerDelta(i, j, delta_range=None)[source]#

    The discrete, or Kronecker, delta function.

    Parameters:
    @@ -1450,7 +1450,7 @@
    Documentation Version
    -classmethod eval(i, j, delta_range=None)[source]#
    +classmethod eval(i, j, delta_range=None)[source]#

    Evaluates the discrete delta function.

    Examples

    >>> from sympy import KroneckerDelta
    @@ -1647,7 +1647,7 @@ 
    Documentation Version
    -class sympy.physics.secondquant.NO(arg)[source]#
    +class sympy.physics.secondquant.NO(arg)[source]#

    This Object is used to represent normal ordering brackets.

    i.e. {abcd} sometimes written :abcd:

    Explanation

    @@ -1672,7 +1672,7 @@
    Documentation Version
    Nothing more, nothing less.

    -doit(**hints)[source]#
    +doit(**hints)[source]#

    Either removes the brackets or enables complex computations in its arguments.

    Examples

    @@ -1693,7 +1693,7 @@
    Documentation Version
    -get_subNO(i)[source]#
    +get_subNO(i)[source]#

    Returns a NO() without FermionicOperator at index i.

    Examples

    >>> from sympy import symbols
    @@ -1753,7 +1753,7 @@ 
    Documentation Version
    -iter_q_annihilators()[source]#
    +iter_q_annihilators()[source]#

    Iterates over the annihilation operators.

    Examples

    >>> from sympy import symbols
    @@ -1775,7 +1775,7 @@ 
    Documentation Version
    -iter_q_creators()[source]#
    +iter_q_creators()[source]#

    Iterates over the creation operators.

    Examples

    >>> from sympy import symbols
    @@ -1799,12 +1799,12 @@ 
    Documentation Version
    -class sympy.physics.secondquant.PermutationOperator(i, j)[source]#
    +class sympy.physics.secondquant.PermutationOperator(i, j)[source]#

    Represents the index permutation operator P(ij).

    P(ij)*f(i)*g(j) = f(i)*g(j) - f(j)*g(i)

    -get_permuted(expr)[source]#
    +get_permuted(expr)[source]#

    Returns -expr with permuted indices.

    Explanation

    >>> from sympy import symbols, Function
    @@ -1821,7 +1821,7 @@ 
    Documentation Version
    -class sympy.physics.secondquant.VarBosonicBasis(n_max)[source]#
    +class sympy.physics.secondquant.VarBosonicBasis(n_max)[source]#

    A single state, variable particle number basis set.

    Examples

    >>> from sympy.physics.secondquant import VarBosonicBasis
    @@ -1833,7 +1833,7 @@ 
    Documentation Version
    -index(state)[source]#
    +index(state)[source]#

    Returns the index of state in basis.

    Examples

    >>> from sympy.physics.secondquant import VarBosonicBasis
    @@ -1851,7 +1851,7 @@ 
    Documentation Version
    -state(i)[source]#
    +state(i)[source]#

    The state of a single basis.

    Examples

    >>> from sympy.physics.secondquant import VarBosonicBasis
    @@ -1866,7 +1866,7 @@ 
    Documentation Version
    -sympy.physics.secondquant.apply_operators(e)[source]#
    +sympy.physics.secondquant.apply_operators(e)[source]#

    Take a SymPy expression with operators and states and apply the operators.

    Examples

    >>> from sympy.physics.secondquant import apply_operators
    @@ -1879,7 +1879,7 @@ 
    Documentation Version
    -sympy.physics.secondquant.contraction(a, b)[source]#
    +sympy.physics.secondquant.contraction(a, b)[source]#

    Calculates contraction of Fermionic operators a and b.

    Examples

    >>> from sympy import symbols
    @@ -1916,7 +1916,7 @@ 
    Documentation Version
    -sympy.physics.secondquant.evaluate_deltas(e)[source]#
    +sympy.physics.secondquant.evaluate_deltas(e)[source]#

    We evaluate KroneckerDelta symbols in the expression assuming Einstein summation.

    Explanation

    If one index is repeated it is summed over and in effect substituted with @@ -1976,7 +1976,7 @@

    Documentation Version
    -sympy.physics.secondquant.matrix_rep(op, basis)[source]#
    +sympy.physics.secondquant.matrix_rep(op, basis)[source]#

    Find the representation of an operator in a basis.

    Examples

    >>> from sympy.physics.secondquant import VarBosonicBasis, B, matrix_rep
    @@ -1995,7 +1995,7 @@ 
    Documentation Version
    -sympy.physics.secondquant.simplify_index_permutations(expr, permutation_operators)[source]#
    +sympy.physics.secondquant.simplify_index_permutations(expr, permutation_operators)[source]#

    Performs simplification by introducing PermutationOperators where appropriate.

    Explanation

    @@ -2030,7 +2030,7 @@
    Documentation Version
    -sympy.physics.secondquant.substitute_dummies(expr, new_indices=False, pretty_indices={})[source]#
    +sympy.physics.secondquant.substitute_dummies(expr, new_indices=False, pretty_indices={})[source]#

    Collect terms by substitution of dummy variables.

    Explanation

    This routine allows simplification of Add expressions containing terms @@ -2089,7 +2089,7 @@

    Documentation Version
    -sympy.physics.secondquant.wicks(e, **kw_args)[source]#
    +sympy.physics.secondquant.wicks(e, **kw_args)[source]#

    Returns the normal ordered equivalent of an expression using Wicks Theorem.

    Examples

    >>> from sympy import symbols, Dummy
    diff --git a/dev/modules/physics/sho.html b/dev/modules/physics/sho.html
    index a4f4fa70778..1abca6c3550 100644
    --- a/dev/modules/physics/sho.html
    +++ b/dev/modules/physics/sho.html
    @@ -741,7 +741,7 @@ 
    Documentation Version

    Quantum Harmonic Oscillator in 3-D#

    -sympy.physics.sho.E_nl(n, l, hw)[source]#
    +sympy.physics.sho.E_nl(n, l, hw)[source]#

    Returns the Energy of an isotropic harmonic oscillator.

    Parameters:
    @@ -777,7 +777,7 @@
    Documentation Version
    -sympy.physics.sho.R_nl(n, l, nu, r)[source]#
    +sympy.physics.sho.R_nl(n, l, nu, r)[source]#

    Returns the radial wavefunction R_{nl} for a 3d isotropic harmonic oscillator.

    diff --git a/dev/modules/physics/units/dimensions.html b/dev/modules/physics/units/dimensions.html index ac2739ca263..2c1e4670883 100644 --- a/dev/modules/physics/units/dimensions.html +++ b/dev/modules/physics/units/dimensions.html @@ -748,7 +748,7 @@
    Documentation Version
    question of adding time to length has no meaning.

    -class sympy.physics.units.dimensions.Dimension(name, symbol=None)[source]#
    +class sympy.physics.units.dimensions.Dimension(name, symbol=None)[source]#

    This class represent the dimension of a physical quantities.

    The Dimension constructor takes as parameters a name and an optional symbol.

    @@ -789,7 +789,7 @@
    Documentation Version
    -has_integer_powers(dim_sys)[source]#
    +has_integer_powers(dim_sys)[source]#

    Check if the dimension object has only integer powers.

    All the dimension powers should be integers, but rational powers may appear in intermediate steps. This method may be used to check that the @@ -800,7 +800,7 @@

    Documentation Version
    -class sympy.physics.units.dimensions.DimensionSystem(base_dims, derived_dims=(), dimensional_dependencies={})[source]#
    +class sympy.physics.units.dimensions.DimensionSystem(base_dims, derived_dims=(), dimensional_dependencies={})[source]#

    DimensionSystem represents a coherent set of dimensions.

    The constructor takes three parameters:

      @@ -833,7 +833,7 @@
      Documentation Version
      -dim_can_vector(dim)[source]#
      +dim_can_vector(dim)[source]#

      Useless method, kept for compatibility with previous versions.

      DO NOT USE.

      Dimensional representation in terms of the canonical base dimensions.

      @@ -841,7 +841,7 @@
      Documentation Version
      -dim_vector(dim)[source]#
      +dim_vector(dim)[source]#

      Useless method, kept for compatibility with previous versions.

      DO NOT USE.

      Vector representation in terms of the base dimensions.

      @@ -872,7 +872,7 @@
      Documentation Version
      -is_dimensionless(dimension)[source]#
      +is_dimensionless(dimension)[source]#

      Check if the dimension object really has a dimension.

      A dimension should have at least one component with non-zero power.

      @@ -887,7 +887,7 @@
      Documentation Version
      -print_dim_base(dim)[source]#
      +print_dim_base(dim)[source]#

      Give the string expression of a dimension in term of the basis symbols.

      diff --git a/dev/modules/physics/units/prefixes.html b/dev/modules/physics/units/prefixes.html index b8cdb7c9a0c..cf104b027d8 100644 --- a/dev/modules/physics/units/prefixes.html +++ b/dev/modules/physics/units/prefixes.html @@ -744,7 +744,7 @@
      Documentation Version
      BIN_PREFIXES.

      -class sympy.physics.units.prefixes.Prefix(name, abbrev, exponent, base=10, latex_repr=None)[source]#
      +class sympy.physics.units.prefixes.Prefix(name, abbrev, exponent, base=10, latex_repr=None)[source]#

      This class represent prefixes, with their name, symbol and factor.

      Prefixes are used to create derived units from a given unit. They should always be encapsulated into units.

      diff --git a/dev/modules/physics/units/quantities.html b/dev/modules/physics/units/quantities.html index 3f6075aed76..f4c73b43da8 100644 --- a/dev/modules/physics/units/quantities.html +++ b/dev/modules/physics/units/quantities.html @@ -742,7 +742,7 @@
      Documentation Version

      Physical quantities.

      -class sympy.physics.units.quantities.Quantity(name, abbrev=None, latex_repr=None, pretty_unicode_repr=None, pretty_ascii_repr=None, mathml_presentation_repr=None, is_prefixed=False, **assumptions)[source]#
      +class sympy.physics.units.quantities.Quantity(name, abbrev=None, latex_repr=None, pretty_unicode_repr=None, pretty_ascii_repr=None, mathml_presentation_repr=None, is_prefixed=False, **assumptions)[source]#

      Physical quantity: can be a unit of measure, a constant or a generic quantity.

      @@ -753,7 +753,7 @@
      Documentation Version
      -convert_to(other, unit_system='SI')[source]#
      +convert_to(other, unit_system='SI')[source]#

      Convert the quantity to another quantity of same dimensions.

      Examples

      >>> from sympy.physics.units import speed_of_light, meter, second
      @@ -790,7 +790,7 @@ 
      Documentation Version
      -set_global_relative_scale_factor(scale_factor, reference_quantity)[source]#
      +set_global_relative_scale_factor(scale_factor, reference_quantity)[source]#

      Setting a scale factor that is valid across all unit system.

      @@ -801,7 +801,7 @@
      Documentation Version

      Several methods to simplify expressions involving unit objects.

      -sympy.physics.units.util.convert_to(expr, target_units, unit_system='SI')[source]#
      +sympy.physics.units.util.convert_to(expr, target_units, unit_system='SI')[source]#

      Convert expr to the same expression with all of its units and quantities represented as factors of target_units, whenever the dimension is compatible.

      target_units may be a single unit/quantity, or a collection of diff --git a/dev/modules/physics/units/unitsystem.html b/dev/modules/physics/units/unitsystem.html index e793b083510..6009e4eeeae 100644 --- a/dev/modules/physics/units/unitsystem.html +++ b/dev/modules/physics/units/unitsystem.html @@ -742,7 +742,7 @@

      Documentation Version

      Unit system for physical quantities; include definition of constants.

      -class sympy.physics.units.unitsystem.UnitSystem(base_units, units=(), name='', descr='', dimension_system=None, derived_units: Dict[Dimension, Quantity] = {})[source]#
      +class sympy.physics.units.unitsystem.UnitSystem(base_units, units=(), name='', descr='', dimension_system=None, derived_units: Dict[Dimension, Quantity] = {})[source]#

      UnitSystem represents a coherent set of units.

      A unit system is basically a dimension system with notions of scales. Many of the methods are defined in the same way.

      @@ -756,7 +756,7 @@
      Documentation Version
      -extend(base, units=(), name='', description='', dimension_system=None, derived_units: Dict[Dimension, Quantity] = {})[source]#
      +extend(base, units=(), name='', description='', dimension_system=None, derived_units: Dict[Dimension, Quantity] = {})[source]#

      Extend the current system into a new one.

      Take the base and normal units of the current system to merge them to the base and normal units given in argument. @@ -765,7 +765,7 @@

      Documentation Version
      -get_units_non_prefixed() Set[Quantity][source]#
      +get_units_non_prefixed() Set[Quantity][source]#

      Return the units of the system that do not have a prefix.

      diff --git a/dev/modules/physics/vector/api/classes.html b/dev/modules/physics/vector/api/classes.html index c20f28c24a2..76aa96f67f3 100644 --- a/dev/modules/physics/vector/api/classes.html +++ b/dev/modules/physics/vector/api/classes.html @@ -741,7 +741,7 @@
      Documentation Version

      Essential Classes#

      -class sympy.physics.vector.frame.CoordinateSym(name, frame, index)[source]#
      +class sympy.physics.vector.frame.CoordinateSym(name, frame, index)[source]#

      A coordinate symbol/base scalar associated wrt a Reference Frame.

      Ideally, users should not instantiate this class. Instances of this class must only be accessed through the corresponding frame @@ -780,7 +780,7 @@

      Essential Classes
      -class sympy.physics.vector.frame.ReferenceFrame(name, indices=None, latexs=None, variables=None)[source]#
      +class sympy.physics.vector.frame.ReferenceFrame(name, indices=None, latexs=None, variables=None)[source]#

      A reference frame in classical mechanics.

      ReferenceFrame is a class used to represent a reference frame in classical mechanics. It has a standard basis of three unit vectors in the frame’s @@ -791,7 +791,7 @@

      Essential Classes
      -ang_acc_in(otherframe)[source]#
      +ang_acc_in(otherframe)[source]#

      Returns the angular acceleration Vector of the ReferenceFrame.

      Effectively returns the Vector:

      N_alpha_B

      @@ -819,7 +819,7 @@

      Essential Classes
      -ang_vel_in(otherframe)[source]#
      +ang_vel_in(otherframe)[source]#

      Returns the angular velocity Vector of the ReferenceFrame.

      Effectively returns the Vector:

      ^N omega ^B

      @@ -847,7 +847,7 @@

      Essential Classes
      -dcm(otherframe)[source]#
      +dcm(otherframe)[source]#

      Returns the direction cosine matrix of this reference frame relative to the provided reference frame.

      The returned matrix can be used to express the orthogonal unit vectors @@ -915,7 +915,7 @@

      Essential Classes
      -orient(parent, rot_type, amounts, rot_order='')[source]#
      +orient(parent, rot_type, amounts, rot_order='')[source]#

      Sets the orientation of this reference frame relative to another (parent) reference frame.

      @@ -978,7 +978,7 @@

      Essential Classes
      -orient_axis(parent, axis, angle)[source]#
      +orient_axis(parent, axis, angle)[source]#

      Sets the orientation of this reference frame with respect to a parent reference frame by rotating through an angle about an axis fixed in the parent reference frame.

      @@ -1044,7 +1044,7 @@

      Essential Classes
      -orient_body_fixed(parent, angles, rotation_order)[source]#
      +orient_body_fixed(parent, angles, rotation_order)[source]#

      Rotates this reference frame relative to the parent reference frame by right hand rotating through three successive body fixed simple axis rotations. Each subsequent axis of rotation is about the “body fixed” @@ -1129,7 +1129,7 @@

      Essential Classes
      -orient_explicit(parent, dcm)[source]#
      +orient_explicit(parent, dcm)[source]#

      Sets the orientation of this reference frame relative to a parent reference frame by explicitly setting the direction cosine matrix.

      @@ -1199,7 +1199,7 @@

      Essential Classes
      -orient_quaternion(parent, numbers)[source]#
      +orient_quaternion(parent, numbers)[source]#

      Sets the orientation of this reference frame relative to a parent reference frame via an orientation quaternion. An orientation quaternion is defined as a finite rotation a unit vector, (lambda_x, @@ -1255,7 +1255,7 @@

      Essential Classes
      -orient_space_fixed(parent, angles, rotation_order)[source]#
      +orient_space_fixed(parent, angles, rotation_order)[source]#

      Rotates this reference frame relative to the parent reference frame by right hand rotating through three successive space fixed simple axis rotations. Each subsequent axis of rotation is about the “space fixed” @@ -1343,7 +1343,7 @@

      Essential Classes
      -orientnew(newname, rot_type, amounts, rot_order='', variables=None, indices=None, latexs=None)[source]#
      +orientnew(newname, rot_type, amounts, rot_order='', variables=None, indices=None, latexs=None)[source]#

      Returns a new reference frame oriented with respect to this reference frame.

      See ReferenceFrame.orient() for detailed examples of how to orient @@ -1435,7 +1435,7 @@

      Essential Classes
      -partial_velocity(frame, *gen_speeds)[source]#
      +partial_velocity(frame, *gen_speeds)[source]#

      Returns the partial angular velocities of this frame in the given frame with respect to one or more provided generalized speeds.

      @@ -1473,7 +1473,7 @@

      Essential Classes
      -set_ang_acc(otherframe, value)[source]#
      +set_ang_acc(otherframe, value)[source]#

      Define the angular acceleration Vector in a ReferenceFrame.

      Defines the angular acceleration of this ReferenceFrame, in another. Angular acceleration can be defined with respect to multiple different @@ -1505,7 +1505,7 @@

      Essential Classes
      -set_ang_vel(otherframe, value)[source]#
      +set_ang_vel(otherframe, value)[source]#

      Define the angular velocity vector in a ReferenceFrame.

      Defines the angular velocity of this ReferenceFrame, in another. Angular velocity can be defined with respect to multiple different @@ -1543,7 +1543,7 @@

      Essential Classes
      -variable_map(otherframe)[source]#
      +variable_map(otherframe)[source]#

      Returns a dictionary which expresses the coordinate variables of this frame in terms of the variables of otherframe.

      If Vector.simp is True, returns a simplified version of the mapped @@ -1644,7 +1644,7 @@

      Essential Classes
      -class sympy.physics.vector.vector.Vector(inlist)[source]#
      +class sympy.physics.vector.vector.Vector(inlist)[source]#

      The class used to define vectors.

      It along with ReferenceFrame are the building blocks of describing a classical mechanics system in PyDy and sympy.physics.vector.

      @@ -1660,7 +1660,7 @@

      Essential Classes
      -angle_between(vec)[source]#
      +angle_between(vec)[source]#

      Returns the smallest angle between Vector ‘vec’ and self.

      Warning

      @@ -1691,13 +1691,13 @@

      Essential Classes
      -applyfunc(f)[source]#
      +applyfunc(f)[source]#

      Apply a function to each component of a vector.

      -cross(other)[source]#
      +cross(other)[source]#

      The cross product operator for two Vectors.

      Returns a Vector, expressed in the same ReferenceFrames as self.

      @@ -1727,7 +1727,7 @@

      Essential Classes
      -diff(var, frame, var_in_dcm=True)[source]#
      +diff(var, frame, var_in_dcm=True)[source]#

      Returns the partial derivative of the vector with respect to a variable in the provided reference frame.

      @@ -1775,13 +1775,13 @@

      Essential Classes
      -doit(**hints)[source]#
      +doit(**hints)[source]#

      Calls .doit() on each term in the Vector

      -dot(other)[source]#
      +dot(other)[source]#

      Dot product of two vectors.

      Returns a scalar, the dot product of the two Vectors

      @@ -1810,7 +1810,7 @@

      Essential Classes
      -dt(otherframe)[source]#
      +dt(otherframe)[source]#

      Returns a Vector which is the time derivative of the self Vector, taken in frame otherframe.

      Calls the global time_derivative method

      @@ -1826,7 +1826,7 @@

      Essential Classes
      -express(otherframe, variables=False)[source]#
      +express(otherframe, variables=False)[source]#

      Returns a Vector equivalent to this one, expressed in otherframe. Uses the global express method.

      @@ -1857,7 +1857,7 @@

      Essential Classes
      -free_dynamicsymbols(reference_frame)[source]#
      +free_dynamicsymbols(reference_frame)[source]#

      Returns the free dynamic symbols (functions of time t) in the measure numbers of the vector expressed in the given reference frame.

      @@ -1880,7 +1880,7 @@

      Essential Classes
      -free_symbols(reference_frame)[source]#
      +free_symbols(reference_frame)[source]#

      Returns the free symbols in the measure numbers of the vector expressed in the given reference frame.

      @@ -1909,7 +1909,7 @@

      Essential Classes
      -magnitude()[source]#
      +magnitude()[source]#

      Returns the magnitude (Euclidean norm) of self.

      Warning

      @@ -1922,13 +1922,13 @@

      Essential Classes
      -normalize()[source]#
      +normalize()[source]#

      Returns a Vector of magnitude 1, codirectional with self.

      -outer(other)[source]#
      +outer(other)[source]#

      Outer product between two Vectors.

      A rank increasing operation, which returns a Dyadic from two Vectors

      @@ -1950,7 +1950,7 @@

      Essential Classes
      -separate()[source]#
      +separate()[source]#

      The constituents of this vector in different reference frames, as per its definition.

      Returns a dict mapping each ReferenceFrame to the corresponding @@ -1968,13 +1968,13 @@

      Essential Classes
      -simplify()[source]#
      +simplify()[source]#

      Returns a simplified Vector.

      -subs(*args, **kwargs)[source]#
      +subs(*args, **kwargs)[source]#

      Substitution on the Vector.

      Examples

      >>> from sympy.physics.vector import ReferenceFrame
      @@ -1990,7 +1990,7 @@ 

      Essential Classes
      -to_matrix(reference_frame)[source]#
      +to_matrix(reference_frame)[source]#

      Returns the matrix form of the vector with respect to the given frame.

      @@ -2031,7 +2031,7 @@

      Essential Classes
      -xreplace(rule)[source]#
      +xreplace(rule)[source]#

      Replace occurrences of objects within the measure numbers of the vector.

      @@ -2073,7 +2073,7 @@

      Essential Classes
      -class sympy.physics.vector.dyadic.Dyadic(inlist)[source]#
      +class sympy.physics.vector.dyadic.Dyadic(inlist)[source]#

      A Dyadic object.

      See: https://en.wikipedia.org/wiki/Dyadic_tensor @@ -2083,13 +2083,13 @@

      Essential Classes
      -applyfunc(f)[source]#
      +applyfunc(f)[source]#

      Apply a function to each component of a Dyadic.

      -cross(other)[source]#
      +cross(other)[source]#

      For a cross product in the form: Dyadic x Vector.

      Parameters:
      @@ -2111,13 +2111,13 @@

      Essential Classes
      -doit(**hints)[source]#
      +doit(**hints)[source]#

      Calls .doit() on each term in the Dyadic

      -dot(other)[source]#
      +dot(other)[source]#

      The inner product operator for a Dyadic and a Dyadic or Vector.

      Parameters:
      @@ -2142,7 +2142,7 @@

      Essential Classes
      -dt(frame)[source]#
      +dt(frame)[source]#

      Take the time derivative of this Dyadic in a frame.

      This function calls the global time_derivative method

      @@ -2169,7 +2169,7 @@

      Essential Classes
      -express(frame1, frame2=None)[source]#
      +express(frame1, frame2=None)[source]#

      Expresses this Dyadic in alternate frame(s)

      The first frame is the list side expression, the second frame is the right side; if Dyadic is in form A.x|B.y, you can express it in two @@ -2210,13 +2210,13 @@

      Essential Classes
      -simplify()[source]#
      +simplify()[source]#

      Returns a simplified Dyadic.

      -subs(*args, **kwargs)[source]#
      +subs(*args, **kwargs)[source]#

      Substitution on the Dyadic.

      Examples

      >>> from sympy.physics.vector import ReferenceFrame
      @@ -2232,7 +2232,7 @@ 

      Essential Classes
      -to_matrix(reference_frame, second_reference_frame=None)[source]#
      +to_matrix(reference_frame, second_reference_frame=None)[source]#

      Returns the matrix form of the dyadic with respect to one or two reference frames.

      @@ -2281,7 +2281,7 @@

      Essential Classes
      -xreplace(rule)[source]#
      +xreplace(rule)[source]#

      Replace occurrences of objects within the measure numbers of the Dyadic.

      diff --git a/dev/modules/physics/vector/api/fieldfunctions.html b/dev/modules/physics/vector/api/fieldfunctions.html index d312c36a0ee..722530bc774 100644 --- a/dev/modules/physics/vector/api/fieldfunctions.html +++ b/dev/modules/physics/vector/api/fieldfunctions.html @@ -745,7 +745,7 @@

      Field operation functions
      -sympy.physics.vector.fieldfunctions.curl(vect, frame)[source]#
      +sympy.physics.vector.fieldfunctions.curl(vect, frame)[source]#

      Returns the curl of a vector field computed wrt the coordinate symbols of the given frame.

      @@ -776,7 +776,7 @@

      Field operation functions
      -sympy.physics.vector.fieldfunctions.divergence(vect, frame)[source]#
      +sympy.physics.vector.fieldfunctions.divergence(vect, frame)[source]#

      Returns the divergence of a vector field computed wrt the coordinate symbols of the given frame.

      @@ -807,7 +807,7 @@

      Field operation functions
      -sympy.physics.vector.fieldfunctions.gradient(scalar, frame)[source]#
      +sympy.physics.vector.fieldfunctions.gradient(scalar, frame)[source]#

      Returns the vector gradient of a scalar field computed wrt the coordinate symbols of the given frame.

      @@ -838,7 +838,7 @@

      Field operation functions
      -sympy.physics.vector.fieldfunctions.scalar_potential(field, frame)[source]#
      +sympy.physics.vector.fieldfunctions.scalar_potential(field, frame)[source]#

      Returns the scalar potential function of a field in a given frame (without the added integration constant).

      @@ -870,7 +870,7 @@

      Field operation functions
      -sympy.physics.vector.fieldfunctions.scalar_potential_difference(field, frame, point1, point2, origin)[source]#
      +sympy.physics.vector.fieldfunctions.scalar_potential_difference(field, frame, point1, point2, origin)[source]#

      Returns the scalar potential difference between two points in a certain frame, wrt a given field.

      If a scalar field is provided, its values at the two points are @@ -923,7 +923,7 @@

      Field operation functions#

      -sympy.physics.vector.fieldfunctions.is_conservative(field)[source]#
      +sympy.physics.vector.fieldfunctions.is_conservative(field)[source]#

      Checks if a field is conservative.

      Parameters:
      @@ -947,7 +947,7 @@

      Checking the type of vector field
      -sympy.physics.vector.fieldfunctions.is_solenoidal(field)[source]#
      +sympy.physics.vector.fieldfunctions.is_solenoidal(field)[source]#

      Checks if a field is solenoidal.

      Parameters:
      diff --git a/dev/modules/physics/vector/api/functions.html b/dev/modules/physics/vector/api/functions.html index 7d957348fca..190b755b980 100644 --- a/dev/modules/physics/vector/api/functions.html +++ b/dev/modules/physics/vector/api/functions.html @@ -741,7 +741,7 @@
      Documentation Version

      Essential Functions (Docstrings)#

      -sympy.physics.vector.dynamicsymbols(names, level=0, **assumptions)[source]#
      +sympy.physics.vector.dynamicsymbols(names, level=0, **assumptions)[source]#

      Uses symbols and Function for functions of time.

      Creates a SymPy UndefinedFunction, which is then initialized as a function of a variable, the default being Symbol(‘t’).

      @@ -810,7 +810,7 @@

      Essential Functions (Docstrings)
      -sympy.physics.vector.functions.dot(vec1, vec2)[source]#
      +sympy.physics.vector.functions.dot(vec1, vec2)[source]#

      Dot product convenience wrapper for Vector.dot(): Dot product of two vectors.

      @@ -842,7 +842,7 @@

      Essential Functions (Docstrings)
      -sympy.physics.vector.functions.cross(vec1, vec2)[source]#
      +sympy.physics.vector.functions.cross(vec1, vec2)[source]#

      Cross product convenience wrapper for Vector.cross(): The cross product operator for two Vectors.

      @@ -875,7 +875,7 @@

      Essential Functions (Docstrings)
      -sympy.physics.vector.functions.outer(vec1, vec2)[source]#
      +sympy.physics.vector.functions.outer(vec1, vec2)[source]#

      Outer product convenience wrapper for Vector.outer(): Outer product between two Vectors.

      @@ -900,7 +900,7 @@

      Essential Functions (Docstrings)
      -sympy.physics.vector.functions.express(expr, frame, frame2=None, variables=False)[source]#
      +sympy.physics.vector.functions.express(expr, frame, frame2=None, variables=False)[source]#

      Global function for ‘express’ functionality.

      Re-expresses a Vector, scalar(sympyfiable) or Dyadic in given frame.

      Refer to the local methods of Vector and Dyadic for details. @@ -950,7 +950,7 @@

      Essential Functions (Docstrings)
      -sympy.physics.vector.functions.time_derivative(expr, frame, order=1)[source]#
      +sympy.physics.vector.functions.time_derivative(expr, frame, order=1)[source]#

      Calculate the time derivative of a vector/scalar field function or dyadic expression in given frame.

      diff --git a/dev/modules/physics/vector/api/kinematics.html b/dev/modules/physics/vector/api/kinematics.html index fc4a5f8c2f8..ec8d9c117df 100644 --- a/dev/modules/physics/vector/api/kinematics.html +++ b/dev/modules/physics/vector/api/kinematics.html @@ -741,7 +741,7 @@
      Documentation Version

      Kinematics (Docstrings)#

      -class sympy.physics.vector.point.Point(name)[source]#
      +class sympy.physics.vector.point.Point(name)[source]#

      This object represents a point in a dynamic system.

      It stores the: position, velocity, and acceleration of a point. The position is a vector defined as the vector distance from a parent @@ -786,7 +786,7 @@

      Documentation Version

      -a1pt_theory(otherpoint, outframe, interframe)[source]#
      +a1pt_theory(otherpoint, outframe, interframe)[source]#

      Sets the acceleration of this point with the 1-point theory.

      The 1-point theory for point acceleration looks like this:

      ^N a^P = ^B a^P + ^N a^O + ^N alpha^B x r^OP + ^N omega^B x (^N omega^B @@ -833,7 +833,7 @@

      Documentation Version
      -a2pt_theory(otherpoint, outframe, fixedframe)[source]#
      +a2pt_theory(otherpoint, outframe, fixedframe)[source]#

      Sets the acceleration of this point with the 2-point theory.

      The 2-point theory for point acceleration looks like this:

      ^N a^P = ^N a^O + ^N alpha^B x r^OP + ^N omega^B x (^N omega^B x r^OP)

      @@ -874,7 +874,7 @@
      Documentation Version
      -acc(frame)[source]#
      +acc(frame)[source]#

      The acceleration Vector of this Point in a ReferenceFrame.

      Parameters:
      @@ -898,7 +898,7 @@
      Documentation Version
      -locatenew(name, value)[source]#
      +locatenew(name, value)[source]#

      Creates a new point with a position defined from this point.

      Parameters:
      @@ -923,7 +923,7 @@
      Documentation Version
      -partial_velocity(frame, *gen_speeds)[source]#
      +partial_velocity(frame, *gen_speeds)[source]#

      Returns the partial velocities of the linear velocity vector of this point in the given frame with respect to one or more provided generalized speeds.

      @@ -964,7 +964,7 @@
      Documentation Version
      -pos_from(otherpoint)[source]#
      +pos_from(otherpoint)[source]#

      Returns a Vector distance between this Point and the other Point.

      Parameters:
      @@ -988,7 +988,7 @@
      Documentation Version
      -set_acc(frame, value)[source]#
      +set_acc(frame, value)[source]#

      Used to set the acceleration of this Point in a ReferenceFrame.

      Parameters:
      @@ -1015,7 +1015,7 @@
      Documentation Version
      -set_pos(otherpoint, value)[source]#
      +set_pos(otherpoint, value)[source]#

      Used to set the position of this point w.r.t. another point.

      Parameters:
      @@ -1043,7 +1043,7 @@
      Documentation Version
      -set_vel(frame, value)[source]#
      +set_vel(frame, value)[source]#

      Sets the velocity Vector of this Point in a ReferenceFrame.

      Parameters:
      @@ -1070,7 +1070,7 @@
      Documentation Version
      -v1pt_theory(otherpoint, outframe, interframe)[source]#
      +v1pt_theory(otherpoint, outframe, interframe)[source]#

      Sets the velocity of this point with the 1-point theory.

      The 1-point theory for point velocity looks like this:

      ^N v^P = ^B v^P + ^N v^O + ^N omega^B x r^OP

      @@ -1116,7 +1116,7 @@
      Documentation Version
      -v2pt_theory(otherpoint, outframe, fixedframe)[source]#
      +v2pt_theory(otherpoint, outframe, fixedframe)[source]#

      Sets the velocity of this point with the 2-point theory.

      The 2-point theory for point velocity looks like this:

      ^N v^P = ^N v^O + ^N omega^B x r^OP

      @@ -1157,7 +1157,7 @@
      Documentation Version
      -vel(frame)[source]#
      +vel(frame)[source]#

      The velocity Vector of this Point in the ReferenceFrame.

      Parameters:
      @@ -1200,7 +1200,7 @@
      Documentation Version

      kinematic_equations#

      -sympy.physics.vector.functions.get_motion_params(frame, **kwargs)[source]#
      +sympy.physics.vector.functions.get_motion_params(frame, **kwargs)[source]#

      Returns the three motion parameters - (acceleration, velocity, and position) as vectorial functions of time in the given frame.

      If a higher order differential function is provided, the lower order @@ -1272,7 +1272,7 @@

      Documentation Version
      -sympy.physics.vector.functions.kinematic_equations(speeds, coords, rot_type, rot_order='')[source]#
      +sympy.physics.vector.functions.kinematic_equations(speeds, coords, rot_type, rot_order='')[source]#

      Gives equations relating the qdot’s to u’s for a rotation type.

      Supply rotation type and order as in orient. Speeds are assumed to be body-fixed; if we are defining the orientation of B in A using by rot_type, @@ -1313,7 +1313,7 @@

      Documentation Version
      -sympy.physics.vector.functions.partial_velocity(vel_vecs, gen_speeds, frame)[source]#
      +sympy.physics.vector.functions.partial_velocity(vel_vecs, gen_speeds, frame)[source]#

      Returns a list of partial velocities with respect to the provided generalized speeds in the given reference frame for each of the supplied velocity vectors.

      diff --git a/dev/modules/physics/vector/api/printing.html b/dev/modules/physics/vector/api/printing.html index b4271f3031b..b0b78201712 100644 --- a/dev/modules/physics/vector/api/printing.html +++ b/dev/modules/physics/vector/api/printing.html @@ -741,7 +741,7 @@
      Documentation Version

      Printing (Docstrings)#

      -sympy.physics.vector.printing.init_vprinting(**kwargs)[source]#
      +sympy.physics.vector.printing.init_vprinting(**kwargs)[source]#

      Initializes time derivative printing for all SymPy objects, i.e. any functions of time will be displayed in a more compact notation. The main benefit of this is for printing of time derivatives; instead of @@ -889,7 +889,7 @@

      Printing (Docstrings)
      -sympy.physics.vector.printing.vprint(expr, **settings)[source]#
      +sympy.physics.vector.printing.vprint(expr, **settings)[source]#

      Function for printing of expressions generated in the sympy.physics vector package.

      Extends SymPy’s StrPrinter, takes the same setting accepted by SymPy’s @@ -919,7 +919,7 @@

      Printing (Docstrings)
      -sympy.physics.vector.printing.vpprint(expr, **settings)[source]#
      +sympy.physics.vector.printing.vpprint(expr, **settings)[source]#

      Function for pretty printing of expressions generated in the sympy.physics vector package.

      Mainly used for expressions not inside a vector; the output of running @@ -941,7 +941,7 @@

      Printing (Docstrings)
      -sympy.physics.vector.printing.vlatex(expr, **settings)[source]#
      +sympy.physics.vector.printing.vlatex(expr, **settings)[source]#

      Function for printing latex representation of sympy.physics.vector objects.

      For latex representation of Vectors, Dyadics, and dynamicsymbols. Takes the diff --git a/dev/modules/physics/wigner.html b/dev/modules/physics/wigner.html index 3e06d5a9c30..0ae5ed2dff8 100644 --- a/dev/modules/physics/wigner.html +++ b/dev/modules/physics/wigner.html @@ -807,7 +807,7 @@

      Authors#<
      -sympy.physics.wigner.clebsch_gordan(j_1, j_2, j_3, m_1, m_2, m_3)[source]#
      +sympy.physics.wigner.clebsch_gordan(j_1, j_2, j_3, m_1, m_2, m_3)[source]#

      Calculates the Clebsch-Gordan coefficient. \(\left\langle j_1 m_1 \; j_2 m_2 | j_3 m_3 \right\rangle\).

      The reference for this function is [Edmonds74].

      @@ -852,7 +852,7 @@

      Authors#<
      -sympy.physics.wigner.dot_rot_grad_Ynm(j, p, l, m, theta, phi)[source]#
      +sympy.physics.wigner.dot_rot_grad_Ynm(j, p, l, m, theta, phi)[source]#

      Returns dot product of rotational gradients of spherical harmonics.

      Explanation

      This function returns the right hand side of the following expression:

      @@ -877,7 +877,7 @@

      Authors#<
      -sympy.physics.wigner.gaunt(l_1, l_2, l_3, m_1, m_2, m_3, prec=None)[source]#
      +sympy.physics.wigner.gaunt(l_1, l_2, l_3, m_1, m_2, m_3, prec=None)[source]#

      Calculate the Gaunt coefficient.

      Parameters:
      @@ -972,7 +972,7 @@

      Authors#<
      -sympy.physics.wigner.racah(aa, bb, cc, dd, ee, ff, prec=None)[source]#
      +sympy.physics.wigner.racah(aa, bb, cc, dd, ee, ff, prec=None)[source]#

      Calculate the Racah symbol \(W(a,b,c,d;e,f)\).

      Parameters:
      @@ -1020,7 +1020,7 @@

      Authors#<
      -sympy.physics.wigner.real_gaunt(l_1, l_2, l_3, m_1, m_2, m_3, prec=None)[source]#
      +sympy.physics.wigner.real_gaunt(l_1, l_2, l_3, m_1, m_2, m_3, prec=None)[source]#

      Calculate the real Gaunt coefficient.

      Parameters:
      @@ -1136,7 +1136,7 @@

      Authors#<
      -sympy.physics.wigner.wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3)[source]#
      +sympy.physics.wigner.wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3)[source]#

      Calculate the Wigner 3j symbol \(\operatorname{Wigner3j}(j_1,j_2,j_3,m_1,m_2,m_3)\).

      Parameters:
      @@ -1214,7 +1214,7 @@

      Authors#<
      -sympy.physics.wigner.wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None)[source]#
      +sympy.physics.wigner.wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None)[source]#

      Calculate the Wigner 6j symbol \(\operatorname{Wigner6j}(j_1,j_2,j_3,j_4,j_5,j_6)\).

      Parameters:
      @@ -1301,7 +1301,7 @@

      Authors#<
      -sympy.physics.wigner.wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None)[source]#
      +sympy.physics.wigner.wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None)[source]#

      Calculate the Wigner 9j symbol \(\operatorname{Wigner9j}(j_1,j_2,j_3,j_4,j_5,j_6,j_7,j_8,j_9)\).

      @@ -1353,7 +1353,7 @@

      Authors#<
      -sympy.physics.wigner.wigner_d(J, alpha, beta, gamma)[source]#
      +sympy.physics.wigner.wigner_d(J, alpha, beta, gamma)[source]#

      Return the Wigner D matrix for angular momentum J.

      Returns:
      @@ -1403,7 +1403,7 @@

      Authors#<
      -sympy.physics.wigner.wigner_d_small(J, beta)[source]#
      +sympy.physics.wigner.wigner_d_small(J, beta)[source]#

      Return the small Wigner d matrix for angular momentum J.

      Returns:
      diff --git a/dev/modules/plotting.html b/dev/modules/plotting.html index 72da72e3dc0..433cc0d8557 100644 --- a/dev/modules/plotting.html +++ b/dev/modules/plotting.html @@ -762,7 +762,7 @@

      Introduction#

      -class sympy.plotting.plot.Plot(*args, title=None, xlabel=None, ylabel=None, zlabel=None, aspect_ratio='auto', xlim=None, ylim=None, axis_center='auto', axis=True, xscale='linear', yscale='linear', legend=False, autoscale=True, margin=0, annotations=None, markers=None, rectangles=None, fill=None, backend='default', size=None, **kwargs)[source]#
      +class sympy.plotting.plot.Plot(*args, title=None, xlabel=None, ylabel=None, zlabel=None, aspect_ratio='auto', xlim=None, ylim=None, axis_center='auto', axis=True, xscale='linear', yscale='linear', legend=False, autoscale=True, margin=0, annotations=None, markers=None, rectangles=None, fill=None, backend='default', size=None, **kwargs)[source]#

      Base class for all backends. A backend represents the plotting library, which implements the necessary functionalities in order to use SymPy plotting functions.

      @@ -919,7 +919,7 @@

      Plot Class
      -append(arg)[source]#
      +append(arg)[source]#

      Adds an element from a plot’s series to an existing plot.

      Examples

      Consider two Plot objects, p1 and p2. To add the @@ -950,7 +950,7 @@

      Plot Class
      -extend(arg)[source]#
      +extend(arg)[source]#

      Adds all series from another plot.

      Examples

      Consider two Plot objects, p1 and p2. To add the @@ -1006,7 +1006,7 @@

      Plot Class#

      -sympy.plotting.plot.plot(*args, show=True, **kwargs)[source]#
      +sympy.plotting.plot.plot(*args, show=True, **kwargs)[source]#

      Plots a function of a single variable as a curve.

      Parameters:
      @@ -1215,7 +1215,7 @@

      Plotting Function Reference
      -sympy.plotting.plot.plot_parametric(*args, show=True, **kwargs)[source]#
      +sympy.plotting.plot.plot_parametric(*args, show=True, **kwargs)[source]#

      Plots a 2D parametric curve.

      Parameters:
      @@ -1400,7 +1400,7 @@

      Plotting Function Reference
      -sympy.plotting.plot.plot3d(*args, show=True, **kwargs)[source]#
      +sympy.plotting.plot.plot3d(*args, show=True, **kwargs)[source]#

      Plots a 3D surface plot.

      Usage

      Single plot

      @@ -1499,7 +1499,7 @@

      Plotting Function Reference
      -sympy.plotting.plot.plot3d_parametric_line(*args, show=True, **kwargs)[source]#
      +sympy.plotting.plot.plot3d_parametric_line(*args, show=True, **kwargs)[source]#

      Plots a 3D parametric line plot.

      Usage

      Single plot:

      @@ -1585,7 +1585,7 @@

      Plotting Function Reference
      -sympy.plotting.plot.plot3d_parametric_surface(*args, show=True, **kwargs)[source]#
      +sympy.plotting.plot.plot3d_parametric_surface(*args, show=True, **kwargs)[source]#

      Plots a 3D parametric surface plot.

      Explanation

      Single plot.

      @@ -1661,7 +1661,7 @@

      Plotting Function Reference
      -sympy.plotting.plot_implicit.plot_implicit(expr, x_var=None, y_var=None, adaptive=True, depth=0, n=300, line_color='blue', show=True, **kwargs)[source]#
      +sympy.plotting.plot_implicit.plot_implicit(expr, x_var=None, y_var=None, adaptive=True, depth=0, n=300, line_color='blue', show=True, **kwargs)[source]#

      A plot function to plot implicit equations / inequalities.

      Arguments

        @@ -1809,7 +1809,7 @@

        Plotting Function Reference#

        -class sympy.plotting.plot.PlotGrid(nrows, ncolumns, *args, show=True, size=None, **kwargs)[source]#
        +class sympy.plotting.plot.PlotGrid(nrows, ncolumns, *args, show=True, size=None, **kwargs)[source]#

        This class helps to plot subplots from already created SymPy plots in a single figure.

        Examples

        @@ -1905,7 +1905,7 @@

        PlotGrid Class#

        -class sympy.plotting.series.BaseSeries(*args, **kwargs)[source]#
        +class sympy.plotting.series.BaseSeries(*args, **kwargs)[source]#

        Base class for the data objects containing stuff to be plotted.

        Notes

        The backend should check if it supports the data series that is given. @@ -1920,7 +1920,7 @@

        Series Classes
        -eval_color_func(*args)[source]#
        +eval_color_func(*args)[source]#

        Evaluate the color function.

        Parameters:
        @@ -1946,7 +1946,7 @@

        Series Classes
        -get_data()[source]#
        +get_data()[source]#

        Compute and returns the numerical data.

        The number of parameters returned by this method depends on the specific instance. If s is the series, make sure to read @@ -1955,7 +1955,7 @@

        Series Classes
        -get_label(use_latex=False, wrapper='$%s$')[source]#
        +get_label(use_latex=False, wrapper='$%s$')[source]#

        Return the label to be used to display the expression.

        Parameters:
        @@ -2003,7 +2003,7 @@

        Series Classes
        -class sympy.plotting.series.Line2DBaseSeries(**kwargs)[source]#
        +class sympy.plotting.series.Line2DBaseSeries(**kwargs)[source]#

        A base class for 2D lines.

        • adding the label, steps and only_integers options

        • @@ -2012,7 +2012,7 @@

          Series Classes
          -get_data()[source]#
          +get_data()[source]#

          Return coordinates for plotting the line.

          Returns:
          @@ -2043,11 +2043,11 @@

          Series Classes
          -class sympy.plotting.series.LineOver1DRangeSeries(expr, var_start_end, label='', **kwargs)[source]#
          +class sympy.plotting.series.LineOver1DRangeSeries(expr, var_start_end, label='', **kwargs)[source]#

          Representation for a line consisting of a SymPy expression over a range.

          -get_points()[source]#
          +get_points()[source]#

          Return lists of coordinates for plotting. Depending on the adaptive option, this function will either use an adaptive algorithm or it will uniformly sample the expression over the provided range.

          @@ -2073,39 +2073,39 @@

          Series Classes
          -class sympy.plotting.series.Parametric2DLineSeries(expr_x, expr_y, var_start_end, label='', **kwargs)[source]#
          +class sympy.plotting.series.Parametric2DLineSeries(expr_x, expr_y, var_start_end, label='', **kwargs)[source]#

          Representation for a line consisting of two parametric SymPy expressions over a range.

          -class sympy.plotting.series.Line3DBaseSeries[source]#
          +class sympy.plotting.series.Line3DBaseSeries[source]#

          A base class for 3D lines.

          Most of the stuff is derived from Line2DBaseSeries.

          -class sympy.plotting.series.Parametric3DLineSeries(expr_x, expr_y, expr_z, var_start_end, label='', **kwargs)[source]#
          +class sympy.plotting.series.Parametric3DLineSeries(expr_x, expr_y, expr_z, var_start_end, label='', **kwargs)[source]#

          Representation for a 3D line consisting of three parametric SymPy expressions and a range.

          -class sympy.plotting.series.SurfaceBaseSeries(*args, **kwargs)[source]#
          +class sympy.plotting.series.SurfaceBaseSeries(*args, **kwargs)[source]#

          A base class for 3D surfaces.

          -class sympy.plotting.series.SurfaceOver2DRangeSeries(expr, var_start_end_x, var_start_end_y, label='', **kwargs)[source]#
          +class sympy.plotting.series.SurfaceOver2DRangeSeries(expr, var_start_end_x, var_start_end_y, label='', **kwargs)[source]#

          Representation for a 3D surface consisting of a SymPy expression and 2D range.

          -get_data()[source]#
          +get_data()[source]#

          Return arrays of coordinates for plotting.

          Returns:
          @@ -2127,7 +2127,7 @@

          Series Classes
          -get_meshes()[source]#
          +get_meshes()[source]#

          Return the x,y,z coordinates for plotting the surface. This function is available for back-compatibility purposes. Consider using get_data() instead.

          @@ -2137,12 +2137,12 @@

          Series Classes
          -class sympy.plotting.series.ParametricSurfaceSeries(expr_x, expr_y, expr_z, var_start_end_u, var_start_end_v, label='', **kwargs)[source]#
          +class sympy.plotting.series.ParametricSurfaceSeries(expr_x, expr_y, expr_z, var_start_end_u, var_start_end_v, label='', **kwargs)[source]#

          Representation for a 3D surface consisting of three parametric SymPy expressions and a range.

          -get_data()[source]#
          +get_data()[source]#

          Return arrays of coordinates for plotting.

          Returns:
          @@ -2172,7 +2172,7 @@

          Series Classes
          -get_meshes()[source]#
          +get_meshes()[source]#

          Return the x,y,z coordinates for plotting the surface. This function is available for back-compatibility purposes. Consider using get_data() instead.

          @@ -2182,11 +2182,11 @@

          Series Classes
          -class sympy.plotting.series.ImplicitSeries(expr, var_start_end_x, var_start_end_y, label='', **kwargs)[source]#
          +class sympy.plotting.series.ImplicitSeries(expr, var_start_end_x, var_start_end_y, label='', **kwargs)[source]#

          Representation for 2D Implicit plot.

          -get_data()[source]#
          +get_data()[source]#

          Returns numerical data.

          Returns:
          @@ -2216,7 +2216,7 @@

          Series Classes
          -get_label(use_latex=False, wrapper='$%s$')[source]#
          +get_label(use_latex=False, wrapper='$%s$')[source]#

          Return the label to be used to display the expression.

          Parameters:
          @@ -2244,12 +2244,12 @@

          Series Classes#

          -class sympy.plotting.plot.MatplotlibBackend(*series, **kwargs)[source]#
          +class sympy.plotting.plot.MatplotlibBackend(*series, **kwargs)[source]#

          This class implements the functionalities to use Matplotlib with SymPy plotting functions.

          -static get_segments(x, y, z=None)[source]#
          +static get_segments(x, y, z=None)[source]#

          Convert two list of coordinates to a list of segments to be used with Matplotlib’s LineCollection.

          @@ -2272,7 +2272,7 @@

          Backends
          -process_series()[source]#
          +process_series()[source]#

          Iterates over every Plot object and further calls _process_series()

          @@ -2281,7 +2281,7 @@

          Backends
          -class sympy.plotting.plot.TextBackend(*args, **kwargs)[source]#
          +class sympy.plotting.plot.TextBackend(*args, **kwargs)[source]#
          @@ -2515,7 +2515,7 @@

          Using Custom Color Functions#

          -sympy.plotting.textplot.textplot(expr, a, b, W=55, H=21)[source]#
          +sympy.plotting.textplot.textplot(expr, a, b, W=55, H=21)[source]#

          Print a crude ASCII art plot of the SymPy expression ‘expr’ (which should contain a single symbol, e.g. x or something else) over the interval [a, b].

          diff --git a/dev/modules/polys/agca.html b/dev/modules/polys/agca.html index 41f094990c8..e784fdedb8a 100644 --- a/dev/modules/polys/agca.html +++ b/dev/modules/polys/agca.html @@ -839,11 +839,11 @@

          Base Rings
          -class sympy.polys.domains.ring.Ring[source]
          +class sympy.polys.domains.ring.Ring[source]

          Represents a ring domain.

          -free_module(rank)[source]
          +free_module(rank)[source]

          Generate a free module of rank rank over self.

          >>> from sympy.abc import x
           >>> from sympy import QQ
          @@ -855,7 +855,7 @@ 

          Base Rings
          -ideal(*gens)[source]
          +ideal(*gens)[source]

          Generate an ideal of self.

          >>> from sympy.abc import x
           >>> from sympy import QQ
          @@ -867,7 +867,7 @@ 

          Base Rings
          -quotient_ring(e)[source]
          +quotient_ring(e)[source]

          Form a quotient ring of self.

          Here e can be an ideal or an iterable.

          >>> from sympy.abc import x
          @@ -889,13 +889,13 @@ 

          Base Rings
          -sympy.polys.domains.polynomialring.PolynomialRing(domain_or_ring, symbols=None, order=None)[source]
          +sympy.polys.domains.polynomialring.PolynomialRing(domain_or_ring, symbols=None, order=None)[source]

          A class for representing multivariate polynomial rings.

          -class sympy.polys.domains.quotientring.QuotientRing(ring, ideal)[source]
          +class sympy.polys.domains.quotientring.QuotientRing(ring, ideal)[source]

          Class representing (commutative) quotient rings.

          You should not usually instantiate this by hand, instead use the constructor from the base ring in the construction.

          @@ -975,7 +975,7 @@

          Modules, Ideals and their Elementary Properties
          -class sympy.polys.agca.modules.Module(ring)[source]#
          +class sympy.polys.agca.modules.Module(ring)[source]#

          Abstract base class for modules.

          Do not instantiate - use ring explicit constructors instead:

          >>> from sympy import QQ
          @@ -1000,56 +1000,56 @@ 

          Modules, Ideals and their Elementary Properties
          -contains(elem)[source]#
          +contains(elem)[source]#

          Return True if elem is an element of this module.

          -convert(elem, M=None)[source]#
          +convert(elem, M=None)[source]#

          Convert elem into internal representation of this module.

          If M is not None, it should be a module containing it.

          -identity_hom()[source]#
          +identity_hom()[source]#

          Return the identity homomorphism on self.

          -is_submodule(other)[source]#
          +is_submodule(other)[source]#

          Returns True if other is a submodule of self.

          -is_zero()[source]#
          +is_zero()[source]#

          Returns True if self is a zero module.

          -multiply_ideal(other)[source]#
          +multiply_ideal(other)[source]#

          Multiply self by the ideal other.

          -quotient_module(other)[source]#
          +quotient_module(other)[source]#

          Generate a quotient module.

          -submodule(*gens)[source]#
          +submodule(*gens)[source]#

          Generate a submodule.

          -subset(other)[source]#
          +subset(other)[source]#

          Returns True if other is is a subset of self.

          Examples

          >>> from sympy.abc import x
          @@ -1067,7 +1067,7 @@ 

          Modules, Ideals and their Elementary Properties
          -class sympy.polys.agca.modules.FreeModule(ring, rank)[source]#
          +class sympy.polys.agca.modules.FreeModule(ring, rank)[source]#

          Abstract base class for free modules.

          Additional attributes:

            @@ -1079,7 +1079,7 @@

            Modules, Ideals and their Elementary Properties
            -basis()[source]#
            +basis()[source]#

            Return a set of basis elements.

            Examples

            >>> from sympy.abc import x
            @@ -1092,7 +1092,7 @@ 

            Modules, Ideals and their Elementary Properties
            -convert(elem, M=None)[source]#
            +convert(elem, M=None)[source]#

            Convert elem into the internal representation.

            This method is called implicitly whenever computations involve elements not in the internal representation.

            @@ -1108,13 +1108,13 @@

            Modules, Ideals and their Elementary Properties
            -dtype[source]#
            +dtype[source]#

            alias of FreeModuleElement

          -identity_hom()[source]#
          +identity_hom()[source]#

          Return the identity homomorphism on self.

          Examples

          >>> from sympy.abc import x
          @@ -1129,7 +1129,7 @@ 

          Modules, Ideals and their Elementary Properties
          -is_submodule(other)[source]#
          +is_submodule(other)[source]#

          Returns True if other is a submodule of self.

          Examples

          >>> from sympy.abc import x
          @@ -1148,7 +1148,7 @@ 

          Modules, Ideals and their Elementary Properties
          -is_zero()[source]#
          +is_zero()[source]#

          Returns True if self is a zero module.

          (If, as this implementation assumes, the coefficient ring is not the zero ring, then this is equivalent to the rank being zero.)

          @@ -1165,7 +1165,7 @@

          Modules, Ideals and their Elementary Properties
          -multiply_ideal(other)[source]#
          +multiply_ideal(other)[source]#

          Multiply self by the ideal other.

          Examples

          >>> from sympy.abc import x
          @@ -1180,7 +1180,7 @@ 

          Modules, Ideals and their Elementary Properties
          -quotient_module(submodule)[source]#
          +quotient_module(submodule)[source]#

          Return a quotient module.

          Examples

          >>> from sympy.abc import x
          @@ -1201,13 +1201,13 @@ 

          Modules, Ideals and their Elementary Properties
          -class sympy.polys.agca.modules.FreeModuleElement(module, data)[source]#
          +class sympy.polys.agca.modules.FreeModuleElement(module, data)[source]#

          Element of a free module. Data stored as a tuple.

          -class sympy.polys.agca.modules.SubModule(gens, container)[source]#
          +class sympy.polys.agca.modules.SubModule(gens, container)[source]#

          Base class for submodules.

          Attributes:

            @@ -1229,7 +1229,7 @@

            Modules, Ideals and their Elementary Properties
            -convert(elem, M=None)[source]#
            +convert(elem, M=None)[source]#

            Convert elem into the internal represantition.

            Mostly called implicitly.

            Examples

            @@ -1244,7 +1244,7 @@

            Modules, Ideals and their Elementary Properties
            -identity_hom()[source]#
            +identity_hom()[source]#

            Return the identity homomorphism on self.

            Examples

            >>> from sympy.abc import x
            @@ -1259,7 +1259,7 @@ 

            Modules, Ideals and their Elementary Properties
            -in_terms_of_generators(e)[source]#
            +in_terms_of_generators(e)[source]#

            Express element e of self in terms of the generators.

            Examples

            >>> from sympy.abc import x
            @@ -1274,7 +1274,7 @@ 

            Modules, Ideals and their Elementary Properties
            -inclusion_hom()[source]#
            +inclusion_hom()[source]#

            Return a homomorphism representing the inclusion map of self.

            That is, the natural map from self to self.container.

            Examples

            @@ -1290,7 +1290,7 @@

            Modules, Ideals and their Elementary Properties
            -intersect(other, **options)[source]#
            +intersect(other, **options)[source]#

            Returns the intersection of self with submodule other.

            Examples

            >>> from sympy.abc import x, y
            @@ -1318,7 +1318,7 @@ 

            Modules, Ideals and their Elementary Properties
            -is_full_module()[source]#
            +is_full_module()[source]#

            Return True if self is the entire free module.

            Examples

            >>> from sympy.abc import x
            @@ -1334,7 +1334,7 @@ 

            Modules, Ideals and their Elementary Properties
            -is_submodule(other)[source]#
            +is_submodule(other)[source]#

            Returns True if other is a submodule of self.

            >>> from sympy.abc import x
             >>> from sympy import QQ
            @@ -1353,7 +1353,7 @@ 

            Modules, Ideals and their Elementary Properties
            -is_zero()[source]#
            +is_zero()[source]#

            Return True if self is a zero module.

            Examples

            >>> from sympy.abc import x
            @@ -1369,7 +1369,7 @@ 

            Modules, Ideals and their Elementary Properties
            -module_quotient(other, **options)[source]#
            +module_quotient(other, **options)[source]#

            Returns the module quotient of self by submodule other.

            That is, if self is the module \(M\) and other is \(N\), then return the ideal \(\{f \in R | fN \subset M\}\).

            @@ -1401,7 +1401,7 @@

            Modules, Ideals and their Elementary Properties
            -multiply_ideal(I)[source]#
            +multiply_ideal(I)[source]#

            Multiply self by the ideal I.

            Examples

            >>> from sympy.abc import x
            @@ -1416,7 +1416,7 @@ 

            Modules, Ideals and their Elementary Properties
            -quotient_module(other, **opts)[source]#
            +quotient_module(other, **opts)[source]#

            Return a quotient module.

            This is the same as taking a submodule of a quotient of the containing module.

            @@ -1439,7 +1439,7 @@

            Modules, Ideals and their Elementary Properties
            -reduce_element(x)[source]#
            +reduce_element(x)[source]#

            Reduce the element x of our ring modulo the ideal self.

            Here “reduce” has no specific meaning, it could return a unique normal form, simplify the expression a bit, or just do nothing.

            @@ -1447,7 +1447,7 @@

            Modules, Ideals and their Elementary Properties
            -submodule(*gens)[source]#
            +submodule(*gens)[source]#

            Generate a submodule.

            Examples

            >>> from sympy.abc import x
            @@ -1461,7 +1461,7 @@ 

            Modules, Ideals and their Elementary Properties
            -syzygy_module(**opts)[source]#
            +syzygy_module(**opts)[source]#

            Compute the syzygy module of the generators of self.

            Suppose \(M\) is generated by \(f_1, \ldots, f_n\) over the ring \(R\). Consider the homomorphism \(\phi: R^n \to M\), given by @@ -1487,7 +1487,7 @@

            Modules, Ideals and their Elementary Properties
            -union(other)[source]#
            +union(other)[source]#

            Returns the module generated by the union of self and other.

            Examples

            >>> from sympy.abc import x
            @@ -1521,7 +1521,7 @@ 

            Modules, Ideals and their Elementary Properties
            -class sympy.polys.agca.ideals.Ideal(ring)[source]#
            +class sympy.polys.agca.ideals.Ideal(ring)[source]#

            Abstract base class for ideals.

            Do not instantiate - use explicit constructors in the ring class instead:

            >>> from sympy import QQ
            @@ -1555,7 +1555,7 @@ 

            Modules, Ideals and their Elementary Properties
            -contains(elem)[source]#
            +contains(elem)[source]#

            Return True if elem is an element of this ideal.

            Examples

            >>> from sympy.abc import x
            @@ -1570,19 +1570,19 @@ 

            Modules, Ideals and their Elementary Properties
            -depth()[source]#
            +depth()[source]#

            Compute the depth of self.

          -height()[source]#
          +height()[source]#

          Compute the height of self.

          -intersect(J)[source]#
          +intersect(J)[source]#

          Compute the intersection of self with ideal J.

          Examples

          >>> from sympy.abc import x, y
          @@ -1596,49 +1596,49 @@ 

          Modules, Ideals and their Elementary Properties
          -is_maximal()[source]#
          +is_maximal()[source]#

          Return True if self is a maximal ideal.

          -is_primary()[source]#
          +is_primary()[source]#

          Return True if self is a primary ideal.

          -is_prime()[source]#
          +is_prime()[source]#

          Return True if self is a prime ideal.

          -is_principal()[source]#
          +is_principal()[source]#

          Return True if self is a principal ideal.

          -is_radical()[source]#
          +is_radical()[source]#

          Return True if self is a radical ideal.

          -is_whole_ring()[source]#
          +is_whole_ring()[source]#

          Return True if self is the whole ring.

          -is_zero()[source]#
          +is_zero()[source]#

          Return True if self is the zero ideal.

          -product(J)[source]#
          +product(J)[source]#

          Compute the ideal product of self and J.

          That is, compute the ideal generated by products \(xy\), for \(x\) an element of self and \(y \in J\).

          @@ -1653,7 +1653,7 @@

          Modules, Ideals and their Elementary Properties
          -quotient(J, **opts)[source]#
          +quotient(J, **opts)[source]#

          Compute the ideal quotient of self by J.

          That is, if self is the ideal \(I\), compute the set \(I : J = \{x \in R | xJ \subset I \}\).

          @@ -1669,13 +1669,13 @@

          Modules, Ideals and their Elementary Properties
          -radical()[source]#
          +radical()[source]#

          Compute the radical of self.

          -reduce_element(x)[source]#
          +reduce_element(x)[source]#

          Reduce the element x of our ring modulo the ideal self.

          Here “reduce” has no specific meaning: it could return a unique normal form, simplify the expression a bit, or just do nothing.

          @@ -1683,7 +1683,7 @@

          Modules, Ideals and their Elementary Properties
          -saturate(J)[source]#
          +saturate(J)[source]#

          Compute the ideal saturation of self by J.

          That is, if self is the ideal \(I\), compute the set \(I : J^\infty = \{x \in R | xJ^n \subset I \text{ for some } n\}\).

          @@ -1691,7 +1691,7 @@

          Modules, Ideals and their Elementary Properties
          -subset(other)[source]#
          +subset(other)[source]#

          Returns True if other is is a subset of self.

          Here other may be an ideal.

          Examples

          @@ -1710,7 +1710,7 @@

          Modules, Ideals and their Elementary Properties
          -union(J)[source]#
          +union(J)[source]#

          Compute the ideal generated by the union of self and J.

          Examples

          >>> from sympy.abc import x
          @@ -1732,7 +1732,7 @@ 

          Modules, Ideals and their Elementary Properties
          -class sympy.polys.agca.modules.QuotientModule(ring, base, submodule)[source]#
          +class sympy.polys.agca.modules.QuotientModule(ring, base, submodule)[source]#

          Class for quotient modules.

          Do not instantiate this directly. For subquotients, see the SubQuotientModule class.

          @@ -1744,7 +1744,7 @@

          Modules, Ideals and their Elementary Properties
          -convert(elem, M=None)[source]#
          +convert(elem, M=None)[source]#

          Convert elem into the internal representation.

          This method is called implicitly whenever computations involve elements not in the internal representation.

          @@ -1760,13 +1760,13 @@

          Modules, Ideals and their Elementary Properties
          -dtype[source]#
          +dtype[source]#

          alias of QuotientModuleElement

          -identity_hom()[source]#
          +identity_hom()[source]#

          Return the identity homomorphism on self.

          Examples

          >>> from sympy.abc import x
          @@ -1782,7 +1782,7 @@ 

          Modules, Ideals and their Elementary Properties
          -is_submodule(other)[source]#
          +is_submodule(other)[source]#

          Return True if other is a submodule of self.

          Examples

          >>> from sympy.abc import x
          @@ -1799,7 +1799,7 @@ 

          Modules, Ideals and their Elementary Properties
          -is_zero()[source]#
          +is_zero()[source]#

          Return True if self is a zero module.

          This happens if and only if the base module is the same as the submodule being killed.

          @@ -1817,7 +1817,7 @@

          Modules, Ideals and their Elementary Properties
          -quotient_hom()[source]#
          +quotient_hom()[source]#

          Return the quotient homomorphism to self.

          That is, return a homomorphism representing the natural map from self.base to self.

          @@ -1835,7 +1835,7 @@

          Modules, Ideals and their Elementary Properties
          -submodule(*gens, **opts)[source]#
          +submodule(*gens, **opts)[source]#

          Generate a submodule.

          This is the same as taking a quotient of a submodule of the base module.

          @@ -1853,11 +1853,11 @@

          Modules, Ideals and their Elementary Properties
          -class sympy.polys.agca.modules.QuotientModuleElement(module, data)[source]#
          +class sympy.polys.agca.modules.QuotientModuleElement(module, data)[source]#

          Element of a quotient module.

          -eq(d1, d2)[source]#
          +eq(d1, d2)[source]#

          Equality comparison.

          @@ -1865,7 +1865,7 @@

          Modules, Ideals and their Elementary Properties
          -class sympy.polys.agca.modules.SubQuotientModule(gens, container, **opts)[source]#
          +class sympy.polys.agca.modules.SubQuotientModule(gens, container, **opts)[source]#

          Submodule of a quotient module.

          Equivalently, quotient module of a submodule.

          Do not instantiate this, instead use the submodule or quotient_module @@ -1886,7 +1886,7 @@

          Modules, Ideals and their Elementary Properties
          -is_full_module()[source]#
          +is_full_module()[source]#

          Return True if self is the entire free module.

          Examples

          >>> from sympy.abc import x
          @@ -1902,7 +1902,7 @@ 

          Modules, Ideals and their Elementary Properties
          -quotient_hom()[source]#
          +quotient_hom()[source]#

          Return the quotient homomorphism to self.

          That is, return the natural map from self.base to self.

          Examples

          @@ -1981,7 +1981,7 @@

          Module Homomorphisms and Syzygies
          -sympy.polys.agca.homomorphisms.homomorphism(domain, codomain, matrix)[source]#
          +sympy.polys.agca.homomorphisms.homomorphism(domain, codomain, matrix)[source]#

          Create a homomorphism object.

          This function tries to build a homomorphism from domain to codomain via the matrix matrix.

          @@ -2042,7 +2042,7 @@

          Module Homomorphisms and Syzygies
          -class sympy.polys.agca.homomorphisms.ModuleHomomorphism(domain, codomain)[source]#
          +class sympy.polys.agca.homomorphisms.ModuleHomomorphism(domain, codomain)[source]#

          Abstract base class for module homomoprhisms. Do not instantiate.

          Instead, use the homomorphism function:

          >>> from sympy import QQ
          @@ -2080,7 +2080,7 @@ 

          Module Homomorphisms and Syzygies
          -image()[source]#
          +image()[source]#

          Compute the image of self.

          That is, if self is the homomorphism \(\phi: M \to N\), then compute \(im(\phi) = \{\phi(x) | x \in M \}\). This is a submodule of \(N\).

          @@ -2099,7 +2099,7 @@

          Module Homomorphisms and Syzygies
          -is_injective()[source]#
          +is_injective()[source]#

          Return True if self is injective.

          That is, check if the elements of the domain are mapped to the same codomain element.

          @@ -2121,7 +2121,7 @@

          Module Homomorphisms and Syzygies
          -is_isomorphism()[source]#
          +is_isomorphism()[source]#

          Return True if self is an isomorphism.

          That is, check if every element of the codomain has precisely one preimage. Equivalently, self is both injective and surjective.

          @@ -2144,7 +2144,7 @@

          Module Homomorphisms and Syzygies
          -is_surjective()[source]#
          +is_surjective()[source]#

          Return True if self is surjective.

          That is, check if every element of the codomain has at least one preimage.

          @@ -2166,7 +2166,7 @@

          Module Homomorphisms and Syzygies
          -is_zero()[source]#
          +is_zero()[source]#

          Return True if self is a zero morphism.

          That is, check if every element of the domain is mapped to zero under self.

          @@ -2190,7 +2190,7 @@

          Module Homomorphisms and Syzygies
          -kernel()[source]#
          +kernel()[source]#

          Compute the kernel of self.

          That is, if self is the homomorphism \(\phi: M \to N\), then compute \(ker(\phi) = \{x \in M | \phi(x) = 0\}\). This is a submodule of \(M\).

          @@ -2209,7 +2209,7 @@

          Module Homomorphisms and Syzygies
          -quotient_codomain(sm)[source]#
          +quotient_codomain(sm)[source]#

          Return self with codomain replaced by codomain/sm.

          Here sm must be a submodule of self.codomain.

          Examples

          @@ -2241,7 +2241,7 @@

          Module Homomorphisms and Syzygies
          -quotient_domain(sm)[source]#
          +quotient_domain(sm)[source]#

          Return self with domain replaced by domain/sm.

          Here sm must be a submodule of self.kernel().

          Examples

          @@ -2266,7 +2266,7 @@

          Module Homomorphisms and Syzygies
          -restrict_codomain(sm)[source]#
          +restrict_codomain(sm)[source]#

          Return self, with codomain restricted to to sm.

          Here sm has to be a submodule of self.codomain containing the image.

          @@ -2292,7 +2292,7 @@

          Module Homomorphisms and Syzygies
          -restrict_domain(sm)[source]#
          +restrict_domain(sm)[source]#

          Return self, with the domain restricted to sm.

          Here sm has to be a submodule of self.domain.

          Examples

          @@ -2345,7 +2345,7 @@

          Finite Extensions\(t\).

          -class sympy.polys.agca.extensions.MonogenicFiniteExtension(mod)[source]#
          +class sympy.polys.agca.extensions.MonogenicFiniteExtension(mod)[source]#

          Finite extension generated by an integral element.

          The generator is defined by a monic univariate polynomial derived from the argument mod.

          @@ -2381,7 +2381,7 @@

          Finite Extensions
          -dtype[source]#
          +dtype[source]#

          alias of ExtensionElement

          @@ -2389,7 +2389,7 @@

          Finite Extensions
          -class sympy.polys.agca.extensions.ExtensionElement(rep, ext)[source]#
          +class sympy.polys.agca.extensions.ExtensionElement(rep, ext)[source]#

          Element of a finite extension.

          A class of univariate polynomials modulo the modulus of the extension ext. It is represented by the @@ -2398,7 +2398,7 @@

          Finite Extensions
          -inverse()[source]#
          +inverse()[source]#

          Multiplicative inverse.

          Raises:
          diff --git a/dev/modules/polys/domainmatrix.html b/dev/modules/polys/domainmatrix.html index 57bb623f5d5..b9249cca0a5 100644 --- a/dev/modules/polys/domainmatrix.html +++ b/dev/modules/polys/domainmatrix.html @@ -772,7 +772,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.domainmatrix.DM(rows, domain)[source]#
          +sympy.polys.matrices.domainmatrix.DM(rows, domain)[source]#

          Convenient alias for DomainMatrix.from_list

          Examples

          >>> from sympy import ZZ
          @@ -789,7 +789,7 @@ 

          What is domainmatrix?
          -class sympy.polys.matrices.domainmatrix.DomainMatrix(rows, shape, domain, *, fmt=None)[source]#
          +class sympy.polys.matrices.domainmatrix.DomainMatrix(rows, shape, domain, *, fmt=None)[source]#

          Associate Matrix with Domain

          Explanation

          DomainMatrix uses Domain for its internal representation @@ -826,7 +826,7 @@

          What is domainmatrix?
          -add(B)[source]#
          +add(B)[source]#

          Adds two DomainMatrix matrices of the same Domain

          Parameters:
          @@ -875,7 +875,7 @@

          What is domainmatrix?
          -adj_det()[source]#
          +adj_det()[source]#

          Adjugate and determinant of a square DomainMatrix.

          Returns:
          @@ -913,7 +913,7 @@

          What is domainmatrix?
          -adj_poly_det(cp=None)[source]#
          +adj_poly_det(cp=None)[source]#

          Return the polynomial \(p\) such that \(p(A) = adj(A)\) and also the determinant of \(A\).

          Examples

          @@ -942,7 +942,7 @@

          What is domainmatrix?
          -adjugate()[source]#
          +adjugate()[source]#

          Adjugate of a square DomainMatrix.

          The adjugate matrix is the transpose of the cofactor matrix and is related to the inverse by:

          @@ -975,7 +975,7 @@

          What is domainmatrix?
          -cancel_denom(denom)[source]#
          +cancel_denom(denom)[source]#

          Cancel factors between a matrix and a denominator.

          Returns a matrix and denominator on lowest terms.

          Requires gcd in the ground domain.

          @@ -1043,7 +1043,7 @@

          What is domainmatrix?
          -cancel_denom_elementwise(denom)[source]#
          +cancel_denom_elementwise(denom)[source]#

          Cancel factors between the elements of a matrix and a denominator.

          Returns a matrix of numerators and matrix of denominators.

          Requires gcd in the ground domain.

          @@ -1082,7 +1082,7 @@

          What is domainmatrix?
          -charpoly()[source]#
          +charpoly()[source]#

          Characteristic polynomial of a square matrix.

          Computes the characteristic polynomial in a fully expanded form using division free arithmetic. If a factorization of the characteristic @@ -1122,7 +1122,7 @@

          What is domainmatrix?
          -charpoly_base()[source]#
          +charpoly_base()[source]#

          Base case for charpoly_factor_blocks() after block decomposition.

          This method is used internally by charpoly_factor_blocks() as the base case for computing the characteristic polynomial of a block. It is @@ -1140,7 +1140,7 @@

          What is domainmatrix?
          -charpoly_berk()[source]#
          +charpoly_berk()[source]#

          Compute the characteristic polynomial using the Berkowitz algorithm.

          This method directly calls the underlying implementation of the Berkowitz algorithm (sympy.polys.matrices.dense.ddm_berk() or @@ -1171,7 +1171,7 @@

          What is domainmatrix?
          -charpoly_factor_blocks()[source]#
          +charpoly_factor_blocks()[source]#

          Partial factorisation of the characteristic polynomial.

          This factorisation arises from a block structure of the matrix (if any) and so the factors are not guaranteed to be irreducible. The @@ -1232,7 +1232,7 @@

          What is domainmatrix?
          -charpoly_factor_list()[source]#
          +charpoly_factor_list()[source]#

          Full factorization of the characteristic polynomial.

          Returns:
          @@ -1281,7 +1281,7 @@

          What is domainmatrix?
          -choose_domain(**opts)[source]#
          +choose_domain(**opts)[source]#

          Convert to a domain found by construct_domain().

          Examples

          >>> from sympy import ZZ
          @@ -1308,7 +1308,7 @@ 

          What is domainmatrix?
          -clear_denoms(convert=False)[source]#
          +clear_denoms(convert=False)[source]#

          Clear denominators, but keep the domain unchanged.

          Examples

          >>> from sympy import QQ
          @@ -1348,7 +1348,7 @@ 

          What is domainmatrix?
          -columnspace()[source]#
          +columnspace()[source]#

          Returns the columnspace for the DomainMatrix

          Returns:
          @@ -1372,7 +1372,7 @@

          What is domainmatrix?
          -content()[source]#
          +content()[source]#

          Return the gcd of the elements of the matrix.

          Requires gcd in the ground domain.

          Examples

          @@ -1391,7 +1391,7 @@

          What is domainmatrix?
          -convert_to(K)[source]#
          +convert_to(K)[source]#

          Change the domain of DomainMatrix to desired domain or field

          Parameters:
          @@ -1424,7 +1424,7 @@

          What is domainmatrix?
          -det()[source]#
          +det()[source]#

          Returns the determinant of a square DomainMatrix.

          Returns:
          @@ -1456,7 +1456,7 @@

          What is domainmatrix?
          -classmethod diag(diagonal, domain, shape=None)[source]#
          +classmethod diag(diagonal, domain, shape=None)[source]#

          Return diagonal matrix with entries from diagonal.

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -1469,7 +1469,7 @@ 

          What is domainmatrix?
          -diagonal()[source]#
          +diagonal()[source]#

          Get the diagonal entries of the matrix as a list.

          Examples

          >>> from sympy import ZZ
          @@ -1487,7 +1487,7 @@ 

          What is domainmatrix?
          -eval_poly(p)[source]#
          +eval_poly(p)[source]#

          Evaluate polynomial function of a matrix \(p(A)\).

          Examples

          >>> from sympy import QQ
          @@ -1509,7 +1509,7 @@ 

          What is domainmatrix?
          -eval_poly_mul(p, B)[source]#
          +eval_poly_mul(p, B)[source]#

          Evaluate polynomial matrix product \(p(A) \times B\).

          Evaluate the polynomial matrix product \(p(A) \times B\) using Horner’s method without creating the matrix \(p(A)\) explicitly. If \(B\) is a @@ -1541,7 +1541,7 @@

          What is domainmatrix?
          -classmethod eye(shape, domain)[source]#
          +classmethod eye(shape, domain)[source]#

          Return identity matrix of size n or shape (m, n).

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -1554,7 +1554,7 @@ 

          What is domainmatrix?
          -classmethod from_Matrix(M, fmt='sparse', **kwargs)[source]#
          +classmethod from_Matrix(M, fmt='sparse', **kwargs)[source]#

          Convert Matrix to DomainMatrix

          Parameters:
          @@ -1589,7 +1589,7 @@

          What is domainmatrix?
          -classmethod from_dict_sympy(nrows, ncols, elemsdict, **kwargs)[source]#
          +classmethod from_dict_sympy(nrows, ncols, elemsdict, **kwargs)[source]#
          Parameters:

          nrows: number of rows

          @@ -1617,7 +1617,7 @@

          What is domainmatrix?
          -classmethod from_dok(dok, shape, domain)[source]#
          +classmethod from_dok(dok, shape, domain)[source]#

          Create DomainMatrix from dictionary of keys (dok) format.

          See to_dok() for explanation.

          @@ -1628,7 +1628,7 @@

          What is domainmatrix?
          -from_flat_nz(elements, data, domain)[source]#
          +from_flat_nz(elements, data, domain)[source]#

          Reconstruct DomainMatrix after calling to_flat_nz().

          See to_flat_nz() for explanation.

          @@ -1639,7 +1639,7 @@

          What is domainmatrix?
          -classmethod from_list(rows, domain)[source]#
          +classmethod from_list(rows, domain)[source]#

          Convert a list of lists into a DomainMatrix

          Parameters:
          @@ -1676,7 +1676,7 @@

          What is domainmatrix?
          -classmethod from_list_flat(elements, shape, domain)[source]#
          +classmethod from_list_flat(elements, shape, domain)[source]#

          Create DomainMatrix from flat list.

          Examples

          >>> from sympy import ZZ
          @@ -1697,7 +1697,7 @@ 

          What is domainmatrix?
          -classmethod from_list_sympy(nrows, ncols, rows, **kwargs)[source]#
          +classmethod from_list_sympy(nrows, ncols, rows, **kwargs)[source]#

          Convert a list of lists of Expr into a DomainMatrix using construct_domain

          Parameters:
          @@ -1725,7 +1725,7 @@

          What is domainmatrix?
          -classmethod from_rep(rep)[source]#
          +classmethod from_rep(rep)[source]#

          Create a new DomainMatrix efficiently from DDM/SDM.

          Parameters:
          @@ -1773,7 +1773,7 @@

          What is domainmatrix?
          -hstack(*B)[source]#
          +hstack(*B)[source]#

          Horizontally stack the given matrices.

          Parameters:
          @@ -1813,7 +1813,7 @@

          What is domainmatrix?
          -inv()[source]#
          +inv()[source]#

          Finds the inverse of the DomainMatrix if exists

          Returns:
          @@ -1852,7 +1852,7 @@

          What is domainmatrix?
          -inv_den(method=None)[source]#
          +inv_den(method=None)[source]#

          Return the inverse as a DomainMatrix with denominator.

          Parameters:
          @@ -1946,7 +1946,7 @@

          What is domainmatrix?
          -lll(delta=MPQ(3, 4))[source]#
          +lll(delta=MPQ(3, 4))[source]#

          Performs the Lenstra–Lenstra–Lovász (LLL) basis reduction algorithm. See [R744] and [R745].

          @@ -2011,7 +2011,7 @@

          What is domainmatrix?
          -lll_transform(delta=MPQ(3, 4))[source]#
          +lll_transform(delta=MPQ(3, 4))[source]#

          Performs the Lenstra–Lenstra–Lovász (LLL) basis reduction algorithm and returns the reduced basis and transformation matrix.

          Explanation

          @@ -2040,7 +2040,7 @@

          What is domainmatrix?
          -lu()[source]#
          +lu()[source]#

          Returns Lower and Upper decomposition of the DomainMatrix

          Returns:
          @@ -2081,7 +2081,7 @@

          What is domainmatrix?
          -lu_solve(rhs)[source]#
          +lu_solve(rhs)[source]#

          Solver for DomainMatrix x in the A*x = B

          Parameters:
          @@ -2127,7 +2127,7 @@

          What is domainmatrix?
          -matmul(B)[source]#
          +matmul(B)[source]#

          Performs matrix multiplication of two DomainMatrix matrices

          Parameters:
          @@ -2166,7 +2166,7 @@

          What is domainmatrix?
          -mul(b)[source]#
          +mul(b)[source]#

          Performs term by term multiplication for the second DomainMatrix w.r.t first DomainMatrix. Returns a DomainMatrix whose rows are list of DomainMatrix matrices created after term by term multiplication.

          @@ -2205,7 +2205,7 @@

          What is domainmatrix?
          -neg()[source]#
          +neg()[source]#

          Returns the negative of DomainMatrix

          Parameters:
          @@ -2234,7 +2234,7 @@

          What is domainmatrix?
          -nnz()[source]#
          +nnz()[source]#

          Number of nonzero elements in the matrix.

          Examples

          >>> from sympy import ZZ
          @@ -2248,7 +2248,7 @@ 

          What is domainmatrix?
          -nullspace(divide_last=False)[source]#
          +nullspace(divide_last=False)[source]#

          Returns the nullspace for the DomainMatrix

          Parameters:
          @@ -2340,7 +2340,7 @@

          What is domainmatrix?
          -nullspace_from_rref(pivots=None)[source]#
          +nullspace_from_rref(pivots=None)[source]#

          Compute nullspace from rref and pivots.

          The domain of the matrix can be any domain.

          The matrix must be in reduced row echelon form already. Otherwise the @@ -2354,7 +2354,7 @@

          What is domainmatrix?
          -classmethod ones(shape, domain)[source]#
          +classmethod ones(shape, domain)[source]#

          Returns a DomainMatrix of 1s, of size shape, belonging to the specified domain

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -2367,7 +2367,7 @@ 

          What is domainmatrix?
          -pow(n)[source]#
          +pow(n)[source]#

          Computes A**n

          Parameters:
          @@ -2407,7 +2407,7 @@

          What is domainmatrix?
          -primitive()[source]#
          +primitive()[source]#

          Factor out gcd of the elements of a matrix.

          Requires gcd in the ground domain.

          Examples

          @@ -2433,7 +2433,7 @@

          What is domainmatrix?
          -rowspace()[source]#
          +rowspace()[source]#

          Returns the rowspace for the DomainMatrix

          Returns:
          @@ -2457,7 +2457,7 @@

          What is domainmatrix?
          -rref(*, method='auto')[source]#
          +rref(*, method='auto')[source]#

          Returns reduced-row echelon form (RREF) and list of pivots.

          If the domain is not a field then it will be converted to a field. See rref_den() for the fraction-free version of this routine that @@ -2544,7 +2544,7 @@

          What is domainmatrix?
          -rref_den(*, method='auto', keep_domain=True)[source]#
          +rref_den(*, method='auto', keep_domain=True)[source]#

          Returns reduced-row echelon form with denominator and list of pivots.

          Requires exact division in the ground domain (exquo).

          @@ -2649,7 +2649,7 @@

          What is domainmatrix?
          -scc()[source]#
          +scc()[source]#

          Compute the strongly connected components of a DomainMatrix

          Returns:
          @@ -2717,7 +2717,7 @@

          What is domainmatrix?
          -solve_den(b, method=None)[source]#
          +solve_den(b, method=None)[source]#

          Solve matrix equation \(Ax = b\) without fractions in the ground domain.

          Parameters:
          @@ -2843,7 +2843,7 @@

          What is domainmatrix?
          -solve_den_charpoly(b, cp=None, check=True)[source]#
          +solve_den_charpoly(b, cp=None, check=True)[source]#

          Solve matrix equation \(Ax = b\) using the characteristic polynomial.

          This method solves the square matrix equation \(Ax = b\) for \(x\) using the characteristic polynomial without any division or fractions in the @@ -2914,7 +2914,7 @@

          What is domainmatrix?
          -solve_den_rref(b)[source]#
          +solve_den_rref(b)[source]#

          Solve matrix equation \(Ax = b\) using fraction-free RREF

          Solves the matrix equation \(Ax = b\) for \(x\) and returns the solution as a numerator/denominator pair.

          @@ -2940,7 +2940,7 @@

          What is domainmatrix?
          -sub(B)[source]#
          +sub(B)[source]#

          Subtracts two DomainMatrix matrices of the same Domain

          Parameters:
          @@ -2989,7 +2989,7 @@

          What is domainmatrix?
          -to_Matrix()[source]#
          +to_Matrix()[source]#

          Convert DomainMatrix to Matrix

          Returns:
          @@ -3021,7 +3021,7 @@

          What is domainmatrix?
          -to_ddm()[source]#
          +to_ddm()[source]#

          Return a DDM representation of self.

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -3042,7 +3042,7 @@ 

          What is domainmatrix?
          -to_dense()[source]#
          +to_dense()[source]#

          Return a dense DomainMatrix representation of self.

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -3059,7 +3059,7 @@ 

          What is domainmatrix?
          -to_dfm()[source]#
          +to_dfm()[source]#

          Return a DFM representation of self.

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -3080,7 +3080,7 @@ 

          What is domainmatrix?
          -to_dfm_or_ddm()[source]#
          +to_dfm_or_ddm()[source]#

          Return a DFM or DDM representation of self.

          Explanation

          The DFM representation can only be used if the ground types @@ -3117,7 +3117,7 @@

          What is domainmatrix?
          -to_dok()[source]#
          +to_dok()[source]#

          Convert DomainMatrix to dictionary of keys (dok) format.

          Examples

          >>> from sympy import ZZ
          @@ -3143,7 +3143,7 @@ 

          What is domainmatrix?
          -to_field()[source]#
          +to_field()[source]#

          Returns a DomainMatrix with the appropriate field

          Returns:
          @@ -3169,7 +3169,7 @@

          What is domainmatrix?
          -to_flat_nz()[source]#
          +to_flat_nz()[source]#

          Convert DomainMatrix to list of nonzero elements and data.

          Explanation

          Returns a tuple (elements, data) where elements is a list of @@ -3212,7 +3212,7 @@

          What is domainmatrix?
          -to_list()[source]#
          +to_list()[source]#

          Convert DomainMatrix to list of lists.

          See also

          @@ -3222,7 +3222,7 @@

          What is domainmatrix?
          -to_list_flat()[source]#
          +to_list_flat()[source]#

          Convert DomainMatrix to flat list.

          Examples

          >>> from sympy import ZZ
          @@ -3240,7 +3240,7 @@ 

          What is domainmatrix?
          -to_sdm()[source]#
          +to_sdm()[source]#

          Return a SDM representation of self.

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -3261,7 +3261,7 @@ 

          What is domainmatrix?
          -to_sparse()[source]#
          +to_sparse()[source]#

          Return a sparse DomainMatrix representation of self.

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -3278,13 +3278,13 @@ 

          What is domainmatrix?
          -transpose()[source]#
          +transpose()[source]#

          Matrix transpose of self

          -unify(*others, fmt=None)[source]#
          +unify(*others, fmt=None)[source]#

          Unifies the domains and the format of self and other matrices.

          @@ -3337,7 +3337,7 @@

          What is domainmatrix?
          -vstack(*B)[source]#
          +vstack(*B)[source]#

          Vertically stack the given matrices.

          Parameters:
          @@ -3377,7 +3377,7 @@

          What is domainmatrix?
          -classmethod zeros(shape, domain, *, fmt='sparse')[source]#
          +classmethod zeros(shape, domain, *, fmt='sparse')[source]#

          Returns a zero DomainMatrix of size shape, belonging to the specified domain

          Examples

          >>> from sympy.polys.matrices import DomainMatrix
          @@ -3447,31 +3447,31 @@ 

          What is domainmatrix?
          -class sympy.polys.matrices.ddm.DDM(rowslist, shape, domain)[source]#
          +class sympy.polys.matrices.ddm.DDM(rowslist, shape, domain)[source]#

          Dense matrix based on polys domain elements

          This is a list subclass and is a wrapper for a list of lists that supports basic matrix arithmetic +, -, , *.

          -add(b)[source]#
          +add(b)[source]#

          a + b

          -charpoly()[source]#
          +charpoly()[source]#

          Coefficients of characteristic polynomial of a

          -det()[source]#
          +det()[source]#

          Determinant of a

          -classmethod diag(values, domain)[source]#
          +classmethod diag(values, domain)[source]#

          Returns a square diagonal matrix with values on the diagonal.

          Examples

          >>> from sympy import ZZ
          @@ -3488,13 +3488,13 @@ 

          What is domainmatrix?
          -diagonal()[source]#
          +diagonal()[source]#

          Returns a list of the elements from the diagonal of the matrix.

          -classmethod from_dok(dok, shape, domain)[source]#
          +classmethod from_dok(dok, shape, domain)[source]#

          Create a DDM from a dictionary of keys (dok) format.

          Examples

          >>> from sympy.polys.matrices.ddm import DDM
          @@ -3513,7 +3513,7 @@ 

          What is domainmatrix?
          -classmethod from_flat_nz(elements, data, domain)[source]#
          +classmethod from_flat_nz(elements, data, domain)[source]#

          Reconstruct a DDM after calling to_flat_nz().

          Examples

          >>> from sympy.polys.matrices.ddm import DDM
          @@ -3534,7 +3534,7 @@ 

          What is domainmatrix?
          -classmethod from_list(rowslist, shape, domain)[source]#
          +classmethod from_list(rowslist, shape, domain)[source]#

          Create a DDM from a list of lists.

          Examples

          >>> from sympy import ZZ
          @@ -3554,7 +3554,7 @@ 

          What is domainmatrix?
          -classmethod from_list_flat(flat, shape, domain)[source]#
          +classmethod from_list_flat(flat, shape, domain)[source]#

          Create a DDM from a flat list of elements.

          Examples

          >>> from sympy import QQ
          @@ -3574,7 +3574,7 @@ 

          What is domainmatrix?
          -hstack(*B)[source]#
          +hstack(*B)[source]#

          Horizontally stacks DDM matrices.

          Examples

          >>> from sympy import ZZ
          @@ -3596,64 +3596,64 @@ 

          What is domainmatrix?
          -inv()[source]#
          +inv()[source]#

          Inverse of a

          -is_diagonal()[source]#
          +is_diagonal()[source]#

          Says whether this matrix is diagonal. True can be returned even if the matrix is not square.

          -is_lower()[source]#
          +is_lower()[source]#

          Says whether this matrix is lower-triangular. True can be returned even if the matrix is not square.

          -is_upper()[source]#
          +is_upper()[source]#

          Says whether this matrix is upper-triangular. True can be returned even if the matrix is not square.

          -is_zero_matrix()[source]#
          +is_zero_matrix()[source]#

          Says whether this matrix has all zero entries.

          -lu()[source]#
          +lu()[source]#

          L, U decomposition of a

          -lu_solve(b)[source]#
          +lu_solve(b)[source]#

          x where a*x = b

          -matmul(b)[source]#
          +matmul(b)[source]#

          a @ b (matrix product)

          -neg()[source]#
          +neg()[source]#

          -a

          -nnz()[source]#
          +nnz()[source]#

          Number of non-zero entries in DDM matrix.

          See also

          @@ -3663,7 +3663,7 @@

          What is domainmatrix?
          -nullspace()[source]#
          +nullspace()[source]#

          Returns a basis for the nullspace of a.

          The domain of the matrix must be a field.

          @@ -3674,7 +3674,7 @@

          What is domainmatrix?
          -nullspace_from_rref(pivots=None)[source]#
          +nullspace_from_rref(pivots=None)[source]#

          Compute the nullspace of a matrix from its rref.

          The domain of the matrix can be any domain.

          Returns a tuple (basis, nonpivots).

          @@ -3689,7 +3689,7 @@

          What is domainmatrix?
          -rref()[source]#
          +rref()[source]#

          Reduced-row echelon form of a and list of pivots.

          See also

          @@ -3704,7 +3704,7 @@

          What is domainmatrix?
          -rref_den()[source]#
          +rref_den()[source]#

          Reduced-row echelon form of a with denominator and list of pivots

          See also

          @@ -3719,7 +3719,7 @@

          What is domainmatrix?
          -scc()[source]#
          +scc()[source]#

          Strongly connected components of a square matrix a.

          Examples

          >>> from sympy import ZZ
          @@ -3737,13 +3737,13 @@ 

          What is domainmatrix?
          -sub(b)[source]#
          +sub(b)[source]#

          a - b

          -to_ddm()[source]#
          +to_ddm()[source]#

          Convert to a DDM.

          This just returns self but exists to parallel the corresponding method in other matrix types like SDM.

          @@ -3755,7 +3755,7 @@

          What is domainmatrix?
          -to_dfm()[source]#
          +to_dfm()[source]#

          Convert to DDM to DFM.

          Examples

          >>> from sympy.polys.matrices.ddm import DDM
          @@ -3775,7 +3775,7 @@ 

          What is domainmatrix?
          -to_dfm_or_ddm()[source]#
          +to_dfm_or_ddm()[source]#

          Convert to DFM if possible or otherwise return self.

          Examples

          >>> from sympy.polys.matrices.ddm import DDM
          @@ -3795,7 +3795,7 @@ 

          What is domainmatrix?
          -to_dok()[source]#
          +to_dok()[source]#

          Convert DDM to dictionary of keys (dok) format.

          Examples

          >>> from sympy.polys.matrices.ddm import DDM
          @@ -3813,7 +3813,7 @@ 

          What is domainmatrix?
          -to_flat_nz()[source]#
          +to_flat_nz()[source]#

          Convert to a flat list of nonzero elements and data.

          Explanation

          This is used to operate on a list of the elements of a matrix and then @@ -3838,7 +3838,7 @@

          What is domainmatrix?
          -to_list()[source]#
          +to_list()[source]#

          Convert to a list of lists.

          Examples

          >>> from sympy import QQ
          @@ -3856,7 +3856,7 @@ 

          What is domainmatrix?
          -to_list_flat()[source]#
          +to_list_flat()[source]#

          Convert to a flat list of elements.

          Examples

          >>> from sympy import QQ
          @@ -3876,7 +3876,7 @@ 

          What is domainmatrix?
          -to_sdm()[source]#
          +to_sdm()[source]#

          Convert to a SDM.

          Examples

          >>> from sympy.polys.matrices.ddm import DDM
          @@ -3896,7 +3896,7 @@ 

          What is domainmatrix?
          -vstack(*B)[source]#
          +vstack(*B)[source]#

          Vertically stacks DDM matrices.

          Examples

          >>> from sympy import ZZ
          @@ -3965,7 +3965,7 @@ 

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_berk(M, K)[source]#
          +sympy.polys.matrices.dense.ddm_berk(M, K)[source]#

          Berkowitz algorithm for computing the characteristic polynomial.

          Explanation

          The Berkowitz algorithm is a division-free algorithm for computing the @@ -4000,13 +4000,13 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_iadd(a: list[list[R]], b: Sequence[Sequence[R]]) None[source]#
          +sympy.polys.matrices.dense.ddm_iadd(a: list[list[R]], b: Sequence[Sequence[R]]) None[source]#

          a += b

          -sympy.polys.matrices.dense.ddm_idet(a, K)[source]#
          +sympy.polys.matrices.dense.ddm_idet(a, K)[source]#

          a <– echelon(a); return det

          Explanation

          Compute the determinant of \(a\) using the Bareiss fraction-free algorithm. @@ -4049,7 +4049,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_iinv(ainv, a, K)[source]#
          +sympy.polys.matrices.dense.ddm_iinv(ainv, a, K)[source]#

          ainv <– inv(a)

          Compute the inverse of a matrix \(a\) over a field \(K\) using Gauss-Jordan elimination. The result is stored in \(ainv\).

          @@ -4079,7 +4079,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_ilu(a)[source]#
          +sympy.polys.matrices.dense.ddm_ilu(a)[source]#

          a <– LU(a)

          Computes the LU decomposition of a matrix in place. Returns a list of row swaps that were performed.

          @@ -4124,7 +4124,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_ilu_solve(x, L, U, swaps, b)[source]#
          +sympy.polys.matrices.dense.ddm_ilu_solve(x, L, U, swaps, b)[source]#

          x <– solve(L*U*x = swaps(b))

          Solve a linear system, \(A*x = b\), given an LU factorization of \(A\).

          Uses division in the ground domain which must be a field.

          @@ -4163,7 +4163,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_ilu_split(L, U, K)[source]#
          +sympy.polys.matrices.dense.ddm_ilu_split(L, U, K)[source]#

          L, U <– LU(U)

          Compute the LU decomposition of a matrix \(L\) in place and store the lower and upper triangular matrices in \(L\) and \(U\), respectively. Returns a list @@ -4191,31 +4191,31 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_imatmul(a: list[list[R]], b: Sequence[Sequence[R]], c: Sequence[Sequence[R]]) None[source]#
          +sympy.polys.matrices.dense.ddm_imatmul(a: list[list[R]], b: Sequence[Sequence[R]], c: Sequence[Sequence[R]]) None[source]#

          a += b @ c

          -sympy.polys.matrices.dense.ddm_imul(a: list[list[R]], b: R) None[source]#
          +sympy.polys.matrices.dense.ddm_imul(a: list[list[R]], b: R) None[source]#

          a <– a*b

          -sympy.polys.matrices.dense.ddm_ineg(a: list[list[R]]) None[source]#
          +sympy.polys.matrices.dense.ddm_ineg(a: list[list[R]]) None[source]#

          a <– -a

          -sympy.polys.matrices.dense.ddm_irmul(a: list[list[R]], b: R) None[source]#
          +sympy.polys.matrices.dense.ddm_irmul(a: list[list[R]], b: R) None[source]#

          a <– b*a

          -sympy.polys.matrices.dense.ddm_irref(a, _partial_pivot=False)[source]#
          +sympy.polys.matrices.dense.ddm_irref(a, _partial_pivot=False)[source]#

          In-place reduced row echelon form of a matrix.

          Compute the reduced row echelon form of \(a\). Modifies \(a\) in place and returns a list of the pivot columns.

          @@ -4264,7 +4264,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_irref_den(a, K)[source]#
          +sympy.polys.matrices.dense.ddm_irref_den(a, K)[source]#

          a <– rref(a); return (den, pivots)

          Compute the fraction-free reduced row echelon form (RREF) of \(a\). Modifies \(a\) in place and returns a tuple containing the denominator of the RREF and @@ -4323,19 +4323,19 @@

          What is domainmatrix?
          -sympy.polys.matrices.dense.ddm_isub(a: list[list[R]], b: Sequence[Sequence[R]]) None[source]#
          +sympy.polys.matrices.dense.ddm_isub(a: list[list[R]], b: Sequence[Sequence[R]]) None[source]#

          a -= b

          -sympy.polys.matrices.dense.ddm_transpose(matrix: Sequence[Sequence[T]]) list[list[T]][source]#
          +sympy.polys.matrices.dense.ddm_transpose(matrix: Sequence[Sequence[T]]) list[list[T]][source]#

          matrix transpose

          -class sympy.polys.matrices._typing.RingElement(*args, **kwargs)[source]#
          +class sympy.polys.matrices._typing.RingElement(*args, **kwargs)[source]#

          A ring element.

          Must support +, -, *, ** and -.

          @@ -4343,7 +4343,7 @@

          What is domainmatrix?Module for the SDM class.

          -class sympy.polys.matrices.sdm.SDM(elemsdict, shape, domain)[source]#
          +class sympy.polys.matrices.sdm.SDM(elemsdict, shape, domain)[source]#

          Sparse matrix based on polys domain elements

          This is a dict subclass and is a wrapper for a dict of dicts that supports basic matrix arithmetic +, -, , *.

          @@ -4387,7 +4387,7 @@

          What is domainmatrix?
          -add(B)[source]#
          +add(B)[source]#

          Adds two SDM matrices

          Examples

          >>> from sympy import ZZ
          @@ -4402,7 +4402,7 @@ 

          What is domainmatrix?
          -charpoly()[source]#
          +charpoly()[source]#

          Returns the coefficients of the characteristic polynomial of the SDM matrix. These elements will be domain elements. The domain of the elements will be same as domain of the SDM.

          @@ -4427,7 +4427,7 @@

          What is domainmatrix?
          -convert_to(K)[source]#
          +convert_to(K)[source]#

          Converts the Domain of a SDM matrix to K

          Examples

          >>> from sympy import ZZ, QQ
          @@ -4441,7 +4441,7 @@ 

          What is domainmatrix?
          -copy()[source]#
          +copy()[source]#

          Returns the copy of a SDM object

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -4457,7 +4457,7 @@ 

          What is domainmatrix?
          -det()[source]#
          +det()[source]#

          Returns determinant of A

          Examples

          >>> from sympy import QQ
          @@ -4471,13 +4471,13 @@ 

          What is domainmatrix?
          -diagonal()[source]#
          +diagonal()[source]#

          Returns the diagonal of the matrix as a list.

          -classmethod eye(shape, domain)[source]#
          +classmethod eye(shape, domain)[source]#

          Returns a identity SDM matrix of dimensions size x size, belonging to the specified domain

          Examples

          @@ -4492,7 +4492,7 @@

          What is domainmatrix?
          -classmethod from_ddm(ddm)[source]#
          +classmethod from_ddm(ddm)[source]#

          Create SDM from a DDM.

          Examples

          >>> from sympy.polys.matrices.ddm import DDM
          @@ -4514,7 +4514,7 @@ 

          What is domainmatrix?
          -classmethod from_dok(dok, shape, domain)[source]#
          +classmethod from_dok(dok, shape, domain)[source]#

          Create SDM from dictionary of keys (dok) format.

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -4535,7 +4535,7 @@ 

          What is domainmatrix?
          -classmethod from_flat_nz(elements, data, domain)[source]#
          +classmethod from_flat_nz(elements, data, domain)[source]#

          Reconstruct a SDM after calling to_flat_nz().

          See to_flat_nz() for explanation.

          @@ -4546,7 +4546,7 @@

          What is domainmatrix?
          -classmethod from_list(ddm, shape, domain)[source]#
          +classmethod from_list(ddm, shape, domain)[source]#

          Create SDM object from a list of lists.

          Parameters:
          @@ -4584,7 +4584,7 @@

          What is domainmatrix?
          -classmethod from_list_flat(elements, shape, domain)[source]#
          +classmethod from_list_flat(elements, shape, domain)[source]#

          Create SDM from a flat list of elements.

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -4604,7 +4604,7 @@ 

          What is domainmatrix?
          -hstack(*B)[source]#
          +hstack(*B)[source]#

          Horizontally stacks SDM matrices.

          Examples

          >>> from sympy import ZZ
          @@ -4626,7 +4626,7 @@ 

          What is domainmatrix?
          -inv()[source]#
          +inv()[source]#

          Returns inverse of a matrix A

          Examples

          >>> from sympy import QQ
          @@ -4640,46 +4640,46 @@ 

          What is domainmatrix?
          -is_diagonal()[source]#
          +is_diagonal()[source]#

          Says whether this matrix is diagonal. True can be returned even if the matrix is not square.

          -is_lower()[source]#
          +is_lower()[source]#

          Says whether this matrix is lower-triangular. True can be returned even if the matrix is not square.

          -is_upper()[source]#
          +is_upper()[source]#

          Says whether this matrix is upper-triangular. True can be returned even if the matrix is not square.

          -is_zero_matrix()[source]#
          +is_zero_matrix()[source]#

          Says whether this matrix has all zero entries.

          -lll(delta=MPQ(3, 4))[source]#
          +lll(delta=MPQ(3, 4))[source]#

          Returns the LLL-reduced basis for the SDM matrix.

          -lll_transform(delta=MPQ(3, 4))[source]#
          +lll_transform(delta=MPQ(3, 4))[source]#

          Returns the LLL-reduced basis and transformation matrix.

          -lu()[source]#
          +lu()[source]#

          Returns LU decomposition for a matrix A

          Examples

          >>> from sympy import QQ
          @@ -4693,7 +4693,7 @@ 

          What is domainmatrix?
          -lu_solve(b)[source]#
          +lu_solve(b)[source]#

          Uses LU decomposition to solve Ax = b,

          Examples

          >>> from sympy import QQ
          @@ -4708,7 +4708,7 @@ 

          What is domainmatrix?
          -matmul(B)[source]#
          +matmul(B)[source]#

          Performs matrix multiplication of two SDM matrices

          Parameters:
          @@ -4741,7 +4741,7 @@

          What is domainmatrix?
          -mul(b)[source]#
          +mul(b)[source]#

          Multiplies each element of A with a scalar b

          Examples

          >>> from sympy import ZZ
          @@ -4755,7 +4755,7 @@ 

          What is domainmatrix?
          -neg()[source]#
          +neg()[source]#

          Returns the negative of a SDM matrix

          Examples

          >>> from sympy import ZZ
          @@ -4769,7 +4769,7 @@ 

          What is domainmatrix?
          -classmethod new(sdm, shape, domain)[source]#
          +classmethod new(sdm, shape, domain)[source]#
          Parameters:

          sdm: A dict of dicts for non-zero elements in SDM

          @@ -4793,7 +4793,7 @@

          What is domainmatrix?
          -nnz()[source]#
          +nnz()[source]#

          Number of non-zero elements in the SDM matrix.

          Examples

          >>> from sympy import ZZ
          @@ -4811,7 +4811,7 @@ 

          What is domainmatrix?
          -nullspace()[source]#
          +nullspace()[source]#

          Nullspace of a SDM matrix A.

          The domain of the matrix must be a field.

          It is better to use the nullspace() method rather @@ -4835,7 +4835,7 @@

          What is domainmatrix?
          -nullspace_from_rref(pivots=None)[source]#
          +nullspace_from_rref(pivots=None)[source]#

          Returns nullspace for a SDM matrix A in RREF.

          The domain of the matrix can be any domain.

          The matrix must already be in reduced row echelon form (RREF).

          @@ -4868,7 +4868,7 @@

          What is domainmatrix?
          -rref()[source]#
          +rref()[source]#

          Returns reduced-row echelon form and list of pivots for the SDM

          Examples

          >>> from sympy import QQ
          @@ -4882,7 +4882,7 @@ 

          What is domainmatrix?
          -rref_den()[source]#
          +rref_den()[source]#

          Returns reduced-row echelon form (RREF) with denominator and pivots.

          Examples

          >>> from sympy import QQ
          @@ -4896,7 +4896,7 @@ 

          What is domainmatrix?
          -scc()[source]#
          +scc()[source]#

          Strongly connected components of a square matrix A.

          Examples

          >>> from sympy import ZZ
          @@ -4914,7 +4914,7 @@ 

          What is domainmatrix?
          -sub(B)[source]#
          +sub(B)[source]#

          Subtracts two SDM matrices

          Examples

          >>> from sympy import ZZ
          @@ -4929,7 +4929,7 @@ 

          What is domainmatrix?
          -to_ddm()[source]#
          +to_ddm()[source]#

          Convert a SDM object to a DDM object

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -4943,7 +4943,7 @@ 

          What is domainmatrix?
          -to_dfm()[source]#
          +to_dfm()[source]#

          Convert a SDM object to a DFM object

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -4961,7 +4961,7 @@ 

          What is domainmatrix?
          -to_dfm_or_ddm()[source]#
          +to_dfm_or_ddm()[source]#

          Convert to DFM if possible, else DDM.

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -4981,7 +4981,7 @@ 

          What is domainmatrix?
          -to_dok()[source]#
          +to_dok()[source]#

          Convert to dictionary of keys (dok) format.

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -4999,7 +4999,7 @@ 

          What is domainmatrix?
          -to_flat_nz()[source]#
          +to_flat_nz()[source]#

          Convert SDM to a flat list of nonzero elements and data.

          Explanation

          This is used to operate on a list of the elements of a matrix and then @@ -5024,7 +5024,7 @@

          What is domainmatrix?
          -to_list()[source]#
          +to_list()[source]#

          Convert a SDM object to a list of lists.

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -5039,7 +5039,7 @@ 

          What is domainmatrix?
          -to_list_flat()[source]#
          +to_list_flat()[source]#

          Convert SDM to a flat list.

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -5059,13 +5059,13 @@ 

          What is domainmatrix?
          -to_sdm()[source]#
          +to_sdm()[source]#

          Convert to SDM format (returns self).

          -transpose()[source]#
          +transpose()[source]#

          Returns the transpose of a SDM matrix

          Examples

          >>> from sympy.polys.matrices.sdm import SDM
          @@ -5079,7 +5079,7 @@ 

          What is domainmatrix?
          -vstack(*B)[source]#
          +vstack(*B)[source]#

          Vertically stacks SDM matrices.

          Examples

          >>> from sympy import ZZ
          @@ -5101,7 +5101,7 @@ 

          What is domainmatrix?
          -classmethod zeros(shape, domain)[source]#
          +classmethod zeros(shape, domain)[source]#

          Returns a SDM of size shape, belonging to the specified domain

          In the example below we declare a matrix A where,

          @@ -5124,7 +5124,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.sdm.sdm_berk(M, n, K)[source]#
          +sympy.polys.matrices.sdm.sdm_berk(M, n, K)[source]#

          Berkowitz algorithm for computing the characteristic polynomial.

          Explanation

          The Berkowitz algorithm is a division-free algorithm for computing the @@ -5162,7 +5162,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.sdm.sdm_irref(A)[source]#
          +sympy.polys.matrices.sdm.sdm_irref(A)[source]#

          RREF and pivots of a sparse matrix A.

          Compute the reduced row echelon form (RREF) of the matrix A and return a list of the pivot columns. This routine does not work in place and leaves @@ -5219,19 +5219,19 @@

          What is domainmatrix?
          -sympy.polys.matrices.sdm.sdm_nullspace_from_rref(A, one, ncols, pivots, nonzero_cols)[source]#
          +sympy.polys.matrices.sdm.sdm_nullspace_from_rref(A, one, ncols, pivots, nonzero_cols)[source]#

          Get nullspace from A which is in RREF

          -sympy.polys.matrices.sdm.sdm_particular_from_rref(A, ncols, pivots)[source]#
          +sympy.polys.matrices.sdm.sdm_particular_from_rref(A, ncols, pivots)[source]#

          Get a particular solution from A which is in RREF

          -sympy.polys.matrices.sdm.sdm_rref_den(A, K)[source]#
          +sympy.polys.matrices.sdm.sdm_rref_den(A, K)[source]#

          Return the reduced row echelon form (RREF) of A with denominator.

          The RREF is computed using fraction-free Gauss-Jordan elimination.

          Explanation

          @@ -5285,7 +5285,7 @@

          What is domainmatrix?
          -class sympy.polys.matrices._dfm.DFM(rowslist, shape, domain)[source]#
          +class sympy.polys.matrices._dfm.DFM(rowslist, shape, domain)[source]#

          Dense FLINT matrix. This class is a wrapper for matrices from python-flint.

          >>> from sympy.polys.domains import ZZ
           >>> from sympy.polys.matrices.dfm import DFM
          @@ -5319,19 +5319,19 @@ 

          What is domainmatrix?
          -add(other)[source]#
          +add(other)[source]#

          Add two DFM matrices.

          -applyfunc(func, domain)[source]#
          +applyfunc(func, domain)[source]#

          Apply a function to each entry of a DFM matrix.

          -charpoly()[source]#
          +charpoly()[source]#

          Compute the characteristic polynomial of the matrix using FLINT.

          Examples

          >>> from sympy import Matrix
          @@ -5366,19 +5366,19 @@ 

          What is domainmatrix?
          -convert_to(domain)[source]#
          +convert_to(domain)[source]#

          Convert to a new domain.

          -copy()[source]#
          +copy()[source]#

          Return a copy of self.

          -det()[source]#
          +det()[source]#

          Compute the determinant of the matrix using FLINT.

          Examples

          >>> from sympy import Matrix
          @@ -5419,73 +5419,73 @@ 

          What is domainmatrix?
          -classmethod diag(elements, domain)[source]#
          +classmethod diag(elements, domain)[source]#

          Return a diagonal matrix.

          -diagonal()[source]#
          +diagonal()[source]#

          Return the diagonal of a DFM matrix.

          -extract(rowslist, colslist)[source]#
          +extract(rowslist, colslist)[source]#

          Extract a submatrix.

          -extract_slice(rowslice, colslice)[source]#
          +extract_slice(rowslice, colslice)[source]#

          Slice a DFM.

          -classmethod eye(n, domain)[source]#
          +classmethod eye(n, domain)[source]#

          Return the identity matrix of size n.

          -classmethod from_ddm(ddm)[source]#
          +classmethod from_ddm(ddm)[source]#

          Convert from a DDM.

          -classmethod from_flat_nz(elements, data, domain)[source]#
          +classmethod from_flat_nz(elements, data, domain)[source]#

          Inverse of to_flat_nz().

          -classmethod from_list(rowslist, shape, domain)[source]#
          +classmethod from_list(rowslist, shape, domain)[source]#

          Construct from a nested list.

          -classmethod from_list_flat(elements, shape, domain)[source]#
          +classmethod from_list_flat(elements, shape, domain)[source]#

          Inverse of to_list_flat().

          -getitem(i, j)[source]#
          +getitem(i, j)[source]#

          Get the (i, j)-th entry.

          -hstack(*others)[source]#
          +hstack(*others)[source]#

          Horizontally stack matrices.

          -inv()[source]#
          +inv()[source]#

          Compute the inverse of a matrix using FLINT.

          Examples

          >>> from sympy import Matrix, QQ
          @@ -5521,31 +5521,31 @@ 

          What is domainmatrix?
          -is_diagonal()[source]#
          +is_diagonal()[source]#

          Return True if the matrix is diagonal.

          -is_lower()[source]#
          +is_lower()[source]#

          Return True if the matrix is lower triangular.

          -is_upper()[source]#
          +is_upper()[source]#

          Return True if the matrix is upper triangular.

          -is_zero_matrix()[source]#
          +is_zero_matrix()[source]#

          Return True if the matrix is the zero matrix.

          -lll(delta=0.75)[source]#
          +lll(delta=0.75)[source]#

          Compute LLL-reduced basis using FLINT.

          See lll_transform() for more information.

          Examples

          @@ -5568,7 +5568,7 @@

          What is domainmatrix?
          -lll_transform(delta=0.75)[source]#
          +lll_transform(delta=0.75)[source]#

          Compute LLL-reduced basis and transform using FLINT.

          Examples

          >>> from sympy import Matrix
          @@ -5595,13 +5595,13 @@ 

          What is domainmatrix?
          -lu()[source]#
          +lu()[source]#

          Return the LU decomposition of the matrix.

          -lu_solve(rhs)[source]#
          +lu_solve(rhs)[source]#

          Solve a matrix equation using FLINT.

          Examples

          >>> from sympy import Matrix, QQ
          @@ -5644,97 +5644,97 @@ 

          What is domainmatrix?
          -matmul(other)[source]#
          +matmul(other)[source]#

          Multiply two DFM matrices.

          -mul(other)[source]#
          +mul(other)[source]#

          Multiply a DFM matrix from the right by a scalar.

          -mul_elementwise(other)[source]#
          +mul_elementwise(other)[source]#

          Elementwise multiplication of two DFM matrices.

          -neg()[source]#
          +neg()[source]#

          Negate a DFM matrix.

          -nnz()[source]#
          +nnz()[source]#

          Return the number of non-zero elements in the matrix.

          -nullspace()[source]#
          +nullspace()[source]#

          Return a basis for the nullspace of the matrix.

          -nullspace_from_rref(pivots=None)[source]#
          +nullspace_from_rref(pivots=None)[source]#

          Return a basis for the nullspace of the matrix.

          -classmethod ones(shape, domain)[source]#
          +classmethod ones(shape, domain)[source]#

          Return a one DFM matrix.

          -particular()[source]#
          +particular()[source]#

          Return a particular solution to the system.

          -rmul(other)[source]#
          +rmul(other)[source]#

          Multiply a DFM matrix from the left by a scalar.

          -scc()[source]#
          +scc()[source]#

          Return the strongly connected components of the matrix.

          -setitem(i, j, value)[source]#
          +setitem(i, j, value)[source]#

          Set the (i, j)-th entry.

          -sub(other)[source]#
          +sub(other)[source]#

          Subtract two DFM matrices.

          -to_ddm()[source]#
          +to_ddm()[source]#

          Convert to a DDM.

          -to_dfm()[source]#
          +to_dfm()[source]#

          Return self.

          -to_dfm_or_ddm()[source]#
          +to_dfm_or_ddm()[source]#

          Convert to a DFM.

          This DFM method exists to parallel the DDM and SDM methods. For DFM it will always return self.

          @@ -5746,49 +5746,49 @@

          What is domainmatrix?
          -to_dok()[source]#
          +to_dok()[source]#

          Convert to a DOK.

          -to_flat_nz()[source]#
          +to_flat_nz()[source]#

          Convert to a flat list of non-zeros.

          -to_list()[source]#
          +to_list()[source]#

          Convert to a nested list.

          -to_list_flat()[source]#
          +to_list_flat()[source]#

          Convert to a flat list.

          -to_sdm()[source]#
          +to_sdm()[source]#

          Convert to a SDM.

          -transpose()[source]#
          +transpose()[source]#

          Transpose a DFM matrix.

          -vstack(*others)[source]#
          +vstack(*others)[source]#

          Vertically stack matrices.

          -classmethod zeros(shape, domain)[source]#
          +classmethod zeros(shape, domain)[source]#

          Return a zero DFM matrix.

          @@ -5796,7 +5796,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.normalforms.smith_normal_form(m)[source]#
          +sympy.polys.matrices.normalforms.smith_normal_form(m)[source]#

          Return the Smith Normal Form of a matrix \(m\) over the ring \(domain\). This will only work if the ring is a principal ideal domain.

          Examples

          @@ -5814,7 +5814,7 @@

          What is domainmatrix?
          -sympy.polys.matrices.normalforms.hermite_normal_form(A, *, D=None, check_rank=False)[source]#
          +sympy.polys.matrices.normalforms.hermite_normal_form(A, *, D=None, check_rank=False)[source]#

          Compute the Hermite Normal Form of DomainMatrix A over ZZ.

          diff --git a/dev/modules/polys/domainsref.html b/dev/modules/polys/domainsref.html index c99517052ea..9d9879bc888 100644 --- a/dev/modules/polys/domainsref.html +++ b/dev/modules/polys/domainsref.html @@ -766,7 +766,7 @@

          Domains#<

          Abstract Domains#

          -class sympy.polys.domains.domain.Domain[source]#
          +class sympy.polys.domains.domain.Domain[source]#

          Superclass for all domains in the polys domains system.

          See Introducing the Domains of the poly module for an introductory explanation of the domains system.

          @@ -937,19 +937,19 @@

          Abstract Domains
          -abs(a)[source]#
          +abs(a)[source]#

          Absolute value of a, implies __abs__.

          -add(a, b)[source]#
          +add(a, b)[source]#

          Sum of a and b, implies __add__.

          -alg_field_from_poly(poly, alias=None, root_index=-1)[source]#
          +alg_field_from_poly(poly, alias=None, root_index=-1)[source]#

          Convenience method to construct an algebraic extension on a root of a polynomial, chosen by root index.

          @@ -992,43 +992,43 @@

          Abstract Domains
          -algebraic_field(*extension, alias=None)[source]#
          +algebraic_field(*extension, alias=None)[source]#

          Returns an algebraic field, i.e. \(K(\alpha, \ldots)\).

          -almosteq(a, b, tolerance=None)[source]#
          +almosteq(a, b, tolerance=None)[source]#

          Check if a and b are almost equal.

          -characteristic()[source]#
          +characteristic()[source]#

          Return the characteristic of this domain.

          -cofactors(a, b)[source]#
          +cofactors(a, b)[source]#

          Returns GCD and cofactors of a and b.

          -convert(element, base=None)[source]#
          +convert(element, base=None)[source]#

          Convert element to self.dtype.

          -convert_from(element, base)[source]#
          +convert_from(element, base)[source]#

          Convert element to self.dtype given the base domain.

          -cyclotomic_field(n, ss=False, alias='zeta', gen=None, root_index=-1)[source]#
          +cyclotomic_field(n, ss=False, alias='zeta', gen=None, root_index=-1)[source]#

          Convenience method to construct a cyclotomic field.

          Parameters:
          @@ -1074,13 +1074,13 @@

          Abstract Domains
          -denom(a)[source]#
          +denom(a)[source]#

          Returns denominator of a.

          -div(a, b)[source]#
          +div(a, b)[source]#

          Quotient and remainder for a and b. Analogue of divmod(a, b)

          Parameters:
          @@ -1162,7 +1162,7 @@

          Abstract Domains
          -drop(*symbols)[source]#
          +drop(*symbols)[source]#

          Drop generators from this domain.

          @@ -1192,13 +1192,13 @@

          Abstract Domains
          -evalf(a, prec=None, **options)[source]#
          +evalf(a, prec=None, **options)[source]#

          Returns numerical approximation of a.

          -exquo(a, b)[source]#
          +exquo(a, b)[source]#

          Exact quotient of a and b. Analogue of a / b.

          Parameters:
          @@ -1286,7 +1286,7 @@

          Abstract Domains
          -exsqrt(a)[source]#
          +exsqrt(a)[source]#

          Principal square root of a within the domain if a is square.

          Explanation

          The implementation of this method should return an element b in the @@ -1302,109 +1302,109 @@

          Abstract Domains
          -frac_field(*symbols, order=LexOrder())[source]#
          +frac_field(*symbols, order=LexOrder())[source]#

          Returns a fraction field, i.e. \(K(X)\).

          -from_AlgebraicField(a, K0)[source]#
          +from_AlgebraicField(a, K0)[source]#

          Convert an algebraic number to dtype.

          -from_ComplexField(a, K0)[source]#
          +from_ComplexField(a, K0)[source]#

          Convert a complex element to dtype.

          -from_ExpressionDomain(a, K0)[source]#
          +from_ExpressionDomain(a, K0)[source]#

          Convert a EX object to dtype.

          -from_ExpressionRawDomain(a, K0)[source]#
          +from_ExpressionRawDomain(a, K0)[source]#

          Convert a EX object to dtype.

          -from_FF(a, K0)[source]#
          +from_FF(a, K0)[source]#

          Convert ModularInteger(int) to dtype.

          -from_FF_gmpy(a, K0)[source]#
          +from_FF_gmpy(a, K0)[source]#

          Convert ModularInteger(mpz) to dtype.

          -from_FF_python(a, K0)[source]#
          +from_FF_python(a, K0)[source]#

          Convert ModularInteger(int) to dtype.

          -from_FractionField(a, K0)[source]#
          +from_FractionField(a, K0)[source]#

          Convert a rational function to dtype.

          -from_GlobalPolynomialRing(a, K0)[source]#
          +from_GlobalPolynomialRing(a, K0)[source]#

          Convert a polynomial to dtype.

          -from_MonogenicFiniteExtension(a, K0)[source]#
          +from_MonogenicFiniteExtension(a, K0)[source]#

          Convert an ExtensionElement to dtype.

          -from_PolynomialRing(a, K0)[source]#
          +from_PolynomialRing(a, K0)[source]#

          Convert a polynomial to dtype.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY mpq object to dtype.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert a real element object to dtype.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY mpz object to dtype.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert a SymPy expression to an element of this domain.

          Parameters:
          @@ -1430,37 +1430,37 @@

          Abstract Domains
          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Returns GCD of a and b.

          -gcdex(a, b)[source]#
          +gcdex(a, b)[source]#

          Extended GCD of a and b.

          -get_exact()[source]#
          +get_exact()[source]#

          Returns an exact domain associated with self.

          -get_field()[source]#
          +get_field()[source]#

          Returns a field associated with self.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -half_gcdex(a, b)[source]#
          +half_gcdex(a, b)[source]#

          Half extended GCD of a and b.

          @@ -1502,13 +1502,13 @@

          Abstract Domains
          -inject(*symbols)[source]#
          +inject(*symbols)[source]#

          Inject generators into this domain.

          -invert(a, b)[source]#
          +invert(a, b)[source]#

          Returns inversion of a mod b, implies something.

          @@ -1565,37 +1565,37 @@

          Abstract Domains
          -is_negative(a)[source]#
          +is_negative(a)[source]#

          Returns True if a is negative.

          -is_nonnegative(a)[source]#
          +is_nonnegative(a)[source]#

          Returns True if a is non-negative.

          -is_nonpositive(a)[source]#
          +is_nonpositive(a)[source]#

          Returns True if a is non-positive.

          -is_one(a)[source]#
          +is_one(a)[source]#

          Returns True if a is one.

          -is_positive(a)[source]#
          +is_positive(a)[source]#

          Returns True if a is positive.

          -is_square(a)[source]#
          +is_square(a)[source]#

          Returns whether a is a square in the domain.

          Explanation

          Returns True if there is an element b in the domain such that @@ -1610,67 +1610,67 @@

          Abstract Domains
          -is_zero(a)[source]#
          +is_zero(a)[source]#

          Returns True if a is zero.

          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Returns LCM of a and b.

          -log(a, b)[source]#
          +log(a, b)[source]#

          Returns b-base logarithm of a.

          -map(seq)[source]#
          +map(seq)[source]#

          Rersively apply self to all elements of seq.

          -mul(a, b)[source]#
          +mul(a, b)[source]#

          Product of a and b, implies __mul__.

          -n(a, prec=None, **options)[source]#
          +n(a, prec=None, **options)[source]#

          Returns numerical approximation of a.

          -neg(a)[source]#
          +neg(a)[source]#

          Returns a negated, implies __neg__.

          -numer(a)[source]#
          +numer(a)[source]#

          Returns numerator of a.

          -of_type(element)[source]#
          +of_type(element)[source]#

          Check if a is of type dtype.

          -old_frac_field(*symbols, **kwargs)[source]#
          +old_frac_field(*symbols, **kwargs)[source]#

          Returns a fraction field, i.e. \(K(X)\).

          -old_poly_ring(*symbols, **kwargs)[source]#
          +old_poly_ring(*symbols, **kwargs)[source]#

          Returns a polynomial ring, i.e. \(K[X]\).

          @@ -1693,25 +1693,25 @@

          Abstract Domains
          -poly_ring(*symbols, order=LexOrder())[source]#
          +poly_ring(*symbols, order=LexOrder())[source]#

          Returns a polynomial ring, i.e. \(K[X]\).

          -pos(a)[source]#
          +pos(a)[source]#

          Returns a positive, implies __pos__.

          -pow(a, b)[source]#
          +pow(a, b)[source]#

          Raise a to power b, implies __pow__.

          -quo(a, b)[source]#
          +quo(a, b)[source]#

          Quotient of a and b. Analogue of a // b.

          K.quo(a, b) is equivalent to K.div(a, b)[0]. See div() for more explanation.

          @@ -1730,7 +1730,7 @@

          Abstract Domains
          -rem(a, b)[source]#
          +rem(a, b)[source]#

          Modulo division of a and b. Analogue of a % b.

          K.rem(a, b) is equivalent to K.div(a, b)[1]. See div() for more explanation.

          @@ -1749,13 +1749,13 @@

          Abstract Domains
          -revert(a)[source]#
          +revert(a)[source]#

          Returns a**(-1) if possible.

          -sqrt(a)[source]#
          +sqrt(a)[source]#

          Returns a (possibly inexact) square root of a.

          Explanation

          There is no universal definition of “inexact square root” for all @@ -1769,13 +1769,13 @@

          Abstract Domains
          -sub(a, b)[source]#
          +sub(a, b)[source]#

          Difference of a and b, implies __sub__.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert domain element a to a SymPy expression (Expr).

          Parameters:
          @@ -1870,7 +1870,7 @@

          Abstract Domains
          -unify(K1, symbols=None)[source]#
          +unify(K1, symbols=None)[source]#

          Construct a minimal domain that contains elements of K0 and K1.

          Known domains (from smallest to largest):

          @@ -1913,13 +1913,13 @@

          Abstract Domains
          -class sympy.polys.domains.domainelement.DomainElement[source]#
          +class sympy.polys.domains.domainelement.DomainElement[source]#

          Represents an element of a domain.

          Mix in this trait into a class whose instances should be recognized as elements of a domain. Method parent() gives that domain.

          -parent()[source]#
          +parent()[source]#

          Get the domain associated with self

          Examples

          >>> from sympy import ZZ, symbols
          @@ -1941,23 +1941,23 @@ 

          Abstract Domains
          -class sympy.polys.domains.field.Field[source]#
          +class sympy.polys.domains.field.Field[source]#

          Represents a field domain.

          -div(a, b)[source]#
          +div(a, b)[source]#

          Division of a and b, implies __truediv__.

          -exquo(a, b)[source]#
          +exquo(a, b)[source]#

          Exact quotient of a and b, implies __truediv__.

          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Returns GCD of a and b.

          This definition of GCD over fields allows to clear denominators in \(primitive()\).

          @@ -1979,25 +1979,25 @@

          Abstract Domains
          -get_field()[source]#
          +get_field()[source]#

          Returns a field associated with self.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -is_unit(a)[source]#
          +is_unit(a)[source]#

          Return true if a is a invertible

          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Returns LCM of a and b.

          >>> from sympy.polys.domains import QQ
           >>> from sympy import S, lcm
          @@ -2013,19 +2013,19 @@ 

          Abstract Domains
          -quo(a, b)[source]#
          +quo(a, b)[source]#

          Quotient of a and b, implies __truediv__.

          -rem(a, b)[source]#
          +rem(a, b)[source]#

          Remainder of a and b, implies nothing.

          -revert(a)[source]#
          +revert(a)[source]#

          Returns a**(-1) if possible.

          @@ -2033,29 +2033,29 @@

          Abstract Domains
          -class sympy.polys.domains.ring.Ring[source]#
          +class sympy.polys.domains.ring.Ring[source]#

          Represents a ring domain.

          -denom(a)[source]#
          +denom(a)[source]#

          Returns denominator of \(a\).

          -div(a, b)[source]#
          +div(a, b)[source]#

          Division of a and b, implies __divmod__.

          -exquo(a, b)[source]#
          +exquo(a, b)[source]#

          Exact quotient of a and b, implies __floordiv__.

          -free_module(rank)[source]#
          +free_module(rank)[source]#

          Generate a free module of rank rank over self.

          >>> from sympy.abc import x
           >>> from sympy import QQ
          @@ -2067,13 +2067,13 @@ 

          Abstract Domains
          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -ideal(*gens)[source]#
          +ideal(*gens)[source]#

          Generate an ideal of self.

          >>> from sympy.abc import x
           >>> from sympy import QQ
          @@ -2085,25 +2085,25 @@ 

          Abstract Domains
          -invert(a, b)[source]#
          +invert(a, b)[source]#

          Returns inversion of a mod b.

          -numer(a)[source]#
          +numer(a)[source]#

          Returns numerator of a.

          -quo(a, b)[source]#
          +quo(a, b)[source]#

          Quotient of a and b, implies __floordiv__.

          -quotient_ring(e)[source]#
          +quotient_ring(e)[source]#

          Form a quotient ring of self.

          Here e can be an ideal or an iterable.

          >>> from sympy.abc import x
          @@ -2123,13 +2123,13 @@ 

          Abstract Domains
          -rem(a, b)[source]#
          +rem(a, b)[source]#

          Remainder of a and b, implies __mod__.

          -revert(a)[source]#
          +revert(a)[source]#

          Returns a**(-1) if possible.

          @@ -2137,11 +2137,11 @@

          Abstract Domains
          -class sympy.polys.domains.simpledomain.SimpleDomain[source]#
          +class sympy.polys.domains.simpledomain.SimpleDomain[source]#

          Base class for simple domains, e.g. ZZ, QQ.

          -inject(*gens)[source]#
          +inject(*gens)[source]#

          Inject generators into this domain.

          @@ -2149,17 +2149,17 @@

          Abstract Domains
          -class sympy.polys.domains.compositedomain.CompositeDomain[source]#
          +class sympy.polys.domains.compositedomain.CompositeDomain[source]#

          Base class for composite domains, e.g. ZZ[x], ZZ(X).

          -drop(*symbols)[source]#
          +drop(*symbols)[source]#

          Drop generators from this domain.

          -inject(*symbols)[source]#
          +inject(*symbols)[source]#

          Inject generators into this domain.

          @@ -2170,7 +2170,7 @@

          Abstract Domains

          GF(p)#

          -class sympy.polys.domains.FiniteField(mod, symmetric=True)[source]#
          +class sympy.polys.domains.FiniteField(mod, symmetric=True)[source]#

          Finite field of prime order GF(p)

          A GF(p) domain represents a finite field \(\mathbb{F}_p\) of prime order as Domain in the domain system (see @@ -2253,13 +2253,13 @@

          Abstract DomainsGF(p**n)) but these are not yet implemented in SymPY.

          -characteristic()[source]#
          +characteristic()[source]#

          Return the characteristic of this domain.

          -exsqrt(a)[source]#
          +exsqrt(a)[source]#

          Square root modulo p of a if it is a quadratic residue.

          Explanation

          Always returns the square root that is no larger than p // 2.

          @@ -2267,91 +2267,91 @@

          Abstract Domains
          -from_FF(a, K0=None)[source]#
          +from_FF(a, K0=None)[source]#

          Convert ModularInteger(int) to dtype.

          -from_FF_gmpy(a, K0=None)[source]#
          +from_FF_gmpy(a, K0=None)[source]#

          Convert ModularInteger(mpz) to dtype.

          -from_FF_python(a, K0=None)[source]#
          +from_FF_python(a, K0=None)[source]#

          Convert ModularInteger(int) to dtype.

          -from_QQ(a, K0=None)[source]#
          +from_QQ(a, K0=None)[source]#

          Convert Python’s Fraction to dtype.

          -from_QQ_gmpy(a, K0=None)[source]#
          +from_QQ_gmpy(a, K0=None)[source]#

          Convert GMPY’s mpq to dtype.

          -from_QQ_python(a, K0=None)[source]#
          +from_QQ_python(a, K0=None)[source]#

          Convert Python’s Fraction to dtype.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert mpmath’s mpf to dtype.

          -from_ZZ(a, K0=None)[source]#
          +from_ZZ(a, K0=None)[source]#

          Convert Python’s int to dtype.

          -from_ZZ_gmpy(a, K0=None)[source]#
          +from_ZZ_gmpy(a, K0=None)[source]#

          Convert GMPY’s mpz to dtype.

          -from_ZZ_python(a, K0=None)[source]#
          +from_ZZ_python(a, K0=None)[source]#

          Convert Python’s int to dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s Integer to SymPy’s Integer.

          -get_field()[source]#
          +get_field()[source]#

          Returns a field associated with self.

          -is_square(a)[source]#
          +is_square(a)[source]#

          Returns True if a is a quadratic residue modulo p.

          -to_int(a)[source]#
          +to_int(a)[source]#

          Convert val to a Python int object.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -2359,13 +2359,13 @@

          Abstract Domains
          -class sympy.polys.domains.PythonFiniteField(mod, symmetric=True)[source]#
          +class sympy.polys.domains.PythonFiniteField(mod, symmetric=True)[source]#

          Finite field based on Python’s integers.

          -class sympy.polys.domains.GMPYFiniteField(mod, symmetric=True)[source]#
          +class sympy.polys.domains.GMPYFiniteField(mod, symmetric=True)[source]#

          Finite field based on GMPY integers.

          @@ -2421,7 +2421,7 @@

          Abstract Domains
          -class sympy.polys.domains.IntegerRing[source]#
          +class sympy.polys.domains.IntegerRing[source]#

          The domain ZZ representing the integers \(\mathbb{Z}\).

          The IntegerRing class represents the ring of integers as a Domain in the domain system. IntegerRing is a @@ -2434,7 +2434,7 @@

          Abstract Domains
          -algebraic_field(*extension, alias=None)[source]#
          +algebraic_field(*extension, alias=None)[source]#

          Returns an algebraic field, i.e. \(\mathbb{Q}(\alpha, \ldots)\).

          Parameters:
          @@ -2466,7 +2466,7 @@

          Abstract Domains
          -exsqrt(a)[source]#
          +exsqrt(a)[source]#

          Non-negative square root of a if a is a square.

          See also

          @@ -2476,98 +2476,98 @@

          Abstract Domains
          -factorial(a)[source]#
          +factorial(a)[source]#

          Compute factorial of a.

          -from_AlgebraicField(a, K0)[source]#
          +from_AlgebraicField(a, K0)[source]#

          Convert a ANP object to ZZ.

          See convert().

          -from_FF(a, K0)[source]#
          +from_FF(a, K0)[source]#

          Convert ModularInteger(int) to GMPY’s mpz.

          -from_FF_gmpy(a, K0)[source]#
          +from_FF_gmpy(a, K0)[source]#

          Convert ModularInteger(mpz) to GMPY’s mpz.

          -from_FF_python(a, K0)[source]#
          +from_FF_python(a, K0)[source]#

          Convert ModularInteger(int) to GMPY’s mpz.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert Python’s Fraction to GMPY’s mpz.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert GMPY mpq to GMPY’s mpz.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert Python’s Fraction to GMPY’s mpz.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert mpmath’s mpf to GMPY’s mpz.

          -from_ZZ(a, K0)[source]#
          +from_ZZ(a, K0)[source]#

          Convert Python’s int to GMPY’s mpz.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert GMPY’s mpz to GMPY’s mpz.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert Python’s int to GMPY’s mpz.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s Integer to dtype.

          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Compute GCD of a and b.

          -gcdex(a, b)[source]#
          +gcdex(a, b)[source]#

          Compute extended GCD of a and b.

          -get_field()[source]#
          +get_field()[source]#

          Return the associated field of fractions QQ

          Returns:
          @@ -2589,7 +2589,7 @@

          Abstract Domains
          -is_square(a)[source]#
          +is_square(a)[source]#

          Return True if a is a square.

          Explanation

          An integer is a square if and only if there exists an integer @@ -2598,13 +2598,13 @@

          Abstract Domains
          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Compute LCM of a and b.

          -log(a, b)[source]#
          +log(a, b)[source]#

          Logarithm of a to the base b.

          Parameters:
          @@ -2633,13 +2633,13 @@

          Abstract Domains
          -sqrt(a)[source]#
          +sqrt(a)[source]#

          Compute square root of a.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -2647,7 +2647,7 @@

          Abstract Domains
          -class sympy.polys.domains.PythonIntegerRing[source]#
          +class sympy.polys.domains.PythonIntegerRing[source]#

          Integer ring based on Python’s int type.

          This will be used as ZZ if gmpy and gmpy2 are not installed. Elements are instances of the standard Python int type.

          @@ -2655,97 +2655,97 @@

          Abstract Domains
          -class sympy.polys.domains.GMPYIntegerRing[source]#
          +class sympy.polys.domains.GMPYIntegerRing[source]#

          Integer ring based on GMPY’s mpz type.

          This will be the implementation of ZZ if gmpy or gmpy2 is installed. Elements will be of type gmpy.mpz.

          -factorial(a)[source]#
          +factorial(a)[source]#

          Compute factorial of a.

          -from_FF_gmpy(a, K0)[source]#
          +from_FF_gmpy(a, K0)[source]#

          Convert ModularInteger(mpz) to GMPY’s mpz.

          -from_FF_python(a, K0)[source]#
          +from_FF_python(a, K0)[source]#

          Convert ModularInteger(int) to GMPY’s mpz.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert Python’s Fraction to GMPY’s mpz.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert GMPY mpq to GMPY’s mpz.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert Python’s Fraction to GMPY’s mpz.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert mpmath’s mpf to GMPY’s mpz.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert GMPY’s mpz to GMPY’s mpz.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert Python’s int to GMPY’s mpz.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s Integer to dtype.

          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Compute GCD of a and b.

          -gcdex(a, b)[source]#
          +gcdex(a, b)[source]#

          Compute extended GCD of a and b.

          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Compute LCM of a and b.

          -sqrt(a)[source]#
          +sqrt(a)[source]#

          Compute square root of a.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -2795,7 +2795,7 @@

          Abstract Domains
          -class sympy.polys.domains.RationalField[source]#
          +class sympy.polys.domains.RationalField[source]#

          Abstract base class for the domain QQ.

          The RationalField class represents the field of rational numbers \(\mathbb{Q}\) as a Domain in the domain system. @@ -2809,7 +2809,7 @@

          Abstract Domains
          -algebraic_field(*extension, alias=None)[source]#
          +algebraic_field(*extension, alias=None)[source]#

          Returns an algebraic field, i.e. \(\mathbb{Q}(\alpha, \ldots)\).

          Parameters:
          @@ -2841,25 +2841,25 @@

          Abstract Domains
          -denom(a)[source]#
          +denom(a)[source]#

          Returns denominator of a.

          -div(a, b)[source]#
          +div(a, b)[source]#

          Division of a and b, implies __truediv__.

          -exquo(a, b)[source]#
          +exquo(a, b)[source]#

          Exact quotient of a and b, implies __truediv__.

          -exsqrt(a)[source]#
          +exsqrt(a)[source]#

          Non-negative square root of a if a is a square.

          See also

          @@ -2869,74 +2869,74 @@

          Abstract Domains
          -from_AlgebraicField(a, K0)[source]#
          +from_AlgebraicField(a, K0)[source]#

          Convert a ANP object to QQ.

          See convert()

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a GaussianElement object to dtype.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY mpq object to dtype.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert a mpmath mpf object to dtype.

          -from_ZZ(a, K0)[source]#
          +from_ZZ(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY mpz object to dtype.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s Integer to dtype.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns ring associated with self.

          -is_square(a)[source]#
          +is_square(a)[source]#

          Return True if a is a square.

          Explanation

          A rational number is a square if and only if there exists @@ -2945,25 +2945,25 @@

          Abstract Domains
          -numer(a)[source]#
          +numer(a)[source]#

          Returns numerator of a.

          -quo(a, b)[source]#
          +quo(a, b)[source]#

          Quotient of a and b, implies __truediv__.

          -rem(a, b)[source]#
          +rem(a, b)[source]#

          Remainder of a and b, implies nothing.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -2971,7 +2971,7 @@

          Abstract Domains
          -class sympy.polys.domains.PythonRationalField[source]#
          +class sympy.polys.domains.PythonRationalField[source]#

          Rational field based on MPQ.

          This will be used as QQ if gmpy and gmpy2 are not installed. Elements are instances of MPQ.

          @@ -2979,103 +2979,103 @@

          Abstract Domains
          -class sympy.polys.domains.GMPYRationalField[source]#
          +class sympy.polys.domains.GMPYRationalField[source]#

          Rational field based on GMPY’s mpq type.

          This will be the implementation of QQ if gmpy or gmpy2 is installed. Elements will be of type gmpy.mpq.

          -denom(a)[source]#
          +denom(a)[source]#

          Returns denominator of a.

          -div(a, b)[source]#
          +div(a, b)[source]#

          Division of a and b, implies __truediv__.

          -exquo(a, b)[source]#
          +exquo(a, b)[source]#

          Exact quotient of a and b, implies __truediv__.

          -factorial(a)[source]#
          +factorial(a)[source]#

          Returns factorial of a.

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a GaussianElement object to dtype.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY mpq object to dtype.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert a mpmath mpf object to dtype.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY mpz object to dtype.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s Integer to dtype.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns ring associated with self.

          -numer(a)[source]#
          +numer(a)[source]#

          Returns numerator of a.

          -quo(a, b)[source]#
          +quo(a, b)[source]#

          Quotient of a and b, implies __truediv__.

          -rem(a, b)[source]#
          +rem(a, b)[source]#

          Remainder of a and b, implies nothing.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -3083,7 +3083,7 @@

          Abstract Domains
          -class sympy.external.pythonmpq.PythonMPQ(numerator, denominator=None)[source]#
          +class sympy.external.pythonmpq.PythonMPQ(numerator, denominator=None)[source]#

          Rational number implementation that is intended to be compatible with gmpy2’s mpq.

          Also slightly faster than fractions.Fraction.

          @@ -3104,89 +3104,89 @@

          Gaussian domainsGaussianDomain for the domains themselves.

          -class sympy.polys.domains.gaussiandomains.GaussianDomain[source]#
          +class sympy.polys.domains.gaussiandomains.GaussianDomain[source]#

          Base class for Gaussian domains.

          -from_AlgebraicField(a, K0)[source]#
          +from_AlgebraicField(a, K0)[source]#

          Convert an element from ZZ<I> or QQ<I> to self.dtype.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert a GMPY mpq to self.dtype.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY mpq to self.dtype.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a QQ_python element to self.dtype.

          -from_ZZ(a, K0)[source]#
          +from_ZZ(a, K0)[source]#

          Convert a ZZ_python element to self.dtype.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY mpz to self.dtype.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a ZZ_python element to self.dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert a SymPy object to self.dtype.

          -inject(*gens)[source]#
          +inject(*gens)[source]#

          Inject generators into this domain.

          -is_negative(element)[source]#
          +is_negative(element)[source]#

          Returns False for any GaussianElement.

          -is_nonnegative(element)[source]#
          +is_nonnegative(element)[source]#

          Returns False for any GaussianElement.

          -is_nonpositive(element)[source]#
          +is_nonpositive(element)[source]#

          Returns False for any GaussianElement.

          -is_positive(element)[source]#
          +is_positive(element)[source]#

          Returns False for any GaussianElement.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -3194,23 +3194,23 @@

          Gaussian domains
          -class sympy.polys.domains.gaussiandomains.GaussianElement(x, y=0)[source]#
          +class sympy.polys.domains.gaussiandomains.GaussianElement(x, y=0)[source]#

          Base class for elements of Gaussian type domains.

          -classmethod new(x, y)[source]#
          +classmethod new(x, y)[source]#

          Create a new GaussianElement of the same domain.

          -parent()[source]#
          +parent()[source]#

          The domain that this is an element of (ZZ_I or QQ_I)

          -quadrant()[source]#
          +quadrant()[source]#

          Return quadrant index 0-3.

          0 is included in quadrant 0.

          @@ -3222,7 +3222,7 @@

          Gaussian domains

          ZZ_I#

          -class sympy.polys.domains.gaussiandomains.GaussianIntegerRing[source]#
          +class sympy.polys.domains.gaussiandomains.GaussianIntegerRing[source]#

          Ring of Gaussian integers ZZ_I

          The ZZ_I domain represents the Gaussian integers \(\mathbb{Z}[i]\) as a Domain in the domain system (see @@ -3318,49 +3318,49 @@

          Gaussian domains
          -dtype[source]#
          +dtype[source]#

          alias of GaussianInteger

          -from_GaussianIntegerRing(a, K0)[source]#
          +from_GaussianIntegerRing(a, K0)[source]#

          Convert a ZZ_I element to ZZ_I.

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a QQ_I element to ZZ_I.

          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Greatest common divisor of a and b over ZZ_I.

          -get_field()[source]#
          +get_field()[source]#

          Returns a field associated with self.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Least common multiple of a and b over ZZ_I.

          -normalize(d, *args)[source]#
          +normalize(d, *args)[source]#

          Return first quadrant element associated with d.

          Also multiply the other arguments by the same power of i.

          @@ -3369,7 +3369,7 @@

          Gaussian domains
          -class sympy.polys.domains.gaussiandomains.GaussianInteger(x, y=0)[source]#
          +class sympy.polys.domains.gaussiandomains.GaussianInteger(x, y=0)[source]#

          Gaussian integer: domain element for ZZ_I

          >>> from sympy import ZZ_I
           >>> z = ZZ_I(2, 3)
          @@ -3386,7 +3386,7 @@ 

          Gaussian domains

          QQ_I#

          -class sympy.polys.domains.gaussiandomains.GaussianRationalField[source]#
          +class sympy.polys.domains.gaussiandomains.GaussianRationalField[source]#

          Field of Gaussian rationals QQ_I

          The QQ_I domain represents the Gaussian rationals \(\mathbb{Q}(i)\) as a Domain in the domain system (see @@ -3501,49 +3501,49 @@

          Gaussian domains
          -as_AlgebraicField()[source]#
          +as_AlgebraicField()[source]#

          Get equivalent domain as an AlgebraicField.

          -denom(a)[source]#
          +denom(a)[source]#

          Get the denominator of a.

          -dtype[source]#
          +dtype[source]#

          alias of GaussianRational

          -from_GaussianIntegerRing(a, K0)[source]#
          +from_GaussianIntegerRing(a, K0)[source]#

          Convert a ZZ_I element to QQ_I.

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a QQ_I element to QQ_I.

          -get_field()[source]#
          +get_field()[source]#

          Returns a field associated with self.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -numer(a)[source]#
          +numer(a)[source]#

          Get the numerator of a.

          @@ -3551,7 +3551,7 @@

          Gaussian domains
          -class sympy.polys.domains.gaussiandomains.GaussianRational(x, y=0)[source]#
          +class sympy.polys.domains.gaussiandomains.GaussianRational(x, y=0)[source]#

          Gaussian rational: domain element for QQ_I

          >>> from sympy import QQ_I, QQ
           >>> z = QQ_I(QQ(2, 3), QQ(4, 5))
          @@ -3568,7 +3568,7 @@ 

          Gaussian domains

          QQ<a>#

          -class sympy.polys.domains.AlgebraicField(dom, *ext, alias=None)[source]#
          +class sympy.polys.domains.AlgebraicField(dom, *ext, alias=None)[source]#

          Algebraic number field QQ<a>

          A QQ<a> domain represents an algebraic number field \(\mathbb{Q}(a)\) as a Domain in the domain system (see @@ -3786,25 +3786,25 @@

          Gaussian domains
          -algebraic_field(*extension, alias=None)[source]#
          +algebraic_field(*extension, alias=None)[source]#

          Returns an algebraic field, i.e. \(\mathbb{Q}(\alpha, \ldots)\).

          -denom(a)[source]#
          +denom(a)[source]#

          Returns denominator of a.

          -discriminant()[source]#
          +discriminant()[source]#

          Get the discriminant of the field.

          -dtype[source]#
          +dtype[source]#

          alias of ANP

          @@ -3822,73 +3822,73 @@

          Gaussian domains
          -from_AlgebraicField(a, K0)[source]#
          +from_AlgebraicField(a, K0)[source]#

          Convert AlgebraicField element ‘a’ to another AlgebraicField

          -from_GaussianIntegerRing(a, K0)[source]#
          +from_GaussianIntegerRing(a, K0)[source]#

          Convert a GaussianInteger element ‘a’ to dtype.

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a GaussianRational element ‘a’ to dtype.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY mpq object to dtype.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert a mpmath mpf object to dtype.

          -from_ZZ(a, K0)[source]#
          +from_ZZ(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY mpz object to dtype.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s expression to dtype.

          -galois_group(by_name=False, max_tries=30, randomize=False)[source]#
          +galois_group(by_name=False, max_tries=30, randomize=False)[source]#

          Compute the Galois group of the Galois closure of this field.

          Examples

          If the field is Galois, the order of the group will equal the degree @@ -3918,13 +3918,13 @@

          Gaussian domains
          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -integral_basis(fmt=None)[source]#
          +integral_basis(fmt=None)[source]#

          Get an integral basis for the field.

          Parameters:
          @@ -3969,31 +3969,31 @@

          Gaussian domains
          -is_negative(a)[source]#
          +is_negative(a)[source]#

          Returns True if a is negative.

          -is_nonnegative(a)[source]#
          +is_nonnegative(a)[source]#

          Returns True if a is non-negative.

          -is_nonpositive(a)[source]#
          +is_nonpositive(a)[source]#

          Returns True if a is non-positive.

          -is_positive(a)[source]#
          +is_positive(a)[source]#

          Returns True if a is positive.

          -maximal_order()[source]#
          +maximal_order()[source]#

          Compute the maximal order, or ring of integers, of the field.

          Returns:
          @@ -4020,7 +4020,7 @@

          Gaussian domains
          -numer(a)[source]#
          +numer(a)[source]#

          Returns numerator of a.

          @@ -4038,19 +4038,19 @@

          Gaussian domains
          -primes_above(p)[source]#
          +primes_above(p)[source]#

          Compute the prime ideals lying above a given rational prime p.

          -to_alg_num(a)[source]#
          +to_alg_num(a)[source]#

          Convert a of dtype to an AlgebraicNumber.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a of dtype to a SymPy object.

          @@ -4061,17 +4061,17 @@

          Gaussian domains

          RR#

          -class sympy.polys.domains.RealField(prec=53, dps=None, tol=None)[source]#
          +class sympy.polys.domains.RealField(prec=53, dps=None, tol=None)[source]#

          Real numbers up to the given precision.

          -almosteq(a, b, tolerance=None)[source]#
          +almosteq(a, b, tolerance=None)[source]#

          Check if a and b are almost equal.

          -exsqrt(a)[source]#
          +exsqrt(a)[source]#

          Non-negative square root for a >= 0 and None otherwise.

          Explanation

          The square root may be slightly inaccurate due to floating point @@ -4080,49 +4080,49 @@

          Gaussian domains
          -from_sympy(expr)[source]#
          +from_sympy(expr)[source]#

          Convert SymPy’s number to dtype.

          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Returns GCD of a and b.

          -get_exact()[source]#
          +get_exact()[source]#

          Returns an exact domain associated with self.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -is_square(a)[source]#
          +is_square(a)[source]#

          Returns True if a >= 0 and False otherwise.

          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Returns LCM of a and b.

          -to_rational(element, limit=True)[source]#
          +to_rational(element, limit=True)[source]#

          Convert a real number to rational number.

          -to_sympy(element)[source]#
          +to_sympy(element)[source]#

          Convert element to SymPy number.

          @@ -4130,7 +4130,7 @@

          Gaussian domains
          -class sympy.polys.domains.mpelements.RealElement(val=(0, 0, 0, 0), **kwargs)[source]#
          +class sympy.polys.domains.mpelements.RealElement(val=(0, 0, 0, 0), **kwargs)[source]#

          An element of a real domain.

          @@ -4139,17 +4139,17 @@

          Gaussian domains

          CC#

          -class sympy.polys.domains.ComplexField(prec=53, dps=None, tol=None)[source]#
          +class sympy.polys.domains.ComplexField(prec=53, dps=None, tol=None)[source]#

          Complex numbers up to the given precision.

          -almosteq(a, b, tolerance=None)[source]#
          +almosteq(a, b, tolerance=None)[source]#

          Check if a and b are almost equal.

          -exsqrt(a)[source]#
          +exsqrt(a)[source]#

          Returns the principal complex square root of a.

          Explanation

          The argument of the principal square root is always within @@ -4159,67 +4159,67 @@

          Gaussian domains
          -from_sympy(expr)[source]#
          +from_sympy(expr)[source]#

          Convert SymPy’s number to dtype.

          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Returns GCD of a and b.

          -get_exact()[source]#
          +get_exact()[source]#

          Returns an exact domain associated with self.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -is_negative(element)[source]#
          +is_negative(element)[source]#

          Returns False for any ComplexElement.

          -is_nonnegative(element)[source]#
          +is_nonnegative(element)[source]#

          Returns False for any ComplexElement.

          -is_nonpositive(element)[source]#
          +is_nonpositive(element)[source]#

          Returns False for any ComplexElement.

          -is_positive(element)[source]#
          +is_positive(element)[source]#

          Returns False for any ComplexElement.

          -is_square(a)[source]#
          +is_square(a)[source]#

          Returns True. Every complex number has a complex square root.

          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Returns LCM of a and b.

          -to_sympy(element)[source]#
          +to_sympy(element)[source]#

          Convert element to SymPy number.

          @@ -4227,7 +4227,7 @@

          Gaussian domains
          -class sympy.polys.domains.mpelements.ComplexElement(real=0, imag=0)[source]#
          +class sympy.polys.domains.mpelements.ComplexElement(real=0, imag=0)[source]#

          An element of a complex domain.

          @@ -4236,161 +4236,161 @@

          Gaussian domains

          K[x]#

          -class sympy.polys.domains.PolynomialRing(domain_or_ring, symbols=None, order=None)[source]#
          +class sympy.polys.domains.PolynomialRing(domain_or_ring, symbols=None, order=None)[source]#

          A class for representing multivariate polynomial rings.

          -factorial(a)[source]#
          +factorial(a)[source]#

          Returns factorial of \(a\).

          -from_AlgebraicField(a, K0)[source]#
          +from_AlgebraicField(a, K0)[source]#

          Convert an algebraic number to dtype.

          -from_ComplexField(a, K0)[source]#
          +from_ComplexField(a, K0)[source]#

          Convert a mpmath \(mpf\) object to \(dtype\).

          -from_FractionField(a, K0)[source]#
          +from_FractionField(a, K0)[source]#

          Convert a rational function to dtype.

          -from_GaussianIntegerRing(a, K0)[source]#
          +from_GaussianIntegerRing(a, K0)[source]#

          Convert a \(GaussianInteger\) object to \(dtype\).

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a \(GaussianRational\) object to \(dtype\).

          -from_GlobalPolynomialRing(a, K0)[source]#
          +from_GlobalPolynomialRing(a, K0)[source]#

          Convert from old poly ring to dtype.

          -from_PolynomialRing(a, K0)[source]#
          +from_PolynomialRing(a, K0)[source]#

          Convert a polynomial to dtype.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert a Python \(Fraction\) object to \(dtype\).

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY \(mpq\) object to \(dtype\).

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a Python \(Fraction\) object to \(dtype\).

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert a mpmath \(mpf\) object to \(dtype\).

          -from_ZZ(a, K0)[source]#
          +from_ZZ(a, K0)[source]#

          Convert a Python \(int\) object to \(dtype\).

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY \(mpz\) object to \(dtype\).

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a Python \(int\) object to \(dtype\).

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s expression to \(dtype\).

          -gcd(a, b)[source]#
          +gcd(a, b)[source]#

          Returns GCD of \(a\) and \(b\).

          -gcdex(a, b)[source]#
          +gcdex(a, b)[source]#

          Extended GCD of \(a\) and \(b\).

          -get_field()[source]#
          +get_field()[source]#

          Returns a field associated with \(self\).

          -is_negative(a)[source]#
          +is_negative(a)[source]#

          Returns True if \(LC(a)\) is negative.

          -is_nonnegative(a)[source]#
          +is_nonnegative(a)[source]#

          Returns True if \(LC(a)\) is non-negative.

          -is_nonpositive(a)[source]#
          +is_nonpositive(a)[source]#

          Returns True if \(LC(a)\) is non-positive.

          -is_positive(a)[source]#
          +is_positive(a)[source]#

          Returns True if \(LC(a)\) is positive.

          -is_unit(a)[source]#
          +is_unit(a)[source]#

          Returns True if a is a unit of self

          -lcm(a, b)[source]#
          +lcm(a, b)[source]#

          Returns LCM of \(a\) and \(b\).

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert \(a\) to a SymPy object.

          @@ -4401,143 +4401,143 @@

          Gaussian domains

          K(x)#

          -class sympy.polys.domains.FractionField(domain_or_field, symbols=None, order=None)[source]#
          +class sympy.polys.domains.FractionField(domain_or_field, symbols=None, order=None)[source]#

          A class for representing multivariate rational function fields.

          -denom(a)[source]#
          +denom(a)[source]#

          Returns denominator of a.

          -factorial(a)[source]#
          +factorial(a)[source]#

          Returns factorial of a.

          -from_AlgebraicField(a, K0)[source]#
          +from_AlgebraicField(a, K0)[source]#

          Convert an algebraic number to dtype.

          -from_ComplexField(a, K0)[source]#
          +from_ComplexField(a, K0)[source]#

          Convert a mpmath mpf object to dtype.

          -from_FractionField(a, K0)[source]#
          +from_FractionField(a, K0)[source]#

          Convert a rational function to dtype.

          -from_GaussianIntegerRing(a, K0)[source]#
          +from_GaussianIntegerRing(a, K0)[source]#

          Convert a GaussianInteger object to dtype.

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a GaussianRational object to dtype.

          -from_PolynomialRing(a, K0)[source]#
          +from_PolynomialRing(a, K0)[source]#

          Convert a polynomial to dtype.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY mpq object to dtype.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert a mpmath mpf object to dtype.

          -from_ZZ(a, K0)[source]#
          +from_ZZ(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY mpz object to dtype.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s expression to dtype.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a field associated with self.

          -is_negative(a)[source]#
          +is_negative(a)[source]#

          Returns True if LC(a) is negative.

          -is_nonnegative(a)[source]#
          +is_nonnegative(a)[source]#

          Returns True if LC(a) is non-negative.

          -is_nonpositive(a)[source]#
          +is_nonpositive(a)[source]#

          Returns True if LC(a) is non-positive.

          -is_positive(a)[source]#
          +is_positive(a)[source]#

          Returns True if LC(a) is positive.

          -numer(a)[source]#
          +numer(a)[source]#

          Returns numerator of a.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -4548,149 +4548,149 @@

          Gaussian domains

          EX#

          -class sympy.polys.domains.ExpressionDomain[source]#
          +class sympy.polys.domains.ExpressionDomain[source]#

          A class for arbitrary expressions.

          -class Expression(ex)[source]#
          +class Expression(ex)[source]#

          An arbitrary expression.

          -denom(a)[source]#
          +denom(a)[source]#

          Returns denominator of a.

          -dtype[source]#
          +dtype[source]#

          alias of Expression

          -from_ExpressionDomain(a, K0)[source]#
          +from_ExpressionDomain(a, K0)[source]#

          Convert a EX object to dtype.

          -from_FractionField(a, K0)[source]#
          +from_FractionField(a, K0)[source]#

          Convert a DMF object to dtype.

          -from_GaussianIntegerRing(a, K0)[source]#
          +from_GaussianIntegerRing(a, K0)[source]#

          Convert a GaussianRational object to dtype.

          -from_GaussianRationalField(a, K0)[source]#
          +from_GaussianRationalField(a, K0)[source]#

          Convert a GaussianRational object to dtype.

          -from_PolynomialRing(a, K0)[source]#
          +from_PolynomialRing(a, K0)[source]#

          Convert a DMP object to dtype.

          -from_QQ(a, K0)[source]#
          +from_QQ(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_QQ_gmpy(a, K0)[source]#
          +from_QQ_gmpy(a, K0)[source]#

          Convert a GMPY mpq object to dtype.

          -from_QQ_python(a, K0)[source]#
          +from_QQ_python(a, K0)[source]#

          Convert a Python Fraction object to dtype.

          -from_RealField(a, K0)[source]#
          +from_RealField(a, K0)[source]#

          Convert a mpmath mpf object to dtype.

          -from_ZZ(a, K0)[source]#
          +from_ZZ(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_ZZ_gmpy(a, K0)[source]#
          +from_ZZ_gmpy(a, K0)[source]#

          Convert a GMPY mpz object to dtype.

          -from_ZZ_python(a, K0)[source]#
          +from_ZZ_python(a, K0)[source]#

          Convert a Python int object to dtype.

          -from_sympy(a)[source]#
          +from_sympy(a)[source]#

          Convert SymPy’s expression to dtype.

          -get_field()[source]#
          +get_field()[source]#

          Returns a field associated with self.

          -get_ring()[source]#
          +get_ring()[source]#

          Returns a ring associated with self.

          -is_negative(a)[source]#
          +is_negative(a)[source]#

          Returns True if a is negative.

          -is_nonnegative(a)[source]#
          +is_nonnegative(a)[source]#

          Returns True if a is non-negative.

          -is_nonpositive(a)[source]#
          +is_nonpositive(a)[source]#

          Returns True if a is non-positive.

          -is_positive(a)[source]#
          +is_positive(a)[source]#

          Returns True if a is positive.

          -numer(a)[source]#
          +numer(a)[source]#

          Returns numerator of a.

          -to_sympy(a)[source]#
          +to_sympy(a)[source]#

          Convert a to a SymPy object.

          @@ -4698,7 +4698,7 @@

          Gaussian domains
          -class ExpressionDomain.Expression(ex)[source]#
          +class ExpressionDomain.Expression(ex)[source]#

          An arbitrary expression.

          @@ -4707,7 +4707,7 @@

          Gaussian domains#

          -class sympy.polys.domains.quotientring.QuotientRing(ring, ideal)[source]#
          +class sympy.polys.domains.quotientring.QuotientRing(ring, ideal)[source]#

          Class representing (commutative) quotient rings.

          You should not usually instantiate this by hand, instead use the constructor from the base ring in the construction.

          @@ -4740,7 +4740,7 @@

          Sparse polynomials
          -sympy.polys.rings.ring(symbols, domain, order=LexOrder())[source]#
          +sympy.polys.rings.ring(symbols, domain, order=LexOrder())[source]#

          Construct a polynomial ring returning (ring, x_1, ..., x_n).

          Parameters:
          @@ -4771,7 +4771,7 @@

          Sparse polynomials
          -sympy.polys.rings.xring(symbols, domain, order=LexOrder())[source]#
          +sympy.polys.rings.xring(symbols, domain, order=LexOrder())[source]#

          Construct a polynomial ring returning (ring, (x_1, ..., x_n)).

          Parameters:
          @@ -4802,7 +4802,7 @@

          Sparse polynomials
          -sympy.polys.rings.vring(symbols, domain, order=LexOrder())[source]#
          +sympy.polys.rings.vring(symbols, domain, order=LexOrder())[source]#

          Construct a polynomial ring and inject x_1, ..., x_n into the global namespace.

          Parameters:
          @@ -4832,7 +4832,7 @@

          Sparse polynomials
          -sympy.polys.rings.sring(exprs, *symbols, **options)[source]#
          +sympy.polys.rings.sring(exprs, *symbols, **options)[source]#

          Construct a ring deriving generators and domain from options and input expressions.

          Parameters:
          @@ -4859,11 +4859,11 @@

          Sparse polynomials
          -class sympy.polys.rings.PolyRing(symbols, domain, order=LexOrder())[source]#
          +class sympy.polys.rings.PolyRing(symbols, domain, order=LexOrder())[source]#

          Multivariate distributed polynomial ring.

          -add(*objs)[source]#
          +add(*objs)[source]#

          Add a sequence of polynomials or containers of polynomials.

          Examples

          >>> from sympy.polys.rings import ring
          @@ -4881,44 +4881,44 @@ 

          Sparse polynomials
          -add_gens(symbols)[source]#
          +add_gens(symbols)[source]#

          Add the elements of symbols as generators to self

          -compose(other)[source]#
          +compose(other)[source]#

          Add the generators of other to self

          -drop(*gens)[source]#
          +drop(*gens)[source]#

          Remove specified generators from this ring.

          -drop_to_ground(*gens)[source]#
          +drop_to_ground(*gens)[source]#

          Remove specified generators from the ring and inject them into its domain.

          -index(gen)[source]#
          +index(gen)[source]#

          Compute index of gen in self.gens.

          -monomial_basis(i)[source]#
          +monomial_basis(i)[source]#

          Return the ith-basis element.

          -mul(*objs)[source]#
          +mul(*objs)[source]#

          Multiply a sequence of polynomials or containers of polynomials.

          Examples

          >>> from sympy.polys.rings import ring
          @@ -4936,7 +4936,7 @@ 

          Sparse polynomials
          -symmetric_poly(n)[source]#
          +symmetric_poly(n)[source]#

          Return the elementary symmetric polynomial of degree n over this ring’s generators.

          @@ -4945,17 +4945,17 @@

          Sparse polynomials
          -class sympy.polys.rings.PolyElement[source]#
          +class sympy.polys.rings.PolyElement[source]#

          Element of multivariate distributed polynomial ring.

          -almosteq(p2, tolerance=None)[source]#
          +almosteq(p2, tolerance=None)[source]#

          Approximate equality test for polynomials.

          -cancel(g)[source]#
          +cancel(g)[source]#

          Cancel common factors in a rational function f/g.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4970,7 +4970,7 @@ 

          Sparse polynomials
          -coeff(element)[source]#
          +coeff(element)[source]#

          Returns the coefficient that stands next to the given monomial.

          Parameters:
          @@ -4998,7 +4998,7 @@

          Sparse polynomials
          -coeff_wrt(x, deg)[source]#
          +coeff_wrt(x, deg)[source]#

          Coefficient of self with respect to x**deg.

          Treating self as a univariate polynomial in x this finds the coefficient of x**deg as a polynomial in the other generators.

          @@ -5043,7 +5043,7 @@

          Sparse polynomials
          -coeffs(order=None)[source]#
          +coeffs(order=None)[source]#

          Ordered list of polynomial coefficients.

          Parameters:
          @@ -5070,19 +5070,19 @@

          Sparse polynomials
          -const()[source]#
          +const()[source]#

          Returns the constant coefficient.

          -content()[source]#
          +content()[source]#

          Returns GCD of polynomial’s coefficients.

          -copy()[source]#
          +copy()[source]#

          Return a copy of polynomial self.

          Polynomials are mutable; if one is interested in preserving a polynomial, and one plans to use inplace operations, one @@ -5109,21 +5109,21 @@

          Sparse polynomials
          -degree(x=None)[source]#
          +degree(x=None)[source]#

          The leading degree in x or the main variable.

          Note that the degree of 0 is negative infinity (float('-inf'))

          -degrees()[source]#
          +degrees()[source]#

          A tuple containing leading degrees in all variables.

          Note that the degree of 0 is negative infinity (float('-inf'))

          -diff(x)[source]#
          +diff(x)[source]#

          Computes partial derivative in x.

          Examples

          >>> from sympy.polys.rings import ring
          @@ -5140,7 +5140,7 @@ 

          Sparse polynomials
          -div(fv)[source]#
          +div(fv)[source]#

          Division algorithm, see [CLO] p64.

          fv array of polynomials

          return qv, r such that @@ -5170,7 +5170,7 @@

          Sparse polynomials
          -imul_num(c)[source]#
          +imul_num(c)[source]#

          multiply inplace the polynomial p by an element in the coefficient ring, provided p is not one of the generators; else multiply not inplace

          @@ -5198,25 +5198,25 @@

          Sparse polynomials
          -itercoeffs()[source]#
          +itercoeffs()[source]#

          Iterator over coefficients of a polynomial.

          -itermonoms()[source]#
          +itermonoms()[source]#

          Iterator over monomials of a polynomial.

          -iterterms()[source]#
          +iterterms()[source]#

          Iterator over terms of a polynomial.

          -leading_expv()[source]#
          +leading_expv()[source]#

          Leading monomial tuple according to the monomial ordering.

          Examples

          >>> from sympy.polys.rings import ring
          @@ -5233,7 +5233,7 @@ 

          Sparse polynomials
          -leading_monom()[source]#
          +leading_monom()[source]#

          Leading monomial as a polynomial element.

          Examples

          >>> from sympy.polys.rings import ring
          @@ -5249,7 +5249,7 @@ 

          Sparse polynomials
          -leading_term()[source]#
          +leading_term()[source]#

          Leading term as a polynomial element.

          Examples

          >>> from sympy.polys.rings import ring
          @@ -5265,31 +5265,31 @@ 

          Sparse polynomials
          -listcoeffs()[source]#
          +listcoeffs()[source]#

          Unordered list of polynomial coefficients.

          -listmonoms()[source]#
          +listmonoms()[source]#

          Unordered list of polynomial monomials.

          -listterms()[source]#
          +listterms()[source]#

          Unordered list of polynomial terms.

          -monic()[source]#
          +monic()[source]#

          Divides all coefficients by the leading coefficient.

          -monoms(order=None)[source]#
          +monoms(order=None)[source]#

          Ordered list of polynomial monomials.

          Parameters:
          @@ -5316,7 +5316,7 @@

          Sparse polynomials
          -pdiv(g, x=None)[source]#
          +pdiv(g, x=None)[source]#

          Computes the pseudo-division of the polynomial self with respect to g.

          The pseudo-division algorithm is used to find the pseudo-quotient q and pseudo-remainder r such that m*f = g*q + r, where m @@ -5393,7 +5393,7 @@

          Sparse polynomials
          -pexquo(g, x=None)[source]#
          +pexquo(g, x=None)[source]#

          Polynomial exact pseudo-quotient in multivariate polynomial ring.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -5423,7 +5423,7 @@ 

          Sparse polynomials
          -pquo(g, x=None)[source]#
          +pquo(g, x=None)[source]#

          Polynomial pseudo-quotient in multivariate polynomial ring.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -5451,7 +5451,7 @@ 

          Sparse polynomials
          -prem(g, x=None)[source]#
          +prem(g, x=None)[source]#

          Pseudo-remainder of the polynomial self with respect to g.

          The pseudo-quotient q and pseudo-remainder r with respect to z when dividing f by g satisfy m*f = g*q + r, @@ -5504,13 +5504,13 @@

          Sparse polynomials
          -primitive()[source]#
          +primitive()[source]#

          Returns content and a primitive polynomial.

          -square()[source]#
          +square()[source]#

          square of a polynomial

          Examples

          >>> from sympy.polys.rings import ring
          @@ -5527,13 +5527,13 @@ 

          Sparse polynomials
          -strip_zero()[source]#
          +strip_zero()[source]#

          Eliminate monomials with zero coefficient.

          -subresultants(g, x=None)[source]#
          +subresultants(g, x=None)[source]#

          Computes the subresultant PRS of two polynomials self and g.

          Parameters:
          @@ -5572,7 +5572,7 @@

          Sparse polynomials
          -symmetrize()[source]#
          +symmetrize()[source]#

          Rewrite self in terms of elementary symmetric polynomials.

          Returns:
          @@ -5630,21 +5630,21 @@

          Sparse polynomials
          -tail_degree(x=None)[source]#
          +tail_degree(x=None)[source]#

          The tail degree in x or the main variable.

          Note that the degree of 0 is negative infinity (float('-inf'))

          -tail_degrees()[source]#
          +tail_degrees()[source]#

          A tuple containing tail degrees in all variables.

          Note that the degree of 0 is negative infinity (float('-inf'))

          -terms(order=None)[source]#
          +terms(order=None)[source]#

          Ordered list of polynomial terms.

          Parameters:
          @@ -5677,25 +5677,25 @@

          Sparse rational functions
          -sympy.polys.fields.field(symbols, domain, order=LexOrder())[source]#
          +sympy.polys.fields.field(symbols, domain, order=LexOrder())[source]#

          Construct new rational function field returning (field, x1, …, xn).

          -sympy.polys.fields.xfield(symbols, domain, order=LexOrder())[source]#
          +sympy.polys.fields.xfield(symbols, domain, order=LexOrder())[source]#

          Construct new rational function field returning (field, (x1, …, xn)).

          -sympy.polys.fields.vfield(symbols, domain, order=LexOrder())[source]#
          +sympy.polys.fields.vfield(symbols, domain, order=LexOrder())[source]#

          Construct new rational function field and inject generators into global namespace.

          -sympy.polys.fields.sfield(exprs, *symbols, **options)[source]#
          +sympy.polys.fields.sfield(exprs, *symbols, **options)[source]#

          Construct a field deriving generators and domain from options and input expressions.

          @@ -5721,17 +5721,17 @@

          Sparse rational functions
          -class sympy.polys.fields.FracField(symbols, domain, order=LexOrder())[source]#
          +class sympy.polys.fields.FracField(symbols, domain, order=LexOrder())[source]#

          Multivariate distributed rational function field.

          -class sympy.polys.fields.FracElement(numer, denom=None)[source]#
          +class sympy.polys.fields.FracElement(numer, denom=None)[source]#

          Element of multivariate distributed rational function field.

          -diff(x)[source]#
          +diff(x)[source]#

          Computes partial derivative in x.

          Examples

          >>> from sympy.polys.fields import field
          @@ -5752,179 +5752,179 @@ 

          Sparse rational functions#

          -class sympy.polys.polyclasses.DMP(rep, dom, lev=None)[source]#
          +class sympy.polys.polyclasses.DMP(rep, dom, lev=None)[source]#

          Dense Multivariate Polynomials over \(K\).

          -LC()[source]#
          +LC()[source]#

          Returns the leading coefficient of f.

          -TC()[source]#
          +TC()[source]#

          Returns the trailing coefficient of f.

          -abs()[source]#
          +abs()[source]#

          Make all coefficients in f positive.

          -add(g)[source]#
          +add(g)[source]#

          Add two multivariate polynomials f and g.

          -add_ground(c)[source]#
          +add_ground(c)[source]#

          Add an element of the ground domain to f.

          -all_coeffs()[source]#
          +all_coeffs()[source]#

          Returns all coefficients from f.

          -all_monoms()[source]#
          +all_monoms()[source]#

          Returns all monomials from f.

          -all_terms()[source]#
          +all_terms()[source]#

          Returns all terms from a f.

          -cancel(g, include=True)[source]#
          +cancel(g, include=True)[source]#

          Cancel common factors in a rational function f/g.

          -cauchy_lower_bound()[source]#
          +cauchy_lower_bound()[source]#

          Computes the Cauchy lower bound on the nonzero roots of f.

          -cauchy_upper_bound()[source]#
          +cauchy_upper_bound()[source]#

          Computes the Cauchy upper bound on the roots of f.

          -clear_denoms()[source]#
          +clear_denoms()[source]#

          Clear denominators, but keep the ground domain.

          -coeffs(order=None)[source]#
          +coeffs(order=None)[source]#

          Returns all non-zero coefficients from f in lex order.

          -cofactors(g)[source]#
          +cofactors(g)[source]#

          Returns GCD of f and g and their cofactors.

          -compose(g)[source]#
          +compose(g)[source]#

          Computes functional composition of f and g.

          -content()[source]#
          +content()[source]#

          Returns GCD of polynomial coefficients.

          -convert(dom)[source]#
          +convert(dom)[source]#

          Convert f to a DMP over the new domain.

          -count_complex_roots(inf=None, sup=None)[source]#
          +count_complex_roots(inf=None, sup=None)[source]#

          Return the number of complex roots of f in [inf, sup].

          -count_real_roots(inf=None, sup=None)[source]#
          +count_real_roots(inf=None, sup=None)[source]#

          Return the number of real roots of f in [inf, sup].

          -decompose()[source]#
          +decompose()[source]#

          Computes functional decomposition of f.

          -deflate()[source]#
          +deflate()[source]#

          Reduce degree of \(f\) by mapping \(x_i^m\) to \(y_i\).

          -degree(j=0)[source]#
          +degree(j=0)[source]#

          Returns the leading degree of f in x_j.

          -degree_list()[source]#
          +degree_list()[source]#

          Returns a list of degrees of f.

          -diff(m=1, j=0)[source]#
          +diff(m=1, j=0)[source]#

          Computes the m-th order derivative of f in x_j.

          -discriminant()[source]#
          +discriminant()[source]#

          Computes discriminant of f.

          -div(g)[source]#
          +div(g)[source]#

          Polynomial division with remainder of f and g.

          -eject(dom, front=False)[source]#
          +eject(dom, front=False)[source]#

          Eject selected generators into the ground domain.

          -eval(a, j=0)[source]#
          +eval(a, j=0)[source]#

          Evaluates f at the given point a in x_j.

          -exclude()[source]#
          +exclude()[source]#

          Remove useless generators from f.

          Returns the removed generators and the new excluded f.

          Examples

          @@ -5940,103 +5940,103 @@

          Dense polynomials
          -exquo(g)[source]#
          +exquo(g)[source]#

          Computes polynomial exact quotient of f and g.

          -exquo_ground(c)[source]#
          +exquo_ground(c)[source]#

          Exact quotient of f by a an element of the ground domain.

          -factor_list()[source]#
          +factor_list()[source]#

          Returns a list of irreducible factors of f.

          -factor_list_include()[source]#
          +factor_list_include()[source]#

          Returns a list of irreducible factors of f.

          -classmethod from_list(rep, lev, dom)[source]#
          +classmethod from_list(rep, lev, dom)[source]#

          Create an instance of cls given a list of native coefficients.

          -classmethod from_sympy_list(rep, lev, dom)[source]#
          +classmethod from_sympy_list(rep, lev, dom)[source]#

          Create an instance of cls given a list of SymPy coefficients.

          -gcd(g)[source]#
          +gcd(g)[source]#

          Returns polynomial GCD of f and g.

          -gcdex(g)[source]#
          +gcdex(g)[source]#

          Extended Euclidean algorithm, if univariate.

          -gff_list()[source]#
          +gff_list()[source]#

          Computes greatest factorial factorization of f.

          -ground_new(coeff)[source]#
          +ground_new(coeff)[source]#

          Construct a new ground instance of f.

          -half_gcdex(g)[source]#
          +half_gcdex(g)[source]#

          Half extended Euclidean algorithm, if univariate.

          -homogeneous_order()[source]#
          +homogeneous_order()[source]#

          Returns the homogeneous order of f.

          -homogenize(s)[source]#
          +homogenize(s)[source]#

          Return homogeneous polynomial of f

          -inject(front=False)[source]#
          +inject(front=False)[source]#

          Inject ground domain generators into f.

          -integrate(m=1, j=0)[source]#
          +integrate(m=1, j=0)[source]#

          Computes the m-th order indefinite integral of f in x_j.

          -intervals(all=False, eps=None, inf=None, sup=None, fast=False, sqf=False)[source]#
          +intervals(all=False, eps=None, inf=None, sup=None, fast=False, sqf=False)[source]#

          Compute isolating intervals for roots of f.

          -invert(g)[source]#
          +invert(g)[source]#

          Invert f modulo g, if possible.

          @@ -6114,91 +6114,91 @@

          Dense polynomials
          -l1_norm()[source]#
          +l1_norm()[source]#

          Returns l1 norm of f.

          -l2_norm_squared()[source]#
          +l2_norm_squared()[source]#

          Return squared l2 norm of f.

          -lcm(g)[source]#
          +lcm(g)[source]#

          Returns polynomial LCM of f and g.

          -lift()[source]#
          +lift()[source]#

          Convert algebraic coefficients to rationals.

          -max_norm()[source]#
          +max_norm()[source]#

          Returns maximum norm of f.

          -mignotte_sep_bound_squared()[source]#
          +mignotte_sep_bound_squared()[source]#

          Computes the squared Mignotte bound on root separations of f.

          -monic()[source]#
          +monic()[source]#

          Divides all coefficients by LC(f).

          -monoms(order=None)[source]#
          +monoms(order=None)[source]#

          Returns all non-zero monomials from f in lex order.

          -mul(g)[source]#
          +mul(g)[source]#

          Multiply two multivariate polynomials f and g.

          -mul_ground(c)[source]#
          +mul_ground(c)[source]#

          Multiply f by a an element of the ground domain.

          -neg()[source]#
          +neg()[source]#

          Negate all coefficients in f.

          -norm()[source]#
          +norm()[source]#

          Computes Norm(f).

          -nth(*N)[source]#
          +nth(*N)[source]#

          Returns the n-th coefficient of f.

          -pdiv(g)[source]#
          +pdiv(g)[source]#

          Polynomial pseudo-division of f and g.

          -permute(P)[source]#
          +permute(P)[source]#

          Returns a polynomial in \(K[x_{P(1)}, ..., x_{P(n)}]\).

          Examples

          >>> from sympy.polys.polyclasses import DMP
          @@ -6217,56 +6217,56 @@ 

          Dense polynomials
          -pexquo(g)[source]#
          +pexquo(g)[source]#

          Polynomial exact pseudo-quotient of f and g.

          -pow(n)[source]#
          +pow(n)[source]#

          Raise f to a non-negative power n.

          -pquo(g)[source]#
          +pquo(g)[source]#

          Polynomial pseudo-quotient of f and g.

          -prem(g)[source]#
          +prem(g)[source]#

          Polynomial pseudo-remainder of f and g.

          -primitive()[source]#
          +primitive()[source]#

          Returns content and a primitive form of f.

          -quo(g)[source]#
          +quo(g)[source]#

          Computes polynomial quotient of f and g.

          -quo_ground(c)[source]#
          +quo_ground(c)[source]#

          Quotient of f by a an element of the ground domain.

          -refine_root(s, t, eps=None, steps=None, fast=False)[source]#
          +refine_root(s, t, eps=None, steps=None, fast=False)[source]#

          Refine an isolating interval to the given precision.

          eps should be a rational number.

          -rem(g)[source]#
          +rem(g)[source]#

          Computes polynomial remainder of f and g.

          @@ -6278,97 +6278,97 @@

          Dense polynomials
          -resultant(g, includePRS=False)[source]#
          +resultant(g, includePRS=False)[source]#

          Computes resultant of f and g via PRS.

          -revert(n)[source]#
          +revert(n)[source]#

          Compute f**(-1) mod x**n.

          -shift(a)[source]#
          +shift(a)[source]#

          Efficiently compute Taylor shift f(x + a).

          -slice(m, n, j=0)[source]#
          +slice(m, n, j=0)[source]#

          Take a continuous subsequence of terms of f.

          -sqf_list(all=False)[source]#
          +sqf_list(all=False)[source]#

          Returns a list of square-free factors of f.

          -sqf_list_include(all=False)[source]#
          +sqf_list_include(all=False)[source]#

          Returns a list of square-free factors of f.

          -sqf_norm()[source]#
          +sqf_norm()[source]#

          Computes square-free norm of f.

          -sqf_part()[source]#
          +sqf_part()[source]#

          Computes square-free part of f.

          -sqr()[source]#
          +sqr()[source]#

          Square a multivariate polynomial f.

          -sturm()[source]#
          +sturm()[source]#

          Computes the Sturm sequence of f.

          -sub(g)[source]#
          +sub(g)[source]#

          Subtract two multivariate polynomials f and g.

          -sub_ground(c)[source]#
          +sub_ground(c)[source]#

          Subtract an element of the ground domain from f.

          -subresultants(g)[source]#
          +subresultants(g)[source]#

          Computes subresultant PRS sequence of f and g.

          -terms(order=None)[source]#
          +terms(order=None)[source]#

          Returns all non-zero terms from f in lex order.

          -terms_gcd()[source]#
          +terms_gcd()[source]#

          Remove GCD of terms from the polynomial f.

          -to_best()[source]#
          +to_best()[source]#

          Convert to DUP_Flint if possible.

          This method should be used when the domain or level is changed and it potentially becomes possible to convert from DMP_Python to DUP_Flint.

          @@ -6376,74 +6376,74 @@

          Dense polynomials
          -to_dict(zero=False)[source]#
          +to_dict(zero=False)[source]#

          Convert f to a dict representation with native coefficients.

          -to_exact()[source]#
          +to_exact()[source]#

          Make the ground domain exact.

          -to_field()[source]#
          +to_field()[source]#

          Make the ground domain a field.

          -to_list()[source]#
          +to_list()[source]#

          Convert f to a list representation with native coefficients.

          -to_ring()[source]#
          +to_ring()[source]#

          Make the ground domain a ring.

          -to_sympy_dict(zero=False)[source]#
          +to_sympy_dict(zero=False)[source]#

          Convert f to a dict representation with SymPy coefficients.

          -to_sympy_list()[source]#
          +to_sympy_list()[source]#

          Convert f to a list representation with SymPy coefficients.

          -to_tuple()[source]#
          +to_tuple()[source]#

          Convert f to a tuple representation with native coefficients.

          This is needed for hashing.

          -total_degree()[source]#
          +total_degree()[source]#

          Returns the total degree of f.

          -transform(p, q)[source]#
          +transform(p, q)[source]#

          Evaluate functional transformation q**n * f(p/q).

          -trunc(p)[source]#
          +trunc(p)[source]#

          Reduce f modulo a constant p.

          -unify_DMP(g)[source]#
          +unify_DMP(g)[source]#

          Unify and return DMP instances of f and g.

          @@ -6451,53 +6451,53 @@

          Dense polynomials
          -class sympy.polys.polyclasses.DMF(rep, dom, lev=None)[source]#
          +class sympy.polys.polyclasses.DMF(rep, dom, lev=None)[source]#

          Dense Multivariate Fractions over \(K\).

          -add(g)[source]#
          +add(g)[source]#

          Add two multivariate fractions f and g.

          -add_ground(c)[source]#
          +add_ground(c)[source]#

          Add an element of the ground domain to f.

          -cancel()[source]#
          +cancel()[source]#

          Remove common factors from f.num and f.den.

          -denom()[source]#
          +denom()[source]#

          Returns the denominator of f.

          -exquo(g)[source]#
          +exquo(g)[source]#

          Computes quotient of fractions f and g.

          -frac_unify(g)[source]#
          +frac_unify(g)[source]#

          Unify representations of two multivariate fractions.

          -half_per(rep, kill=False)[source]#
          +half_per(rep, kill=False)[source]#

          Create a DMP out of the given representation.

          -invert(check=True)[source]#
          +invert(check=True)[source]#

          Computes inverse of a fraction f.

          @@ -6515,49 +6515,49 @@

          Dense polynomials
          -mul(g)[source]#
          +mul(g)[source]#

          Multiply two multivariate fractions f and g.

          -neg()[source]#
          +neg()[source]#

          Negate all coefficients in f.

          -numer()[source]#
          +numer()[source]#

          Returns the numerator of f.

          -per(num, den, cancel=True, kill=False)[source]#
          +per(num, den, cancel=True, kill=False)[source]#

          Create a DMF out of the given representation.

          -poly_unify(g)[source]#
          +poly_unify(g)[source]#

          Unify a multivariate fraction and a polynomial.

          -pow(n)[source]#
          +pow(n)[source]#

          Raise f to a non-negative power n.

          -quo(g)[source]#
          +quo(g)[source]#

          Computes quotient of fractions f and g.

          -sub(g)[source]#
          +sub(g)[source]#

          Subtract two multivariate fractions f and g.

          @@ -6565,29 +6565,29 @@

          Dense polynomials
          -class sympy.polys.polyclasses.ANP(rep, mod, dom)[source]#
          +class sympy.polys.polyclasses.ANP(rep, mod, dom)[source]#

          Dense Algebraic Number Polynomials over a field.

          -LC()[source]#
          +LC()[source]#

          Returns the leading coefficient of f.

          -TC()[source]#
          +TC()[source]#

          Returns the trailing coefficient of f.

          -add_ground(c)[source]#
          +add_ground(c)[source]#

          Add an element of the ground domain to f.

          -convert(dom)[source]#
          +convert(dom)[source]#

          Convert f to a ANP over a new domain.

          @@ -6611,74 +6611,74 @@

          Dense polynomials
          -mod_to_list()[source]#
          +mod_to_list()[source]#

          Return f.mod as a list with native coefficients.

          -mul_ground(c)[source]#
          +mul_ground(c)[source]#

          Multiply f by an element of the ground domain.

          -pow(n)[source]#
          +pow(n)[source]#

          Raise f to a non-negative power n.

          -quo_ground(c)[source]#
          +quo_ground(c)[source]#

          Quotient of f by an element of the ground domain.

          -sub_ground(c)[source]#
          +sub_ground(c)[source]#

          Subtract an element of the ground domain from f.

          -to_dict()[source]#
          +to_dict()[source]#

          Convert f to a dict representation with native coefficients.

          -to_list()[source]#
          +to_list()[source]#

          Convert f to a list representation with native coefficients.

          -to_sympy_dict()[source]#
          +to_sympy_dict()[source]#

          Convert f to a dict representation with SymPy coefficients.

          -to_sympy_list()[source]#
          +to_sympy_list()[source]#

          Convert f to a list representation with SymPy coefficients.

          -to_tuple()[source]#
          +to_tuple()[source]#

          Convert f to a tuple representation with native coefficients.

          This is needed for hashing.

          -unify(g)[source]#
          +unify(g)[source]#

          Unify representations of two algebraic numbers.

          -unify_ANP(g)[source]#
          +unify_ANP(g)[source]#

          Unify and return DMP instances of f and g.

          diff --git a/dev/modules/polys/internals.html b/dev/modules/polys/internals.html index d0c8880cd43..08cd372860c 100644 --- a/dev/modules/polys/internals.html +++ b/dev/modules/polys/internals.html @@ -789,7 +789,7 @@

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_LC(f, K)[source]#
          +sympy.polys.densebasic.dmp_LC(f, K)[source]#

          Return leading coefficient of f.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -806,7 +806,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_TC(f, K)[source]#
          +sympy.polys.densebasic.dmp_TC(f, K)[source]#

          Return trailing coefficient of f.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -823,7 +823,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_ground_LC(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_ground_LC(f, u, K)[source]#

          Return the ground leading coefficient.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -841,7 +841,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_ground_TC(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_ground_TC(f, u, K)[source]#

          Return the ground trailing coefficient.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -859,7 +859,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_true_LT(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_true_LT(f, u, K)[source]#

          Return the leading term c * x_1**n_1 ... x_k**n_k.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -877,7 +877,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_degree(f, u)[source]#
          +sympy.polys.densebasic.dmp_degree(f, u)[source]#

          Return the leading degree of f in x_0 in K[X].

          Note that the degree of 0 is negative infinity (float('-inf')).

          Examples

          @@ -900,7 +900,7 @@

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_degree_in(f, j, u)[source]#
          +sympy.polys.densebasic.dmp_degree_in(f, j, u)[source]#

          Return the leading degree of f in x_j in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -920,7 +920,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_degree_list(f, u)[source]#
          +sympy.polys.densebasic.dmp_degree_list(f, u)[source]#

          Return a list of degrees of f in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -938,7 +938,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_strip(f, u)[source]#
          +sympy.polys.densebasic.dmp_strip(f, u)[source]#

          Remove leading zeros from f in K[X].

          Examples

          >>> from sympy.polys.densebasic import dmp_strip
          @@ -952,7 +952,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_validate(f, K=None)[source]#
          +sympy.polys.densebasic.dmp_validate(f, K=None)[source]#

          Return the number of levels in f and recursively strip it.

          Examples

          >>> from sympy.polys.densebasic import dmp_validate
          @@ -972,7 +972,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dup_reverse(f)[source]#
          +sympy.polys.densebasic.dup_reverse(f)[source]#

          Compute x**n * f(1/x), i.e.: reverse f in K[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -990,7 +990,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_copy(f, u)[source]#
          +sympy.polys.densebasic.dmp_copy(f, u)[source]#

          Create a new copy of a polynomial f in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1008,7 +1008,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_to_tuple(f, u)[source]#
          +sympy.polys.densebasic.dmp_to_tuple(f, u)[source]#

          Convert \(f\) into a nested tuple of tuples.

          This is needed for hashing. This is similar to dmp_copy().

          Examples

          @@ -1027,7 +1027,7 @@

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_normal(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_normal(f, u, K)[source]#

          Normalize a multivariate polynomial in the given domain.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1042,7 +1042,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_convert(f, u, K0, K1)[source]#
          +sympy.polys.densebasic.dmp_convert(f, u, K0, K1)[source]#

          Convert the ground domain of f from K0 to K1.

          Examples

          >>> from sympy.polys.rings import ring
          @@ -1063,7 +1063,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_from_sympy(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_from_sympy(f, u, K)[source]#

          Convert the ground domain of f from SymPy to K.

          Examples

          >>> from sympy import S
          @@ -1079,7 +1079,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_nth(f, n, u, K)[source]#
          +sympy.polys.densebasic.dmp_nth(f, n, u, K)[source]#

          Return the n-th coefficient of f in K[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1099,7 +1099,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_ground_nth(f, N, u, K)[source]#
          +sympy.polys.densebasic.dmp_ground_nth(f, N, u, K)[source]#

          Return the ground n-th coefficient of f in K[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1117,7 +1117,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_zero_p(f, u)[source]#
          +sympy.polys.densebasic.dmp_zero_p(f, u)[source]#

          Return True if f is zero in K[X].

          Examples

          >>> from sympy.polys.densebasic import dmp_zero_p
          @@ -1133,7 +1133,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_zero(u)[source]#
          +sympy.polys.densebasic.dmp_zero(u)[source]#

          Return a multivariate zero.

          Examples

          >>> from sympy.polys.densebasic import dmp_zero
          @@ -1147,7 +1147,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_one_p(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_one_p(f, u, K)[source]#

          Return True if f is one in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1162,7 +1162,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_one(u, K)[source]#
          +sympy.polys.densebasic.dmp_one(u, K)[source]#

          Return a multivariate one over K.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1177,7 +1177,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_ground_p(f, c, u)[source]#
          +sympy.polys.densebasic.dmp_ground_p(f, c, u)[source]#

          Return True if f is constant in K[X].

          Examples

          >>> from sympy.polys.densebasic import dmp_ground_p
          @@ -1193,7 +1193,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_ground(c, u)[source]#
          +sympy.polys.densebasic.dmp_ground(c, u)[source]#

          Return a multivariate constant.

          Examples

          >>> from sympy.polys.densebasic import dmp_ground
          @@ -1209,7 +1209,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_zeros(n, u, K)[source]#
          +sympy.polys.densebasic.dmp_zeros(n, u, K)[source]#

          Return a list of multivariate zeros.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1226,7 +1226,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_grounds(c, n, u)[source]#
          +sympy.polys.densebasic.dmp_grounds(c, n, u)[source]#

          Return a list of multivariate constants.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1243,7 +1243,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_negative_p(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_negative_p(f, u, K)[source]#

          Return True if LC(f) is negative.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1260,7 +1260,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_positive_p(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_positive_p(f, u, K)[source]#

          Return True if LC(f) is positive.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1277,7 +1277,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_from_dict(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_from_dict(f, u, K)[source]#

          Create a K[X] polynomial from a dict.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1294,7 +1294,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_to_dict(f, u, K=None, zero=False)[source]#
          +sympy.polys.densebasic.dmp_to_dict(f, u, K=None, zero=False)[source]#

          Convert a K[X] polynomial to a dict``.

          Examples

          >>> from sympy.polys.densebasic import dmp_to_dict
          @@ -1310,7 +1310,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_swap(f, i, j, u, K)[source]#
          +sympy.polys.densebasic.dmp_swap(f, i, j, u, K)[source]#

          Transform K[..x_i..x_j..] to K[..x_j..x_i..].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1332,7 +1332,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_permute(f, P, u, K)[source]#
          +sympy.polys.densebasic.dmp_permute(f, P, u, K)[source]#

          Return a polynomial in K[x_{P(1)},..,x_{P(n)}].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1352,7 +1352,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_nest(f, l, K)[source]#
          +sympy.polys.densebasic.dmp_nest(f, l, K)[source]#

          Return a multivariate value nested l-levels.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1367,7 +1367,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_raise(f, l, u, K)[source]#
          +sympy.polys.densebasic.dmp_raise(f, l, u, K)[source]#

          Return a multivariate polynomial raised l-levels.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1385,7 +1385,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_deflate(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_deflate(f, u, K)[source]#

          Map x_i**m_i to y_i in a polynomial in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1403,7 +1403,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_multi_deflate(polys, u, K)[source]#
          +sympy.polys.densebasic.dmp_multi_deflate(polys, u, K)[source]#

          Map x_i**m_i to y_i in a set of polynomials in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1422,7 +1422,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_inflate(f, M, u, K)[source]#
          +sympy.polys.densebasic.dmp_inflate(f, M, u, K)[source]#

          Map y_i to x_i**k_i in a polynomial in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1440,7 +1440,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_exclude(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_exclude(f, u, K)[source]#

          Exclude useless levels from f.

          Return the levels excluded, the new excluded f, and the new u.

          Examples

          @@ -1459,7 +1459,7 @@

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_include(f, J, u, K)[source]#
          +sympy.polys.densebasic.dmp_include(f, J, u, K)[source]#

          Include useless levels in f.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1477,7 +1477,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_inject(f, u, K, front=False)[source]#
          +sympy.polys.densebasic.dmp_inject(f, u, K, front=False)[source]#

          Convert f from K[X][Y] to K[X,Y].

          Examples

          >>> from sympy.polys.rings import ring
          @@ -1498,7 +1498,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_eject(f, u, K, front=False)[source]#
          +sympy.polys.densebasic.dmp_eject(f, u, K, front=False)[source]#

          Convert f from K[X,Y] to K[X][Y].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1513,7 +1513,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_terms_gcd(f, u, K)[source]#
          +sympy.polys.densebasic.dmp_terms_gcd(f, u, K)[source]#

          Remove GCD of terms from f in K[X].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1531,7 +1531,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_list_terms(f, u, K, order=None)[source]#
          +sympy.polys.densebasic.dmp_list_terms(f, u, K, order=None)[source]#

          List all non-zero terms from f in the given order order.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1551,7 +1551,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_apply_pairs(f, g, h, args, u, K)[source]#
          +sympy.polys.densebasic.dmp_apply_pairs(f, g, h, args, u, K)[source]#

          Apply h to pairs of coefficients of f and g.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1569,13 +1569,13 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densebasic.dmp_slice(f, m, n, u, K)[source]#
          +sympy.polys.densebasic.dmp_slice(f, m, n, u, K)[source]#

          Take a continuous subsequence of terms of f in K[X].

          -sympy.polys.densebasic.dup_random(n, a, b, K)[source]#
          +sympy.polys.densebasic.dup_random(n, a, b, K)[source]#

          Return a polynomial of degree n with coefficients in [a, b].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -1591,7 +1591,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_add_term(f, c, i, u, K)[source]#
          +sympy.polys.densearith.dmp_add_term(f, c, i, u, K)[source]#

          Add c(x_2..x_u)*x_0**i to f in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1606,7 +1606,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_sub_term(f, c, i, u, K)[source]#
          +sympy.polys.densearith.dmp_sub_term(f, c, i, u, K)[source]#

          Subtract c(x_2..x_u)*x_0**i from f in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1621,7 +1621,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_mul_term(f, c, i, u, K)[source]#
          +sympy.polys.densearith.dmp_mul_term(f, c, i, u, K)[source]#

          Multiply f by c(x_2..x_u)*x_0**i in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1636,7 +1636,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_add_ground(f, c, u, K)[source]#
          +sympy.polys.densearith.dmp_add_ground(f, c, u, K)[source]#

          Add an element of the ground domain to f.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1651,7 +1651,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_sub_ground(f, c, u, K)[source]#
          +sympy.polys.densearith.dmp_sub_ground(f, c, u, K)[source]#

          Subtract an element of the ground domain from f.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1666,7 +1666,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_mul_ground(f, c, u, K)[source]#
          +sympy.polys.densearith.dmp_mul_ground(f, c, u, K)[source]#

          Multiply f by a constant value in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1681,7 +1681,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_quo_ground(f, c, u, K)[source]#
          +sympy.polys.densearith.dmp_quo_ground(f, c, u, K)[source]#

          Quotient by a constant in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -1701,7 +1701,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_exquo_ground(f, c, u, K)[source]#
          +sympy.polys.densearith.dmp_exquo_ground(f, c, u, K)[source]#

          Exact quotient by a constant in K[X].

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -1716,7 +1716,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dup_lshift(f, n, K)[source]#
          +sympy.polys.densearith.dup_lshift(f, n, K)[source]#

          Efficiently multiply f by x**n in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1731,7 +1731,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dup_rshift(f, n, K)[source]#
          +sympy.polys.densearith.dup_rshift(f, n, K)[source]#

          Efficiently divide f by x**n in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1748,7 +1748,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_abs(f, u, K)[source]#
          +sympy.polys.densearith.dmp_abs(f, u, K)[source]#

          Make all coefficients positive in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1763,7 +1763,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_neg(f, u, K)[source]#
          +sympy.polys.densearith.dmp_neg(f, u, K)[source]#

          Negate a polynomial in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1778,7 +1778,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_add(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_add(f, g, u, K)[source]#

          Add dense polynomials in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1793,7 +1793,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_sub(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_sub(f, g, u, K)[source]#

          Subtract dense polynomials in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1808,7 +1808,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_add_mul(f, g, h, u, K)[source]#
          +sympy.polys.densearith.dmp_add_mul(f, g, h, u, K)[source]#

          Returns f + g*h where f, g, h are in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1823,7 +1823,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_sub_mul(f, g, h, u, K)[source]#
          +sympy.polys.densearith.dmp_sub_mul(f, g, h, u, K)[source]#

          Returns f - g*h where f, g, h are in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1838,7 +1838,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_mul(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_mul(f, g, u, K)[source]#

          Multiply dense polynomials in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1853,7 +1853,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_sqr(f, u, K)[source]#
          +sympy.polys.densearith.dmp_sqr(f, u, K)[source]#

          Square dense polynomials in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1868,7 +1868,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_pow(f, n, u, K)[source]#
          +sympy.polys.densearith.dmp_pow(f, n, u, K)[source]#

          Raise f to the n-th power in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1883,7 +1883,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_pdiv(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_pdiv(f, g, u, K)[source]#

          Polynomial pseudo-division in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1898,7 +1898,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_prem(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_prem(f, g, u, K)[source]#

          Polynomial pseudo-remainder in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1913,7 +1913,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_pquo(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_pquo(f, g, u, K)[source]#

          Polynomial exact pseudo-quotient in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1937,7 +1937,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_pexquo(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_pexquo(f, g, u, K)[source]#

          Polynomial pseudo-quotient in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1963,7 +1963,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_rr_div(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_rr_div(f, g, u, K)[source]#

          Multivariate division with remainder over a ring.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -1978,7 +1978,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_ff_div(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_ff_div(f, g, u, K)[source]#

          Polynomial division with remainder over a field.

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -1993,7 +1993,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_div(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_div(f, g, u, K)[source]#

          Polynomial division with remainder in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2013,7 +2013,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_rem(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_rem(f, g, u, K)[source]#

          Returns polynomial remainder in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2033,7 +2033,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_quo(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_quo(f, g, u, K)[source]#

          Returns exact polynomial quotient in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2053,7 +2053,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_exquo(f, g, u, K)[source]#
          +sympy.polys.densearith.dmp_exquo(f, g, u, K)[source]#

          Returns polynomial quotient in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2079,7 +2079,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_max_norm(f, u, K)[source]#
          +sympy.polys.densearith.dmp_max_norm(f, u, K)[source]#

          Returns maximum norm of a polynomial in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2094,7 +2094,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_l1_norm(f, u, K)[source]#
          +sympy.polys.densearith.dmp_l1_norm(f, u, K)[source]#

          Returns l1 norm of a polynomial in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2109,7 +2109,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densearith.dmp_expand(polys, u, K)[source]#
          +sympy.polys.densearith.dmp_expand(polys, u, K)[source]#

          Multiply together several polynomials in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2125,7 +2125,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_integrate(f, m, u, K)[source]#
          +sympy.polys.densetools.dmp_integrate(f, m, u, K)[source]#

          Computes the indefinite integral of f in x_0 in K[X].

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -2142,7 +2142,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_integrate_in(f, m, j, u, K)[source]#
          +sympy.polys.densetools.dmp_integrate_in(f, m, j, u, K)[source]#

          Computes the indefinite integral of f in x_j in K[X].

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -2159,7 +2159,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_diff(f, m, u, K)[source]#
          +sympy.polys.densetools.dmp_diff(f, m, u, K)[source]#

          m-th order derivative in x_0 of a polynomial in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2179,7 +2179,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_diff_in(f, m, j, u, K)[source]#
          +sympy.polys.densetools.dmp_diff_in(f, m, j, u, K)[source]#

          m-th order derivative in x_j of a polynomial in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2199,7 +2199,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_eval(f, a, u, K)[source]#
          +sympy.polys.densetools.dmp_eval(f, a, u, K)[source]#

          Evaluate a polynomial at x_0 = a in K[X] using the Horner scheme.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2214,7 +2214,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_eval_in(f, a, j, u, K)[source]#
          +sympy.polys.densetools.dmp_eval_in(f, a, j, u, K)[source]#

          Evaluate a polynomial at x_j = a in K[X] using the Horner scheme.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2234,7 +2234,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_eval_tail(f, A, u, K)[source]#
          +sympy.polys.densetools.dmp_eval_tail(f, A, u, K)[source]#

          Evaluate a polynomial at x_j = a_j, ... in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2254,7 +2254,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_diff_eval_in(f, m, a, j, u, K)[source]#
          +sympy.polys.densetools.dmp_diff_eval_in(f, m, a, j, u, K)[source]#

          Differentiate and evaluate a polynomial in x_j at a in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2274,7 +2274,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_trunc(f, p, u, K)[source]#
          +sympy.polys.densetools.dmp_trunc(f, p, u, K)[source]#

          Reduce a K[X] polynomial modulo a polynomial p in K[Y].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2293,7 +2293,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_ground_trunc(f, p, u, K)[source]#
          +sympy.polys.densetools.dmp_ground_trunc(f, p, u, K)[source]#

          Reduce a K[X] polynomial modulo a constant p in K.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2311,7 +2311,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_monic(f, K)[source]#
          +sympy.polys.densetools.dup_monic(f, K)[source]#

          Divide all coefficients by LC(f) in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2331,7 +2331,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_ground_monic(f, u, K)[source]#
          +sympy.polys.densetools.dmp_ground_monic(f, u, K)[source]#

          Divide all coefficients by LC(f) in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2357,7 +2357,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_content(f, K)[source]#
          +sympy.polys.densetools.dup_content(f, K)[source]#

          Compute the GCD of coefficients of f in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2383,7 +2383,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_ground_content(f, u, K)[source]#
          +sympy.polys.densetools.dmp_ground_content(f, u, K)[source]#

          Compute the GCD of coefficients of f in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2409,7 +2409,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_primitive(f, K)[source]#
          +sympy.polys.densetools.dup_primitive(f, K)[source]#

          Compute content and the primitive form of f in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2435,7 +2435,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_ground_primitive(f, u, K)[source]#
          +sympy.polys.densetools.dmp_ground_primitive(f, u, K)[source]#

          Compute content and the primitive form of f in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ, QQ
          @@ -2461,7 +2461,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_extract(f, g, K)[source]#
          +sympy.polys.densetools.dup_extract(f, g, K)[source]#

          Extract common content from a pair of polynomials in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2476,7 +2476,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_ground_extract(f, g, u, K)[source]#
          +sympy.polys.densetools.dmp_ground_extract(f, g, u, K)[source]#

          Extract common content from a pair of polynomials in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2491,7 +2491,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_real_imag(f, K)[source]#
          +sympy.polys.densetools.dup_real_imag(f, K)[source]#

          Return bivariate polynomials f1 and f2, such that f = f1 + f2*I.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2506,7 +2506,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_mirror(f, K)[source]#
          +sympy.polys.densetools.dup_mirror(f, K)[source]#

          Evaluate efficiently the composition f(-x) in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2521,7 +2521,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_scale(f, a, K)[source]#
          +sympy.polys.densetools.dup_scale(f, a, K)[source]#

          Evaluate efficiently composition f(a*x) in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2536,7 +2536,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_shift(f, a, K)[source]#
          +sympy.polys.densetools.dup_shift(f, a, K)[source]#

          Evaluate efficiently Taylor shift f(x + a) in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2551,7 +2551,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_transform(f, p, q, K)[source]#
          +sympy.polys.densetools.dup_transform(f, p, q, K)[source]#

          Evaluate functional transformation q**n * f(p/q) in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2566,7 +2566,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_compose(f, g, u, K)[source]#
          +sympy.polys.densetools.dmp_compose(f, g, u, K)[source]#

          Evaluate functional composition f(g) in K[X].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2581,7 +2581,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_decompose(f, K)[source]#
          +sympy.polys.densetools.dup_decompose(f, K)[source]#

          Computes functional decomposition of f in K[x].

          Given a univariate polynomial f with coefficients in a field of characteristic zero, returns list [f_1, f_2, ..., f_n], where:

          @@ -2618,7 +2618,7 @@

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_lift(f, u, K)[source]#
          +sympy.polys.densetools.dmp_lift(f, u, K)[source]#

          Convert algebraic coefficients to integers in K[X].

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -2640,7 +2640,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dup_sign_variations(f, K)[source]#
          +sympy.polys.densetools.dup_sign_variations(f, K)[source]#

          Compute the number of sign variations of f in K[x].

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -2655,7 +2655,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_clear_denoms(f, u, K0, K1=None, convert=False)[source]#
          +sympy.polys.densetools.dmp_clear_denoms(f, u, K0, K1=None, convert=False)[source]#

          Clear denominators, i.e. transform K_0 to K_1.

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -2675,7 +2675,7 @@ 

          Manipulation of dense, multivariate polynomials
          -sympy.polys.densetools.dmp_revert(f, g, u, K)[source]#
          +sympy.polys.densetools.dmp_revert(f, g, u, K)[source]#

          Compute f**(-1) mod x**n using Newton iteration.

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -2695,7 +2695,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients fields.

          -sympy.polys.galoistools.gf_crt(U, M, K=None)[source]#
          +sympy.polys.galoistools.gf_crt(U, M, K=None)[source]#

          Chinese Remainder Theorem.

          Given a set of integer residues u_0,...,u_n and a set of co-prime integer moduli m_0,...,m_n, returns an integer @@ -2728,7 +2728,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_crt1(M, K)[source]#
          +sympy.polys.galoistools.gf_crt1(M, K)[source]#

          First part of the Chinese Remainder Theorem.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -2769,7 +2769,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_crt2(U, M, p, E, S, K)[source]#
          +sympy.polys.galoistools.gf_crt2(U, M, p, E, S, K)[source]#

          Second part of the Chinese Remainder Theorem.

          See gf_crt1 for usage.

          Examples

          @@ -2800,7 +2800,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_int(a, p)[source]#
          +sympy.polys.galoistools.gf_int(a, p)[source]#

          Coerce a mod p to an integer in the range [-p/2, p/2].

          Examples

          >>> from sympy.polys.galoistools import gf_int
          @@ -2816,7 +2816,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_degree(f)[source]#
          +sympy.polys.galoistools.gf_degree(f)[source]#

          Return the leading degree of f.

          Examples

          >>> from sympy.polys.galoistools import gf_degree
          @@ -2832,7 +2832,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_LC(f, K)[source]#
          +sympy.polys.galoistools.gf_LC(f, K)[source]#

          Return the leading coefficient of f.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -2847,7 +2847,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_TC(f, K)[source]#
          +sympy.polys.galoistools.gf_TC(f, K)[source]#

          Return the trailing coefficient of f.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -2862,7 +2862,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_strip(f)[source]#
          +sympy.polys.galoistools.gf_strip(f)[source]#

          Remove leading zeros from f.

          Examples

          >>> from sympy.polys.galoistools import gf_strip
          @@ -2876,7 +2876,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_trunc(f, p)[source]#
          +sympy.polys.galoistools.gf_trunc(f, p)[source]#

          Reduce all coefficients modulo p.

          Examples

          >>> from sympy.polys.galoistools import gf_trunc
          @@ -2890,7 +2890,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_normal(f, p, K)[source]#
          +sympy.polys.galoistools.gf_normal(f, p, K)[source]#

          Normalize all coefficients in K.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -2905,7 +2905,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_from_dict(f, p, K)[source]#
          +sympy.polys.galoistools.gf_from_dict(f, p, K)[source]#

          Create a GF(p)[x] polynomial from a dict.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -2920,7 +2920,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_to_dict(f, p, symmetric=True)[source]#
          +sympy.polys.galoistools.gf_to_dict(f, p, symmetric=True)[source]#

          Convert a GF(p)[x] polynomial to a dict.

          Examples

          >>> from sympy.polys.galoistools import gf_to_dict
          @@ -2936,7 +2936,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_from_int_poly(f, p)[source]#
          +sympy.polys.galoistools.gf_from_int_poly(f, p)[source]#

          Create a GF(p)[x] polynomial from Z[x].

          Examples

          >>> from sympy.polys.galoistools import gf_from_int_poly
          @@ -2950,7 +2950,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_to_int_poly(f, p, symmetric=True)[source]#
          +sympy.polys.galoistools.gf_to_int_poly(f, p, symmetric=True)[source]#

          Convert a GF(p)[x] polynomial to Z[x].

          Examples

          >>> from sympy.polys.galoistools import gf_to_int_poly
          @@ -2966,7 +2966,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_neg(f, p, K)[source]#
          +sympy.polys.galoistools.gf_neg(f, p, K)[source]#

          Negate a polynomial in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -2981,7 +2981,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_add_ground(f, a, p, K)[source]#
          +sympy.polys.galoistools.gf_add_ground(f, a, p, K)[source]#

          Compute f + a where f in GF(p)[x] and a in GF(p).

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -2996,7 +2996,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_sub_ground(f, a, p, K)[source]#
          +sympy.polys.galoistools.gf_sub_ground(f, a, p, K)[source]#

          Compute f - a where f in GF(p)[x] and a in GF(p).

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3011,7 +3011,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_mul_ground(f, a, p, K)[source]#
          +sympy.polys.galoistools.gf_mul_ground(f, a, p, K)[source]#

          Compute f * a where f in GF(p)[x] and a in GF(p).

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3026,7 +3026,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_quo_ground(f, a, p, K)[source]#
          +sympy.polys.galoistools.gf_quo_ground(f, a, p, K)[source]#

          Compute f/a where f in GF(p)[x] and a in GF(p).

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3041,7 +3041,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_add(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_add(f, g, p, K)[source]#

          Add polynomials in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3056,7 +3056,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_sub(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_sub(f, g, p, K)[source]#

          Subtract polynomials in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3071,7 +3071,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_mul(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_mul(f, g, p, K)[source]#

          Multiply polynomials in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3086,7 +3086,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_sqr(f, p, K)[source]#
          +sympy.polys.galoistools.gf_sqr(f, p, K)[source]#

          Square polynomials in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3101,7 +3101,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_add_mul(f, g, h, p, K)[source]#
          +sympy.polys.galoistools.gf_add_mul(f, g, h, p, K)[source]#

          Returns f + g*h where f, g, h in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3114,7 +3114,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_sub_mul(f, g, h, p, K)[source]#
          +sympy.polys.galoistools.gf_sub_mul(f, g, h, p, K)[source]#

          Compute f - g*h where f, g, h in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3129,7 +3129,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_expand(F, p, K)[source]#
          +sympy.polys.galoistools.gf_expand(F, p, K)[source]#

          Expand results of factor() in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3144,7 +3144,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_div(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_div(f, g, p, K)[source]#

          Division with remainder in GF(p)[x].

          Given univariate polynomials f and g with coefficients in a finite field with p elements, returns polynomials q and r @@ -3177,7 +3177,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_rem(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_rem(f, g, p, K)[source]#

          Compute polynomial remainder in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3192,7 +3192,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_quo(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_quo(f, g, p, K)[source]#

          Compute exact quotient in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3209,7 +3209,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_exquo(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_exquo(f, g, p, K)[source]#

          Compute polynomial quotient in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3230,7 +3230,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_lshift(f, n, K)[source]#
          +sympy.polys.galoistools.gf_lshift(f, n, K)[source]#

          Efficiently multiply f by x**n.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3245,7 +3245,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_rshift(f, n, K)[source]#
          +sympy.polys.galoistools.gf_rshift(f, n, K)[source]#

          Efficiently divide f by x**n.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3260,7 +3260,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_pow(f, n, p, K)[source]#
          +sympy.polys.galoistools.gf_pow(f, n, p, K)[source]#

          Compute f**n in GF(p)[x] using repeated squaring.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3275,7 +3275,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_pow_mod(f, n, g, p, K)[source]#
          +sympy.polys.galoistools.gf_pow_mod(f, n, g, p, K)[source]#

          Compute f**n in GF(p)[x]/(g) using repeated squaring.

          Given polynomials f and g in GF(p)[x] and a non-negative integer n, efficiently computes f**n (mod g) i.e. the remainder @@ -3300,7 +3300,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_gcd(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_gcd(f, g, p, K)[source]#

          Euclidean Algorithm in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3315,7 +3315,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_lcm(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_lcm(f, g, p, K)[source]#

          Compute polynomial LCM in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3330,7 +3330,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_cofactors(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_cofactors(f, g, p, K)[source]#

          Compute polynomial GCD and cofactors in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3345,7 +3345,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_gcdex(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_gcdex(f, g, p, K)[source]#

          Extended Euclidean Algorithm in GF(p)[x].

          Given polynomials f and g in GF(p)[x], computes polynomials s, t and h, such that h = gcd(f, g) and s*f + t*g = h. @@ -3380,7 +3380,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_monic(f, p, K)[source]#
          +sympy.polys.galoistools.gf_monic(f, p, K)[source]#

          Compute LC and a monic polynomial in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3395,7 +3395,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_diff(f, p, K)[source]#
          +sympy.polys.galoistools.gf_diff(f, p, K)[source]#

          Differentiate polynomial in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3410,7 +3410,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_eval(f, a, p, K)[source]#
          +sympy.polys.galoistools.gf_eval(f, a, p, K)[source]#

          Evaluate f(a) in GF(p) using Horner scheme.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3425,7 +3425,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_multi_eval(f, A, p, K)[source]#
          +sympy.polys.galoistools.gf_multi_eval(f, A, p, K)[source]#

          Evaluate f(a) for a in [a_1, ..., a_n].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3440,7 +3440,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_compose(f, g, p, K)[source]#
          +sympy.polys.galoistools.gf_compose(f, g, p, K)[source]#

          Compute polynomial composition f(g) in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3455,7 +3455,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_compose_mod(g, h, f, p, K)[source]#
          +sympy.polys.galoistools.gf_compose_mod(g, h, f, p, K)[source]#

          Compute polynomial composition g(h) in GF(p)[x]/(f).

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3470,7 +3470,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_trace_map(a, b, c, n, f, p, K)[source]#
          +sympy.polys.galoistools.gf_trace_map(a, b, c, n, f, p, K)[source]#

          Compute polynomial trace map in GF(p)[x]/(f).

          Given a polynomial f in GF(p)[x], polynomials a, b, c in the quotient ring GF(p)[x]/(f) such that b = c**t @@ -3503,7 +3503,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_random(n, p, K)[source]#
          +sympy.polys.galoistools.gf_random(n, p, K)[source]#

          Generate a random polynomial in GF(p)[x] of degree n.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3516,7 +3516,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_irreducible(n, p, K)[source]#
          +sympy.polys.galoistools.gf_irreducible(n, p, K)[source]#

          Generate random irreducible polynomial of degree n in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3529,7 +3529,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_irreducible_p(f, p, K)[source]#
          +sympy.polys.galoistools.gf_irreducible_p(f, p, K)[source]#

          Test irreducibility of a polynomial f in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3546,7 +3546,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_sqf_p(f, p, K)[source]#
          +sympy.polys.galoistools.gf_sqf_p(f, p, K)[source]#

          Return True if f is square-free in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3563,7 +3563,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_sqf_part(f, p, K)[source]#
          +sympy.polys.galoistools.gf_sqf_part(f, p, K)[source]#

          Return square-free part of a GF(p)[x] polynomial.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3578,7 +3578,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_sqf_list(f, p, K, all=False)[source]#
          +sympy.polys.galoistools.gf_sqf_list(f, p, K, all=False)[source]#

          Return the square-free decomposition of a GF(p)[x] polynomial.

          Given a polynomial f in GF(p)[x], returns the leading coefficient of f and a square-free decomposition f_1**e_1 f_2**e_2 ... f_k**e_k @@ -3623,7 +3623,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_Qmatrix(f, p, K)[source]#
          +sympy.polys.galoistools.gf_Qmatrix(f, p, K)[source]#

          Calculate Berlekamp’s Q matrix.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3646,7 +3646,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_Qbasis(Q, p, K)[source]#
          +sympy.polys.galoistools.gf_Qbasis(Q, p, K)[source]#

          Compute a basis of the kernel of Q.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3665,7 +3665,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_berlekamp(f, p, K)[source]#
          +sympy.polys.galoistools.gf_berlekamp(f, p, K)[source]#

          Factor a square-free f in GF(p)[x] for small p.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3680,7 +3680,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_zassenhaus(f, p, K)[source]#
          +sympy.polys.galoistools.gf_zassenhaus(f, p, K)[source]#

          Factor a square-free f in GF(p)[x] for medium p.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3695,7 +3695,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_shoup(f, p, K)[source]#
          +sympy.polys.galoistools.gf_shoup(f, p, K)[source]#

          Factor a square-free f in GF(p)[x] for large p.

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3710,7 +3710,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_factor_sqf(f, p, K, method=None)[source]#
          +sympy.polys.galoistools.gf_factor_sqf(f, p, K, method=None)[source]#

          Factor a square-free polynomial f in GF(p)[x].

          Examples

          >>> from sympy.polys.domains import ZZ
          @@ -3725,7 +3725,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_factor(f, p, K)[source]#
          +sympy.polys.galoistools.gf_factor(f, p, K)[source]#

          Factor (non square-free) polynomials in GF(p)[x].

          Given a possibly non square-free polynomial f in GF(p)[x], returns its complete factorization into irreducibles:

          @@ -3774,7 +3774,7 @@

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_value(f, a)[source]#
          +sympy.polys.galoistools.gf_value(f, a)[source]#

          Value of polynomial ‘f’ at ‘a’ in field R.

          Examples

          >>> from sympy.polys.galoistools import gf_value
          @@ -3788,7 +3788,7 @@ 

          Manipulation of dense, univariate polynomials with finite field coefficients
          -sympy.polys.galoistools.gf_csolve(f, n)[source]#
          +sympy.polys.galoistools.gf_csolve(f, n)[source]#

          To solve f(x) congruent 0 mod(n).

          n is divided into canonical factors and f(x) cong 0 mod(p**e) will be solved for each factor. Applying the Chinese Remainder Theorem to the @@ -3834,7 +3834,7 @@

          Manipulation of sparse, distributed polynomials and vectors\(f_1, f_2, \ldots\).

          -sympy.polys.distributedmodules.sdm_monomial_mul(M, X)[source]#
          +sympy.polys.distributedmodules.sdm_monomial_mul(M, X)[source]#

          Multiply tuple X representing a monomial of \(K[X]\) into the tuple M representing a monomial of \(F\).

          Examples

          @@ -3848,7 +3848,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_monomial_deg(M)[source]#
          +sympy.polys.distributedmodules.sdm_monomial_deg(M)[source]#

          Return the total degree of M.

          Examples

          For example, the total degree of \(x^2 y f_5\) is 3:

          @@ -3861,7 +3861,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_monomial_divides(A, B)[source]#
          +sympy.polys.distributedmodules.sdm_monomial_divides(A, B)[source]#

          Does there exist a (polynomial) monomial X such that XA = B?

          Examples

          Positive examples:

          @@ -3907,19 +3907,19 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_LC(f, K)[source]#
          +sympy.polys.distributedmodules.sdm_LC(f, K)[source]#

          Returns the leading coefficient of f.

          -sympy.polys.distributedmodules.sdm_to_dict(f)[source]#
          +sympy.polys.distributedmodules.sdm_to_dict(f)[source]#

          Make a dictionary from a distributed polynomial.

          -sympy.polys.distributedmodules.sdm_from_dict(d, O)[source]#
          +sympy.polys.distributedmodules.sdm_from_dict(d, O)[source]#

          Create an sdm from a dictionary.

          Here O is the monomial order to use.

          Examples

          @@ -3934,7 +3934,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_add(f, g, O, K)[source]#
          +sympy.polys.distributedmodules.sdm_add(f, g, O, K)[source]#

          Add two module elements f, g.

          Addition is done over the ground field K, monomials are ordered according to O.

          @@ -3966,7 +3966,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_LM(f)[source]#
          +sympy.polys.distributedmodules.sdm_LM(f)[source]#

          Returns the leading monomial of f.

          Only valid if \(f \ne 0\).

          Examples

          @@ -3981,7 +3981,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_LT(f)[source]#
          +sympy.polys.distributedmodules.sdm_LT(f)[source]#

          Returns the leading term of f.

          Only valid if \(f \ne 0\).

          Examples

          @@ -3996,7 +3996,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_mul_term(f, term, O, K)[source]#
          +sympy.polys.distributedmodules.sdm_mul_term(f, term, O, K)[source]#

          Multiply a distributed module element f by a (polynomial) term term.

          Multiplication of coefficients is done over the ground field K, and monomials are ordered according to O.

          @@ -4028,13 +4028,13 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_zero()[source]#
          +sympy.polys.distributedmodules.sdm_zero()[source]#

          Return the zero module element.

          -sympy.polys.distributedmodules.sdm_deg(f)[source]#
          +sympy.polys.distributedmodules.sdm_deg(f)[source]#

          Degree of f.

          This is the maximum of the degrees of all its monomials. Invalid if f is zero.

          @@ -4048,7 +4048,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_from_vector(vec, O, K, **opts)[source]#
          +sympy.polys.distributedmodules.sdm_from_vector(vec, O, K, **opts)[source]#

          Create an sdm from an iterable of expressions.

          Coefficients are created in the ground field K, and terms are ordered according to monomial order O. Named arguments are passed on to the @@ -4065,7 +4065,7 @@

          Manipulation of sparse, distributed polynomials and vectors
          -sympy.polys.distributedmodules.sdm_to_vector(f, gens, K, n=None)[source]#
          +sympy.polys.distributedmodules.sdm_to_vector(f, gens, K, n=None)[source]#

          Convert sdm f into a list of polynomial expressions.

          The generators for the polynomial ring are specified via gens. The rank of the module is guessed, or passed via n. The ground field is assumed @@ -4139,7 +4139,7 @@

          Classical remainder sequence
          -sympy.polys.euclidtools.dmp_half_gcdex(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_half_gcdex(f, g, u, K)[source]#

          Half extended Euclidean algorithm in \(F[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4150,7 +4150,7 @@ 

          Classical remainder sequence
          -sympy.polys.euclidtools.dmp_gcdex(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_gcdex(f, g, u, K)[source]#

          Extended Euclidean algorithm in \(F[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4161,7 +4161,7 @@ 

          Classical remainder sequence
          -sympy.polys.euclidtools.dmp_invert(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_invert(f, g, u, K)[source]#

          Compute multiplicative inverse of \(f\) modulo \(g\) in \(F[X]\).

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -4172,7 +4172,7 @@ 

          Classical remainder sequence
          -sympy.polys.euclidtools.dmp_euclidean_prs(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_euclidean_prs(f, g, u, K)[source]#

          Euclidean polynomial remainder sequence (PRS) in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4212,7 +4212,7 @@ 

          Simplified remainder sequences
          -sympy.polys.euclidtools.dmp_primitive_prs(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_primitive_prs(f, g, u, K)[source]#

          Primitive polynomial remainder sequence (PRS) in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4330,7 +4330,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_inner_subresultants(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_inner_subresultants(f, g, u, K)[source]#

          Subresultant PRS algorithm in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4357,7 +4357,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_subresultants(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_subresultants(f, g, u, K)[source]#

          Computes subresultant PRS of two polynomials in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4380,7 +4380,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_prs_resultant(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_prs_resultant(f, g, u, K)[source]#

          Resultant algorithm in \(K[X]\) using subresultant PRS.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4410,7 +4410,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_zz_modular_resultant(f, g, p, u, K)[source]#
          +sympy.polys.euclidtools.dmp_zz_modular_resultant(f, g, p, u, K)[source]#

          Compute resultant of \(f\) and \(g\) modulo a prime \(p\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4429,7 +4429,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_zz_collins_resultant(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_zz_collins_resultant(f, g, u, K)[source]#

          Collins’s modular resultant algorithm in \(Z[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4448,7 +4448,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_qq_collins_resultant(f, g, u, K0)[source]#
          +sympy.polys.euclidtools.dmp_qq_collins_resultant(f, g, u, K0)[source]#

          Collins’s modular resultant algorithm in \(Q[X]\).

          Examples

          >>> from sympy.polys import ring, QQ
          @@ -4467,7 +4467,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_resultant(f, g, u, K, includePRS=False)[source]#
          +sympy.polys.euclidtools.dmp_resultant(f, g, u, K, includePRS=False)[source]#

          Computes resultant of two polynomials in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4486,7 +4486,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_discriminant(f, u, K)[source]#
          +sympy.polys.euclidtools.dmp_discriminant(f, u, K)[source]#

          Computes discriminant of a polynomial in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4501,7 +4501,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_rr_prs_gcd(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_rr_prs_gcd(f, g, u, K)[source]#

          Computes polynomial GCD using subresultants over a ring.

          Returns (h, cff, cfg) such that a = gcd(f, g), cff = quo(f, h), and cfg = quo(g, h).

          @@ -4522,7 +4522,7 @@

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_ff_prs_gcd(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_ff_prs_gcd(f, g, u, K)[source]#

          Computes polynomial GCD using subresultants over a field.

          Returns (h, cff, cfg) such that a = gcd(f, g), cff = quo(f, h), and cfg = quo(g, h).

          @@ -4543,7 +4543,7 @@

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_zz_heu_gcd(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_zz_heu_gcd(f, g, u, K)[source]#

          Heuristic polynomial GCD in \(Z[X]\).

          Given univariate polynomials \(f\) and \(g\) in \(Z[X]\), returns their GCD and cofactors, i.e. polynomials h, cff and cfg @@ -4585,7 +4585,7 @@

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_qq_heu_gcd(f, g, u, K0)[source]#
          +sympy.polys.euclidtools.dmp_qq_heu_gcd(f, g, u, K0)[source]#

          Heuristic polynomial GCD in \(Q[X]\).

          Returns (h, cff, cfg) such that a = gcd(f, g), cff = quo(f, h), and cfg = quo(g, h).

          @@ -4606,7 +4606,7 @@

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_inner_gcd(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_inner_gcd(f, g, u, K)[source]#

          Computes polynomial GCD and cofactors of \(f\) and \(g\) in \(K[X]\).

          Returns (h, cff, cfg) such that a = gcd(f, g), cff = quo(f, h), and cfg = quo(g, h).

          @@ -4627,7 +4627,7 @@

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_gcd(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_gcd(f, g, u, K)[source]#

          Computes polynomial GCD of \(f\) and \(g\) in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4646,7 +4646,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_lcm(f, g, u, K)[source]#
          +sympy.polys.euclidtools.dmp_lcm(f, g, u, K)[source]#

          Computes polynomial LCM of \(f\) and \(g\) in \(K[X]\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4665,7 +4665,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_content(f, u, K)[source]#
          +sympy.polys.euclidtools.dmp_content(f, u, K)[source]#

          Returns GCD of multivariate coefficients.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4680,7 +4680,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_primitive(f, u, K)[source]#
          +sympy.polys.euclidtools.dmp_primitive(f, u, K)[source]#

          Returns multivariate content and a primitive polynomial.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4695,7 +4695,7 @@ 

          Subresultant sequence
          -sympy.polys.euclidtools.dmp_cancel(f, g, u, K, include=True)[source]#
          +sympy.polys.euclidtools.dmp_cancel(f, g, u, K, include=True)[source]#

          Cancel common factors in a rational function \(f/g\).

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4711,20 +4711,20 @@ 

          Subresultant sequencePolynomial factorization in characteristic zero:

          -sympy.polys.factortools.dmp_trial_division(f, factors, u, K)[source]#
          +sympy.polys.factortools.dmp_trial_division(f, factors, u, K)[source]#

          Determine multiplicities of factors for a multivariate polynomial using trial division.

          -sympy.polys.factortools.dmp_zz_mignotte_bound(f, u, K)[source]#
          +sympy.polys.factortools.dmp_zz_mignotte_bound(f, u, K)[source]#

          Mignotte bound for multivariate polynomials in \(K[X]\).

          -sympy.polys.factortools.dup_zz_hensel_step(m, f, g, h, s, t, K)[source]#
          +sympy.polys.factortools.dup_zz_hensel_step(m, f, g, h, s, t, K)[source]#

          One step in Hensel lifting in \(Z[x]\).

          Given positive integer \(m\) and \(Z[x]\) polynomials \(f\), \(g\), \(h\), \(s\) and \(t\) such that:

          @@ -4755,7 +4755,7 @@

          Subresultant sequence
          -sympy.polys.factortools.dup_zz_hensel_lift(p, f, f_list, l, K)[source]#
          +sympy.polys.factortools.dup_zz_hensel_lift(p, f, f_list, l, K)[source]#

          Multifactor Hensel lifting in \(Z[x]\).

          Given a prime \(p\), polynomial \(f\) over \(Z[x]\) such that \(lc(f)\) is a unit modulo \(p\), monic pair-wise coprime polynomials \(f_i\) @@ -4781,19 +4781,19 @@

          Subresultant sequence
          -sympy.polys.factortools.dup_zz_zassenhaus(f, K)[source]#
          +sympy.polys.factortools.dup_zz_zassenhaus(f, K)[source]#

          Factor primitive square-free polynomials in \(Z[x]\).

          -sympy.polys.factortools.dup_zz_irreducible_p(f, K)[source]#
          +sympy.polys.factortools.dup_zz_irreducible_p(f, K)[source]#

          Test irreducibility using Eisenstein’s criterion.

          -sympy.polys.factortools.dup_cyclotomic_p(f, K, irreducible=False)[source]#
          +sympy.polys.factortools.dup_cyclotomic_p(f, K, irreducible=False)[source]#

          Efficiently test if f is a cyclotomic polynomial.

          Examples

          >>> from sympy.polys import ring, ZZ
          @@ -4818,13 +4818,13 @@ 

          Subresultant sequence
          -sympy.polys.factortools.dup_zz_cyclotomic_poly(n, K)[source]#
          +sympy.polys.factortools.dup_zz_cyclotomic_poly(n, K)[source]#

          Efficiently generate n-th cyclotomic polynomial.

          -sympy.polys.factortools.dup_zz_cyclotomic_factor(f, K)[source]#
          +sympy.polys.factortools.dup_zz_cyclotomic_factor(f, K)[source]#

          Efficiently factor polynomials \(x**n - 1\) and \(x**n + 1\) in \(Z[x]\).

          Given a univariate polynomial \(f\) in \(Z[x]\) returns a list of factors of \(f\), provided that \(f\) is in the form \(x**n - 1\) or \(x**n + 1\) for @@ -4843,13 +4843,13 @@

          Subresultant sequence
          -sympy.polys.factortools.dup_zz_factor_sqf(f, K)[source]#
          +sympy.polys.factortools.dup_zz_factor_sqf(f, K)[source]#

          Factor square-free (non-primitive) polynomials in \(Z[x]\).

          -sympy.polys.factortools.dup_zz_factor(f, K)[source]#
          +sympy.polys.factortools.dup_zz_factor(f, K)[source]#

          Factor (non square-free) polynomials in \(Z[x]\).

          Given a univariate polynomial \(f\) in \(Z[x]\) computes its complete factorization \(f_1, ..., f_n\) into irreducibles over integers:

          @@ -4893,37 +4893,37 @@

          Subresultant sequence
          -sympy.polys.factortools.dmp_zz_wang_non_divisors(E, cs, ct, K)[source]#
          +sympy.polys.factortools.dmp_zz_wang_non_divisors(E, cs, ct, K)[source]#

          Wang/EEZ: Compute a set of valid divisors.

          -sympy.polys.factortools.dmp_zz_wang_test_points(f, T, ct, A, u, K)[source]#
          +sympy.polys.factortools.dmp_zz_wang_test_points(f, T, ct, A, u, K)[source]#

          Wang/EEZ: Test evaluation points for suitability.

          -sympy.polys.factortools.dmp_zz_wang_lead_coeffs(f, T, cs, E, H, A, u, K)[source]#
          +sympy.polys.factortools.dmp_zz_wang_lead_coeffs(f, T, cs, E, H, A, u, K)[source]#

          Wang/EEZ: Compute correct leading coefficients.

          -sympy.polys.factortools.dmp_zz_diophantine(F, c, A, d, p, u, K)[source]#
          +sympy.polys.factortools.dmp_zz_diophantine(F, c, A, d, p, u, K)[source]#

          Wang/EEZ: Solve multivariate Diophantine equations.

          -sympy.polys.factortools.dmp_zz_wang_hensel_lifting(f, H, LC, A, p, u, K)[source]#
          +sympy.polys.factortools.dmp_zz_wang_hensel_lifting(f, H, LC, A, p, u, K)[source]#

          Wang/EEZ: Parallel Hensel lifting algorithm.

          -sympy.polys.factortools.dmp_zz_wang(f, u, K, mod=None, seed=None)[source]#
          +sympy.polys.factortools.dmp_zz_wang(f, u, K, mod=None, seed=None)[source]#

          Factor primitive square-free polynomials in \(Z[X]\).

          Given a multivariate polynomial \(f\) in \(Z[x_1,...,x_n]\), which is primitive and square-free in \(x_1\), computes factorization of \(f\) into @@ -4956,7 +4956,7 @@

          Subresultant sequence
          -sympy.polys.factortools.dmp_zz_factor(f, u, K)[source]#
          +sympy.polys.factortools.dmp_zz_factor(f, u, K)[source]#

          Factor (non square-free) polynomials in \(Z[X]\).

          Given a multivariate polynomial \(f\) in \(Z[x]\) computes its complete factorization \(f_1, \dots, f_n\) into irreducibles over integers:

          @@ -4994,31 +4994,31 @@

          Subresultant sequence
          -sympy.polys.factortools.dmp_ext_factor(f, u, K)[source]#
          +sympy.polys.factortools.dmp_ext_factor(f, u, K)[source]#

          Factor multivariate polynomials over algebraic number fields.

          -sympy.polys.factortools.dup_gf_factor(f, K)[source]#
          +sympy.polys.factortools.dup_gf_factor(f, K)[source]#

          Factor univariate polynomials over finite fields.

          -sympy.polys.factortools.dmp_factor_list(f, u, K0)[source]#
          +sympy.polys.factortools.dmp_factor_list(f, u, K0)[source]#

          Factor multivariate polynomials into irreducibles in \(K[X]\).

          -sympy.polys.factortools.dmp_factor_list_include(f, u, K)[source]#
          +sympy.polys.factortools.dmp_factor_list_include(f, u, K)[source]#

          Factor multivariate polynomials into irreducibles in \(K[X]\).

          -sympy.polys.factortools.dmp_irreducible_p(f, u, K)[source]#
          +sympy.polys.factortools.dmp_irreducible_p(f, u, K)[source]#

          Returns True if a multivariate polynomial f has no factors over its domain.

          @@ -5034,7 +5034,7 @@

          Groebner basis algorithms
          -sympy.polys.groebnertools.groebner(seq, ring, method=None)[source]#
          +sympy.polys.groebnertools.groebner(seq, ring, method=None)[source]#

          Computes Groebner basis for a set of polynomials in \(K[X]\).

          Wrapper around the (default) improved Buchberger and the other algorithms for computing Groebner bases. The choice of algorithm can be changed via @@ -5044,14 +5044,14 @@

          Groebner basis algorithms
          -sympy.polys.groebnertools.spoly(p1, p2, ring)[source]#
          +sympy.polys.groebnertools.spoly(p1, p2, ring)[source]#

          Compute LCM(LM(p1), LM(p2))/LM(p1)*p1 - LCM(LM(p1), LM(p2))/LM(p2)*p2 This is the S-poly provided p1 and p2 are monic

          -sympy.polys.groebnertools.red_groebner(G, ring)[source]#
          +sympy.polys.groebnertools.red_groebner(G, ring)[source]#

          Compute reduced Groebner basis, from BeckerWeispfenning93, p. 216

          Selects a subset of generators, that already generate the ideal and computes a reduced Groebner basis for them.

          @@ -5059,25 +5059,25 @@

          Groebner basis algorithms
          -sympy.polys.groebnertools.is_groebner(G, ring)[source]#
          +sympy.polys.groebnertools.is_groebner(G, ring)[source]#

          Check if G is a Groebner basis.

          -sympy.polys.groebnertools.is_minimal(G, ring)[source]#
          +sympy.polys.groebnertools.is_minimal(G, ring)[source]#

          Checks if G is a minimal Groebner basis.

          -sympy.polys.groebnertools.is_reduced(G, ring)[source]#
          +sympy.polys.groebnertools.is_reduced(G, ring)[source]#

          Checks if G is a reduced Groebner basis.

          -sympy.polys.fglmtools.matrix_fglm(F, ring, O_to)[source]#
          +sympy.polys.fglmtools.matrix_fglm(F, ring, O_to)[source]#

          Converts the reduced Groebner basis F of a zero-dimensional ideal w.r.t. O_from to a reduced Groebner basis w.r.t. O_to.

          @@ -5095,7 +5095,7 @@

          Groebner basis algorithms
          -sympy.polys.distributedmodules.sdm_spoly(f, g, O, K, phantom=None)[source]#
          +sympy.polys.distributedmodules.sdm_spoly(f, g, O, K, phantom=None)[source]#

          Compute the generalized s-polynomial of f and g.

          The ground field is assumed to be K, and monomials ordered according to O.

          @@ -5123,7 +5123,7 @@

          Groebner basis algorithms
          -sympy.polys.distributedmodules.sdm_ecart(f)[source]#
          +sympy.polys.distributedmodules.sdm_ecart(f)[source]#

          Compute the ecart of f.

          This is defined to be the difference of the total degree of \(f\) and the total degree of the leading monomial of \(f\) [SCA, defn 2.3.7].

          @@ -5140,7 +5140,7 @@

          Groebner basis algorithms
          -sympy.polys.distributedmodules.sdm_nf_mora(f, G, O, K, phantom=None)[source]#
          +sympy.polys.distributedmodules.sdm_nf_mora(f, G, O, K, phantom=None)[source]#

          Compute a weak normal form of f with respect to G and order O.

          The ground field is assumed to be K, and monomials ordered according to O.

          @@ -5162,7 +5162,7 @@

          Groebner basis algorithms
          -sympy.polys.distributedmodules.sdm_groebner(G, NF, O, K, extended=False)[source]#
          +sympy.polys.distributedmodules.sdm_groebner(G, NF, O, K, extended=False)[source]#

          Compute a minimal standard basis of G with respect to order O.

          The algorithm uses a normal form NF, for example sdm_nf_mora. The ground field is assumed to be K, and monomials ordered according @@ -5191,7 +5191,7 @@

          Groebner basis algorithmsPoly and public API functions.

          -class sympy.polys.polyoptions.Options(gens, args, flags=None, strict=False)[source]#
          +class sympy.polys.polyoptions.Options(gens, args, flags=None, strict=False)[source]#

          Options manager for polynomial manipulation module.

          Examples

          >>> from sympy.polys.polyoptions import Options
          @@ -5239,7 +5239,7 @@ 

          Groebner basis algorithms
          -clone(updates={})[source]#
          +clone(updates={})[source]#

          Clone self and update specified options.

          @@ -5247,7 +5247,7 @@

          Groebner basis algorithms
          -sympy.polys.polyoptions.build_options(gens, args=None)[source]#
          +sympy.polys.polyoptions.build_options(gens, args=None)[source]#

          Construct options from keyword arguments or … options.

          @@ -5257,7 +5257,7 @@

          Groebner basis algorithms
          -sympy.polys.polyconfig.setup(key, value=None)[source]#
          +sympy.polys.polyconfig.setup(key, value=None)[source]#

          Assign a value to (or reset) a configuration item.

          @@ -5268,123 +5268,123 @@

          Exceptions
          -class sympy.polys.polyerrors.BasePolynomialError[source]#
          +class sympy.polys.polyerrors.BasePolynomialError[source]#

          Base class for polynomial related exceptions.

          -class sympy.polys.polyerrors.ExactQuotientFailed(f, g, dom=None)[source]#
          +class sympy.polys.polyerrors.ExactQuotientFailed(f, g, dom=None)[source]#
          -class sympy.polys.polyerrors.OperationNotSupported(poly, func)[source]#
          +class sympy.polys.polyerrors.OperationNotSupported(poly, func)[source]#
          -class sympy.polys.polyerrors.HeuristicGCDFailed[source]#
          +class sympy.polys.polyerrors.HeuristicGCDFailed[source]#
          -class sympy.polys.polyerrors.HomomorphismFailed[source]#
          +class sympy.polys.polyerrors.HomomorphismFailed[source]#
          -class sympy.polys.polyerrors.IsomorphismFailed[source]#
          +class sympy.polys.polyerrors.IsomorphismFailed[source]#
          -class sympy.polys.polyerrors.ExtraneousFactors[source]#
          +class sympy.polys.polyerrors.ExtraneousFactors[source]#
          -class sympy.polys.polyerrors.EvaluationFailed[source]#
          +class sympy.polys.polyerrors.EvaluationFailed[source]#
          -class sympy.polys.polyerrors.RefinementFailed[source]#
          +class sympy.polys.polyerrors.RefinementFailed[source]#
          -class sympy.polys.polyerrors.CoercionFailed[source]#
          +class sympy.polys.polyerrors.CoercionFailed[source]#
          -class sympy.polys.polyerrors.NotInvertible[source]#
          +class sympy.polys.polyerrors.NotInvertible[source]#
          -class sympy.polys.polyerrors.NotReversible[source]#
          +class sympy.polys.polyerrors.NotReversible[source]#
          -class sympy.polys.polyerrors.NotAlgebraic[source]#
          +class sympy.polys.polyerrors.NotAlgebraic[source]#
          -class sympy.polys.polyerrors.DomainError[source]#
          +class sympy.polys.polyerrors.DomainError[source]#
          -class sympy.polys.polyerrors.PolynomialError[source]#
          +class sympy.polys.polyerrors.PolynomialError[source]#
          -class sympy.polys.polyerrors.UnificationFailed[source]#
          +class sympy.polys.polyerrors.UnificationFailed[source]#
          -class sympy.polys.polyerrors.GeneratorsNeeded[source]#
          +class sympy.polys.polyerrors.GeneratorsNeeded[source]#
          -class sympy.polys.polyerrors.ComputationFailed(func, nargs, exc)[source]#
          +class sympy.polys.polyerrors.ComputationFailed(func, nargs, exc)[source]#
          -class sympy.polys.polyerrors.GeneratorsError[source]#
          +class sympy.polys.polyerrors.GeneratorsError[source]#
          -class sympy.polys.polyerrors.UnivariatePolynomialError[source]#
          +class sympy.polys.polyerrors.UnivariatePolynomialError[source]#
          -class sympy.polys.polyerrors.MultivariatePolynomialError[source]#
          +class sympy.polys.polyerrors.MultivariatePolynomialError[source]#
          -class sympy.polys.polyerrors.PolificationFailed(opt, origs, exprs, seq=False)[source]#
          +class sympy.polys.polyerrors.PolificationFailed(opt, origs, exprs, seq=False)[source]#
          -class sympy.polys.polyerrors.OptionError[source]#
          +class sympy.polys.polyerrors.OptionError[source]#
          -class sympy.polys.polyerrors.FlagError[source]#
          +class sympy.polys.polyerrors.FlagError[source]#
          @@ -5394,7 +5394,7 @@

          Reference#

          -sympy.polys.modulargcd.modgcd_univariate(f, g)[source]#
          +sympy.polys.modulargcd.modgcd_univariate(f, g)[source]#

          Computes the GCD of two polynomials in \(\mathbb{Z}[x]\) using a modular algorithm.

          The algorithm computes the GCD of two univariate integer polynomials @@ -5474,7 +5474,7 @@

          Modular GCD
          -sympy.polys.modulargcd.modgcd_bivariate(f, g)[source]#
          +sympy.polys.modulargcd.modgcd_bivariate(f, g)[source]#

          Computes the GCD of two polynomials in \(\mathbb{Z}[x, y]\) using a modular algorithm.

          The algorithm computes the GCD of two bivariate integer polynomials @@ -5560,7 +5560,7 @@

          Modular GCD
          -sympy.polys.modulargcd.modgcd_multivariate(f, g)[source]#
          +sympy.polys.modulargcd.modgcd_multivariate(f, g)[source]#

          Compute the GCD of two polynomials in \(\mathbb{Z}[x_0, \ldots, x_{k-1}]\) using a modular algorithm.

          The algorithm computes the GCD of two multivariate integer polynomials @@ -5651,7 +5651,7 @@

          Modular GCD
          -sympy.polys.modulargcd._modgcd_multivariate_p(f, g, p, degbound, contbound)[source]#
          +sympy.polys.modulargcd._modgcd_multivariate_p(f, g, p, degbound, contbound)[source]#

          Compute the GCD of two polynomials in \(\mathbb{Z}_p[x_0, \ldots, x_{k-1}]\).

          The algorithm reduces the problem step by step by evaluating the @@ -5708,7 +5708,7 @@

          Modular GCD
          -sympy.polys.modulargcd.func_field_modgcd(f, g)[source]#
          +sympy.polys.modulargcd.func_field_modgcd(f, g)[source]#

          Compute the GCD of two polynomials \(f\) and \(g\) in \(\mathbb Q(\alpha)[x_0, \ldots, x_{n-1}]\) using a modular algorithm.

          The algorithm first computes the primitive associate diff --git a/dev/modules/polys/numberfields.html b/dev/modules/polys/numberfields.html index 2d99e28cdef..6cfecbd3bc2 100644 --- a/dev/modules/polys/numberfields.html +++ b/dev/modules/polys/numberfields.html @@ -862,7 +862,7 @@

          Solving the Main Problems#

          -sympy.polys.numberfields.basis.round_two(T, radicals=None)[source]#
          +sympy.polys.numberfields.basis.round_two(T, radicals=None)[source]#

          Zassenhaus’s “Round 2” algorithm.

          Parameters:
          @@ -954,7 +954,7 @@

          Integral Basis#

          -sympy.polys.numberfields.primes.prime_decomp(p, T=None, ZK=None, dK=None, radical=None)[source]#
          +sympy.polys.numberfields.primes.prime_decomp(p, T=None, ZK=None, dK=None, radical=None)[source]#

          Compute the decomposition of rational prime p in a number field.

          Parameters:
          @@ -1011,11 +1011,11 @@

          Prime Decomposition
          -class sympy.polys.numberfields.primes.PrimeIdeal(ZK, p, alpha, f, e=None)[source]#
          +class sympy.polys.numberfields.primes.PrimeIdeal(ZK, p, alpha, f, e=None)[source]#

          A prime ideal in a ring of algebraic integers.

          -__init__(ZK, p, alpha, f, e=None)[source]#
          +__init__(ZK, p, alpha, f, e=None)[source]#
          Parameters:

          ZK : Submodule

          @@ -1045,7 +1045,7 @@

          Prime Decomposition
          -__add__(other)[source]#
          +__add__(other)[source]#

          Convert to a Submodule and add to another Submodule.

          @@ -1056,7 +1056,7 @@

          Prime Decomposition
          -__mul__(other)[source]#
          +__mul__(other)[source]#

          Convert to a Submodule and multiply by another Submodule or a rational number.

          @@ -1067,7 +1067,7 @@

          Prime Decomposition
          -as_submodule()[source]#
          +as_submodule()[source]#

          Represent this prime ideal as a Submodule.

          Returns:
          @@ -1123,7 +1123,7 @@

          Prime Decomposition
          -reduce_ANP(a)[source]#
          +reduce_ANP(a)[source]#

          Reduce an ANP to a “small representative” modulo this prime ideal.

          @@ -1148,7 +1148,7 @@

          Prime Decomposition
          -reduce_alg_num(a)[source]#
          +reduce_alg_num(a)[source]#

          Reduce an AlgebraicNumber to a “small representative” modulo this prime ideal.

          @@ -1173,7 +1173,7 @@

          Prime Decomposition
          -reduce_element(elt)[source]#
          +reduce_element(elt)[source]#

          Reduce a PowerBasisElement to a “small representative” modulo this prime ideal.

          @@ -1198,7 +1198,7 @@

          Prime Decomposition
          -repr(field_gen=None, just_gens=False)[source]#
          +repr(field_gen=None, just_gens=False)[source]#

          Print a representation of this prime ideal.

          Parameters:
          @@ -1235,7 +1235,7 @@

          Prime Decomposition
          -test_factor()[source]#
          +test_factor()[source]#

          Compute a test factor for this prime ideal.

          Explanation

          Write \(\mathfrak{p}\) for this prime ideal, \(p\) for the rational prime @@ -1249,7 +1249,7 @@

          Prime Decomposition
          -valuation(I)[source]#
          +valuation(I)[source]#

          Compute the \(\mathfrak{p}\)-adic valuation of integral ideal I at this prime ideal.

          @@ -1270,7 +1270,7 @@

          Prime Decomposition#

          -sympy.polys.numberfields.primes.prime_valuation(I, P)[source]#
          +sympy.polys.numberfields.primes.prime_valuation(I, P)[source]#

          Compute the P-adic valuation for an integral ideal I.

          Parameters:
          @@ -1316,7 +1316,7 @@

          p-adic Valuation#

          -sympy.polys.numberfields.galoisgroups.galois_group(f, *gens, by_name=False, max_tries=30, randomize=False, **args)[source]#
          +sympy.polys.numberfields.galoisgroups.galois_group(f, *gens, by_name=False, max_tries=30, randomize=False, **args)[source]#

          Compute the Galois group for polynomials f up to degree 6.

          Parameters:
          @@ -1426,7 +1426,7 @@

          Galois Groups#

          -sympy.polys.numberfields.minpoly.minimal_polynomial(ex, x=None, compose=True, polys=False, domain=None)[source]#
          +sympy.polys.numberfields.minpoly.minimal_polynomial(ex, x=None, compose=True, polys=False, domain=None)[source]#

          Computes the minimal polynomial of an algebraic element.

          Parameters:
          @@ -1482,7 +1482,7 @@

          Finding Minimal Polynomials
          -sympy.polys.numberfields.minpoly.minpoly(ex, x=None, compose=True, polys=False, domain=None)[source]#
          +sympy.polys.numberfields.minpoly.minpoly(ex, x=None, compose=True, polys=False, domain=None)[source]#

          This is a synonym for minimal_polynomial().

          @@ -1520,7 +1520,7 @@

          The Subfield Problem
          -sympy.polys.numberfields.subfield.field_isomorphism(a, b, *, fast=True)[source]#
          +sympy.polys.numberfields.subfield.field_isomorphism(a, b, *, fast=True)[source]#

          Find an embedding of one number field into another.

          Parameters:
          @@ -1567,7 +1567,7 @@

          The Subfield Problem
          -sympy.polys.numberfields.subfield.primitive_element(extension, x=None, *, ex=False, polys=False)[source]#
          +sympy.polys.numberfields.subfield.primitive_element(extension, x=None, *, ex=False, polys=False)[source]#

          Find a single generator for a number field given by several generators.

          Parameters:
          @@ -1652,7 +1652,7 @@

          The Subfield Problem
          -sympy.polys.numberfields.subfield.to_number_field(extension, theta=None, *, gen=None, alias=None)[source]#
          +sympy.polys.numberfields.subfield.to_number_field(extension, theta=None, *, gen=None, alias=None)[source]#

          Express one algebraic number in the field generated by another.

          Parameters:
          @@ -1937,7 +1937,7 @@

          Module HomomorphismsClass Reference#

          -class sympy.polys.numberfields.modules.Module[source]#
          +class sympy.polys.numberfields.modules.Module[source]#

          Generic finitely-generated module.

          This is an abstract base class, and should not be instantiated directly. The two concrete subclasses are PowerBasis and @@ -1950,7 +1950,7 @@

          Class ReferencePowerBasis.

          -__call__(spec, denom=1)[source]#
          +__call__(spec, denom=1)[source]#

          Generate a ModuleElement belonging to this module.

          Parameters:
          @@ -1994,7 +1994,7 @@

          Class Reference
          -ancestors(include_self=False)[source]#
          +ancestors(include_self=False)[source]#

          Return the list of ancestor modules of this module, from the foundational PowerBasis downward, optionally including self.

          @@ -2006,14 +2006,14 @@

          Class Reference
          -basis_elements()[source]#
          +basis_elements()[source]#

          Get list of ModuleElement being the generators of this module.

          -element_from_rational(a)[source]#
          +element_from_rational(a)[source]#

          Return a ModuleElement representing a rational number.

          Parameters:
          @@ -2041,19 +2041,19 @@

          Class Reference
          -endomorphism_ring()[source]#
          +endomorphism_ring()[source]#

          Form the EndomorphismRing for this module.

          -is_compat_col(col)[source]#
          +is_compat_col(col)[source]#

          Say whether col is a suitable column vector for this module.

          -mult_tab()[source]#
          +mult_tab()[source]#

          Get the multiplication table for this module (if closed under mult).

          Returns:
          @@ -2096,7 +2096,7 @@

          Class Reference
          -nearest_common_ancestor(other)[source]#
          +nearest_common_ancestor(other)[source]#

          Locate the nearest common ancestor of this module and another.

          Returns:
          @@ -2128,7 +2128,7 @@

          Class Reference
          -one()[source]#
          +one()[source]#

          Return a ModuleElement representing unity, and belonging to the first ancestor of this module (including itself) that starts with unity.

          @@ -2154,7 +2154,7 @@

          Class Reference
          -power_basis_ancestor()[source]#
          +power_basis_ancestor()[source]#

          Return the PowerBasis that is an ancestor of this module.

          See also

          @@ -2164,7 +2164,7 @@

          Class Reference
          -represent(elt)[source]#
          +represent(elt)[source]#

          Represent a module element as an integer-linear combination over the generators of this module.

          @@ -2245,13 +2245,13 @@

          Class Reference
          -starts_with_unity()[source]#
          +starts_with_unity()[source]#

          Say whether the module’s first generator equals unity.

          -submodule_from_gens(gens, hnf=True, hnf_modulus=None)[source]#
          +submodule_from_gens(gens, hnf=True, hnf_modulus=None)[source]#

          Form the submodule generated by a list of ModuleElement belonging to this module.

          @@ -2291,7 +2291,7 @@

          Class Reference
          -submodule_from_matrix(B, denom=1)[source]#
          +submodule_from_matrix(B, denom=1)[source]#

          Form the submodule generated by the elements of this module indicated by the columns of a matrix, with an optional denominator.

          @@ -2340,7 +2340,7 @@

          Class Reference
          -whole_submodule()[source]#
          +whole_submodule()[source]#

          Return a submodule equal to this entire module.

          Explanation

          This is useful when you have a PowerBasis and want to @@ -2350,7 +2350,7 @@

          Class Reference
          -zero()[source]#
          +zero()[source]#

          Return a ModuleElement representing zero.

          @@ -2358,11 +2358,11 @@

          Class Reference
          -class sympy.polys.numberfields.modules.PowerBasis(T)[source]#
          +class sympy.polys.numberfields.modules.PowerBasis(T)[source]#

          The module generated by the powers of an algebraic integer.

          -__init__(T)[source]#
          +__init__(T)[source]#
          Parameters:

          T : Poly, AlgebraicField

          @@ -2378,19 +2378,19 @@

          Class Reference
          -element_from_ANP(a)[source]#
          +element_from_ANP(a)[source]#

          Convert an ANP into a PowerBasisElement.

          -element_from_alg_num(a)[source]#
          +element_from_alg_num(a)[source]#

          Convert an AlgebraicNumber into a PowerBasisElement.

          -element_from_poly(f)[source]#
          +element_from_poly(f)[source]#

          Produce an element of this module, representing f after reduction mod our defining minimal polynomial.

          @@ -2405,7 +2405,7 @@

          Class Reference
          -represent(elt)[source]#
          +represent(elt)[source]#

          Represent a module element as an integer-linear combination over the generators of this module.

          @@ -2418,11 +2418,11 @@

          Class Reference
          -class sympy.polys.numberfields.modules.Submodule(parent, matrix, denom=1, mult_tab=None)[source]#
          +class sympy.polys.numberfields.modules.Submodule(parent, matrix, denom=1, mult_tab=None)[source]#

          A submodule of another module.

          -__init__(parent, matrix, denom=1, mult_tab=None)[source]#
          +__init__(parent, matrix, denom=1, mult_tab=None)[source]#
          Parameters:

          parent : Module

          @@ -2479,7 +2479,7 @@

          Class Reference
          -add(other, hnf=True, hnf_modulus=None)[source]#
          +add(other, hnf=True, hnf_modulus=None)[source]#

          Add this Submodule to another.

          Parameters:
          @@ -2507,21 +2507,21 @@

          Class Reference
          -basis_element_pullbacks()[source]#
          +basis_element_pullbacks()[source]#

          Return list of this submodule’s basis elements as elements of the submodule’s parent module.

          -discard_before(r)[source]#
          +discard_before(r)[source]#

          Produce a new module by discarding all generators before a given index r.

          -mul(other, hnf=True, hnf_modulus=None)[source]#
          +mul(other, hnf=True, hnf_modulus=None)[source]#

          Multiply this Submodule by a rational number, a ModuleElement, or another Submodule.

          @@ -2554,7 +2554,7 @@

          Class Reference
          -reduce_element(elt)[source]#
          +reduce_element(elt)[source]#

          If this submodule \(B\) has defining matrix \(W\) in square, maximal-rank Hermite normal form, then, given an element \(x\) of the parent module \(A\), we produce an element \(y \in A\) such that \(x - y \in B\), and the @@ -2617,7 +2617,7 @@

          Class Reference
          -reduced()[source]#
          +reduced()[source]#

          Produce a reduced version of this submodule.

          Returns:
          @@ -2632,7 +2632,7 @@

          Class Reference
          -represent(elt)[source]#
          +represent(elt)[source]#

          Represent a module element as an integer-linear combination over the generators of this module.

          @@ -2645,14 +2645,14 @@

          Class Reference
          -class sympy.polys.numberfields.modules.ModuleElement(module, col, denom=1)[source]#
          +class sympy.polys.numberfields.modules.ModuleElement(module, col, denom=1)[source]#

          Represents an element of a Module.

          NOTE: Should not be constructed directly. Use the __call__() method or the make_mod_elt() factory function instead.

          -__init__(module, col, denom=1)[source]#
          +__init__(module, col, denom=1)[source]#
          Parameters:

          module : Module

          @@ -2674,7 +2674,7 @@

          Class Reference
          -__add__(other)[source]#
          +__add__(other)[source]#

          A ModuleElement can be added to a rational number, or to another ModuleElement.

          Explanation

          @@ -2688,7 +2688,7 @@

          Class Reference
          -__mul__(other)[source]#
          +__mul__(other)[source]#

          A ModuleElement can be multiplied by a rational number, or by another ModuleElement.

          Explanation

          @@ -2704,7 +2704,7 @@

          Class Reference
          -__mod__(m)[source]#
          +__mod__(m)[source]#

          Reduce this ModuleElement mod a Submodule.

          Parameters:
          @@ -2735,13 +2735,13 @@

          Class Reference
          -column(domain=None)[source]#
          +column(domain=None)[source]#

          Get a copy of this element’s column, optionally converting to a domain.

          -equiv(other)[source]#
          +equiv(other)[source]#

          A ModuleElement may test as equivalent to a rational number or another ModuleElement, if they represent the same algebraic number.

          @@ -2771,14 +2771,14 @@

          Class Reference
          -classmethod from_int_list(module, coeffs, denom=1)[source]#
          +classmethod from_int_list(module, coeffs, denom=1)[source]#

          Make a ModuleElement from a list of ints (instead of a column vector).

          -is_compat(other)[source]#
          +is_compat(other)[source]#

          Test whether other is another ModuleElement with same module.

          @@ -2791,28 +2791,28 @@

          Class Reference
          -over_power_basis()[source]#
          +over_power_basis()[source]#

          Transform into a PowerBasisElement over our PowerBasis ancestor.

          -reduced()[source]#
          +reduced()[source]#

          Produce a reduced version of this ModuleElement, i.e. one in which the gcd of the denominator together with all numerator coefficients is 1.

          -reduced_mod_p(p)[source]#
          +reduced_mod_p(p)[source]#

          Produce a version of this ModuleElement in which all numerator coefficients have been reduced mod p.

          -to_ancestor(anc)[source]#
          +to_ancestor(anc)[source]#

          Transform into a ModuleElement belonging to a given ancestor of this element’s module.

          @@ -2824,14 +2824,14 @@

          Class Reference
          -to_parent()[source]#
          +to_parent()[source]#

          Transform into a ModuleElement belonging to the parent of this element’s module.

          -unify(other)[source]#
          +unify(other)[source]#

          Try to make a compatible pair of ModuleElement, one equivalent to this one, and one equivalent to the other.

          @@ -2859,7 +2859,7 @@

          Class Reference
          -class sympy.polys.numberfields.modules.PowerBasisElement(module, col, denom=1)[source]#
          +class sympy.polys.numberfields.modules.PowerBasisElement(module, col, denom=1)[source]#

          Subclass for ModuleElement instances whose module is a PowerBasis.

          @@ -2870,7 +2870,7 @@

          Class Reference
          -as_expr(x=None)[source]#
          +as_expr(x=None)[source]#

          Create a Basic expression from self.

          @@ -2892,31 +2892,31 @@

          Class Reference
          -norm(T=None)[source]#
          +norm(T=None)[source]#

          Compute the norm of this number.

          -numerator(x=None)[source]#
          +numerator(x=None)[source]#

          Obtain the numerator as a polynomial over ZZ.

          -poly(x=None)[source]#
          +poly(x=None)[source]#

          Obtain the number as a polynomial over QQ.

          -to_ANP()[source]#
          +to_ANP()[source]#

          Convert to an equivalent ANP.

          -to_alg_num()[source]#
          +to_alg_num()[source]#

          Try to convert to an equivalent AlgebraicNumber.

          Returns:
          @@ -2945,7 +2945,7 @@

          Class Reference
          -sympy.polys.numberfields.modules.make_mod_elt(module, col, denom=1)[source]#
          +sympy.polys.numberfields.modules.make_mod_elt(module, col, denom=1)[source]#

          Factory function which builds a ModuleElement, but ensures that it is a PowerBasisElement if the module is a PowerBasis.

          @@ -2953,11 +2953,11 @@

          Class Reference
          -class sympy.polys.numberfields.modules.ModuleHomomorphism(domain, codomain, mapping)[source]#
          +class sympy.polys.numberfields.modules.ModuleHomomorphism(domain, codomain, mapping)[source]#

          A homomorphism from one module to another.

          -__init__(domain, codomain, mapping)[source]#
          +__init__(domain, codomain, mapping)[source]#
          Parameters:

          domain : Module

          @@ -2991,7 +2991,7 @@

          Class Reference
          -kernel(modulus=None)[source]#
          +kernel(modulus=None)[source]#

          Compute a Submodule representing the kernel of this homomorphism.

          Parameters:
          @@ -3014,7 +3014,7 @@

          Class Reference
          -matrix(modulus=None)[source]#
          +matrix(modulus=None)[source]#

          Compute the matrix of this homomorphism.

          Parameters:
          @@ -3038,11 +3038,11 @@

          Class Reference
          -class sympy.polys.numberfields.modules.ModuleEndomorphism(domain, mapping)[source]#
          +class sympy.polys.numberfields.modules.ModuleEndomorphism(domain, mapping)[source]#

          A homomorphism from one module to itself.

          -__init__(domain, mapping)[source]#
          +__init__(domain, mapping)[source]#
          Parameters:

          domain : Module

          @@ -3063,12 +3063,12 @@

          Class Reference
          -class sympy.polys.numberfields.modules.InnerEndomorphism(domain, multiplier)[source]#
          +class sympy.polys.numberfields.modules.InnerEndomorphism(domain, multiplier)[source]#

          An inner endomorphism on a module, i.e. the endomorphism corresponding to multiplication by a fixed element.

          -__init__(domain, multiplier)[source]#
          +__init__(domain, multiplier)[source]#
          Parameters:

          domain : Module

          @@ -3087,11 +3087,11 @@

          Class Reference
          -class sympy.polys.numberfields.modules.EndomorphismRing(domain)[source]#
          +class sympy.polys.numberfields.modules.EndomorphismRing(domain)[source]#

          The ring of endomorphisms on a module.

          -__init__(domain)[source]#
          +__init__(domain)[source]#
          Parameters:

          domain : Module

          @@ -3104,7 +3104,7 @@

          Class Reference
          -inner_endomorphism(multiplier)[source]#
          +inner_endomorphism(multiplier)[source]#

          Form an inner endomorphism belonging to this endomorphism ring.

          Parameters:
          @@ -3121,7 +3121,7 @@

          Class Reference
          -represent(element)[source]#
          +represent(element)[source]#

          Represent an element of this endomorphism ring, as a single column vector.

          @@ -3203,7 +3203,7 @@

          Class Reference
          -sympy.polys.numberfields.modules.find_min_poly(alpha, domain, x=None, powers=None)[source]#
          +sympy.polys.numberfields.modules.find_min_poly(alpha, domain, x=None, powers=None)[source]#

          Find a polynomial of least degree (not necessarily irreducible) satisfied by an element of a finitely-generated ring with unity.

          @@ -3279,7 +3279,7 @@

          Class Reference#

          -sympy.polys.numberfields.utilities.is_rat(c)[source]#
          +sympy.polys.numberfields.utilities.is_rat(c)[source]#

          Test whether an argument is of an acceptable type to be used as a rational number.

          Explanation

          @@ -3292,7 +3292,7 @@

          Utilities
          -sympy.polys.numberfields.utilities.is_int(c)[source]#
          +sympy.polys.numberfields.utilities.is_int(c)[source]#

          Test whether an argument is of an acceptable type to be used as an integer.

          Explanation

          Returns True on any argument of type int or ZZ.

          @@ -3304,7 +3304,7 @@

          Utilities
          -sympy.polys.numberfields.utilities.get_num_denom(c)[source]#
          +sympy.polys.numberfields.utilities.get_num_denom(c)[source]#

          Given any argument on which is_rat() is True, return the numerator and denominator of this number.

          @@ -3315,7 +3315,7 @@

          Utilities
          -sympy.polys.numberfields.utilities.extract_fundamental_discriminant(a)[source]#
          +sympy.polys.numberfields.utilities.extract_fundamental_discriminant(a)[source]#

          Extract a fundamental discriminant from an integer a.

          Parameters:
          @@ -3364,7 +3364,7 @@

          Utilities
          -class sympy.polys.numberfields.utilities.AlgIntPowers(T, modulus=None)[source]#
          +class sympy.polys.numberfields.utilities.AlgIntPowers(T, modulus=None)[source]#

          Compute the powers of an algebraic integer.

          Explanation

          Given an algebraic integer \(\theta\) by its monic irreducible polynomial @@ -3398,7 +3398,7 @@

          Utilities
          -__init__(T, modulus=None)[source]#
          +__init__(T, modulus=None)[source]#
          Parameters:

          T : Poly

          @@ -3418,7 +3418,7 @@

          Utilities +sympy.polys.numberfields.utilities.coeff_search(m, R)[source]#

          Generate coefficients for searching through polynomials.

          Parameters:
          @@ -3455,7 +3455,7 @@

          Utilities
          -sympy.polys.numberfields.utilities.supplement_a_subspace(M)[source]#
          +sympy.polys.numberfields.utilities.supplement_a_subspace(M)[source]#

          Extend a basis for a subspace to a basis for the whole space.

          Parameters:
          @@ -3521,7 +3521,7 @@

          Utilities
          -sympy.polys.numberfields.utilities.isolate(alg, eps=None, fast=False)[source]#
          +sympy.polys.numberfields.utilities.isolate(alg, eps=None, fast=False)[source]#

          Find a rational isolating interval for a real algebraic number.

          Parameters:
          diff --git a/dev/modules/polys/reference.html b/dev/modules/polys/reference.html index 03c9430fd4b..64d932ede68 100644 --- a/dev/modules/polys/reference.html +++ b/dev/modules/polys/reference.html @@ -746,7 +746,7 @@
          Documentation Version

          Basic polynomial manipulation functions#

          -sympy.polys.polytools.poly(expr, *gens, **args)[source]#
          +sympy.polys.polytools.poly(expr, *gens, **args)[source]#

          Efficiently transform an expression into a polynomial.

          Examples

          >>> from sympy import poly
          @@ -761,19 +761,19 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.poly_from_expr(expr, *gens, **args)[source]#
          +sympy.polys.polytools.poly_from_expr(expr, *gens, **args)[source]#

          Construct a polynomial from an expression.

          -sympy.polys.polytools.parallel_poly_from_expr(exprs, *gens, **args)[source]#
          +sympy.polys.polytools.parallel_poly_from_expr(exprs, *gens, **args)[source]#

          Construct polynomials from expressions.

          -sympy.polys.polytools.degree(f, gen=0)[source]#
          +sympy.polys.polytools.degree(f, gen=0)[source]#

          Return the degree of f in the given variable.

          The degree of 0 is negative infinity.

          Examples

          @@ -797,7 +797,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.degree_list(f, *gens, **args)[source]#
          +sympy.polys.polytools.degree_list(f, *gens, **args)[source]#

          Return a list of degrees of f in all variables.

          Examples

          >>> from sympy import degree_list
          @@ -812,7 +812,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.LC(f, *gens, **args)[source]#
          +sympy.polys.polytools.LC(f, *gens, **args)[source]#

          Return the leading coefficient of f.

          Examples

          >>> from sympy import LC
          @@ -827,7 +827,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.LM(f, *gens, **args)[source]#
          +sympy.polys.polytools.LM(f, *gens, **args)[source]#

          Return the leading monomial of f.

          Examples

          >>> from sympy import LM
          @@ -842,7 +842,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.LT(f, *gens, **args)[source]#
          +sympy.polys.polytools.LT(f, *gens, **args)[source]#

          Return the leading term of f.

          Examples

          >>> from sympy import LT
          @@ -857,7 +857,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.pdiv(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.pdiv(f, g, *gens, **args)[source]#

          Compute polynomial pseudo-division of f and g.

          Examples

          >>> from sympy import pdiv
          @@ -872,7 +872,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.prem(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.prem(f, g, *gens, **args)[source]#

          Compute polynomial pseudo-remainder of f and g.

          Examples

          >>> from sympy import prem
          @@ -887,7 +887,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.pquo(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.pquo(f, g, *gens, **args)[source]#

          Compute polynomial pseudo-quotient of f and g.

          Examples

          >>> from sympy import pquo
          @@ -904,7 +904,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.pexquo(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.pexquo(f, g, *gens, **args)[source]#

          Compute polynomial exact pseudo-quotient of f and g.

          Examples

          >>> from sympy import pexquo
          @@ -925,7 +925,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.div(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.div(f, g, *gens, **args)[source]#

          Compute polynomial division of f and g.

          Examples

          >>> from sympy import div, ZZ, QQ
          @@ -942,7 +942,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.rem(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.rem(f, g, *gens, **args)[source]#

          Compute polynomial remainder of f and g.

          Examples

          >>> from sympy import rem, ZZ, QQ
          @@ -959,7 +959,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.quo(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.quo(f, g, *gens, **args)[source]#

          Compute polynomial quotient of f and g.

          Examples

          >>> from sympy import quo
          @@ -976,7 +976,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.exquo(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.exquo(f, g, *gens, **args)[source]#

          Compute polynomial exact quotient of f and g.

          Examples

          >>> from sympy import exquo
          @@ -997,7 +997,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.half_gcdex(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.half_gcdex(f, g, *gens, **args)[source]#

          Half extended Euclidean algorithm of f and g.

          Returns (s, h) such that h = gcd(f, g) and s*f = h (mod g).

          Examples

          @@ -1013,7 +1013,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.gcdex(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.gcdex(f, g, *gens, **args)[source]#

          Extended Euclidean algorithm of f and g.

          Returns (s, t, h) such that h = gcd(f, g) and s*f + t*g = h.

          Examples

          @@ -1029,7 +1029,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.invert(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.invert(f, g, *gens, **args)[source]#

          Invert f modulo g when possible.

          Examples

          >>> from sympy import invert, S, mod_inverse
          @@ -1062,7 +1062,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.subresultants(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.subresultants(f, g, *gens, **args)[source]#

          Compute subresultant PRS of f and g.

          Examples

          >>> from sympy import subresultants
          @@ -1077,7 +1077,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.resultant(f, g, *gens, includePRS=False, **args)[source]#
          +sympy.polys.polytools.resultant(f, g, *gens, includePRS=False, **args)[source]#

          Compute resultant of f and g.

          Examples

          >>> from sympy import resultant
          @@ -1092,7 +1092,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.discriminant(f, *gens, **args)[source]#
          +sympy.polys.polytools.discriminant(f, *gens, **args)[source]#

          Compute discriminant of f.

          Examples

          >>> from sympy import discriminant
          @@ -1107,7 +1107,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.terms_gcd(f, *gens, **args)[source]#
          +sympy.polys.polytools.terms_gcd(f, *gens, **args)[source]#

          Remove GCD of terms from f.

          If the deep flag is True, then the arguments of f will have terms_gcd applied to them.

          @@ -1170,7 +1170,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.cofactors(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.cofactors(f, g, *gens, **args)[source]#

          Compute GCD and cofactors of f and g.

          Returns polynomials (h, cff, cfg) such that h = gcd(f, g), and cff = quo(f, h) and cfg = quo(g, h) are, so called, cofactors @@ -1188,7 +1188,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.gcd(f, g=None, *gens, **args)[source]#
          +sympy.polys.polytools.gcd(f, g=None, *gens, **args)[source]#

          Compute GCD of f and g.

          Examples

          >>> from sympy import gcd
          @@ -1203,7 +1203,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.gcd_list(seq, *gens, **args)[source]#
          +sympy.polys.polytools.gcd_list(seq, *gens, **args)[source]#

          Compute GCD of a list of polynomials.

          Examples

          >>> from sympy import gcd_list
          @@ -1218,7 +1218,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.lcm(f, g=None, *gens, **args)[source]#
          +sympy.polys.polytools.lcm(f, g=None, *gens, **args)[source]#

          Compute LCM of f and g.

          Examples

          >>> from sympy import lcm
          @@ -1233,7 +1233,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.lcm_list(seq, *gens, **args)[source]#
          +sympy.polys.polytools.lcm_list(seq, *gens, **args)[source]#

          Compute LCM of a list of polynomials.

          Examples

          >>> from sympy import lcm_list
          @@ -1248,7 +1248,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.trunc(f, p, *gens, **args)[source]#
          +sympy.polys.polytools.trunc(f, p, *gens, **args)[source]#

          Reduce f modulo a constant p.

          Examples

          >>> from sympy import trunc
          @@ -1263,7 +1263,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.monic(f, *gens, **args)[source]#
          +sympy.polys.polytools.monic(f, *gens, **args)[source]#

          Divide all coefficients of f by LC(f).

          Examples

          >>> from sympy import monic
          @@ -1278,7 +1278,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.content(f, *gens, **args)[source]#
          +sympy.polys.polytools.content(f, *gens, **args)[source]#

          Compute GCD of coefficients of f.

          Examples

          >>> from sympy import content
          @@ -1293,7 +1293,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.primitive(f, *gens, **args)[source]#
          +sympy.polys.polytools.primitive(f, *gens, **args)[source]#

          Compute content and the primitive form of f.

          Examples

          >>> from sympy.polys.polytools import primitive
          @@ -1327,7 +1327,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.compose(f, g, *gens, **args)[source]#
          +sympy.polys.polytools.compose(f, g, *gens, **args)[source]#

          Compute functional composition f(g).

          Examples

          >>> from sympy import compose
          @@ -1342,7 +1342,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.decompose(f, *gens, **args)[source]#
          +sympy.polys.polytools.decompose(f, *gens, **args)[source]#

          Compute functional decomposition of f.

          Examples

          >>> from sympy import decompose
          @@ -1357,7 +1357,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.sturm(f, *gens, **args)[source]#
          +sympy.polys.polytools.sturm(f, *gens, **args)[source]#

          Compute Sturm sequence of f.

          Examples

          >>> from sympy import sturm
          @@ -1372,7 +1372,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.gff_list(f, *gens, **args)[source]#
          +sympy.polys.polytools.gff_list(f, *gens, **args)[source]#

          Compute a list of greatest factorial factors of f.

          Note that the input to ff() and rf() should be Poly instances to use the definitions here.

          @@ -1407,13 +1407,13 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.gff(f, *gens, **args)[source]#
          +sympy.polys.polytools.gff(f, *gens, **args)[source]#

          Compute greatest factorial factorization of f.

          -sympy.polys.polytools.sqf_norm(f, *gens, **args)[source]#
          +sympy.polys.polytools.sqf_norm(f, *gens, **args)[source]#

          Compute square-free norm of f.

          Returns s, f, r, such that g(x) = f(x-sa) and r(x) = Norm(g(x)) is a square-free polynomial over K, @@ -1431,7 +1431,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.sqf_part(f, *gens, **args)[source]#
          +sympy.polys.polytools.sqf_part(f, *gens, **args)[source]#

          Compute square-free part of f.

          Examples

          >>> from sympy import sqf_part
          @@ -1446,7 +1446,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.sqf_list(f, *gens, **args)[source]#
          +sympy.polys.polytools.sqf_list(f, *gens, **args)[source]#

          Compute a list of square-free factors of f.

          Examples

          >>> from sympy import sqf_list
          @@ -1461,7 +1461,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.sqf(f, *gens, **args)[source]#
          +sympy.polys.polytools.sqf(f, *gens, **args)[source]#

          Compute square-free factorization of f.

          Examples

          >>> from sympy import sqf
          @@ -1476,7 +1476,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.factor_list(f, *gens, **args)[source]#
          +sympy.polys.polytools.factor_list(f, *gens, **args)[source]#

          Compute a list of irreducible factors of f.

          Examples

          >>> from sympy import factor_list
          @@ -1491,7 +1491,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.factor(f, *gens, deep=False, **args)[source]#
          +sympy.polys.polytools.factor(f, *gens, deep=False, **args)[source]#

          Compute the factorization of expression, f, into irreducibles. (To factor an integer into primes, use factorint.)

          There two modes implemented: symbolic and formal. If f is not an @@ -1559,7 +1559,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.intervals(F, all=False, eps=None, inf=None, sup=None, strict=False, fast=False, sqf=False)[source]#
          +sympy.polys.polytools.intervals(F, all=False, eps=None, inf=None, sup=None, strict=False, fast=False, sqf=False)[source]#

          Compute isolating intervals for roots of f.

          Examples

          >>> from sympy import intervals
          @@ -1576,7 +1576,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.refine_root(f, s, t, eps=None, steps=None, fast=False, check_sqf=False)[source]#
          +sympy.polys.polytools.refine_root(f, s, t, eps=None, steps=None, fast=False, check_sqf=False)[source]#

          Refine an isolating interval of a root to the given precision.

          Examples

          >>> from sympy import refine_root
          @@ -1591,7 +1591,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.count_roots(f, inf=None, sup=None)[source]#
          +sympy.polys.polytools.count_roots(f, inf=None, sup=None)[source]#

          Return the number of roots of f in [inf, sup] interval.

          If one of inf or sup is complex, it will return the number of roots in the complex rectangle with corners at inf and sup.

          @@ -1610,7 +1610,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.all_roots(f, multiple=True, radicals=True)[source]#
          +sympy.polys.polytools.all_roots(f, multiple=True, radicals=True)[source]#

          Returns the real and complex roots of f with multiplicities.

          Parameters:
          @@ -1742,7 +1742,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.real_roots(f, multiple=True, radicals=True)[source]#
          +sympy.polys.polytools.real_roots(f, multiple=True, radicals=True)[source]#

          Returns the real roots of f with multiplicities.

          Parameters:
          @@ -1904,7 +1904,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.nroots(f, n=15, maxsteps=50, cleanup=True)[source]#
          +sympy.polys.polytools.nroots(f, n=15, maxsteps=50, cleanup=True)[source]#

          Compute numerical approximations of roots of f.

          Examples

          >>> from sympy import nroots
          @@ -1921,7 +1921,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.ground_roots(f, *gens, **args)[source]#
          +sympy.polys.polytools.ground_roots(f, *gens, **args)[source]#

          Compute roots of f by factorization in the ground domain.

          Examples

          >>> from sympy import ground_roots
          @@ -1936,7 +1936,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.nth_power_roots_poly(f, n, *gens, **args)[source]#
          +sympy.polys.polytools.nth_power_roots_poly(f, n, *gens, **args)[source]#

          Construct a polynomial with n-th powers of roots of f.

          Examples

          >>> from sympy import nth_power_roots_poly, factor, roots
          @@ -1963,7 +1963,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.cancel(f, *gens, _signsimp=True, **args)[source]#
          +sympy.polys.polytools.cancel(f, *gens, _signsimp=True, **args)[source]#

          Cancel common factors in a rational function f.

          Examples

          >>> from sympy import cancel, sqrt, Symbol, together
          @@ -1989,7 +1989,7 @@ 

          Basic polynomial manipulation functions
          -sympy.polys.polytools.reduced(f, G, *gens, **args)[source]#
          +sympy.polys.polytools.reduced(f, G, *gens, **args)[source]#

          Reduces a polynomial f modulo a set of polynomials G.

          Given a polynomial f and a set of polynomials G = (g_1, ..., g_n), computes a set of quotients q = (q_1, ..., q_n) and the remainder r @@ -2008,7 +2008,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.groebner(F, *gens, **args)[source]#
          +sympy.polys.polytools.groebner(F, *gens, **args)[source]#

          Computes the reduced Groebner basis for a set of polynomials.

          Use the order argument to set the monomial ordering that will be used to compute the basis. Allowed orders are lex, grlex and @@ -2057,7 +2057,7 @@

          Basic polynomial manipulation functions
          -sympy.polys.polytools.is_zero_dimensional(F, *gens, **args)[source]#
          +sympy.polys.polytools.is_zero_dimensional(F, *gens, **args)[source]#

          Checks if the ideal generated by a Groebner basis is zero-dimensional.

          The algorithm checks if the set of monomials not divisible by the leading monomial of any element of F is bounded.

          @@ -2068,7 +2068,7 @@

          Basic polynomial manipulation functions
          -class sympy.polys.polytools.Poly(rep, *gens, **args)[source]#
          +class sympy.polys.polytools.Poly(rep, *gens, **args)[source]#

          Generic class for representing and operating on polynomial expressions.

          See Polynomial Manipulation for general documentation.

          Poly is a subclass of Basic rather than Expr but instances can be @@ -2115,7 +2115,7 @@

          Basic polynomial manipulation functions
          -EC(order=None)[source]#
          +EC(order=None)[source]#

          Returns the last non-zero coefficient of f.

          Examples

          >>> from sympy import Poly
          @@ -2130,7 +2130,7 @@ 

          Basic polynomial manipulation functions
          -EM(order=None)[source]#
          +EM(order=None)[source]#

          Returns the last non-zero monomial of f.

          Examples

          >>> from sympy import Poly
          @@ -2145,7 +2145,7 @@ 

          Basic polynomial manipulation functions
          -ET(order=None)[source]#
          +ET(order=None)[source]#

          Returns the last non-zero term of f.

          Examples

          >>> from sympy import Poly
          @@ -2160,7 +2160,7 @@ 

          Basic polynomial manipulation functions
          -LC(order=None)[source]#
          +LC(order=None)[source]#

          Returns the leading coefficient of f.

          Examples

          >>> from sympy import Poly
          @@ -2175,7 +2175,7 @@ 

          Basic polynomial manipulation functions
          -LM(order=None)[source]#
          +LM(order=None)[source]#

          Returns the leading monomial of f.

          The Leading monomial signifies the monomial having the highest power of the principal generator in the @@ -2193,7 +2193,7 @@

          Basic polynomial manipulation functions
          -LT(order=None)[source]#
          +LT(order=None)[source]#

          Returns the leading term of f.

          The Leading term signifies the term having the highest power of the principal generator in the @@ -2211,7 +2211,7 @@

          Basic polynomial manipulation functions
          -TC()[source]#
          +TC()[source]#

          Returns the trailing coefficient of f.

          Examples

          >>> from sympy import Poly
          @@ -2226,7 +2226,7 @@ 

          Basic polynomial manipulation functions
          -abs()[source]#
          +abs()[source]#

          Make all coefficients in f positive.

          Examples

          >>> from sympy import Poly
          @@ -2241,7 +2241,7 @@ 

          Basic polynomial manipulation functions
          -add(g)[source]#
          +add(g)[source]#

          Add two polynomials f and g.

          Examples

          >>> from sympy import Poly
          @@ -2260,7 +2260,7 @@ 

          Basic polynomial manipulation functions
          -add_ground(coeff)[source]#
          +add_ground(coeff)[source]#

          Add an element of the ground domain to f.

          Examples

          >>> from sympy import Poly
          @@ -2275,7 +2275,7 @@ 

          Basic polynomial manipulation functions
          -all_coeffs()[source]#
          +all_coeffs()[source]#

          Returns all coefficients from a univariate polynomial f.

          Examples

          >>> from sympy import Poly
          @@ -2290,7 +2290,7 @@ 

          Basic polynomial manipulation functions
          -all_monoms()[source]#
          +all_monoms()[source]#

          Returns all monomials from a univariate polynomial f.

          Examples

          >>> from sympy import Poly
          @@ -2309,7 +2309,7 @@ 

          Basic polynomial manipulation functions
          -all_roots(multiple=True, radicals=True)[source]#
          +all_roots(multiple=True, radicals=True)[source]#

          Return a list of real and complex roots with multiplicities.

          See all_roots() for more explanation.

          Examples

          @@ -2329,7 +2329,7 @@

          Basic polynomial manipulation functions
          -all_terms()[source]#
          +all_terms()[source]#

          Returns all terms from a univariate polynomial f.

          Examples

          >>> from sympy import Poly
          @@ -2344,7 +2344,7 @@ 

          Basic polynomial manipulation functions
          -as_dict(native=False, zero=False)[source]#
          +as_dict(native=False, zero=False)[source]#

          Switch to a dict representation.

          Examples

          >>> from sympy import Poly
          @@ -2359,7 +2359,7 @@ 

          Basic polynomial manipulation functions
          -as_expr(*gens)[source]#
          +as_expr(*gens)[source]#

          Convert a Poly instance to an Expr instance.

          Examples

          >>> from sympy import Poly
          @@ -2381,13 +2381,13 @@ 

          Basic polynomial manipulation functions
          -as_list(native=False)[source]#
          +as_list(native=False)[source]#

          Switch to a list representation.

          -as_poly(*gens, **args)[source]#
          +as_poly(*gens, **args)[source]#

          Converts self to a polynomial or returns None.

          >>> from sympy import sin
           >>> from sympy.abc import x, y
          @@ -2409,7 +2409,7 @@ 

          Basic polynomial manipulation functions
          -cancel(g, include=False)[source]#
          +cancel(g, include=False)[source]#

          Cancel common factors in a rational function f/g.

          Examples

          >>> from sympy import Poly
          @@ -2428,7 +2428,7 @@ 

          Basic polynomial manipulation functions
          -clear_denoms(convert=False)[source]#
          +clear_denoms(convert=False)[source]#

          Clear denominators, but keep the ground domain.

          Examples

          >>> from sympy import Poly, S, QQ
          @@ -2448,7 +2448,7 @@ 

          Basic polynomial manipulation functions
          -coeff_monomial(monom)[source]#
          +coeff_monomial(monom)[source]#

          Returns the coefficient of monom in f if there, else None.

          Examples

          >>> from sympy import Poly, exp
          @@ -2488,7 +2488,7 @@ 

          Basic polynomial manipulation functions
          -coeffs(order=None)[source]#
          +coeffs(order=None)[source]#

          Returns all non-zero coefficients from f in lex order.

          Examples

          >>> from sympy import Poly
          @@ -2507,7 +2507,7 @@ 

          Basic polynomial manipulation functions
          -cofactors(g)[source]#
          +cofactors(g)[source]#

          Returns the GCD of f and g and their cofactors.

          Returns polynomials (h, cff, cfg) such that h = gcd(f, g), and cff = quo(f, h) and cfg = quo(g, h) are, so called, cofactors @@ -2527,7 +2527,7 @@

          Basic polynomial manipulation functions
          -compose(g)[source]#
          +compose(g)[source]#

          Computes the functional composition of f and g.

          Examples

          >>> from sympy import Poly
          @@ -2542,7 +2542,7 @@ 

          Basic polynomial manipulation functions
          -content()[source]#
          +content()[source]#

          Returns the GCD of polynomial coefficients.

          Examples

          >>> from sympy import Poly
          @@ -2557,7 +2557,7 @@ 

          Basic polynomial manipulation functions
          -count_roots(inf=None, sup=None)[source]#
          +count_roots(inf=None, sup=None)[source]#

          Return the number of roots of f in [inf, sup] interval.

          Examples

          >>> from sympy import Poly, I
          @@ -2574,7 +2574,7 @@ 

          Basic polynomial manipulation functions
          -decompose()[source]#
          +decompose()[source]#

          Computes a functional decomposition of f.

          Examples

          >>> from sympy import Poly
          @@ -2589,7 +2589,7 @@ 

          Basic polynomial manipulation functions
          -deflate()[source]#
          +deflate()[source]#

          Reduce degree of f by mapping x_i**m to y_i.

          Examples

          >>> from sympy import Poly
          @@ -2604,7 +2604,7 @@ 

          Basic polynomial manipulation functions
          -degree(gen=0)[source]#
          +degree(gen=0)[source]#

          Returns degree of f in x_j.

          The degree of 0 is negative infinity.

          Examples

          @@ -2624,7 +2624,7 @@

          Basic polynomial manipulation functions
          -degree_list()[source]#
          +degree_list()[source]#

          Returns a list of degrees of f.

          Examples

          >>> from sympy import Poly
          @@ -2639,7 +2639,7 @@ 

          Basic polynomial manipulation functions
          -diff(*specs, **kwargs)[source]#
          +diff(*specs, **kwargs)[source]#

          Computes partial derivative of f.

          Examples

          >>> from sympy import Poly
          @@ -2658,7 +2658,7 @@ 

          Basic polynomial manipulation functions
          -discriminant()[source]#
          +discriminant()[source]#

          Computes the discriminant of f.

          Examples

          >>> from sympy import Poly
          @@ -2673,7 +2673,7 @@ 

          Basic polynomial manipulation functions
          -dispersion(g=None)[source]#
          +dispersion(g=None)[source]#

          Compute the dispersion of polynomials.

          For two polynomials \(f(x)\) and \(g(x)\) with \(\deg f > 0\) and \(\deg g > 0\) the dispersion \(\operatorname{dis}(f, g)\) is defined as:

          @@ -2744,7 +2744,7 @@

          Basic polynomial manipulation functions
          -dispersionset(g=None)[source]#
          +dispersionset(g=None)[source]#

          Compute the dispersion set of two polynomials.

          For two polynomials \(f(x)\) and \(g(x)\) with \(\deg f > 0\) and \(\deg g > 0\) the dispersion set \(\operatorname{J}(f, g)\) is defined as:

          @@ -2815,7 +2815,7 @@

          Basic polynomial manipulation functions
          -div(g, auto=True)[source]#
          +div(g, auto=True)[source]#

          Polynomial division with remainder of f by g.

          Examples

          >>> from sympy import Poly
          @@ -2858,7 +2858,7 @@ 

          Basic polynomial manipulation functions
          -eject(*gens)[source]#
          +eject(*gens)[source]#

          Eject selected generators into the ground domain.

          Examples

          >>> from sympy import Poly
          @@ -2878,7 +2878,7 @@ 

          Basic polynomial manipulation functions
          -eval(x, a=None, auto=True)[source]#
          +eval(x, a=None, auto=True)[source]#

          Evaluate f at a in the given variable.

          Examples

          >>> from sympy import Poly
          @@ -2914,7 +2914,7 @@ 

          Basic polynomial manipulation functions
          -exclude()[source]#
          +exclude()[source]#

          Remove unnecessary generators from f.

          Examples

          >>> from sympy import Poly
          @@ -2929,7 +2929,7 @@ 

          Basic polynomial manipulation functions
          -exquo(g, auto=True)[source]#
          +exquo(g, auto=True)[source]#

          Computes polynomial exact quotient of f by g.

          Examples

          >>> from sympy import Poly
          @@ -2950,7 +2950,7 @@ 

          Basic polynomial manipulation functions
          -exquo_ground(coeff)[source]#
          +exquo_ground(coeff)[source]#

          Exact quotient of f by a an element of the ground domain.

          Examples

          >>> from sympy import Poly
          @@ -2971,7 +2971,7 @@ 

          Basic polynomial manipulation functions
          -factor_list()[source]#
          +factor_list()[source]#

          Returns a list of irreducible factors of f.

          Examples

          >>> from sympy import Poly
          @@ -2990,7 +2990,7 @@ 

          Basic polynomial manipulation functions
          -factor_list_include()[source]#
          +factor_list_include()[source]#

          Returns a list of irreducible factors of f.

          Examples

          >>> from sympy import Poly
          @@ -3049,31 +3049,31 @@ 

          Basic polynomial manipulation functions
          -classmethod from_dict(rep, *gens, **args)[source]#
          +classmethod from_dict(rep, *gens, **args)[source]#

          Construct a polynomial from a dict.

          -classmethod from_expr(rep, *gens, **args)[source]#
          +classmethod from_expr(rep, *gens, **args)[source]#

          Construct a polynomial from an expression.

          -classmethod from_list(rep, *gens, **args)[source]#
          +classmethod from_list(rep, *gens, **args)[source]#

          Construct a polynomial from a list.

          -classmethod from_poly(rep, *gens, **args)[source]#
          +classmethod from_poly(rep, *gens, **args)[source]#

          Construct a polynomial from a polynomial.

          -galois_group(by_name=False, max_tries=30, randomize=False)[source]#
          +galois_group(by_name=False, max_tries=30, randomize=False)[source]#

          Compute the Galois group of this polynomial.

          Examples

          >>> from sympy import Poly
          @@ -3092,7 +3092,7 @@ 

          Basic polynomial manipulation functions
          -gcd(g)[source]#
          +gcd(g)[source]#

          Returns the polynomial GCD of f and g.

          Examples

          >>> from sympy import Poly
          @@ -3107,7 +3107,7 @@ 

          Basic polynomial manipulation functions
          -gcdex(g, auto=True)[source]#
          +gcdex(g, auto=True)[source]#

          Extended Euclidean algorithm of f and g.

          Returns (s, t, h) such that h = gcd(f, g) and s*f + t*g = h.

          Examples

          @@ -3144,13 +3144,13 @@

          Basic polynomial manipulation functions
          -get_domain()[source]#
          +get_domain()[source]#

          Get the ground domain of f.

          -get_modulus()[source]#
          +get_modulus()[source]#

          Get the modulus of f.

          Examples

          >>> from sympy import Poly
          @@ -3165,7 +3165,7 @@ 

          Basic polynomial manipulation functions
          -gff_list()[source]#
          +gff_list()[source]#

          Computes greatest factorial factorization of f.

          Examples

          >>> from sympy import Poly
          @@ -3183,7 +3183,7 @@ 

          Basic polynomial manipulation functions
          -ground_roots()[source]#
          +ground_roots()[source]#

          Compute roots of f by factorization in the ground domain.

          Examples

          >>> from sympy import Poly
          @@ -3198,7 +3198,7 @@ 

          Basic polynomial manipulation functions
          -half_gcdex(g, auto=True)[source]#
          +half_gcdex(g, auto=True)[source]#

          Half extended Euclidean algorithm of f and g.

          Returns (s, h) such that h = gcd(f, g) and s*f = h (mod g).

          Examples

          @@ -3218,7 +3218,7 @@

          Basic polynomial manipulation functions
          -has_only_gens(*gens)[source]#
          +has_only_gens(*gens)[source]#

          Return True if Poly(f, *gens) retains ground domain.

          Examples

          >>> from sympy import Poly
          @@ -3235,7 +3235,7 @@ 

          Basic polynomial manipulation functions
          -homogeneous_order()[source]#
          +homogeneous_order()[source]#

          Returns the homogeneous order of f.

          A homogeneous polynomial is a polynomial whose all monomials with non-zero coefficients have the same total degree. This degree is @@ -3255,7 +3255,7 @@

          Basic polynomial manipulation functions
          -homogenize(s)[source]#
          +homogenize(s)[source]#

          Returns the homogeneous polynomial of f.

          A homogeneous polynomial is a polynomial whose all monomials with non-zero coefficients have the same total degree. If you only @@ -3277,7 +3277,7 @@

          Basic polynomial manipulation functions
          -inject(front=False)[source]#
          +inject(front=False)[source]#

          Inject ground domain generators into f.

          Examples

          >>> from sympy import Poly
          @@ -3297,7 +3297,7 @@ 

          Basic polynomial manipulation functions
          -integrate(*specs, **args)[source]#
          +integrate(*specs, **args)[source]#

          Computes indefinite integral of f.

          Examples

          >>> from sympy import Poly
          @@ -3316,7 +3316,7 @@ 

          Basic polynomial manipulation functions
          -intervals(all=False, eps=None, inf=None, sup=None, fast=False, sqf=False)[source]#
          +intervals(all=False, eps=None, inf=None, sup=None, fast=False, sqf=False)[source]#

          Compute isolating intervals for roots of f.

          For real roots the Vincent-Akritas-Strzebonski (VAS) continued fractions method is used.

          Examples

          @@ -3348,7 +3348,7 @@

          Basic polynomial manipulation functions
          -invert(g, auto=True)[source]#
          +invert(g, auto=True)[source]#

          Invert f modulo g when possible.

          Examples

          >>> from sympy import Poly
          @@ -3629,7 +3629,7 @@ 

          Basic polynomial manipulation functions
          -l1_norm()[source]#
          +l1_norm()[source]#

          Returns l1 norm of f.

          Examples

          >>> from sympy import Poly
          @@ -3644,7 +3644,7 @@ 

          Basic polynomial manipulation functions
          -lcm(g)[source]#
          +lcm(g)[source]#

          Returns polynomial LCM of f and g.

          Examples

          >>> from sympy import Poly
          @@ -3659,7 +3659,7 @@ 

          Basic polynomial manipulation functions
          -length()[source]#
          +length()[source]#

          Returns the number of non-zero terms in f.

          Examples

          >>> from sympy import Poly
          @@ -3674,7 +3674,7 @@ 

          Basic polynomial manipulation functions
          -lift()[source]#
          +lift()[source]#

          Convert algebraic coefficients to rationals.

          Examples

          >>> from sympy import Poly, I
          @@ -3689,7 +3689,7 @@ 

          Basic polynomial manipulation functions
          -ltrim(gen)[source]#
          +ltrim(gen)[source]#

          Remove dummy generators from f that are to the left of specified gen in the generators as ordered. When gen is an integer, it refers to the generator located at that @@ -3709,7 +3709,7 @@

          Basic polynomial manipulation functions
          -make_monic_over_integers_by_scaling_roots()[source]#
          +make_monic_over_integers_by_scaling_roots()[source]#

          Turn any univariate polynomial over QQ or ZZ into a monic polynomial over ZZ, by scaling the roots as necessary.

          @@ -3737,13 +3737,13 @@

          Basic polynomial manipulation functions
          -match(*args, **kwargs)[source]#
          +match(*args, **kwargs)[source]#

          Match expression from Poly. See Basic.match()

          -max_norm()[source]#
          +max_norm()[source]#

          Returns maximum norm of f.

          Examples

          >>> from sympy import Poly
          @@ -3758,7 +3758,7 @@ 

          Basic polynomial manipulation functions
          -monic(auto=True)[source]#
          +monic(auto=True)[source]#

          Divides all coefficients by LC(f).

          Examples

          >>> from sympy import Poly, ZZ
          @@ -3777,7 +3777,7 @@ 

          Basic polynomial manipulation functions
          -monoms(order=None)[source]#
          +monoms(order=None)[source]#

          Returns all non-zero monomials from f in lex order.

          Examples

          >>> from sympy import Poly
          @@ -3796,7 +3796,7 @@ 

          Basic polynomial manipulation functions
          -mul(g)[source]#
          +mul(g)[source]#

          Multiply two polynomials f and g.

          Examples

          >>> from sympy import Poly
          @@ -3815,7 +3815,7 @@ 

          Basic polynomial manipulation functions
          -mul_ground(coeff)[source]#
          +mul_ground(coeff)[source]#

          Multiply f by a an element of the ground domain.

          Examples

          >>> from sympy import Poly
          @@ -3830,7 +3830,7 @@ 

          Basic polynomial manipulation functions
          -neg()[source]#
          +neg()[source]#

          Negate all coefficients in f.

          Examples

          >>> from sympy import Poly
          @@ -3849,13 +3849,13 @@ 

          Basic polynomial manipulation functions
          -classmethod new(rep, *gens)[source]#
          +classmethod new(rep, *gens)[source]#

          Construct Poly instance from raw representation.

          -norm()[source]#
          +norm()[source]#

          Computes the product, Norm(f), of the conjugates of a polynomial f defined over a number field K.

          Examples

          @@ -3884,7 +3884,7 @@

          Basic polynomial manipulation functions
          -nroots(n=15, maxsteps=50, cleanup=True)[source]#
          +nroots(n=15, maxsteps=50, cleanup=True)[source]#

          Compute numerical approximations of roots of f.

          Parameters:
          @@ -3909,7 +3909,7 @@

          Basic polynomial manipulation functions
          -nth(*N)[source]#
          +nth(*N)[source]#

          Returns the n-th coefficient of f where N are the exponents of the generators in the term of interest.

          Examples

          @@ -3935,7 +3935,7 @@

          Basic polynomial manipulation functions
          -nth_power_roots_poly(n)[source]#
          +nth_power_roots_poly(n)[source]#

          Construct a polynomial with n-th powers of roots of f.

          Examples

          >>> from sympy import Poly
          @@ -3965,7 +3965,7 @@ 

          Basic polynomial manipulation functions
          -pdiv(g)[source]#
          +pdiv(g)[source]#

          Polynomial pseudo-division of f by g.

          Examples

          >>> from sympy import Poly
          @@ -3980,7 +3980,7 @@ 

          Basic polynomial manipulation functions
          -per(rep, gens=None, remove=None)[source]#
          +per(rep, gens=None, remove=None)[source]#

          Create a Poly out of the given representation.

          Examples

          >>> from sympy import Poly, ZZ
          @@ -4001,7 +4001,7 @@ 

          Basic polynomial manipulation functions
          -pexquo(g)[source]#
          +pexquo(g)[source]#

          Polynomial exact pseudo-quotient of f by g.

          Examples

          >>> from sympy import Poly
          @@ -4022,7 +4022,7 @@ 

          Basic polynomial manipulation functions
          -pow(n)[source]#
          +pow(n)[source]#

          Raise f to a non-negative power n.

          Examples

          >>> from sympy import Poly
          @@ -4041,7 +4041,7 @@ 

          Basic polynomial manipulation functions
          -pquo(g)[source]#
          +pquo(g)[source]#

          Polynomial pseudo-quotient of f by g.

          See the Caveat note in the function prem(f, g).

          Examples

          @@ -4061,7 +4061,7 @@

          Basic polynomial manipulation functions
          -prem(g)[source]#
          +prem(g)[source]#

          Polynomial pseudo-remainder of f by g.

          Caveat: The function prem(f, g, x) can be safely used to compute

          in Z[x] _only_ subresultant polynomial remainder sequences (prs’s).

          @@ -4090,7 +4090,7 @@

          Basic polynomial manipulation functions
          -primitive()[source]#
          +primitive()[source]#

          Returns the content and a primitive form of f.

          Examples

          >>> from sympy import Poly
          @@ -4105,7 +4105,7 @@ 

          Basic polynomial manipulation functions
          -quo(g, auto=True)[source]#
          +quo(g, auto=True)[source]#

          Computes polynomial quotient of f by g.

          Examples

          >>> from sympy import Poly
          @@ -4124,7 +4124,7 @@ 

          Basic polynomial manipulation functions
          -quo_ground(coeff)[source]#
          +quo_ground(coeff)[source]#

          Quotient of f by a an element of the ground domain.

          Examples

          >>> from sympy import Poly
          @@ -4143,7 +4143,7 @@ 

          Basic polynomial manipulation functions
          -rat_clear_denoms(g)[source]#
          +rat_clear_denoms(g)[source]#

          Clear denominators in a rational function f/g.

          Examples

          >>> from sympy import Poly
          @@ -4167,7 +4167,7 @@ 

          Basic polynomial manipulation functions
          -real_roots(multiple=True, radicals=True)[source]#
          +real_roots(multiple=True, radicals=True)[source]#

          Return a list of real roots with multiplicities.

          See real_roots() for more explanation.

          Examples

          @@ -4185,7 +4185,7 @@

          Basic polynomial manipulation functions
          -refine_root(s, t, eps=None, steps=None, fast=False, check_sqf=False)[source]#
          +refine_root(s, t, eps=None, steps=None, fast=False, check_sqf=False)[source]#

          Refine an isolating interval of a root to the given precision.

          Examples

          >>> from sympy import Poly
          @@ -4200,7 +4200,7 @@ 

          Basic polynomial manipulation functions
          -rem(g, auto=True)[source]#
          +rem(g, auto=True)[source]#

          Computes the polynomial remainder of f by g.

          Examples

          >>> from sympy import Poly
          @@ -4219,7 +4219,7 @@ 

          Basic polynomial manipulation functions
          -reorder(*gens, **args)[source]#
          +reorder(*gens, **args)[source]#

          Efficiently apply new order of generators.

          Examples

          >>> from sympy import Poly
          @@ -4234,7 +4234,7 @@ 

          Basic polynomial manipulation functions
          -replace(x, y=None, **_ignore)[source]#
          +replace(x, y=None, **_ignore)[source]#

          Replace x with y in generators list.

          Examples

          >>> from sympy import Poly
          @@ -4249,7 +4249,7 @@ 

          Basic polynomial manipulation functions
          -resultant(g, includePRS=False)[source]#
          +resultant(g, includePRS=False)[source]#

          Computes the resultant of f and g via PRS.

          If includePRS=True, it includes the subresultant PRS in the result. Because the PRS is used to calculate the resultant, this is more @@ -4273,7 +4273,7 @@

          Basic polynomial manipulation functions
          -retract(field=None)[source]#
          +retract(field=None)[source]#

          Recalculate the ground domain of a polynomial.

          Examples

          >>> from sympy import Poly
          @@ -4295,7 +4295,7 @@ 

          Basic polynomial manipulation functions
          -revert(n)[source]#
          +revert(n)[source]#

          Compute f**(-1) mod x**n.

          Examples

          >>> from sympy import Poly
          @@ -4326,7 +4326,7 @@ 

          Basic polynomial manipulation functions
          -root(index, radicals=True)[source]#
          +root(index, radicals=True)[source]#

          Get an indexed root of a polynomial.

          Examples

          >>> from sympy import Poly
          @@ -4356,7 +4356,7 @@ 

          Basic polynomial manipulation functions
          -same_root(a, b)[source]#
          +same_root(a, b)[source]#

          Decide whether two roots of this polynomial are equal.

          Raises:
          @@ -4388,13 +4388,13 @@

          Basic polynomial manipulation functions
          -set_domain(domain)[source]#
          +set_domain(domain)[source]#

          Set the ground domain of f.

          -set_modulus(modulus)[source]#
          +set_modulus(modulus)[source]#

          Set the modulus of f.

          Examples

          >>> from sympy import Poly
          @@ -4409,7 +4409,7 @@ 

          Basic polynomial manipulation functions
          -shift(a)[source]#
          +shift(a)[source]#

          Efficiently compute Taylor shift f(x + a).

          Examples

          >>> from sympy import Poly
          @@ -4424,13 +4424,13 @@ 

          Basic polynomial manipulation functions
          -slice(x, m, n=None)[source]#
          +slice(x, m, n=None)[source]#

          Take a continuous subsequence of terms of f.

          -sqf_list(all=False)[source]#
          +sqf_list(all=False)[source]#

          Returns a list of square-free factors of f.

          Examples

          >>> from sympy import Poly
          @@ -4455,7 +4455,7 @@ 

          Basic polynomial manipulation functions
          -sqf_list_include(all=False)[source]#
          +sqf_list_include(all=False)[source]#

          Returns a list of square-free factors of f.

          Examples

          >>> from sympy import Poly, expand
          @@ -4484,7 +4484,7 @@ 

          Basic polynomial manipulation functions
          -sqf_norm()[source]#
          +sqf_norm()[source]#

          Computes square-free norm of f.

          Returns s, f, r, such that g(x) = f(x-sa) and r(x) = Norm(g(x)) is a square-free polynomial over K, @@ -4509,7 +4509,7 @@

          Basic polynomial manipulation functions
          -sqf_part()[source]#
          +sqf_part()[source]#

          Computes square-free part of f.

          Examples

          >>> from sympy import Poly
          @@ -4524,7 +4524,7 @@ 

          Basic polynomial manipulation functions
          -sqr()[source]#
          +sqr()[source]#

          Square a polynomial f.

          Examples

          >>> from sympy import Poly
          @@ -4543,7 +4543,7 @@ 

          Basic polynomial manipulation functions
          -sturm(auto=True)[source]#
          +sturm(auto=True)[source]#

          Computes the Sturm sequence of f.

          Examples

          >>> from sympy import Poly
          @@ -4561,7 +4561,7 @@ 

          Basic polynomial manipulation functions
          -sub(g)[source]#
          +sub(g)[source]#

          Subtract two polynomials f and g.

          Examples

          >>> from sympy import Poly
          @@ -4580,7 +4580,7 @@ 

          Basic polynomial manipulation functions
          -sub_ground(coeff)[source]#
          +sub_ground(coeff)[source]#

          Subtract an element of the ground domain from f.

          Examples

          >>> from sympy import Poly
          @@ -4595,7 +4595,7 @@ 

          Basic polynomial manipulation functions
          -subresultants(g)[source]#
          +subresultants(g)[source]#

          Computes the subresultant PRS of f and g.

          Examples

          >>> from sympy import Poly
          @@ -4612,7 +4612,7 @@ 

          Basic polynomial manipulation functions
          -terms(order=None)[source]#
          +terms(order=None)[source]#

          Returns all non-zero terms from f in lex order.

          Examples

          >>> from sympy import Poly
          @@ -4631,7 +4631,7 @@ 

          Basic polynomial manipulation functions
          -terms_gcd()[source]#
          +terms_gcd()[source]#

          Remove GCD of terms from the polynomial f.

          Examples

          >>> from sympy import Poly
          @@ -4646,7 +4646,7 @@ 

          Basic polynomial manipulation functions
          -termwise(func, *gens, **args)[source]#
          +termwise(func, *gens, **args)[source]#

          Apply a function to all terms of f.

          Examples

          >>> from sympy import Poly
          @@ -4666,7 +4666,7 @@ 

          Basic polynomial manipulation functions
          -to_exact()[source]#
          +to_exact()[source]#

          Make the ground domain exact.

          Examples

          >>> from sympy import Poly, RR
          @@ -4681,7 +4681,7 @@ 

          Basic polynomial manipulation functions
          -to_field()[source]#
          +to_field()[source]#

          Make the ground domain a field.

          Examples

          >>> from sympy import Poly, ZZ
          @@ -4696,7 +4696,7 @@ 

          Basic polynomial manipulation functions
          -to_ring()[source]#
          +to_ring()[source]#

          Make the ground domain a ring.

          Examples

          >>> from sympy import Poly, QQ
          @@ -4711,7 +4711,7 @@ 

          Basic polynomial manipulation functions
          -total_degree()[source]#
          +total_degree()[source]#

          Returns the total degree of f.

          Examples

          >>> from sympy import Poly
          @@ -4728,7 +4728,7 @@ 

          Basic polynomial manipulation functions
          -transform(p, q)[source]#
          +transform(p, q)[source]#

          Efficiently evaluate the functional transformation q**n * f(p/q).

          Examples

          >>> from sympy import Poly
          @@ -4743,7 +4743,7 @@ 

          Basic polynomial manipulation functions
          -trunc(p)[source]#
          +trunc(p)[source]#

          Reduce f modulo a constant p.

          Examples

          >>> from sympy import Poly
          @@ -4758,7 +4758,7 @@ 

          Basic polynomial manipulation functions
          -unify(g)[source]#
          +unify(g)[source]#

          Make f and g belong to the same domain.

          Examples

          >>> from sympy import Poly
          @@ -4801,7 +4801,7 @@ 

          Basic polynomial manipulation functions
          -class sympy.polys.polytools.PurePoly(rep, *gens, **args)[source]#
          +class sympy.polys.polytools.PurePoly(rep, *gens, **args)[source]#

          Class for representing pure polynomials.

          @@ -4826,11 +4826,11 @@

          Basic polynomial manipulation functions
          -class sympy.polys.polytools.GroebnerBasis(F, *gens, **args)[source]#
          +class sympy.polys.polytools.GroebnerBasis(F, *gens, **args)[source]#

          Represents a reduced Groebner basis.

          -contains(poly)[source]#
          +contains(poly)[source]#

          Check if poly belongs the ideal generated by self.

          Examples

          >>> from sympy import groebner
          @@ -4851,7 +4851,7 @@ 

          Basic polynomial manipulation functions
          -fglm(order)[source]#
          +fglm(order)[source]#

          Convert a Groebner basis from one ordering to another.

          The FGLM algorithm converts reduced Groebner bases of zero-dimensional ideals from one ordering to another. This method is often used when it @@ -4896,7 +4896,7 @@

          Basic polynomial manipulation functions
          -reduce(expr, auto=True)[source]#
          +reduce(expr, auto=True)[source]#

          Reduces a polynomial modulo a Groebner basis.

          Given a polynomial f and a set of polynomials G = (g_1, ..., g_n), computes a set of quotients q = (q_1, ..., q_n) and the remainder r @@ -4931,7 +4931,7 @@

          Basic polynomial manipulation functions#

          -sympy.polys.polyfuncs.symmetrize(F, *gens, **args)[source]#
          +sympy.polys.polyfuncs.symmetrize(F, *gens, **args)[source]#

          Rewrite a polynomial in terms of elementary symmetric polynomials.

          A symmetric polynomial is a multivariate polynomial that remains invariant under any variable permutation, i.e., if \(f = f(x_1, x_2, \dots, x_n)\), @@ -4965,7 +4965,7 @@

          Extra polynomial manipulation functions
          -sympy.polys.polyfuncs.horner(f, *gens, **args)[source]#
          +sympy.polys.polyfuncs.horner(f, *gens, **args)[source]#

          Rewrite a polynomial in Horner form.

          Among other applications, evaluation of a polynomial at a point is optimal when it is applied using the Horner scheme ([1]).

          @@ -4999,7 +4999,7 @@

          Extra polynomial manipulation functions
          -sympy.polys.polyfuncs.interpolate(data, x)[source]#
          +sympy.polys.polyfuncs.interpolate(data, x)[source]#

          Construct an interpolating polynomial for the data points evaluated at point x (which can be symbolic or numeric).

          Examples

          @@ -5041,7 +5041,7 @@

          Extra polynomial manipulation functions
          -sympy.polys.polyfuncs.viete(f, roots=None, *gens, **args)[source]#
          +sympy.polys.polyfuncs.viete(f, roots=None, *gens, **args)[source]#

          Generate Viete’s formulas for f.

          Examples

          >>> from sympy.polys.polyfuncs import viete
          @@ -5062,7 +5062,7 @@ 

          Extra polynomial manipulation functions#

          -sympy.polys.constructor.construct_domain(obj, **args)[source]#
          +sympy.polys.constructor.construct_domain(obj, **args)[source]#

          Construct a minimal domain for a list of expressions.

          Parameters:
          @@ -5146,23 +5146,23 @@

          Domain constructors#

          -class sympy.polys.monomials.Monomial(monom, gens=None)[source]#
          +class sympy.polys.monomials.Monomial(monom, gens=None)[source]#

          Class representing a monomial, i.e. a product of powers.

          -as_expr(*gens)[source]#
          +as_expr(*gens)[source]#

          Convert a monomial instance to a SymPy expression.

          -gcd(other)[source]#
          +gcd(other)[source]#

          Greatest common divisor of monomials.

          -lcm(other)[source]#
          +lcm(other)[source]#

          Least common multiple of monomials.

          @@ -5170,7 +5170,7 @@

          Monomials encoded as tuples
          -sympy.polys.monomials.itermonomials(variables, max_degrees, min_degrees=None)[source]#
          +sympy.polys.monomials.itermonomials(variables, max_degrees, min_degrees=None)[source]#

          max_degrees and min_degrees are either both integers or both lists. Unless otherwise specified, min_degrees is either 0 or [0, ..., 0].

          @@ -5241,7 +5241,7 @@

          Monomials encoded as tuples
          -sympy.polys.monomials.monomial_count(V, N)[source]#
          +sympy.polys.monomials.monomial_count(V, N)[source]#

          Computes the number of monomials.

          The number of monomials is given by the following formula:

          @@ -5275,25 +5275,25 @@

          Monomials encoded as tuples#

          -class sympy.polys.orderings.MonomialOrder[source]#
          +class sympy.polys.orderings.MonomialOrder[source]#

          Base class for monomial orderings.

          -class sympy.polys.orderings.LexOrder[source]#
          +class sympy.polys.orderings.LexOrder[source]#

          Lexicographic order of monomials.

          -class sympy.polys.orderings.GradedLexOrder[source]#
          +class sympy.polys.orderings.GradedLexOrder[source]#

          Graded lexicographic order of monomials.

          -class sympy.polys.orderings.ReversedGradedLexOrder[source]#
          +class sympy.polys.orderings.ReversedGradedLexOrder[source]#

          Reversed graded lexicographic order of monomials.

          @@ -5302,7 +5302,7 @@

          Orderings of monomialsFormal manipulation of roots of polynomials#

          -sympy.polys.rootoftools.rootof(f, x, index=None, radicals=True, expand=True)[source]#
          +sympy.polys.rootoftools.rootof(f, x, index=None, radicals=True, expand=True)[source]#

          An indexed root of a univariate polynomial.

          Returns either a ComplexRootOf object or an explicit expression involving radicals.

          @@ -5331,7 +5331,7 @@

          Formal manipulation of roots of polynomials
          -class sympy.polys.rootoftools.RootOf(f, x, index=None, radicals=True, expand=True)[source]#
          +class sympy.polys.rootoftools.RootOf(f, x, index=None, radicals=True, expand=True)[source]#

          Represents a root of a univariate polynomial.

          Base class for roots of different kinds of polynomials. Only complex roots are currently supported.

          @@ -5339,7 +5339,7 @@

          Formal manipulation of roots of polynomials
          -class sympy.polys.rootoftools.ComplexRootOf(f, x, index=None, radicals=False, expand=True)[source]#
          +class sympy.polys.rootoftools.ComplexRootOf(f, x, index=None, radicals=False, expand=True)[source]#

          Represents an indexed complex root of a polynomial.

          Roots of a univariate polynomial separated into disjoint real or complex intervals and indexed in a fixed order:

          @@ -5462,141 +5462,141 @@

          Formal manipulation of roots of polynomials
          -classmethod _all_roots(poly, use_cache=True)[source]#
          +classmethod _all_roots(poly, use_cache=True)[source]#

          Get real and complex roots of a composite polynomial.

          -classmethod _complexes_index(complexes, index)[source]#
          +classmethod _complexes_index(complexes, index)[source]#

          Map initial complex root index to an index in a factor where the root belongs.

          -classmethod _complexes_sorted(complexes)[source]#
          +classmethod _complexes_sorted(complexes)[source]#

          Make complex isolating intervals disjoint and sort roots.

          -classmethod _count_roots(roots)[source]#
          +classmethod _count_roots(roots)[source]#

          Count the number of real or complex roots with multiplicities.

          -_ensure_complexes_init()[source]#
          +_ensure_complexes_init()[source]#

          Ensure that our poly has entries in the complexes cache.

          -_ensure_reals_init()[source]#
          +_ensure_reals_init()[source]#

          Ensure that our poly has entries in the reals cache.

          -_eval_evalf(prec, **kwargs)[source]#
          +_eval_evalf(prec, **kwargs)[source]#

          Evaluate this complex root to the given precision.

          -_eval_is_imaginary()[source]#
          +_eval_is_imaginary()[source]#

          Return True if the root is imaginary.

          -_eval_is_real()[source]#
          +_eval_is_real()[source]#

          Return True if the root is real.

          -classmethod _get_complexes(factors, use_cache=True)[source]#
          +classmethod _get_complexes(factors, use_cache=True)[source]#

          Compute complex root isolating intervals for a list of factors.

          -classmethod _get_complexes_sqf(currentfactor, use_cache=True)[source]#
          +classmethod _get_complexes_sqf(currentfactor, use_cache=True)[source]#

          Get complex root isolating intervals for a square-free factor.

          -_get_interval()[source]#
          +_get_interval()[source]#

          Internal function for retrieving isolation interval from cache.

          -classmethod _get_reals(factors, use_cache=True)[source]#
          +classmethod _get_reals(factors, use_cache=True)[source]#

          Compute real root isolating intervals for a list of factors.

          -classmethod _get_reals_sqf(currentfactor, use_cache=True)[source]#
          +classmethod _get_reals_sqf(currentfactor, use_cache=True)[source]#

          Get real root isolating intervals for a square-free factor.

          -classmethod _get_roots(method, poly, radicals)[source]#
          +classmethod _get_roots(method, poly, radicals)[source]#

          Return postprocessed roots of specified kind.

          -classmethod _indexed_root(poly, index, lazy=False)[source]#
          +classmethod _indexed_root(poly, index, lazy=False)[source]#

          Get a root of a composite polynomial by index.

          -classmethod _new(poly, index)[source]#
          +classmethod _new(poly, index)[source]#

          Construct new CRootOf object from raw data.

          -classmethod _postprocess_root(root, radicals)[source]#
          +classmethod _postprocess_root(root, radicals)[source]#

          Return the root if it is trivial or a CRootOf object.

          -classmethod _preprocess_roots(poly)[source]#
          +classmethod _preprocess_roots(poly)[source]#

          Take heroic measures to make poly compatible with CRootOf.

          -classmethod _real_roots(poly)[source]#
          +classmethod _real_roots(poly)[source]#

          Get real roots of a composite polynomial.

          -classmethod _reals_index(reals, index)[source]#
          +classmethod _reals_index(reals, index)[source]#

          Map initial real root index to an index in a factor where the root belongs.

          -classmethod _reals_sorted(reals)[source]#
          +classmethod _reals_sorted(reals)[source]#

          Make real isolating intervals disjoint and sort roots.

          -classmethod _refine_complexes(complexes)[source]#
          +classmethod _refine_complexes(complexes)[source]#

          return complexes such that no bounding rectangles of non-conjugate roots would intersect. In addition, assure that neither ay nor by is 0 to guarantee that non-real roots are distinct from real roots in @@ -5605,31 +5605,31 @@

          Formal manipulation of roots of polynomials
          -_reset()[source]#
          +_reset()[source]#

          Reset all intervals

          -classmethod _roots_trivial(poly, radicals)[source]#
          +classmethod _roots_trivial(poly, radicals)[source]#

          Compute roots in linear, quadratic and binomial cases.

          -_set_interval(interval)[source]#
          +_set_interval(interval)[source]#

          Internal function for updating isolation interval in cache.

          -classmethod all_roots(poly, radicals=True)[source]#
          +classmethod all_roots(poly, radicals=True)[source]#

          Get real and complex roots of a polynomial.

          -classmethod clear_cache()[source]#
          +classmethod clear_cache()[source]#

          Reset cache for reals and complexes.

          The intervals used to approximate a root instance are updated as needed. When a request is made to see the intervals, the @@ -5643,7 +5643,7 @@

          Formal manipulation of roots of polynomials
          -eval_approx(n, return_mpmath=False)[source]#
          +eval_approx(n, return_mpmath=False)[source]#

          Evaluate this complex root to the given precision.

          This uses secant method and root bounds are used to both generate an initial guess and to check that the root @@ -5653,7 +5653,7 @@

          Formal manipulation of roots of polynomials
          -eval_rational(dx=None, dy=None, n=15)[source]#
          +eval_rational(dx=None, dy=None, n=15)[source]#

          Return a Rational approximation of self that has real and imaginary component approximations that are within dx and dy of the true values, respectively. Alternatively, @@ -5686,7 +5686,7 @@

          Formal manipulation of roots of polynomials
          -classmethod real_roots(poly, radicals=True)[source]#
          +classmethod real_roots(poly, radicals=True)[source]#

          Get real roots of a polynomial.

          @@ -5694,11 +5694,11 @@

          Formal manipulation of roots of polynomials
          -class sympy.polys.rootoftools.RootSum(expr, func=None, x=None, auto=True, quadratic=False)[source]#
          +class sympy.polys.rootoftools.RootSum(expr, func=None, x=None, auto=True, quadratic=False)[source]#

          Represents a sum of all roots of a univariate polynomial.

          -classmethod new(poly, func, auto=True)[source]#
          +classmethod new(poly, func, auto=True)[source]#

          Construct new RootSum instance.

          @@ -5709,7 +5709,7 @@

          Formal manipulation of roots of polynomials#

          -sympy.polys.polyroots.roots(f, *gens, auto=True, cubics=True, trig=False, quartics=True, quintics=False, multiple=False, filter=None, predicate=None, strict=False, **flags)[source]#
          +sympy.polys.polyroots.roots(f, *gens, auto=True, cubics=True, trig=False, quartics=True, quintics=False, multiple=False, filter=None, predicate=None, strict=False, **flags)[source]#

          Computes symbolic roots of a univariate polynomial.

          Given a univariate polynomial f with symbolic coefficients (or a list of the polynomial’s coefficients), returns a dictionary @@ -5811,7 +5811,7 @@

          Symbolic root-finding algorithms#

          -sympy.polys.specialpolys.swinnerton_dyer_poly(n, x=None, polys=False)[source]#
          +sympy.polys.specialpolys.swinnerton_dyer_poly(n, x=None, polys=False)[source]#

          Generates n-th Swinnerton-Dyer polynomial in \(x\).

          Parameters:
          @@ -5831,7 +5831,7 @@

          Special polynomials
          -sympy.polys.specialpolys.interpolating_poly(n, x, X='x', Y='y')[source]#
          +sympy.polys.specialpolys.interpolating_poly(n, x, X='x', Y='y')[source]#

          Construct Lagrange interpolating polynomial for n data points. If a sequence of values are given for X and Y then the first n values will be used.

          @@ -5839,7 +5839,7 @@

          Special polynomials
          -sympy.polys.specialpolys.cyclotomic_poly(n, x=None, polys=False)[source]#
          +sympy.polys.specialpolys.cyclotomic_poly(n, x=None, polys=False)[source]#

          Generates cyclotomic polynomial of order \(n\) in \(x\).

          Parameters:
          @@ -5859,7 +5859,7 @@

          Special polynomials
          -sympy.polys.specialpolys.symmetric_poly(n, *gens, polys=False)[source]#
          +sympy.polys.specialpolys.symmetric_poly(n, *gens, polys=False)[source]#

          Generates symmetric polynomial of order \(n\).

          Parameters:
          @@ -5874,7 +5874,7 @@

          Special polynomials
          -sympy.polys.specialpolys.random_poly(x, n, inf, sup, domain=ZZ, polys=False)[source]#
          +sympy.polys.specialpolys.random_poly(x, n, inf, sup, domain=ZZ, polys=False)[source]#

          Generates a polynomial of degree n with coefficients in [inf, sup].

          @@ -5914,7 +5914,7 @@

          Special polynomials#

          -sympy.polys.orthopolys.chebyshevt_poly(n, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.chebyshevt_poly(n, x=None, polys=False)[source]#

          Generates the Chebyshev polynomial of the first kind \(T_n(x)\).

          Parameters:
          @@ -5933,7 +5933,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.chebyshevu_poly(n, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.chebyshevu_poly(n, x=None, polys=False)[source]#

          Generates the Chebyshev polynomial of the second kind \(U_n(x)\).

          Parameters:
          @@ -5952,7 +5952,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.gegenbauer_poly(n, a, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.gegenbauer_poly(n, a, x=None, polys=False)[source]#

          Generates the Gegenbauer polynomial \(C_n^{(a)}(x)\).

          Parameters:
          @@ -5975,7 +5975,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.hermite_poly(n, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.hermite_poly(n, x=None, polys=False)[source]#

          Generates the Hermite polynomial \(H_n(x)\).

          Parameters:
          @@ -5994,7 +5994,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.hermite_prob_poly(n, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.hermite_prob_poly(n, x=None, polys=False)[source]#

          Generates the probabilist’s Hermite polynomial \(He_n(x)\).

          Parameters:
          @@ -6013,7 +6013,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.jacobi_poly(n, a, b, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.jacobi_poly(n, a, b, x=None, polys=False)[source]#

          Generates the Jacobi polynomial \(P_n^{(a,b)}(x)\).

          Parameters:
          @@ -6040,7 +6040,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.legendre_poly(n, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.legendre_poly(n, x=None, polys=False)[source]#

          Generates the Legendre polynomial \(P_n(x)\).

          Parameters:
          @@ -6059,7 +6059,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.laguerre_poly(n, x=None, alpha=0, polys=False)[source]#
          +sympy.polys.orthopolys.laguerre_poly(n, x=None, alpha=0, polys=False)[source]#

          Generates the Laguerre polynomial \(L_n^{(\alpha)}(x)\).

          Parameters:
          @@ -6082,7 +6082,7 @@

          Orthogonal polynomials
          -sympy.polys.orthopolys.spherical_bessel_fn(n, x=None, polys=False)[source]#
          +sympy.polys.orthopolys.spherical_bessel_fn(n, x=None, polys=False)[source]#

          Coefficients for the spherical Bessel functions.

          These are only needed in the jn() function.

          The coefficients are calculated from:

          @@ -6123,7 +6123,7 @@

          Orthogonal polynomialsAppell sequences#

          -sympy.polys.appellseqs.bernoulli_poly(n, x=None, polys=False)[source]#
          +sympy.polys.appellseqs.bernoulli_poly(n, x=None, polys=False)[source]#

          Generates the Bernoulli polynomial \(\operatorname{B}_n(x)\).

          \(\operatorname{B}_n(x)\) is the unique polynomial satisfying

          @@ -6191,7 +6191,7 @@

          Appell sequences
          -sympy.polys.appellseqs.bernoulli_c_poly(n, x=None, polys=False)[source]#
          +sympy.polys.appellseqs.bernoulli_c_poly(n, x=None, polys=False)[source]#

          Generates the central Bernoulli polynomial \(\operatorname{B}_n^c(x)\).

          These are scaled and shifted versions of the plain Bernoulli polynomials, done in such a way that \(\operatorname{B}_n^c(x)\) is an even or odd function @@ -6218,7 +6218,7 @@

          Appell sequences
          -sympy.polys.appellseqs.genocchi_poly(n, x=None, polys=False)[source]#
          +sympy.polys.appellseqs.genocchi_poly(n, x=None, polys=False)[source]#

          Generates the Genocchi polynomial \(\operatorname{G}_n(x)\).

          \(\operatorname{G}_n(x)\) is twice the difference between the plain and central Bernoulli polynomials, so has degree \(n-1\):

          @@ -6250,7 +6250,7 @@

          Appell sequences
          -sympy.polys.appellseqs.euler_poly(n, x=None, polys=False)[source]#
          +sympy.polys.appellseqs.euler_poly(n, x=None, polys=False)[source]#

          Generates the Euler polynomial \(\operatorname{E}_n(x)\).

          These are scaled and reindexed versions of the Genocchi polynomials:

          @@ -6278,7 +6278,7 @@

          Appell sequences
          -sympy.polys.appellseqs.andre_poly(n, x=None, polys=False)[source]#
          +sympy.polys.appellseqs.andre_poly(n, x=None, polys=False)[source]#

          Generates the Andre polynomial \(\mathcal{A}_n(x)\).

          This is the Appell sequence where the constant coefficients form the sequence of Euler numbers euler(n). As such they have integer coefficients @@ -6346,7 +6346,7 @@

          Appell sequences#

          -sympy.polys.rationaltools.together(expr, deep=False, fraction=True)[source]#
          +sympy.polys.rationaltools.together(expr, deep=False, fraction=True)[source]#

          Denest and combine rational expressions using symbolic methods.

          This function takes an expression or a container of expressions and puts it (them) together by denesting and combining rational @@ -6404,7 +6404,7 @@

          Manipulation of rational functions#

          -sympy.polys.partfrac.apart(f, x=None, full=False, **options)[source]#
          +sympy.polys.partfrac.apart(f, x=None, full=False, **options)[source]#

          Compute partial fraction decomposition of a rational function.

          Given a rational function f, computes the partial fraction decomposition of f. Two algorithms are available: One is based on the @@ -6454,7 +6454,7 @@

          Partial fraction decomposition
          -sympy.polys.partfrac.apart_list(f, x=None, dummies=None, **options)[source]#
          +sympy.polys.partfrac.apart_list(f, x=None, dummies=None, **options)[source]#

          Compute partial fraction decomposition of a rational function and return the result in structured form.

          Given a rational function f compute the partial fraction decomposition @@ -6559,7 +6559,7 @@

          Partial fraction decomposition
          -sympy.polys.partfrac.assemble_partfrac_list(partial_list)[source]#
          +sympy.polys.partfrac.assemble_partfrac_list(partial_list)[source]#

          Reassemble a full partial fraction decomposition from a structured result obtained by the function apart_list.

          Examples

          @@ -6622,7 +6622,7 @@

          Partial fraction decomposition#

          -sympy.polys.dispersion.dispersionset(p, q=None, *gens, **args)[source]#
          +sympy.polys.dispersion.dispersionset(p, q=None, *gens, **args)[source]#

          Compute the dispersion set of two polynomials.

          For two polynomials \(f(x)\) and \(g(x)\) with \(\deg f > 0\) and \(\deg g > 0\) the dispersion set \(\operatorname{J}(f, g)\) is defined as:

          @@ -6705,7 +6705,7 @@

          Dispersion of Polynomials
          -sympy.polys.dispersion.dispersion(p, q=None, *gens, **args)[source]#
          +sympy.polys.dispersion.dispersion(p, q=None, *gens, **args)[source]#

          Compute the dispersion of polynomials.

          For two polynomials \(f(x)\) and \(g(x)\) with \(\deg f > 0\) and \(\deg g > 0\) the dispersion \(\operatorname{dis}(f, g)\) is defined as:

          diff --git a/dev/modules/polys/ringseries.html b/dev/modules/polys/ringseries.html index 2e72f34eb09..94ea8849890 100644 --- a/dev/modules/polys/ringseries.html +++ b/dev/modules/polys/ringseries.html @@ -902,7 +902,7 @@

          Reference
          -sympy.polys.ring_series.rs_log(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_log(p, x, prec)[source]#

          The Logarithm of p modulo O(x**prec).

          Notes

          Truncation of integral dx p**-1*d p/dx is used.

          @@ -921,7 +921,7 @@

          Reference
          -sympy.polys.ring_series.rs_LambertW(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_LambertW(p, x, prec)[source]#

          Calculate the series expansion of the principal branch of the Lambert W function.

          Examples

          @@ -941,7 +941,7 @@

          Reference
          -sympy.polys.ring_series.rs_exp(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_exp(p, x, prec)[source]#

          Exponentiation of a series modulo O(x**prec)

          Examples

          >>> from sympy.polys.domains import QQ
          @@ -956,7 +956,7 @@ 

          Reference
          -sympy.polys.ring_series.rs_atan(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_atan(p, x, prec)[source]#

          The arctangent of a series

          Return the series expansion of the atan of p, about 0.

          Examples

          @@ -976,7 +976,7 @@

          Reference
          -sympy.polys.ring_series.rs_asin(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_asin(p, x, prec)[source]#

          Arcsine of a series

          Return the series expansion of the asin of p, about 0.

          Examples

          @@ -996,7 +996,7 @@

          Reference
          -sympy.polys.ring_series.rs_tan(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_tan(p, x, prec)[source]#

          Tangent of a series.

          Return the series expansion of the tan of p, about 0.

          @@ -1018,7 +1018,7 @@

          Reference
          -sympy.polys.ring_series._tan1(p, x, prec)[source]#
          +sympy.polys.ring_series._tan1(p, x, prec)[source]#

          Helper function of rs_tan().

          Return the series expansion of tan of a univariate series using Newton’s method. It takes advantage of the fact that series expansion of atan is @@ -1031,7 +1031,7 @@

          Reference
          -sympy.polys.ring_series.rs_cot(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_cot(p, x, prec)[source]#

          Cotangent of a series

          Return the series expansion of the cot of p, about 0.

          Examples

          @@ -1051,7 +1051,7 @@

          Reference
          -sympy.polys.ring_series.rs_sin(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_sin(p, x, prec)[source]#

          Sine of a series

          Return the series expansion of the sin of p, about 0.

          Examples

          @@ -1073,7 +1073,7 @@

          Reference
          -sympy.polys.ring_series.rs_cos(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_cos(p, x, prec)[source]#

          Cosine of a series

          Return the series expansion of the cos of p, about 0.

          Examples

          @@ -1095,14 +1095,14 @@

          Reference
          -sympy.polys.ring_series.rs_cos_sin(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_cos_sin(p, x, prec)[source]#

          Return the tuple (rs_cos(p, x, prec)`, `rs_sin(p, x, prec)).

          Is faster than calling rs_cos and rs_sin separately

          -sympy.polys.ring_series.rs_atanh(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_atanh(p, x, prec)[source]#

          Hyperbolic arctangent of a series

          Return the series expansion of the atanh of p, about 0.

          Examples

          @@ -1122,7 +1122,7 @@

          Reference
          -sympy.polys.ring_series.rs_sinh(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_sinh(p, x, prec)[source]#

          Hyperbolic sine of a series

          Return the series expansion of the sinh of p, about 0.

          Examples

          @@ -1142,7 +1142,7 @@

          Reference
          -sympy.polys.ring_series.rs_cosh(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_cosh(p, x, prec)[source]#

          Hyperbolic cosine of a series

          Return the series expansion of the cosh of p, about 0.

          Examples

          @@ -1162,7 +1162,7 @@

          Reference
          -sympy.polys.ring_series.rs_tanh(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_tanh(p, x, prec)[source]#

          Hyperbolic tangent of a series

          Return the series expansion of the tanh of p, about 0.

          Examples

          @@ -1182,7 +1182,7 @@

          Reference
          -sympy.polys.ring_series.rs_hadamard_exp(p1, inverse=False)[source]#
          +sympy.polys.ring_series.rs_hadamard_exp(p1, inverse=False)[source]#

          Return sum f_i/i!*x**i from sum f_i*x**i, where x is the first variable.

          If invers=True return sum f_i*i!*x**i

          @@ -1201,7 +1201,7 @@

          Reference
          -sympy.polys.ring_series.rs_mul(p1, p2, x, prec)[source]#
          +sympy.polys.ring_series.rs_mul(p1, p2, x, prec)[source]#

          Return the product of the given two series, modulo O(x**prec).

          x is the series variable or its position in the generators.

          Examples

          @@ -1219,7 +1219,7 @@

          Reference
          -sympy.polys.ring_series.rs_square(p1, x, prec)[source]#
          +sympy.polys.ring_series.rs_square(p1, x, prec)[source]#

          Square the series modulo O(x**prec)

          Examples

          >>> from sympy.polys.domains import QQ
          @@ -1235,7 +1235,7 @@ 

          Reference
          -sympy.polys.ring_series.rs_pow(p1, n, x, prec)[source]#
          +sympy.polys.ring_series.rs_pow(p1, n, x, prec)[source]#

          Return p1**n modulo O(x**prec)

          Examples

          >>> from sympy.polys.domains import QQ
          @@ -1251,7 +1251,7 @@ 

          Reference
          -sympy.polys.ring_series.rs_series_inversion(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_series_inversion(p, x, prec)[source]#

          Multivariate series inversion 1/p modulo O(x**prec).

          Examples

          >>> from sympy.polys.domains import QQ
          @@ -1270,7 +1270,7 @@ 

          Reference
          -sympy.polys.ring_series.rs_series_reversion(p, x, n, y)[source]#
          +sympy.polys.ring_series.rs_series_reversion(p, x, n, y)[source]#

          Reversion of a series.

          p is a series with O(x**n) of the form \(p = ax + f(x)\) where \(a\) is a number different from 0.

          @@ -1315,7 +1315,7 @@

          Reference
          -sympy.polys.ring_series.rs_nth_root(p, n, x, prec)[source]#
          +sympy.polys.ring_series.rs_nth_root(p, n, x, prec)[source]#

          Multivariate series expansion of the nth root of p.

          Parameters:
          @@ -1355,7 +1355,7 @@

          Reference
          -sympy.polys.ring_series.rs_trunc(p1, x, prec)[source]#
          +sympy.polys.ring_series.rs_trunc(p1, x, prec)[source]#

          Truncate the series in the x variable with precision prec, that is, modulo O(x**prec)

          Examples

          @@ -1374,7 +1374,7 @@

          Reference
          -sympy.polys.ring_series.rs_subs(p, rules, x, prec)[source]#
          +sympy.polys.ring_series.rs_subs(p, rules, x, prec)[source]#

          Substitution with truncation according to the mapping in rules.

          Return a series with precision prec in the generator x

          Note that substitutions are not done one after the other

          @@ -1415,7 +1415,7 @@

          Reference
          -sympy.polys.ring_series.rs_diff(p, x)[source]#
          +sympy.polys.ring_series.rs_diff(p, x)[source]#

          Return partial derivative of p with respect to x.

          Parameters:
          @@ -1436,7 +1436,7 @@

          Reference
          -sympy.polys.ring_series.rs_integrate(p, x)[source]#
          +sympy.polys.ring_series.rs_integrate(p, x)[source]#

          Integrate p with respect to x.

          Parameters:
          @@ -1457,7 +1457,7 @@

          Reference
          -sympy.polys.ring_series.rs_newton(p, x, prec)[source]#
          +sympy.polys.ring_series.rs_newton(p, x, prec)[source]#

          Compute the truncated Newton sum of the polynomial p

          Examples

          >>> from sympy.polys.domains import QQ
          @@ -1473,7 +1473,7 @@ 

          Reference
          -sympy.polys.ring_series.rs_compose_add(p1, p2)[source]#
          +sympy.polys.ring_series.rs_compose_add(p1, p2)[source]#

          compute the composed sum prod(p2(x - beta) for beta root of p1)

          Examples

          >>> from sympy.polys.domains import QQ
          @@ -1501,7 +1501,7 @@ 

          Reference
          -sympy.polys.ring_series.rs_is_puiseux(p, x)[source]#
          +sympy.polys.ring_series.rs_is_puiseux(p, x)[source]#

          Test if p is Puiseux series in x.

          Raise an exception if it has a negative power in x.

          Examples

          @@ -1518,7 +1518,7 @@

          Reference
          -sympy.polys.ring_series.rs_puiseux(f, p, x, prec)[source]#
          +sympy.polys.ring_series.rs_puiseux(f, p, x, prec)[source]#

          Return the puiseux series for \(f(p, x, prec)\).

          To be used when function f is implemented only for regular series.

          Examples

          @@ -1535,14 +1535,14 @@

          Reference
          -sympy.polys.ring_series.rs_puiseux2(f, p, q, x, prec)[source]#
          +sympy.polys.ring_series.rs_puiseux2(f, p, q, x, prec)[source]#

          Return the puiseux series for \(f(p, q, x, prec)\).

          To be used when function f is implemented only for regular series.

          -sympy.polys.ring_series.rs_series_from_list(p, c, x, prec, concur=1)[source]#
          +sympy.polys.ring_series.rs_series_from_list(p, c, x, prec, concur=1)[source]#

          Return a series \(sum c[n]*p**n\) modulo \(O(x**prec)\).

          It reduces the number of multiplications by summing concurrently.

          \(ax = [1, p, p**2, .., p**(J - 1)]\) @@ -1568,7 +1568,7 @@

          Reference
          -sympy.polys.ring_series.rs_fun(p, f, *args)[source]#
          +sympy.polys.ring_series.rs_fun(p, f, *args)[source]#

          Function of a multivariate series computed by substitution.

          The case with f method name is used to compute \(rs\_tan\) and \(rs\_nth\_root\) of a multivariate series:

          @@ -1600,14 +1600,14 @@

          Reference
          -sympy.polys.ring_series.mul_xin(p, i, n)[source]#
          +sympy.polys.ring_series.mul_xin(p, i, n)[source]#

          Return \(p*x_i**n\).

          \(x\_i\) is the ith variable in p.

          -sympy.polys.ring_series.pow_xin(p, i, n)[source]#
          +sympy.polys.ring_series.pow_xin(p, i, n)[source]#
          >>> from sympy.polys.domains import QQ
           >>> from sympy.polys.rings import ring
           >>> from sympy.polys.ring_series import pow_xin
          diff --git a/dev/modules/polys/solvers.html b/dev/modules/polys/solvers.html
          index fb87a9dbe86..9fef15a22f5 100644
          --- a/dev/modules/polys/solvers.html
          +++ b/dev/modules/polys/solvers.html
          @@ -744,7 +744,7 @@ 
          Documentation Version

          Low-level linear systems solver.

          -sympy.polys.solvers.solve_lin_sys(eqs, ring, _raw=True)[source]#
          +sympy.polys.solvers.solve_lin_sys(eqs, ring, _raw=True)[source]#

          Solve a system of linear equations from a PolynomialRing

          Parameters:
          @@ -813,7 +813,7 @@
          Documentation Version
          -sympy.polys.solvers.eqs_to_matrix(eqs_coeffs, eqs_rhs, gens, domain)[source]#
          +sympy.polys.solvers.eqs_to_matrix(eqs_coeffs, eqs_rhs, gens, domain)[source]#

          Get matrix from linear equations in dict format.

          Parameters:
          @@ -866,7 +866,7 @@
          Documentation Version
          -sympy.polys.solvers.sympy_eqs_to_ring(eqs, symbols)[source]#
          +sympy.polys.solvers.sympy_eqs_to_ring(eqs, symbols)[source]#

          Convert a system of equations from Expr to a PolyRing

          Parameters:
          @@ -914,7 +914,7 @@
          Documentation Version
          -sympy.polys.solvers._solve_lin_sys(eqs_coeffs, eqs_rhs, ring)[source]#
          +sympy.polys.solvers._solve_lin_sys(eqs_coeffs, eqs_rhs, ring)[source]#

          Solve a linear system from dict of PolynomialRing coefficients

          Explanation

          This is an internal function used by solve_lin_sys() after the @@ -944,7 +944,7 @@

          Documentation Version
          -sympy.polys.solvers._solve_lin_sys_component(eqs_coeffs, eqs_rhs, ring)[source]#
          +sympy.polys.solvers._solve_lin_sys_component(eqs_coeffs, eqs_rhs, ring)[source]#

          Solve a linear system from dict of PolynomialRing coefficients

          Explanation

          This is an internal function used by solve_lin_sys() after the diff --git a/dev/modules/printing.html b/dev/modules/printing.html index 928e211a3a3..5241b1d9892 100644 --- a/dev/modules/printing.html +++ b/dev/modules/printing.html @@ -951,7 +951,7 @@

          Common mistakessource code):

          -class sympy.printing.printer.Printer(settings=None)[source]#
          +class sympy.printing.printer.Printer(settings=None)[source]#

          Generic printer

          Its job is to provide infrastructure for implementing new printers easily.

          If you want to define your custom Printer or your custom printing method @@ -963,7 +963,7 @@

          Common mistakes
          -_print(expr, **kwargs) str[source]#
          +_print(expr, **kwargs) str[source]#

          Internal dispatcher

          Tries the following concepts to print an expression:
            @@ -977,13 +977,13 @@

            Common mistakes
            -doprint(expr)[source]#
            +doprint(expr)[source]#

            Returns printer’s representation for expr (as a string)

          -classmethod set_global_settings(**settings)[source]#
          +classmethod set_global_settings(**settings)[source]#

          Set system-wide printing settings.

          @@ -1005,7 +1005,7 @@

          PrettyPrinter Class
          -class sympy.printing.pretty.pretty.PrettyPrinter(settings=None)[source]#
          +class sympy.printing.pretty.pretty.PrettyPrinter(settings=None)[source]#

          Printer, which converts an expression into 2D ASCII-art figure.

          @@ -1023,7 +1023,7 @@

          PrettyPrinter Class
          -sympy.printing.pretty.pretty.pretty_print(expr, **kwargs)[source]#
          +sympy.printing.pretty.pretty.pretty_print(expr, **kwargs)[source]#

          Prints expr in pretty form.

          pprint is just a shortcut for this function.

          @@ -1108,7 +1108,7 @@

          PrettyPrinter Class
          -class sympy.printing.c.C89CodePrinter(settings=None)[source]#
          +class sympy.printing.c.C89CodePrinter(settings=None)[source]#

          A printer to convert Python expressions to strings of C code

          @@ -1117,7 +1117,7 @@

          PrettyPrinter Class
          -indent_code(code)[source]#
          +indent_code(code)[source]#

          Accepts a string of code or a list of code lines

          @@ -1125,7 +1125,7 @@

          PrettyPrinter Class
          -class sympy.printing.c.C99CodePrinter(settings=None)[source]#
          +class sympy.printing.c.C99CodePrinter(settings=None)[source]#
          printmethod: str = '_ccode'#
          @@ -1135,7 +1135,7 @@

          PrettyPrinter Class
          -sympy.printing.c.ccode(expr, assign_to=None, standard='c99', **settings)[source]#
          +sympy.printing.c.ccode(expr, assign_to=None, standard='c99', **settings)[source]#

          Converts an expr to a string of c code

          Parameters:
          @@ -1283,7 +1283,7 @@

          PrettyPrinter Class
          -sympy.printing.c.print_ccode(expr, **settings)[source]#
          +sympy.printing.c.print_ccode(expr, **settings)[source]#

          Prints C representation of the given expression.

          @@ -1302,7 +1302,7 @@

          PrettyPrinter Class
          -class sympy.printing.cxx.CXX98CodePrinter(settings=None)[source]#
          +class sympy.printing.cxx.CXX98CodePrinter(settings=None)[source]#
          printmethod: str = '_cxxcode'#
          @@ -1312,7 +1312,7 @@

          PrettyPrinter Class
          -class sympy.printing.cxx.CXX11CodePrinter(settings=None)[source]#
          +class sympy.printing.cxx.CXX11CodePrinter(settings=None)[source]#
          printmethod: str = '_cxxcode'#
          @@ -1322,7 +1322,7 @@

          PrettyPrinter Class
          -sympy.printing.codeprinter.cxxcode(expr, assign_to=None, standard='c++11', **settings)[source]#
          +sympy.printing.codeprinter.cxxcode(expr, assign_to=None, standard='c++11', **settings)[source]#

          C++ equivalent of ccode().

          @@ -1350,7 +1350,7 @@

          PrettyPrinter Class
          -class sympy.printing.rcode.RCodePrinter(settings={})[source]#
          +class sympy.printing.rcode.RCodePrinter(settings={})[source]#

          A printer to convert SymPy expressions to strings of R code

          @@ -1359,7 +1359,7 @@

          PrettyPrinter Class
          -indent_code(code)[source]#
          +indent_code(code)[source]#

          Accepts a string of code or a list of code lines

          @@ -1367,7 +1367,7 @@

          PrettyPrinter Class
          -sympy.printing.rcode.rcode(expr, assign_to=None, **settings)[source]#
          +sympy.printing.rcode.rcode(expr, assign_to=None, **settings)[source]#

          Converts an expr to a string of r code

          Parameters:
          @@ -1486,7 +1486,7 @@

          PrettyPrinter Class
          -sympy.printing.rcode.print_rcode(expr, **settings)[source]#
          +sympy.printing.rcode.print_rcode(expr, **settings)[source]#

          Prints R representation of the given expression.

          @@ -1501,7 +1501,7 @@

          Fortran Printing
          -sympy.printing.fortran.fcode(expr, assign_to=None, **settings)[source]#
          +sympy.printing.fortran.fcode(expr, assign_to=None, **settings)[source]#

          Converts an expr to a string of fortran code

          Parameters:
          @@ -1637,14 +1637,14 @@

          Fortran Printing
          -sympy.printing.fortran.print_fcode(expr, **settings)[source]#
          +sympy.printing.fortran.print_fcode(expr, **settings)[source]#

          Prints the Fortran representation of the given expression.

          See fcode for the meaning of the optional arguments.

          -class sympy.printing.fortran.FCodePrinter(settings=None)[source]#
          +class sympy.printing.fortran.FCodePrinter(settings=None)[source]#

          A printer to convert SymPy expressions to strings of Fortran code

          @@ -1653,7 +1653,7 @@

          Fortran Printing
          -indent_code(code)[source]#
          +indent_code(code)[source]#

          Accepts a string of code or a list of code lines

          @@ -1779,7 +1779,7 @@

          Fortran Printing

          SMT-Lib printing#

          -class sympy.printing.smtlib.SMTLibPrinter(settings: dict | None = None, symbol_table=None)[source]#
          +class sympy.printing.smtlib.SMTLibPrinter(settings: dict | None = None, symbol_table=None)[source]#
          printmethod: str = '_smtlib'#
          @@ -1794,7 +1794,7 @@

          Fortran Printing
          -sympy.printing.smtlib.smtlib_code(expr, auto_assert=True, auto_declare=True, precision=None, symbol_table=None, known_types=None, known_constants=None, known_functions=None, prefix_expressions=None, suffix_expressions=None, log_warn=None)[source]#
          +sympy.printing.smtlib.smtlib_code(expr, auto_assert=True, auto_declare=True, precision=None, symbol_table=None, known_types=None, known_constants=None, known_functions=None, prefix_expressions=None, suffix_expressions=None, log_warn=None)[source]#

          Converts expr to a string of smtlib code.

          Parameters:
          @@ -1909,7 +1909,7 @@

          Fortran Printing
          -class sympy.printing.mathematica.MCodePrinter(settings={})[source]#
          +class sympy.printing.mathematica.MCodePrinter(settings={})[source]#

          A printer to convert Python expressions to strings of the Wolfram’s Mathematica code

          @@ -1921,7 +1921,7 @@

          Fortran Printing
          -sympy.printing.mathematica.mathematica_code(expr, **settings)[source]#
          +sympy.printing.mathematica.mathematica_code(expr, **settings)[source]#

          Converts an expr to a string of the Wolfram Mathematica code

          Examples

          >>> from sympy import mathematica_code as mcode, symbols, sin
          @@ -1937,7 +1937,7 @@ 

          Fortran Printing

          Maple code printing#

          -class sympy.printing.maple.MapleCodePrinter(settings=None)[source]#
          +class sympy.printing.maple.MapleCodePrinter(settings=None)[source]#

          Printer which converts a SymPy expression into a maple code.

          @@ -1948,7 +1948,7 @@

          Fortran Printing
          -sympy.printing.maple.maple_code(expr, assign_to=None, **settings)[source]#
          +sympy.printing.maple.maple_code(expr, assign_to=None, **settings)[source]#

          Converts expr to a string of Maple code.

          Parameters:
          @@ -2000,7 +2000,7 @@

          Fortran Printing
          -sympy.printing.maple.print_maple_code(expr, **settings)[source]#
          +sympy.printing.maple.print_maple_code(expr, **settings)[source]#

          Prints the Maple representation of the given expression.

          See maple_code() for the meaning of the optional arguments.

          Examples

          @@ -2022,7 +2022,7 @@

          Fortran Printing
          -class sympy.printing.jscode.JavascriptCodePrinter(settings={})[source]#
          +class sympy.printing.jscode.JavascriptCodePrinter(settings={})[source]#

          “A Printer to convert Python expressions to strings of JavaScript code

          @@ -2031,7 +2031,7 @@

          Fortran Printing
          -indent_code(code)[source]#
          +indent_code(code)[source]#

          Accepts a string of code or a list of code lines

          @@ -2039,7 +2039,7 @@

          Fortran Printing
          -sympy.printing.jscode.jscode(expr, assign_to=None, **settings)[source]#
          +sympy.printing.jscode.jscode(expr, assign_to=None, **settings)[source]#

          Converts an expr to a string of javascript code

          Parameters:
          @@ -2173,7 +2173,7 @@

          Fortran Printing
          -class sympy.printing.julia.JuliaCodePrinter(settings={})[source]#
          +class sympy.printing.julia.JuliaCodePrinter(settings={})[source]#

          A printer to convert expressions to strings of Julia code.

          @@ -2182,7 +2182,7 @@

          Fortran Printing
          -indent_code(code)[source]#
          +indent_code(code)[source]#

          Accepts a string of code or a list of code lines

          @@ -2190,7 +2190,7 @@

          Fortran Printing
          -sympy.printing.julia.julia_code(expr, assign_to=None, **settings)[source]#
          +sympy.printing.julia.julia_code(expr, assign_to=None, **settings)[source]#

          Converts \(expr\) to a string of Julia code.

          Parameters:
          @@ -2357,7 +2357,7 @@

          Fortran Printing
          -class sympy.printing.octave.OctaveCodePrinter(settings={})[source]#
          +class sympy.printing.octave.OctaveCodePrinter(settings={})[source]#

          A printer to convert expressions to strings of Octave/Matlab code.

          @@ -2366,7 +2366,7 @@

          Fortran Printing
          -indent_code(code)[source]#
          +indent_code(code)[source]#

          Accepts a string of code or a list of code lines

          @@ -2374,7 +2374,7 @@

          Fortran Printing
          -sympy.printing.octave.octave_code(expr, assign_to=None, **settings)[source]#
          +sympy.printing.octave.octave_code(expr, assign_to=None, **settings)[source]#

          Converts \(expr\) to a string of Octave (or Matlab) code.

          The string uses a subset of the Octave language for Matlab compatibility.

          @@ -2534,7 +2534,7 @@

          Fortran Printing
          -class sympy.printing.rust.RustCodePrinter(settings={})[source]#
          +class sympy.printing.rust.RustCodePrinter(settings={})[source]#

          A printer to convert SymPy expressions to strings of Rust code

          @@ -2543,7 +2543,7 @@

          Fortran Printing
          -indent_code(code)[source]#
          +indent_code(code)[source]#

          Accepts a string of code or a list of code lines

          @@ -2551,7 +2551,7 @@

          Fortran Printing
          -sympy.printing.rust.rust_code(expr, assign_to=None, **settings)[source]#
          +sympy.printing.rust.rust_code(expr, assign_to=None, **settings)[source]#

          Converts an expr to a string of Rust code

          Parameters:
          @@ -2678,7 +2678,7 @@

          Fortran Printing

          Aesara Code printing#

          -class sympy.printing.aesaracode.AesaraPrinter(*args, **kwargs)[source]#
          +class sympy.printing.aesaracode.AesaraPrinter(*args, **kwargs)[source]#

          Code printer which creates Aesara symbolic expression graphs.

          Parameters:
          @@ -2711,7 +2711,7 @@

          Fortran Printing
          -doprint(expr, dtypes=None, broadcastables=None)[source]#
          +doprint(expr, dtypes=None, broadcastables=None)[source]#

          Convert a SymPy expression to a Aesara graph variable.

          The dtypes and broadcastables arguments are used to specify the data type, dimension, and broadcasting behavior of the Aesara variables @@ -2755,7 +2755,7 @@

          Fortran Printing
          -sympy.printing.aesaracode.aesara_code(expr, cache=None, **kwargs)[source]#
          +sympy.printing.aesaracode.aesara_code(expr, cache=None, **kwargs)[source]#

          Convert a SymPy expression into a Aesara graph variable.

          Parameters:
          @@ -2788,7 +2788,7 @@

          Fortran Printing
          -sympy.printing.aesaracode.aesara_function(inputs, outputs, scalar=False, *, dim=None, dims=None, broadcastables=None, **kwargs)[source]#
          +sympy.printing.aesaracode.aesara_function(inputs, outputs, scalar=False, *, dim=None, dims=None, broadcastables=None, **kwargs)[source]#

          Create a Aesara function from SymPy expressions.

          The inputs and outputs are converted to Aesara variables using aesara_code() and then passed to aesara.function.

          @@ -2883,7 +2883,7 @@

          Fortran Printing
          -sympy.printing.aesaracode.dim_handling(inputs, dim=None, dims=None, broadcastables=None)[source]#
          +sympy.printing.aesaracode.dim_handling(inputs, dim=None, dims=None, broadcastables=None)[source]#

          Get value of broadcastables argument to aesara_code() from keyword arguments to aesara_function().

          Included for backwards compatibility.

          @@ -2934,7 +2934,7 @@

          Fortran Printing
          -sympy.printing.gtk.print_gtk(x, start_viewer=True)[source]#
          +sympy.printing.gtk.print_gtk(x, start_viewer=True)[source]#

          Print to Gtkmathview, a gtk widget capable of rendering MathML.

          Needs libgtkmathview-bin

          @@ -2946,7 +2946,7 @@

          Fortran Printingsympy.utilities.lambdify.lambdify() function.

          -class sympy.printing.lambdarepr.LambdaPrinter(settings=None)[source]#
          +class sympy.printing.lambdarepr.LambdaPrinter(settings=None)[source]#

          This printer converts expressions into strings that can be used by lambdify.

          @@ -2958,7 +2958,7 @@

          Fortran Printing
          -sympy.printing.lambdarepr.lambdarepr(expr, **settings)[source]#
          +sympy.printing.lambdarepr.lambdarepr(expr, **settings)[source]#

          Returns a string usable for lambdifying.

          @@ -2976,7 +2976,7 @@

          Fortran Printing
          -class sympy.printing.latex.LatexPrinter(settings=None)[source]#
          +class sympy.printing.latex.LatexPrinter(settings=None)[source]#
          printmethod: str = '_latex'#
          @@ -2984,7 +2984,7 @@

          Fortran Printing
          -parenthesize_super(s)[source]#
          +parenthesize_super(s)[source]#

          Protect superscripts in s

          If the parenthesize_super option is set, protect with parentheses, else wrap in braces.

          @@ -3250,7 +3250,7 @@

          Fortran Printing
          -sympy.printing.latex.print_latex(expr, **settings)[source]#
          +sympy.printing.latex.print_latex(expr, **settings)[source]#

          Prints LaTeX representation of the given expression. Takes the same settings as latex().

          @@ -3262,12 +3262,12 @@

          Fortran Printinghttps://www.w3.org/TR/MathML2

          -class sympy.printing.mathml.MathMLPrinterBase(settings=None)[source]#
          +class sympy.printing.mathml.MathMLPrinterBase(settings=None)[source]#

          Contains common code required for MathMLContentPrinter and MathMLPresentationPrinter.

          -doprint(expr)[source]#
          +doprint(expr)[source]#

          Prints the expression as MathML.

          @@ -3275,7 +3275,7 @@

          Fortran Printing
          -class sympy.printing.mathml.MathMLContentPrinter(settings=None)[source]#
          +class sympy.printing.mathml.MathMLContentPrinter(settings=None)[source]#

          Prints an expression to the Content MathML markup language.

          References: https://www.w3.org/TR/MathML2/chapter4.html

          @@ -3285,7 +3285,7 @@

          Fortran Printing
          -mathml_tag(e)[source]#
          +mathml_tag(e)[source]#

          Returns the MathML tag for an expression.

          @@ -3293,7 +3293,7 @@

          Fortran Printing
          -class sympy.printing.mathml.MathMLPresentationPrinter(settings=None)[source]#
          +class sympy.printing.mathml.MathMLPresentationPrinter(settings=None)[source]#

          Prints an expression to the Presentation MathML markup language.

          References: https://www.w3.org/TR/MathML2/chapter3.html

          @@ -3303,7 +3303,7 @@

          Fortran Printing
          -mathml_tag(e)[source]#
          +mathml_tag(e)[source]#

          Returns the MathML tag for an expression.

          @@ -3318,7 +3318,7 @@

          Fortran Printing
          -sympy.printing.mathml.print_mathml(expr, printer='content', **settings)[source]#
          +sympy.printing.mathml.print_mathml(expr, printer='content', **settings)[source]#

          Prints a pretty representation of the MathML code for expr. If printer is presentation then prints Presentation MathML else prints content MathML.

          Examples

          @@ -3348,13 +3348,13 @@

          Fortran Printing
          -class sympy.printing.pycode.MpmathPrinter(settings=None)[source]#
          +class sympy.printing.pycode.MpmathPrinter(settings=None)[source]#

          Lambda printer for mpmath which maintains precision for floats

          -sympy.printing.pycode.pycode(expr, **settings)[source]#
          +sympy.printing.pycode.pycode(expr, **settings)[source]#

          Converts an expr to a string of Python code

          Parameters:
          @@ -3416,7 +3416,7 @@

          Fortran Printingstr() or print().

          -class sympy.printing.repr.ReprPrinter(settings=None)[source]#
          +class sympy.printing.repr.ReprPrinter(settings=None)[source]#
          printmethod: str = '_sympyrepr'#
          @@ -3424,13 +3424,13 @@

          Fortran Printing
          -emptyPrinter(expr)[source]#
          +emptyPrinter(expr)[source]#

          The fallback printer.

          -reprify(args, sep)[source]#
          +reprify(args, sep)[source]#

          Prints each item in \(args\) and joins them with \(sep\).

          @@ -3448,7 +3448,7 @@

          Fortran Printing
          -class sympy.printing.str.StrPrinter(settings=None)[source]#
          +class sympy.printing.str.StrPrinter(settings=None)[source]#
          printmethod: str = '_sympystr'#
          @@ -3488,7 +3488,7 @@

          Fortran Printing
          -sympy.printing.tree.pprint_nodes(subtrees)[source]#
          +sympy.printing.tree.pprint_nodes(subtrees)[source]#

          Prettyprints systems of nodes.

          Examples

          >>> from sympy.printing.tree import pprint_nodes
          @@ -3503,7 +3503,7 @@ 

          Fortran Printing
          -sympy.printing.tree.print_node(node, assumptions=True)[source]#
          +sympy.printing.tree.print_node(node, assumptions=True)[source]#

          Returns information about the “node”.

          This includes class name, string representation and assumptions.

          @@ -3518,7 +3518,7 @@

          Fortran Printing
          -sympy.printing.tree.tree(node, assumptions=True)[source]#
          +sympy.printing.tree.tree(node, assumptions=True)[source]#

          Returns a tree representation of “node” as a string.

          It uses print_node() together with pprint_nodes() on node.args recursively.

          @@ -3542,7 +3542,7 @@

          Fortran Printing
          -sympy.printing.tree.print_tree(node, assumptions=True)[source]#
          +sympy.printing.tree.print_tree(node, assumptions=True)[source]#

          Prints a tree representation of “node”.

          Parameters:
          @@ -3625,7 +3625,7 @@

          Preview#<

          A useful function is preview:

          -sympy.printing.preview.preview(expr, output='png', viewer=None, euler=True, packages=(), filename=None, outputbuffer=None, preamble=None, dvioptions=None, outputTexFile=None, extra_preamble=None, fontsize=None, **latex_settings)[source]#
          +sympy.printing.preview.preview(expr, output='png', viewer=None, euler=True, packages=(), filename=None, outputbuffer=None, preamble=None, dvioptions=None, outputTexFile=None, extra_preamble=None, fontsize=None, **latex_settings)[source]#

          View expression or LaTeX markup in PNG, DVI, PostScript or PDF form.

          If the expr argument is an expression, it will be exported to LaTeX and then compiled using the available TeX distribution. The first argument, @@ -3724,7 +3724,7 @@

          Preview#<

          Implementation - Helper Classes/Functions#

          -sympy.printing.conventions.split_super_sub(text)[source]#
          +sympy.printing.conventions.split_super_sub(text)[source]#

          Split a symbol name into a name, superscripts and subscripts

          The first part of the symbol name is considered to be its actual ‘name’, followed by super- and subscripts. Each superscript is @@ -3748,7 +3748,7 @@

          Preview#< easily translated to C or Fortran.

          -class sympy.printing.codeprinter.CodePrinter(settings=None)[source]#
          +class sympy.printing.codeprinter.CodePrinter(settings=None)[source]#

          The base class for code-printing subclasses.

          @@ -3757,7 +3757,7 @@

          Preview#<
          -doprint(expr, assign_to=None)[source]#
          +doprint(expr, assign_to=None)[source]#

          Print the expression as code.

          Parameters:
          @@ -3778,7 +3778,7 @@

          Preview#<
          -exception sympy.printing.codeprinter.AssignmentError[source]#
          +exception sympy.printing.codeprinter.AssignmentError[source]#

          Raised if an assignment variable for a loop is missing.

          @@ -3810,7 +3810,7 @@

          Preview#<
          -sympy.printing.precedence.precedence(item)[source]#
          +sympy.printing.precedence.precedence(item)[source]#

          Returns the precedence of a given object.

          This is the precedence for StrPrinter.

          @@ -3821,38 +3821,38 @@

          Preview#<

          Pretty-Printing Implementation Helpers#

          -sympy.printing.pretty.pretty_symbology.U(name)[source]#
          +sympy.printing.pretty.pretty_symbology.U(name)[source]#

          Get a unicode character by name or, None if not found.

          This exists because older versions of Python use older unicode databases.

          -sympy.printing.pretty.pretty_symbology.pretty_use_unicode(flag=None)[source]#
          +sympy.printing.pretty.pretty_symbology.pretty_use_unicode(flag=None)[source]#

          Set whether pretty-printer should use unicode by default

          -sympy.printing.pretty.pretty_symbology.pretty_try_use_unicode()[source]#
          +sympy.printing.pretty.pretty_symbology.pretty_try_use_unicode()[source]#

          See if unicode output is available and leverage it if possible

          -sympy.printing.pretty.pretty_symbology.xstr(*args)[source]#
          +sympy.printing.pretty.pretty_symbology.xstr(*args)[source]#

          The following two functions return the Unicode version of the inputted Greek letter.

          -sympy.printing.pretty.pretty_symbology.g(l)[source]#
          +sympy.printing.pretty.pretty_symbology.g(l)[source]#
          -sympy.printing.pretty.pretty_symbology.G(l)[source]#
          +sympy.printing.pretty.pretty_symbology.G(l)[source]#
          @@ -3888,21 +3888,21 @@

          Preview#<

          The following functions return Unicode vertical objects.

          -sympy.printing.pretty.pretty_symbology.xobj(symb, length)[source]#
          +sympy.printing.pretty.pretty_symbology.xobj(symb, length)[source]#

          Construct spatial object of given length.

          return: [] of equal-length strings

          -sympy.printing.pretty.pretty_symbology.vobj(symb, height)[source]#
          +sympy.printing.pretty.pretty_symbology.vobj(symb, height)[source]#

          Construct vertical object of a given height

          see: xobj

          -sympy.printing.pretty.pretty_symbology.hobj(symb, width)[source]#
          +sympy.printing.pretty.pretty_symbology.hobj(symb, width)[source]#

          Construct horizontal object of a given width

          see: xobj

          @@ -3915,7 +3915,7 @@

          Preview#<
          -sympy.printing.pretty.pretty_symbology.VF(txt)[source]#
          +sympy.printing.pretty.pretty_symbology.VF(txt)[source]#
          @@ -3926,7 +3926,7 @@

          Preview#<

          The following constants/functions are for rendering atoms and symbols.

          -sympy.printing.pretty.pretty_symbology.xsym(sym)[source]#
          +sympy.printing.pretty.pretty_symbology.xsym(sym)[source]#

          get symbology for a ‘character’

          @@ -3937,19 +3937,19 @@

          Preview#<
          -sympy.printing.pretty.pretty_symbology.pretty_atom(atom_name, default=None, printer=None)[source]#
          +sympy.printing.pretty.pretty_symbology.pretty_atom(atom_name, default=None, printer=None)[source]#

          return pretty representation of an atom

          -sympy.printing.pretty.pretty_symbology.pretty_symbol(symb_name, bold_name=False)[source]#
          +sympy.printing.pretty.pretty_symbology.pretty_symbol(symb_name, bold_name=False)[source]#

          return pretty representation of a symbol

          -sympy.printing.pretty.pretty_symbology.annotated(letter)[source]#
          +sympy.printing.pretty.pretty_symbology.annotated(letter)[source]#

          Return a stylised drawing of the letter letter, together with information on how to put annotations (super- and subscripts to the left and to the right) on it.

          @@ -3975,12 +3975,12 @@

          Preview#<

          -class sympy.printing.pretty.stringpict.stringPict(s, baseline=0)[source]#
          +class sympy.printing.pretty.stringpict.stringPict(s, baseline=0)[source]#

          An ASCII picture. The pictures are represented as a list of equal length strings.

          -above(*args)[source]#
          +above(*args)[source]#

          Put pictures above this picture. Returns string, baseline arguments for stringPict. Baseline is baseline of bottom picture.

          @@ -3988,7 +3988,7 @@

          Preview#<
          -below(*args)[source]#
          +below(*args)[source]#

          Put pictures under this picture. Returns string, baseline arguments for stringPict. Baseline is baseline of top picture

          @@ -4005,33 +4005,33 @@

          Preview#<
          -height()[source]#
          +height()[source]#

          The height of the picture in characters.

          -left(*args)[source]#
          +left(*args)[source]#

          Put pictures (left to right) at left. Returns string, baseline arguments for stringPict.

          -leftslash()[source]#
          +leftslash()[source]#

          Precede object by a slash of the proper size.

          -static next(*args)[source]#
          +static next(*args)[source]#

          Put a string of stringPicts next to each other. Returns string, baseline arguments for stringPict.

          -parens(left='(', right=')', ifascii_nougly=False)[source]#
          +parens(left='(', right=')', ifascii_nougly=False)[source]#

          Put parentheses around self. Returns string, baseline arguments for stringPict.

          left or right can be None or empty string which means ‘no paren from @@ -4040,7 +4040,7 @@

          Preview#<
          -render(*args, **kwargs)[source]#
          +render(*args, **kwargs)[source]#

          Return the string form of self.

          Unless the argument line_break is set to False, it will break the expression in a form that can be printed @@ -4049,7 +4049,7 @@

          Preview#<
          -right(*args)[source]#
          +right(*args)[source]#

          Put pictures next to this one. Returns string, baseline arguments for stringPict. (Multiline) strings are allowed, and are given a baseline of 0.

          @@ -4065,14 +4065,14 @@

          Preview#<
          -root(n=None)[source]#
          +root(n=None)[source]#

          Produce a nice root symbol. Produces ugly results for big n inserts.

          -static stack(*args)[source]#
          +static stack(*args)[source]#

          Put pictures on top of each other, from top to bottom. Returns string, baseline arguments for stringPict. @@ -4085,13 +4085,13 @@

          Preview#<
          -terminal_width()[source]#
          +terminal_width()[source]#

          Return the terminal width if possible, otherwise return 0.

          -width()[source]#
          +width()[source]#

          The width of the picture in characters.

          @@ -4099,7 +4099,7 @@

          Preview#<
          -class sympy.printing.pretty.stringpict.prettyForm(s, baseline=0, binding=0, unicode=None)[source]#
          +class sympy.printing.pretty.stringpict.prettyForm(s, baseline=0, binding=0, unicode=None)[source]#

          Extension of the stringPict class that knows about basic math applications, optimizing double minus signs.

          “Binding” is interpreted as follows:

          @@ -4117,7 +4117,7 @@

          Preview#<

          -static apply(function, *args)[source]#
          +static apply(function, *args)[source]#

          Functions of one or more variables.

          @@ -4128,7 +4128,7 @@

          Preview#<

          dotprint#

          -sympy.printing.dot.dotprint(expr, styles=((<class 'sympy.core.basic.Basic'>, {'color': 'blue', 'shape': 'ellipse'}), (<class 'sympy.core.expr.Expr'>, {'color': 'black'})), atom=<function <lambda>>, maxdepth=None, repeat=True, labelfunc=<class 'str'>, **kwargs)[source]#
          +sympy.printing.dot.dotprint(expr, styles=((<class 'sympy.core.basic.Basic'>, {'color': 'blue', 'shape': 'ellipse'}), (<class 'sympy.core.expr.Expr'>, {'color': 'black'})), atom=<function <lambda>>, maxdepth=None, repeat=True, labelfunc=<class 'str'>, **kwargs)[source]#

          DOT description of a SymPy expression tree

          Parameters:
          diff --git a/dev/modules/rewriting.html b/dev/modules/rewriting.html index 87ae81fa159..862e2a5faa2 100644 --- a/dev/modules/rewriting.html +++ b/dev/modules/rewriting.html @@ -841,7 +841,7 @@

          Common Subexpression Detection and Collection
          -sympy.simplify.cse_main.cse(exprs, symbols=None, optimizations=None, postprocess=None, order='canonical', ignore=(), list=True)[source]
          +sympy.simplify.cse_main.cse(exprs, symbols=None, optimizations=None, postprocess=None, order='canonical', ignore=(), list=True)[source]

          Perform common subexpression elimination on an expression.

          Parameters:
          diff --git a/dev/modules/series/formal.html b/dev/modules/series/formal.html index f46e188ae6a..1e8e7b80c54 100644 --- a/dev/modules/series/formal.html +++ b/dev/modules/series/formal.html @@ -742,7 +742,7 @@

          Formal Power Series
          -class sympy.series.formal.FormalPowerSeries(*args)[source]#
          +class sympy.series.formal.FormalPowerSeries(*args)[source]#

          Represents Formal Power Series of a function.

          Explanation

          No computation is performed. This class should only to be used to represent @@ -754,7 +754,7 @@

          Formal Power Series
          -coeff_bell(n)[source]#
          +coeff_bell(n)[source]#

          self.coeff_bell(n) returns a sequence of Bell polynomials of the second kind. Note that n should be a integer.

          The second kind of Bell polynomials (are sometimes called “partial” Bell @@ -780,7 +780,7 @@

          Formal Power Series
          -compose(other, x=None, n=6)[source]#
          +compose(other, x=None, n=6)[source]#

          Returns the truncated terms of the formal power series of the composed function, up to specified n.

          @@ -836,7 +836,7 @@

          Formal Power Series
          -integrate(x=None, **kwargs)[source]#
          +integrate(x=None, **kwargs)[source]#

          Integrate Formal Power Series.

          Examples

          >>> from sympy import fps, sin, integrate
          @@ -852,7 +852,7 @@ 

          Formal Power Series
          -inverse(x=None, n=6)[source]#
          +inverse(x=None, n=6)[source]#

          Returns the truncated terms of the inverse of the formal power series, up to specified n.

          @@ -902,7 +902,7 @@

          Formal Power Series
          -polynomial(n=6)[source]#
          +polynomial(n=6)[source]#

          Truncated series as polynomial.

          Explanation

          Returns series expansion of f upto order O(x**n) @@ -911,7 +911,7 @@

          Formal Power Series
          -product(other, x=None, n=6)[source]#
          +product(other, x=None, n=6)[source]#

          Multiplies two Formal Power Series, using discrete convolution and return the truncated terms upto specified order.

          @@ -942,7 +942,7 @@

          Formal Power Series
          -truncate(n=6)[source]#
          +truncate(n=6)[source]#

          Truncated series.

          Explanation

          Returns truncated series expansion of f upto @@ -954,7 +954,7 @@

          Formal Power Series
          -sympy.series.formal.fps(f, x=None, x0=0, dir=1, hyper=True, order=4, rational=True, full=False)[source]#
          +sympy.series.formal.fps(f, x=None, x0=0, dir=1, hyper=True, order=4, rational=True, full=False)[source]#

          Generates Formal Power Series of f.

          Parameters:
          @@ -1029,7 +1029,7 @@

          Formal Power Series
          -sympy.series.formal.compute_fps(f, x, x0=0, dir=1, hyper=True, order=4, rational=True, full=False)[source]#
          +sympy.series.formal.compute_fps(f, x, x0=0, dir=1, hyper=True, order=4, rational=True, full=False)[source]#

          Computes the formula for Formal Power Series of a function.

          Parameters:
          @@ -1099,7 +1099,7 @@

          Formal Power Series
          -class sympy.series.formal.FormalPowerSeriesCompose(*args)[source]#
          +class sympy.series.formal.FormalPowerSeriesCompose(*args)[source]#

          Represents the composed formal power series of two functions.

          Explanation

          No computation is performed. Terms are calculated using a term by term logic, @@ -1124,7 +1124,7 @@

          Formal Power Series
          -class sympy.series.formal.FormalPowerSeriesInverse(*args)[source]#
          +class sympy.series.formal.FormalPowerSeriesInverse(*args)[source]#

          Represents the Inverse of a formal power series.

          Explanation

          No computation is performed. Terms are calculated using a term by term logic, @@ -1147,7 +1147,7 @@

          Formal Power Series
          -class sympy.series.formal.FormalPowerSeriesProduct(*args)[source]#
          +class sympy.series.formal.FormalPowerSeriesProduct(*args)[source]#

          Represents the product of two formal power series of two functions.

          Explanation

          No computation is performed. Terms are calculated using a term by term logic, @@ -1170,7 +1170,7 @@

          Formal Power Series
          -class sympy.series.formal.FiniteFormalPowerSeries(*args)[source]#
          +class sympy.series.formal.FiniteFormalPowerSeries(*args)[source]#

          Base Class for Product, Compose and Inverse classes

          @@ -1178,7 +1178,7 @@

          Formal Power Series#

          -sympy.series.formal.rational_independent(terms, x)[source]#
          +sympy.series.formal.rational_independent(terms, x)[source]#

          Returns a list of all the rationally independent terms.

          Examples

          >>> from sympy import sin, cos
          @@ -1196,7 +1196,7 @@ 

          Rational Algorithm
          -sympy.series.formal.rational_algorithm(f, x, k, order=4, full=False)[source]#
          +sympy.series.formal.rational_algorithm(f, x, k, order=4, full=False)[source]#

          Rational algorithm for computing formula of coefficients of Formal Power Series of a function.

          @@ -1272,7 +1272,7 @@

          Rational Algorithm#

          -sympy.series.formal.simpleDE(f, x, g, order=4)[source]#
          +sympy.series.formal.simpleDE(f, x, g, order=4)[source]#

          Generates simple DE.

          Explanation

          DE is of the form

          @@ -1288,7 +1288,7 @@

          Hypergeometric Algorithm
          -sympy.series.formal.exp_re(DE, r, k)[source]#
          +sympy.series.formal.exp_re(DE, r, k)[source]#

          Converts a DE with constant coefficients (explike) into a RE.

          Explanation

          Performs the substitution:

          @@ -1318,7 +1318,7 @@

          Hypergeometric Algorithm
          -sympy.series.formal.hyper_re(DE, r, k)[source]#
          +sympy.series.formal.hyper_re(DE, r, k)[source]#

          Converts a DE into a RE.

          Explanation

          Performs the substitution:

          @@ -1348,7 +1348,7 @@

          Hypergeometric Algorithm
          -sympy.series.formal.rsolve_hypergeometric(f, x, P, Q, k, m)[source]#
          +sympy.series.formal.rsolve_hypergeometric(f, x, P, Q, k, m)[source]#

          Solves RE of hypergeometric type.

          Returns:
          @@ -1404,7 +1404,7 @@

          Hypergeometric Algorithm
          -sympy.series.formal.solve_de(f, x, DE, order, g, k)[source]#
          +sympy.series.formal.solve_de(f, x, DE, order, g, k)[source]#

          Solves the DE.

          Returns:
          @@ -1440,7 +1440,7 @@

          Hypergeometric Algorithm
          -sympy.series.formal.hyper_algorithm(f, x, k, order=4)[source]#
          +sympy.series.formal.hyper_algorithm(f, x, k, order=4)[source]#

          Hypergeometric algorithm for computing Formal Power Series.

          Explanation

          diff --git a/dev/modules/series/fourier.html b/dev/modules/series/fourier.html index 4cd6b6a2df2..96066b706ad 100644 --- a/dev/modules/series/fourier.html +++ b/dev/modules/series/fourier.html @@ -742,7 +742,7 @@

          Fourier Series
          -class sympy.series.fourier.FourierSeries(*args)[source]#
          +class sympy.series.fourier.FourierSeries(*args)[source]#

          Represents Fourier sine/cosine series.

          Explanation

          This class only represents a fourier series. @@ -755,7 +755,7 @@

          Fourier Series
          -scale(s)[source]#
          +scale(s)[source]#

          Scale the function by a term independent of x.

          Explanation

          f(x) -> s * f(x)

          @@ -773,7 +773,7 @@

          Fourier Series
          -scalex(s)[source]#
          +scalex(s)[source]#

          Scale x by a term independent of x.

          Explanation

          f(x) -> f(s*x)

          @@ -791,7 +791,7 @@

          Fourier Series
          -shift(s)[source]#
          +shift(s)[source]#

          Shift the function by a term independent of x.

          Explanation

          f(x) -> f(x) + s

          @@ -809,7 +809,7 @@

          Fourier Series
          -shiftx(s)[source]#
          +shiftx(s)[source]#

          Shift x by a term independent of x.

          Explanation

          f(x) -> f(x + s)

          @@ -827,7 +827,7 @@

          Fourier Series
          -sigma_approximation(n=3)[source]#
          +sigma_approximation(n=3)[source]#

          Return \(\sigma\)-approximation of Fourier series with respect to order n.

          @@ -894,7 +894,7 @@

          Fourier Series
          -truncate(n=3)[source]#
          +truncate(n=3)[source]#

          Return the first n nonzero terms of the series.

          If n is None return an iterator.

          @@ -929,7 +929,7 @@

          Fourier Series
          -sympy.series.fourier.fourier_series(f, limits=None, finite=True)[source]#
          +sympy.series.fourier.fourier_series(f, limits=None, finite=True)[source]#

          Computes the Fourier trigonometric series expansion.

          Parameters:
          diff --git a/dev/modules/series/limitseq.html b/dev/modules/series/limitseq.html index 7dc8fc51864..ed66514ac8c 100644 --- a/dev/modules/series/limitseq.html +++ b/dev/modules/series/limitseq.html @@ -742,7 +742,7 @@

          Limits of Sequences
          -sympy.series.limitseq.difference_delta(expr, n=None, step=1)[source]#
          +sympy.series.limitseq.difference_delta(expr, n=None, step=1)[source]#

          Difference Operator.

          Explanation

          Discrete analog of differential operator. Given a sequence x[n], @@ -767,7 +767,7 @@

          Limits of Sequences
          -sympy.series.limitseq.dominant(expr, n)[source]#
          +sympy.series.limitseq.dominant(expr, n)[source]#

          Finds the dominant term in a sum, that is a term that dominates every other term.

          Explanation

          @@ -793,7 +793,7 @@

          Limits of Sequences
          -sympy.series.limitseq.limit_seq(expr, n=None, trials=5)[source]#
          +sympy.series.limitseq.limit_seq(expr, n=None, trials=5)[source]#

          Finds the limit of a sequence as index n tends to infinity.

          Parameters:
          diff --git a/dev/modules/series/sequences.html b/dev/modules/series/sequences.html index 2ce883511fb..fc830e74cc3 100644 --- a/dev/modules/series/sequences.html +++ b/dev/modules/series/sequences.html @@ -742,7 +742,7 @@

          Sequences
          -sympy.series.sequences.sequence(seq, limits=None)[source]#
          +sympy.series.sequences.sequence(seq, limits=None)[source]#

          Returns appropriate sequence object.

          Explanation

          If seq is a SymPy sequence, returns SeqPer object @@ -766,17 +766,17 @@

          Sequences#

          -class sympy.series.sequences.SeqBase(*args)[source]#
          +class sympy.series.sequences.SeqBase(*args)[source]#

          Base class for sequences

          -coeff(pt)[source]#
          +coeff(pt)[source]#

          Returns the coefficient at point pt

          -coeff_mul(other)[source]#
          +coeff_mul(other)[source]#

          Should be used when other is not a sequence. Should be defined to define custom behaviour.

          Examples

          @@ -792,7 +792,7 @@

          Sequences Base
          -find_linear_recurrence(n, d=None, gfvar=None)[source]#
          +find_linear_recurrence(n, d=None, gfvar=None)[source]#

          Finds the shortest linear recurrence that satisfies the first n terms of sequence of order \(\leq\) n/2 if possible. If d is specified, find shortest linear recurrence of order @@ -882,7 +882,7 @@

          Sequences Base#

          -class sympy.series.sequences.SeqFormula(formula, limits=None)[source]#
          +class sympy.series.sequences.SeqFormula(formula, limits=None)[source]#

          Represents sequence based on a formula.

          Elements are generated using a formula.

          Examples

          @@ -919,7 +919,7 @@

          Elementary Sequences
          -coeff_mul(coeff)[source]#
          +coeff_mul(coeff)[source]#

          See docstring of SeqBase.coeff_mul

          @@ -927,7 +927,7 @@

          Elementary Sequences
          -class sympy.series.sequences.SeqPer(periodical, limits=None)[source]#
          +class sympy.series.sequences.SeqPer(periodical, limits=None)[source]#

          Represents a periodic sequence.

          The elements are repeated after a given period.

          Examples

          @@ -973,7 +973,7 @@

          Elementary Sequences
          -coeff_mul(coeff)[source]#
          +coeff_mul(coeff)[source]#

          See docstring of SeqBase.coeff_mul

          @@ -984,7 +984,7 @@

          Elementary SequencesSingleton Sequences#

          -class sympy.series.sequences.EmptySequence[source]#
          +class sympy.series.sequences.EmptySequence[source]#

          Represents an empty sequence.

          The empty sequence is also available as a singleton as S.EmptySequence.

          @@ -1003,7 +1003,7 @@

          Singleton Sequences
          -coeff_mul(coeff)[source]#
          +coeff_mul(coeff)[source]#

          See docstring of SeqBase.coeff_mul

          @@ -1014,7 +1014,7 @@

          Singleton Sequences#

          -class sympy.series.sequences.SeqAdd(*args, **kwargs)[source]#
          +class sympy.series.sequences.SeqAdd(*args, **kwargs)[source]#

          Represents term-wise addition of sequences.

          Rules:
            @@ -1044,7 +1044,7 @@

            Compound Sequences
            -static reduce(args)[source]#
            +static reduce(args)[source]#

            Simplify SeqAdd using known rules.

            Iterates through all pairs and ask the constituent sequences if they can simplify themselves with any other constituent.

            @@ -1056,7 +1056,7 @@

            Compound Sequences
            -class sympy.series.sequences.SeqMul(*args, **kwargs)[source]#
            +class sympy.series.sequences.SeqMul(*args, **kwargs)[source]#

            Represents term-wise multiplication of sequences.

            Explanation

            Handles multiplication of sequences only. For multiplication @@ -1089,7 +1089,7 @@

            Compound Sequences
            -static reduce(args)[source]#
            +static reduce(args)[source]#

            Simplify a SeqMul using known rules.

            Explanation

            Iterates through all pairs and ask the constituent @@ -1105,7 +1105,7 @@

            Compound Sequences#

            -class sympy.series.sequences.RecursiveSeq(recurrence, yn, n, initial=None, start=0)[source]#
            +class sympy.series.sequences.RecursiveSeq(recurrence, yn, n, initial=None, start=0)[source]#

            A finite degree recursive sequence.

            Parameters:
            diff --git a/dev/modules/series/series.html b/dev/modules/series/series.html index bf77304e697..9e2fbda5efb 100644 --- a/dev/modules/series/series.html +++ b/dev/modules/series/series.html @@ -744,7 +744,7 @@

            Limits#The main purpose of this module is the computation of limits.

            -sympy.series.limits.limit(e, z, z0, dir='+')[source]#
            +sympy.series.limits.limit(e, z, z0, dir='+')[source]#

            Computes the limit of e(z) at the point z0.

            Parameters:
            @@ -798,7 +798,7 @@

            Limits#
            -class sympy.series.limits.Limit(e, z, z0, dir='+')[source]#
            +class sympy.series.limits.Limit(e, z, z0, dir='+')[source]#

            Represents an unevaluated limit.

            Examples

            >>> from sympy import Limit, sin
            @@ -811,7 +811,7 @@ 

            Limits#
            -doit(**hints)[source]#
            +doit(**hints)[source]#

            Evaluates the limit.

            Parameters:
            @@ -907,7 +907,7 @@

            Notes#<

            Reference#

            -sympy.series.gruntz.gruntz(e, z, z0, dir='+')[source]#
            +sympy.series.gruntz.gruntz(e, z, z0, dir='+')[source]#

            Compute the limit of e(z) at the point z0 using the Gruntz algorithm.

            Explanation

            z0 can be any expression, including oo and -oo.

            @@ -921,13 +921,13 @@

            Reference
            -sympy.series.gruntz.compare(a, b, x)[source]#
            +sympy.series.gruntz.compare(a, b, x)[source]#

            Returns “<” if a<b, “=” for a == b, “>” for a>b

            -sympy.series.gruntz.rewrite(e, Omega, x, wsym)[source]#
            +sympy.series.gruntz.rewrite(e, Omega, x, wsym)[source]#

            e(x) … the function Omega … the mrv set wsym … the symbol which is going to be used for w

            @@ -937,7 +937,7 @@

            Reference
            -sympy.series.gruntz.build_expression_tree(Omega, rewrites)[source]#
            +sympy.series.gruntz.build_expression_tree(Omega, rewrites)[source]#

            Helper function for rewrite.

            We need to sort Omega (mrv set) so that we replace an expression before we replace any expression in terms of which it has to be rewritten:

            @@ -953,26 +953,26 @@

            Reference
            -sympy.series.gruntz.mrv_leadterm(e, x)[source]#
            +sympy.series.gruntz.mrv_leadterm(e, x)[source]#

            Returns (c0, e0) for e.

            -sympy.series.gruntz.calculate_series(e, x, logx=None)[source]#
            +sympy.series.gruntz.calculate_series(e, x, logx=None)[source]#

            Calculates at least one term of the series of e in x.

            This is a place that fails most often, so it is in its own function.

            -sympy.series.gruntz.limitinf(e, x)[source]#
            +sympy.series.gruntz.limitinf(e, x)[source]#

            Limit e(x) for x-> oo.

            -sympy.series.gruntz.sign(e, x)[source]#
            +sympy.series.gruntz.sign(e, x)[source]#

            Returns a sign of an expression e(x) for x->oo.

            e >  0 for x sufficiently large ...  1
             e == 0 for x sufficiently large ...  0
            @@ -988,14 +988,14 @@ 

            Reference
            -sympy.series.gruntz.mrv(e, x)[source]#
            +sympy.series.gruntz.mrv(e, x)[source]#

            Returns a SubsSet of most rapidly varying (mrv) subexpressions of ‘e’, and e rewritten in terms of these

            -sympy.series.gruntz.mrv_max1(f, g, exps, x)[source]#
            +sympy.series.gruntz.mrv_max1(f, g, exps, x)[source]#

            Computes the maximum of two sets of expressions f and g, which are in the same comparability class, i.e. mrv_max1() compares (two elements of) f and g and returns the set, which is in the higher comparability class @@ -1005,7 +1005,7 @@

            Reference
            -sympy.series.gruntz.mrv_max3(f, expsf, g, expsg, union, expsboth, x)[source]#
            +sympy.series.gruntz.mrv_max3(f, expsf, g, expsg, union, expsboth, x)[source]#

            Computes the maximum of two sets of expressions f and g, which are in the same comparability class, i.e. max() compares (two elements of) f and g and returns either (f, expsf) [if f is larger], (g, expsg) @@ -1014,7 +1014,7 @@

            Reference
            -class sympy.series.gruntz.SubsSet[source]#
            +class sympy.series.gruntz.SubsSet[source]#

            Stores (expr, dummy) pairs, and how to rewrite expr-s.

            Explanation

            The gruntz algorithm needs to rewrite certain expressions in term of a new @@ -1058,25 +1058,25 @@

            Reference
            -copy()[source]#
            +copy()[source]#

            Create a shallow copy of SubsSet

            -do_subs(e)[source]#
            +do_subs(e)[source]#

            Substitute the variables with expressions

            -meets(s2)[source]#
            +meets(s2)[source]#

            Tell whether or not self and s2 have non-empty intersection

            -union(s2, exps=None)[source]#
            +union(s2, exps=None)[source]#

            Compute the union of self and s2, adjusting exps

            @@ -1103,7 +1103,7 @@

            Examples

            Reference#

            -sympy.series.series.series(expr, x=None, x0=0, n=6, dir='+')[source]#
            +sympy.series.series.series(expr, x=None, x0=0, n=6, dir='+')[source]#

            Series expansion of expr around point \(x = x0\).

            Parameters:
            @@ -1192,7 +1192,7 @@

            Examples#

            Reference#

            -class sympy.series.order.Order(expr, *args, **kwargs)[source]#
            +class sympy.series.order.Order(expr, *args, **kwargs)[source]#

            Represents the limiting behavior of some function.

            Explanation

            The order of a function characterizes the function based on the limiting @@ -1300,7 +1300,7 @@

            Reference#
            -contains(expr)[source]#
            +contains(expr)[source]#

            Return True if expr belongs to Order(self.expr, *self.variables). Return False if self belongs to expr. Return None if the inclusion relation cannot be determined @@ -1318,7 +1318,7 @@

            Series Acceleration#

            -sympy.series.acceleration.richardson(A, k, n, N)[source]#
            +sympy.series.acceleration.richardson(A, k, n, N)[source]#

            Calculate an approximation for lim k->oo A(k) using Richardson extrapolation with the terms A(n), A(n+1), …, A(n+N+1). Choosing N ~= 2*n often gives good results.

            @@ -1364,7 +1364,7 @@

            Reference#
            -sympy.series.acceleration.shanks(A, k, n, m=1)[source]#
            +sympy.series.acceleration.shanks(A, k, n, m=1)[source]#

            Calculate an approximation for lim k->oo A(k) using the n-term Shanks transformation S(A)(n). With m > 1, calculate the m-fold recursive Shanks transformation S(S(…S(A)…))(n).

            @@ -1394,7 +1394,7 @@

            Residues

            Reference#

            -sympy.series.residues.residue(expr, x, x0)[source]#
            +sympy.series.residues.residue(expr, x, x0)[source]#

            Finds the residue of expr at the point x=x0.

            The residue is defined as the coefficient of 1/(x-x0) in the power series expansion about x=x0.

            diff --git a/dev/modules/sets.html b/dev/modules/sets.html index 62b831335bf..6908f63504b 100644 --- a/dev/modules/sets.html +++ b/dev/modules/sets.html @@ -743,7 +743,7 @@
            Documentation Version

            Basic Sets#

            -class sympy.sets.sets.Set(*args)[source]#
            +class sympy.sets.sets.Set(*args)[source]#

            The base class for any kind of set.

            Explanation

            This is not meant to be used directly as a container of items. It does not @@ -796,7 +796,7 @@

            Documentation Version
            -complement(universe)[source]#
            +complement(universe)[source]#

            The complement of ‘self’ w.r.t the given universe.

            Examples

            >>> from sympy import Interval, S
            @@ -812,7 +812,7 @@ 
            Documentation Version
            -contains(other)[source]#
            +contains(other)[source]#

            Returns a SymPy value indicating whether other is contained in self: true if it is, false if it is not, else an unevaluated Contains expression (or, as in the case of @@ -879,7 +879,7 @@

            Documentation Version
            -intersect(other)[source]#
            +intersect(other)[source]#

            Returns the intersection of ‘self’ and ‘other’.

            Examples

            >>> from sympy import Interval
            @@ -900,7 +900,7 @@ 
            Documentation Version
            -intersection(other)[source]#
            +intersection(other)[source]#

            Alias for intersect()

            @@ -922,7 +922,7 @@
            Documentation Version
            -is_disjoint(other)[source]#
            +is_disjoint(other)[source]#

            Returns True if self and other are disjoint.

            Examples

            >>> from sympy import Interval
            @@ -962,7 +962,7 @@ 
            Documentation Version
            -is_proper_subset(other)[source]#
            +is_proper_subset(other)[source]#

            Returns True if self is a proper subset of other.

            Examples

            >>> from sympy import Interval
            @@ -976,7 +976,7 @@ 
            Documentation Version
            -is_proper_superset(other)[source]#
            +is_proper_superset(other)[source]#

            Returns True if self is a proper superset of other.

            Examples

            >>> from sympy import Interval
            @@ -990,7 +990,7 @@ 
            Documentation Version
            -is_subset(other)[source]#
            +is_subset(other)[source]#

            Returns True if self is a subset of other.

            Examples

            >>> from sympy import Interval
            @@ -1004,7 +1004,7 @@ 
            Documentation Version
            -is_superset(other)[source]#
            +is_superset(other)[source]#

            Returns True if self is a superset of other.

            Examples

            >>> from sympy import Interval
            @@ -1018,19 +1018,19 @@ 
            Documentation Version
            -isdisjoint(other)[source]#
            +isdisjoint(other)[source]#

            Alias for is_disjoint()

            -issubset(other)[source]#
            +issubset(other)[source]#

            Alias for is_subset()

            -issuperset(other)[source]#
            +issuperset(other)[source]#

            Alias for is_superset()

            @@ -1110,7 +1110,7 @@
            Documentation Version
            -powerset()[source]#
            +powerset()[source]#

            Find the Power set of self.

            Examples

            >>> from sympy import EmptySet, FiniteSet, Interval
            @@ -1159,7 +1159,7 @@ 
            Documentation Version
            -symmetric_difference(other)[source]#
            +symmetric_difference(other)[source]#

            Returns symmetric difference of self and other.

            Examples

            >>> from sympy import Interval, S
            @@ -1185,7 +1185,7 @@ 
            Documentation Version
            -union(other)[source]#
            +union(other)[source]#

            Returns the union of self and other.

            Examples

            As a shortcut it is possible to use the + operator:

            @@ -1211,7 +1211,7 @@
            Documentation Version
            -sympy.sets.sets.imageset(*args)[source]#
            +sympy.sets.sets.imageset(*args)[source]#

            Return an image of the set under transformation f.

            Explanation

            If this function cannot compute the image, it returns an @@ -1262,7 +1262,7 @@

            Documentation Version

            Elementary Sets#

            -class sympy.sets.sets.Interval(start, end, left_open=False, right_open=False)[source]#
            +class sympy.sets.sets.Interval(start, end, left_open=False, right_open=False)[source]#

            Represents a real interval as a Set.

            Usage:

            Returns an interval with end points start and end.

            @@ -1306,19 +1306,19 @@

            Elementary Sets
            -classmethod Lopen(a, b)[source]#
            +classmethod Lopen(a, b)[source]#

            Return an interval not including the left boundary.

            -classmethod Ropen(a, b)[source]#
            +classmethod Ropen(a, b)[source]#

            Return an interval not including the right boundary.

            -as_relational(x)[source]#
            +as_relational(x)[source]#

            Rewrite an interval in terms of inequalities and logic operators.

            @@ -1363,7 +1363,7 @@

            Elementary Sets
            -classmethod open(a, b)[source]#
            +classmethod open(a, b)[source]#

            Return an interval including neither boundary.

            @@ -1398,7 +1398,7 @@

            Elementary Sets
            -class sympy.sets.sets.FiniteSet(*args, **kwargs)[source]#
            +class sympy.sets.sets.FiniteSet(*args, **kwargs)[source]#

            Represents a finite set of Sympy expressions.

            Examples

            >>> from sympy import FiniteSet, Symbol, Interval, Naturals0
            @@ -1429,7 +1429,7 @@ 

            Elementary Sets
            -as_relational(symbol)[source]#
            +as_relational(symbol)[source]#

            Rewrite a FiniteSet in terms of equalities and logic operators.

            @@ -1440,7 +1440,7 @@

            Elementary Sets#

            -class sympy.sets.sets.Union(*args, **kwargs)[source]#
            +class sympy.sets.sets.Union(*args, **kwargs)[source]#

            Represents a union of sets as a Set.

            Examples

            >>> from sympy import Union, Interval
            @@ -1467,7 +1467,7 @@ 

            Compound Sets
            -as_relational(symbol)[source]#
            +as_relational(symbol)[source]#

            Rewrite a Union in terms of equalities and logic operators.

            @@ -1475,7 +1475,7 @@

            Compound Sets
            -class sympy.sets.sets.Intersection(*args, evaluate=None)[source]#
            +class sympy.sets.sets.Intersection(*args, evaluate=None)[source]#

            Represents an intersection of sets as a Set.

            Examples

            >>> from sympy import Intersection, Interval
            @@ -1501,7 +1501,7 @@ 

            Compound Sets
            -as_relational(symbol)[source]#
            +as_relational(symbol)[source]#

            Rewrite an Intersection in terms of equalities and logic operators

            @@ -1509,7 +1509,7 @@

            Compound Sets
            -class sympy.sets.sets.ProductSet(*sets, **assumptions)[source]#
            +class sympy.sets.sets.ProductSet(*sets, **assumptions)[source]#

            Represents a Cartesian Product of Sets.

            Explanation

            Returns a Cartesian product given several sets as either an iterable @@ -1574,7 +1574,7 @@

            Compound Sets
            -class sympy.sets.sets.Complement(a, b, evaluate=True)[source]#
            +class sympy.sets.sets.Complement(a, b, evaluate=True)[source]#

            Represents the set difference or relative complement of a set with another set.

            @@ -1601,14 +1601,14 @@

            Compound Sets
            -as_relational(symbol)[source]#
            +as_relational(symbol)[source]#

            Rewrite a complement in terms of equalities and logic operators

            -static reduce(A, B)[source]#
            +static reduce(A, B)[source]#

            Simplify a Complement.

            @@ -1616,7 +1616,7 @@

            Compound Sets
            -class sympy.sets.sets.SymmetricDifference(a, b, evaluate=True)[source]#
            +class sympy.sets.sets.SymmetricDifference(a, b, evaluate=True)[source]#

            Represents the set of elements which are in either of the sets and not in their intersection.

            Examples

            @@ -1638,7 +1638,7 @@

            Compound Sets
            -as_relational(symbol)[source]#
            +as_relational(symbol)[source]#

            Rewrite a symmetric_difference in terms of equalities and logic operators

            @@ -1647,7 +1647,7 @@

            Compound Sets
            -class sympy.sets.sets.DisjointUnion(*sets)[source]#
            +class sympy.sets.sets.DisjointUnion(*sets)[source]#

            Represents the disjoint union (also known as the external disjoint union) of a finite number of sets.

            Examples

            @@ -1674,7 +1674,7 @@

            Compound Sets#

            -class sympy.sets.sets.EmptySet[source]#
            +class sympy.sets.sets.EmptySet[source]#

            Represents the empty set. The empty set is available as a singleton as S.EmptySet.

            Examples

            @@ -1702,7 +1702,7 @@

            Singleton Sets
            -class sympy.sets.sets.UniversalSet[source]#
            +class sympy.sets.sets.UniversalSet[source]#

            Represents the set of all things. The universal set is available as a singleton as S.UniversalSet.

            Examples

            @@ -1733,7 +1733,7 @@

            Singleton Sets

            Special Sets#

            -class sympy.sets.fancysets.Rationals[source]#
            +class sympy.sets.fancysets.Rationals[source]#

            Represents the rational numbers. This set is also available as the singleton S.Rationals.

            Examples

            @@ -1749,7 +1749,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.Naturals[source]#
            +class sympy.sets.fancysets.Naturals[source]#

            Represents the natural numbers (or counting numbers) which are all positive integers starting from 1. This set is also available as the singleton S.Naturals.

            @@ -1781,7 +1781,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.Naturals0[source]#
            +class sympy.sets.fancysets.Naturals0[source]#

            Represents the whole numbers which are all the non-negative integers, inclusive of zero.

            @@ -1797,7 +1797,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.Integers[source]#
            +class sympy.sets.fancysets.Integers[source]#

            Represents all integers: positive, negative and zero. This set is also available as the singleton S.Integers.

            Examples

            @@ -1832,7 +1832,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.Reals[source]#
            +class sympy.sets.fancysets.Reals[source]#

            Represents all real numbers from negative infinity to positive infinity, including all integer, rational and irrational numbers. @@ -1859,7 +1859,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.Complexes[source]#
            +class sympy.sets.fancysets.Complexes[source]#

            The Set of all complex numbers

            Examples

            >>> from sympy import S, I
            @@ -1877,7 +1877,7 @@ 

            Singleton Sets
            -class sympy.sets.fancysets.ImageSet(flambda, *sets)[source]#
            +class sympy.sets.fancysets.ImageSet(flambda, *sets)[source]#

            Image of a set under a mathematical function. The transformation must be given as a Lambda function which has as many arguments as the elements of the set upon which it operates, e.g. 1 argument @@ -1935,7 +1935,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.Range(*args)[source]#
            +class sympy.sets.fancysets.Range(*args)[source]#

            Represents a range of integers. Can be called as Range(stop), Range(start, stop), or Range(start, stop, step); when step is not given it defaults to 1.

            @@ -2017,7 +2017,7 @@

            Singleton Sets
            -as_relational(x)[source]#
            +as_relational(x)[source]#

            Rewrite a Range in terms of equalities and logic operators.

            @@ -2037,7 +2037,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.ComplexRegion(sets, polar=False)[source]#
            +class sympy.sets.fancysets.ComplexRegion(sets, polar=False)[source]#

            Represents the Set of all Complex Numbers. It can represent a region of Complex Plane in both the standard forms Polar and Rectangular coordinates.

            @@ -2165,7 +2165,7 @@

            Singleton Sets
            -classmethod from_real(sets)[source]#
            +classmethod from_real(sets)[source]#

            Converts given subset of real numbers to a complex region.

            Examples

            >>> from sympy import Interval, ComplexRegion
            @@ -2218,7 +2218,7 @@ 

            Singleton Sets
            -class sympy.sets.fancysets.CartesianComplexRegion(sets)[source]#
            +class sympy.sets.fancysets.CartesianComplexRegion(sets)[source]#

            Set representing a square region of the complex plane.

            @@ -2241,7 +2241,7 @@

            Singleton Sets
            -class sympy.sets.fancysets.PolarComplexRegion(sets)[source]#
            +class sympy.sets.fancysets.PolarComplexRegion(sets)[source]#

            Set representing a polar region of the complex plane.

            @@ -2266,7 +2266,7 @@

            Singleton Sets
            -sympy.sets.fancysets.normalize_theta_set(theta)[source]#
            +sympy.sets.fancysets.normalize_theta_set(theta)[source]#

            Normalize a Real Set \(theta\) in the interval \([0, 2\pi)\). It returns a normalized value of theta in the Set. For Interval, a maximum of one cycle \([0, 2\pi]\), is returned i.e. for theta equal to \([0, 10\pi]\), @@ -2313,7 +2313,7 @@

            Singleton Sets

            Power sets#

            -class sympy.sets.powerset.PowerSet(arg, evaluate=None)[source]#
            +class sympy.sets.powerset.PowerSet(arg, evaluate=None)[source]#

            A symbolic object representing a power set.

            Parameters:
            @@ -2379,7 +2379,7 @@

            Singleton Sets

            Condition Sets#

            -class sympy.sets.conditionset.ConditionSet(sym, condition, base_set=UniversalSet)[source]#
            +class sympy.sets.conditionset.ConditionSet(sym, condition, base_set=UniversalSet)[source]#

            Set of elements which satisfies a given condition.

            @@ -2449,7 +2449,7 @@

            Singleton Sets
            -class sympy.sets.conditionset.Contains(x, s, evaluate=None)[source]#
            +class sympy.sets.conditionset.Contains(x, s, evaluate=None)[source]#

            Asserts that x is an element of the set S.

            Examples

            >>> from sympy import Symbol, Integer, S, Contains
            @@ -2476,7 +2476,7 @@ 

            Singleton Sets#

            -class sympy.sets.conditionset.SetKind(element_kind=None)[source]#
            +class sympy.sets.conditionset.SetKind(element_kind=None)[source]#

            SetKind is kind for all Sets

            Every instance of Set will have kind SetKind parametrised by the kind of the elements of the Set. The kind of the elements might be diff --git a/dev/modules/simplify/fu.html b/dev/modules/simplify/fu.html index b00ff6f399e..b67de63e0dd 100644 --- a/dev/modules/simplify/fu.html +++ b/dev/modules/simplify/fu.html @@ -908,14 +908,14 @@

            Hongguang Fu’s Trigonometric Simplification#

            -sympy.simplify.fu.TR0(rv)[source]#
            +sympy.simplify.fu.TR0(rv)[source]#

            Simplification of rational polynomials, trying to simplify the expression, e.g. combine things like 3*x + 2*x, etc….

            -sympy.simplify.fu.TR1(rv)[source]#
            +sympy.simplify.fu.TR1(rv)[source]#

            Replace sec, csc with 1/cos, 1/sin

            Examples

            >>> from sympy.simplify.fu import TR1, sec, csc
            @@ -928,7 +928,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR2(rv)[source]#
            +sympy.simplify.fu.TR2(rv)[source]#

            Replace tan and cot with sin/cos and cos/sin

            Examples

            >>> from sympy.simplify.fu import TR2
            @@ -946,7 +946,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR2i(rv, half=False)[source]#
            +sympy.simplify.fu.TR2i(rv, half=False)[source]#
            Converts ratios involving sin and cos as follows::

            sin(x)/cos(x) -> tan(x) sin(x)/(cos(x) + 1) -> tan(x/2) if half=True

            @@ -976,7 +976,7 @@

            Rules#<
            -sympy.simplify.fu.TR3(rv)[source]#
            +sympy.simplify.fu.TR3(rv)[source]#

            Induced formula: example sin(-a) = -sin(a)

            Examples

            >>> from sympy.simplify.fu import TR3
            @@ -995,7 +995,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR4(rv)[source]#
            +sympy.simplify.fu.TR4(rv)[source]#

            Identify values of special angles.

            A= 0 Pi/6 Pi/4 Pi/3 Pi/2

            sin(a) 0 1/2 sqrt(2)/2 sqrt(3)/2 1 @@ -1018,7 +1018,7 @@

            Rules#<
            -sympy.simplify.fu.TR5(rv, max=4, pow=False)[source]#
            +sympy.simplify.fu.TR5(rv, max=4, pow=False)[source]#

            Replacement of sin**2 with 1 - cos(x)**2.

            See _TR56 docstring for advanced use of max and pow.

            Examples

            @@ -1037,7 +1037,7 @@

            Rules#<
            -sympy.simplify.fu.TR6(rv, max=4, pow=False)[source]#
            +sympy.simplify.fu.TR6(rv, max=4, pow=False)[source]#

            Replacement of cos**2 with 1 - sin(x)**2.

            See _TR56 docstring for advanced use of max and pow.

            Examples

            @@ -1056,7 +1056,7 @@

            Rules#<
            -sympy.simplify.fu.TR7(rv)[source]#
            +sympy.simplify.fu.TR7(rv)[source]#

            Lowering the degree of cos(x)**2.

            Examples

            >>> from sympy.simplify.fu import TR7
            @@ -1072,7 +1072,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR8(rv, first=True)[source]#
            +sympy.simplify.fu.TR8(rv, first=True)[source]#

            Converting products of cos and/or sin to a sum or difference of cos and or sin terms.

            Examples

            @@ -1090,7 +1090,7 @@

            Rules#<
            -sympy.simplify.fu.TR9(rv)[source]#
            +sympy.simplify.fu.TR9(rv)[source]#

            Sum of cos or sin terms as a product of cos or sin.

            Examples

            >>> from sympy.simplify.fu import TR9
            @@ -1113,7 +1113,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR10(rv, first=True)[source]#
            +sympy.simplify.fu.TR10(rv, first=True)[source]#

            Separate sums in cos and sin.

            Examples

            >>> from sympy.simplify.fu import TR10
            @@ -1131,7 +1131,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR10i(rv)[source]#
            +sympy.simplify.fu.TR10i(rv)[source]#

            Sum of products to function of sum.

            Examples

            >>> from sympy.simplify.fu import TR10i
            @@ -1151,7 +1151,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR11(rv, base=None)[source]#
            +sympy.simplify.fu.TR11(rv, base=None)[source]#

            Function of double angle to product. The base argument can be used to indicate what is the un-doubled argument, e.g. if 3*pi/7 is the base then cosine and sine functions with argument 6*pi/7 will be replaced.

            @@ -1193,7 +1193,7 @@

            Rules#<
            -sympy.simplify.fu.TR12(rv, first=True)[source]#
            +sympy.simplify.fu.TR12(rv, first=True)[source]#

            Separate sums in tan.

            Examples

            >>> from sympy.abc import x, y
            @@ -1207,7 +1207,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR12i(rv)[source]#
            +sympy.simplify.fu.TR12i(rv)[source]#

            Combine tan arguments as (tan(y) + tan(x))/(tan(x)*tan(y) - 1) -> -tan(x + y).

            Examples

            @@ -1230,7 +1230,7 @@

            Rules#<
            -sympy.simplify.fu.TR13(rv)[source]#
            +sympy.simplify.fu.TR13(rv)[source]#

            Change products of tan or cot.

            Examples

            >>> from sympy.simplify.fu import TR13
            @@ -1245,7 +1245,7 @@ 

            Rules#<
            -sympy.simplify.fu.TRmorrie(rv)[source]#
            +sympy.simplify.fu.TRmorrie(rv)[source]#

            Returns cos(x)*cos(2*x)*…*cos(2**(k-1)*x) -> sin(2**k*x)/(2**k*sin(x))

            Examples

            >>> from sympy.simplify.fu import TRmorrie, TR8, TR3
            @@ -1306,7 +1306,7 @@ 

            Rules#<
            -sympy.simplify.fu.TR14(rv, first=True)[source]#
            +sympy.simplify.fu.TR14(rv, first=True)[source]#

            Convert factored powers of sin and cos identities into simpler expressions.

            Examples

            @@ -1328,7 +1328,7 @@

            Rules#<
            -sympy.simplify.fu.TR15(rv, max=4, pow=False)[source]#
            +sympy.simplify.fu.TR15(rv, max=4, pow=False)[source]#

            Convert sin(x)**-2 to 1 + cot(x)**2.

            See _TR56 docstring for advanced use of max and pow.

            Examples

            @@ -1343,7 +1343,7 @@

            Rules#<
            -sympy.simplify.fu.TR16(rv, max=4, pow=False)[source]#
            +sympy.simplify.fu.TR16(rv, max=4, pow=False)[source]#

            Convert cos(x)**-2 to 1 + tan(x)**2.

            See _TR56 docstring for advanced use of max and pow.

            Examples

            @@ -1358,7 +1358,7 @@

            Rules#<
            -sympy.simplify.fu.TR111(rv)[source]#
            +sympy.simplify.fu.TR111(rv)[source]#

            Convert f(x)**-i to g(x)**i where either i is an integer or the base is positive and f, g are: tan, cot; sin, csc; or cos, sec.

            Examples

            @@ -1373,7 +1373,7 @@

            Rules#<
            -sympy.simplify.fu.TR22(rv, max=4, pow=False)[source]#
            +sympy.simplify.fu.TR22(rv, max=4, pow=False)[source]#

            Convert tan(x)**2 to sec(x)**2 - 1 and cot(x)**2 to csc(x)**2 - 1.

            See _TR56 docstring for advanced use of max and pow.

            Examples

            @@ -1390,7 +1390,7 @@

            Rules#<
            -sympy.simplify.fu.TRpower(rv)[source]#
            +sympy.simplify.fu.TRpower(rv)[source]#

            Convert sin(x)**n and cos(x)**n with positive n to sums.

            Examples

            >>> from sympy.simplify.fu import TRpower
            @@ -1413,7 +1413,7 @@ 

            Rules#<
            -sympy.simplify.fu.fu(rv, measure=<function <lambda>>)[source]#
            +sympy.simplify.fu.fu(rv, measure=<function <lambda>>)[source]#

            Attempt to simplify expression by using transformation rules given in the algorithm by Fu et al.

            fu() will try to minimize the objective function measure. diff --git a/dev/modules/simplify/simplify.html b/dev/modules/simplify/simplify.html index c074586c4e0..d9a2b64734b 100644 --- a/dev/modules/simplify/simplify.html +++ b/dev/modules/simplify/simplify.html @@ -741,7 +741,7 @@

            Documentation Version

            Simplify#

            -sympy.simplify.simplify.simplify(expr, ratio=1.7, measure=<function count_ops>, rational=False, inverse=False, doit=True, **kwargs)[source]#
            +sympy.simplify.simplify.simplify(expr, ratio=1.7, measure=<function count_ops>, rational=False, inverse=False, doit=True, **kwargs)[source]#

            Simplifies the given expression.

            Explanation

            Simplification is not a well defined term and the exact strategies @@ -889,7 +889,7 @@

            Documentation Version
            -sympy.simplify.simplify.separatevars(expr, symbols=[], dict=False, force=False)[source]#
            +sympy.simplify.simplify.separatevars(expr, symbols=[], dict=False, force=False)[source]#

            Separates variables in an expression, if possible. By default, it separates with respect to all symbols in an expression and collects constant coefficients that are @@ -949,7 +949,7 @@

            Documentation Version
            -sympy.simplify.simplify.nthroot(expr, n, max_len=4, prec=15)[source]#
            +sympy.simplify.simplify.nthroot(expr, n, max_len=4, prec=15)[source]#

            Compute a real nth-root of a sum of surds.

            Parameters:
            @@ -973,7 +973,7 @@
            Documentation Version
            -sympy.simplify.simplify.kroneckersimp(expr)[source]#
            +sympy.simplify.simplify.kroneckersimp(expr)[source]#

            Simplify expressions with KroneckerDelta.

            The only simplification currently attempted is to identify multiplicative cancellation:

            Examples

            @@ -987,7 +987,7 @@
            Documentation Version
            -sympy.simplify.simplify.besselsimp(expr)[source]#
            +sympy.simplify.simplify.besselsimp(expr)[source]#

            Simplify bessel-type functions.

            Explanation

            This routine tries to simplify bessel-type functions. Currently it only @@ -1014,7 +1014,7 @@

            Documentation Version
            -sympy.simplify.simplify.hypersimp(f, k)[source]#
            +sympy.simplify.simplify.hypersimp(f, k)[source]#

            Given combinatorial term f(k) simplify its consecutive term ratio i.e. f(k+1)/f(k). The input term can be composed of functions and integer sequences which have equivalent representation in terms @@ -1042,7 +1042,7 @@

            Documentation Version
            -sympy.simplify.simplify.hypersimilar(f, g, k)[source]#
            +sympy.simplify.simplify.hypersimilar(f, g, k)[source]#

            Returns True if f and g are hyper-similar.

            Explanation

            Similarity in hypergeometric sense means that a quotient of @@ -1053,7 +1053,7 @@

            Documentation Version
            -sympy.simplify.simplify.nsimplify(expr, constants=(), tolerance=None, full=False, rational=None, rational_conversion='base10')[source]#
            +sympy.simplify.simplify.nsimplify(expr, constants=(), tolerance=None, full=False, rational=None, rational_conversion='base10')[source]#

            Find a simple representation for a number or, if there are free symbols or if rational=True, then replace Floats with their Rational equivalents. If no change is made and rational is not False then Floats will at least be @@ -1099,7 +1099,7 @@

            Documentation Version
            -sympy.simplify.simplify.posify(eq)[source]#
            +sympy.simplify.simplify.posify(eq)[source]#

            Return eq (with generic symbols made positive) and a dictionary containing the mapping between the old and new symbols.

            @@ -1141,7 +1141,7 @@
            Documentation Version
            -sympy.simplify.simplify.logcombine(expr, force=False)[source]#
            +sympy.simplify.simplify.logcombine(expr, force=False)[source]#

            Takes logarithms and combines them using the following rules:

            • log(x) + log(y) == log(x*y) if both are positive

            • @@ -1188,7 +1188,7 @@
              Documentation Version
              -sympy.simplify.radsimp.radsimp(expr, symbolic=True, max_terms=4)[source]#
              +sympy.simplify.radsimp.radsimp(expr, symbolic=True, max_terms=4)[source]#

              Rationalize the denominator by removing square roots.

              Explanation

              The expression returned from radsimp must be used with caution @@ -1262,7 +1262,7 @@

              Documentation Version
              -sympy.simplify.radsimp.rad_rationalize(num, den)[source]#
              +sympy.simplify.radsimp.rad_rationalize(num, den)[source]#

              Rationalize num/den by removing square roots in the denominator; num and den are sum of terms whose squares are positive rationals.

              Examples

              @@ -1276,7 +1276,7 @@
              Documentation Version
              -sympy.simplify.radsimp.collect(expr, syms, func=None, evaluate=None, exact=False, distribute_order_term=True)[source]#
              +sympy.simplify.radsimp.collect(expr, syms, func=None, evaluate=None, exact=False, distribute_order_term=True)[source]#

              Collect additive terms of an expression.

              Explanation

              This function collects additive terms of an expression with respect @@ -1423,7 +1423,7 @@

              Documentation Version
              -sympy.simplify.radsimp.rcollect(expr, *vars)[source]#
              +sympy.simplify.radsimp.rcollect(expr, *vars)[source]#

              Recursively collect sums in an expression.

              Examples

              >>> from sympy.simplify import rcollect
              @@ -1445,7 +1445,7 @@ 
              Documentation Version
              -sympy.simplify.radsimp.collect_sqrt(expr, evaluate=None)[source]#
              +sympy.simplify.radsimp.collect_sqrt(expr, evaluate=None)[source]#

              Return expr with terms having common square roots collected together. If evaluate is False a count indicating the number of sqrt-containing terms will be returned and, if non-zero, the terms of the Add will be @@ -1487,7 +1487,7 @@

              Documentation Version
              -sympy.simplify.radsimp.collect_const(expr, *vars, Numbers=True)[source]#
              +sympy.simplify.radsimp.collect_const(expr, *vars, Numbers=True)[source]#

              A non-greedy collection of terms with similar number coefficients in an Add expr. If vars is given then only those constants will be targeted. Although any Number can also be targeted, if this is not @@ -1554,7 +1554,7 @@

              Documentation Version
              -sympy.simplify.radsimp.fraction(expr, exact=False)[source]#
              +sympy.simplify.radsimp.fraction(expr, exact=False)[source]#

              Returns a pair with expression’s numerator and denominator. If the given expression is not a fraction then this function will return the tuple (expr, 1).

              @@ -1617,7 +1617,7 @@
              Documentation Version
              -sympy.simplify.ratsimp.ratsimp(expr)[source]#
              +sympy.simplify.ratsimp.ratsimp(expr)[source]#

              Put an expression over a common denominator, cancel and reduce.

              Examples

              >>> from sympy import ratsimp
              @@ -1630,7 +1630,7 @@ 
              Documentation Version
              -sympy.simplify.ratsimp.ratsimpmodprime(expr, G, *gens, quick=True, polynomial=False, **args)[source]#
              +sympy.simplify.ratsimp.ratsimpmodprime(expr, G, *gens, quick=True, polynomial=False, **args)[source]#

              Simplifies a rational expression expr modulo the prime ideal generated by G. G should be a Groebner basis of the ideal.

              @@ -1661,7 +1661,7 @@
              Documentation Version
              -sympy.simplify.trigsimp.trigsimp(expr, inverse=False, **opts)[source]#
              +sympy.simplify.trigsimp.trigsimp(expr, inverse=False, **opts)[source]#

              Returns a reduced expression by using known trig identities.

              Parameters:
              @@ -1729,7 +1729,7 @@
              Documentation Version
              -sympy.simplify.powsimp.powsimp(expr, deep=False, combine='all', force=False, measure=<function count_ops>)[source]#
              +sympy.simplify.powsimp.powsimp(expr, deep=False, combine='all', force=False, measure=<function count_ops>)[source]#

              Reduce expression by combining powers with similar bases and exponents.

              Explanation

              If deep is True then powsimp() will also simplify arguments of @@ -1809,7 +1809,7 @@

              Documentation Version
              -sympy.simplify.powsimp.powdenest(eq, force=False, polar=False)[source]#
              +sympy.simplify.powsimp.powdenest(eq, force=False, polar=False)[source]#

              Collect exponents on powers as assumptions allow.

              Explanation

              @@ -1903,7 +1903,7 @@
              Documentation Version
              -sympy.simplify.combsimp.combsimp(expr)[source]#
              +sympy.simplify.combsimp.combsimp(expr)[source]#

              Simplify combinatorial expressions.

              Explanation

              This function takes as input an expression containing factorials, @@ -1935,7 +1935,7 @@

              Documentation Version
              -sympy.simplify.sqrtdenest.sqrtdenest(expr, max_iter=3)[source]#
              +sympy.simplify.sqrtdenest.sqrtdenest(expr, max_iter=3)[source]#

              Denests sqrts in an expression that contain other square roots if possible, otherwise returns the expr unchanged. This is based on the algorithms of [1].

              @@ -1966,7 +1966,7 @@
              Documentation Version
              -sympy.simplify.cse_main.cse(exprs, symbols=None, optimizations=None, postprocess=None, order='canonical', ignore=(), list=True)[source]#
              +sympy.simplify.cse_main.cse(exprs, symbols=None, optimizations=None, postprocess=None, order='canonical', ignore=(), list=True)[source]#

              Perform common subexpression elimination on an expression.

              Parameters:
              @@ -2062,7 +2062,7 @@
              Documentation Version
              -sympy.simplify.cse_main.opt_cse(exprs, order='canonical')[source]#
              +sympy.simplify.cse_main.opt_cse(exprs, order='canonical')[source]#

              Find optimization opportunities in Adds, Muls, Pows and negative coefficient Muls.

              @@ -2097,7 +2097,7 @@
              Documentation Version
              -sympy.simplify.cse_main.tree_cse(exprs, symbols, opt_subs=None, order='canonical', ignore=())[source]#
              +sympy.simplify.cse_main.tree_cse(exprs, symbols, opt_subs=None, order='canonical', ignore=())[source]#

              Perform raw CSE on expression tree, taking opt_subs into account.

              Parameters:
              @@ -2129,7 +2129,7 @@
              Documentation Version
              -sympy.simplify.hyperexpand.hyperexpand(f, allow_hyper=False, rewrite='default', place=None)[source]#
              +sympy.simplify.hyperexpand.hyperexpand(f, allow_hyper=False, rewrite='default', place=None)[source]#

              Expand hypergeometric functions. If allow_hyper is True, allow partial simplification (that is a result different from input, but still containing hypergeometric functions).

              @@ -2154,7 +2154,7 @@
              Documentation Version
              -class sympy.simplify.epathtools.EPath(path)[source]#
              +class sympy.simplify.epathtools.EPath(path)[source]#

              Manipulate expressions using paths.

              EPath grammar in EBNF notation:

              literal   ::= /[A-Za-z_][A-Za-z_0-9]*/
              @@ -2172,7 +2172,7 @@ 
              Documentation Version

              See the docstring of the epath() function.

              -apply(expr, func, args=None, kwargs=None)[source]#
              +apply(expr, func, args=None, kwargs=None)[source]#

              Modify parts of an expression selected by a path.

              Examples

              >>> from sympy.simplify.epathtools import EPath
              @@ -2200,7 +2200,7 @@ 
              Documentation Version
              -select(expr)[source]#
              +select(expr)[source]#

              Retrieve parts of an expression selected by a path.

              Examples

              >>> from sympy.simplify.epathtools import EPath
              @@ -2230,7 +2230,7 @@ 
              Documentation Version
              -sympy.simplify.epathtools.epath(path, expr=None, func=None, args=None, kwargs=None)[source]#
              +sympy.simplify.epathtools.epath(path, expr=None, func=None, args=None, kwargs=None)[source]#

              Manipulate parts of an expression selected by a path.

              Parameters:
              diff --git a/dev/modules/solvers/diophantine.html b/dev/modules/solvers/diophantine.html index ad1ec413e56..e8ddb1b6ab3 100644 --- a/dev/modules/solvers/diophantine.html +++ b/dev/modules/solvers/diophantine.html @@ -1071,7 +1071,7 @@

              User Functionsfrom sympy import *:

              -sympy.solvers.diophantine.diophantine.diophantine(eq, param=t, syms=None, permute=False)[source]#
              +sympy.solvers.diophantine.diophantine.diophantine(eq, param=t, syms=None, permute=False)[source]#

              Simplify the solution procedure of diophantine equation eq by converting it into a product of terms which should equal zero.

              Explanation

              @@ -1129,7 +1129,7 @@

              User Functionsfrom sympy.solvers.diophantine import *:

              -sympy.solvers.diophantine.diophantine.classify_diop(eq, _dict=True)[source]#
              +sympy.solvers.diophantine.diophantine.classify_diop(eq, _dict=True)[source]#
              @@ -1138,7 +1138,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_solve(eq, param=t)[source]#
              +sympy.solvers.diophantine.diophantine.diop_solve(eq, param=t)[source]#

              Solves the diophantine equation eq.

              Explanation

              Unlike diophantine(), factoring of eq is not attempted. Uses @@ -1174,7 +1174,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_linear(eq, param=t)[source]#
              +sympy.solvers.diophantine.diophantine.diop_linear(eq, param=t)[source]#

              Solves linear diophantine equations.

              A linear diophantine equation is an equation of the form \(a_{1}x_{1} + a_{2}x_{2} + .. + a_{n}x_{n} = 0\) where \(a_{1}, a_{2}, ..a_{n}\) are @@ -1206,7 +1206,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.base_solution_linear(c, a, b, t=None)[source]#
              +sympy.solvers.diophantine.diophantine.base_solution_linear(c, a, b, t=None)[source]#

              Return the base solution for the linear equation, \(ax + by = c\).

              Explanation

              Used by diop_linear() to find the base solution of a linear @@ -1232,7 +1232,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_quadratic(eq, param=t)[source]#
              +sympy.solvers.diophantine.diophantine.diop_quadratic(eq, param=t)[source]#

              Solves quadratic diophantine equations.

              i.e. equations of the form \(Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0\). Returns a set containing the tuples \((x, y)\) which contains the solutions. If there @@ -1272,7 +1272,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_DN(D, N, t=t)[source]#
              +sympy.solvers.diophantine.diophantine.diop_DN(D, N, t=t)[source]#

              Solves the equation \(x^2 - Dy^2 = N\).

              Explanation

              Mainly concerned with the case \(D > 0, D\) is not a perfect square, @@ -1319,7 +1319,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.cornacchia(a, b, m)[source]#
              +sympy.solvers.diophantine.diophantine.cornacchia(a, b, m)[source]#

              Solves \(ax^2 + by^2 = m\) where \(\gcd(a, b) = 1 = gcd(a, m)\) and \(a, b > 0\).

              Explanation

              Uses the algorithm due to Cornacchia. The method only finds primitive @@ -1358,7 +1358,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_bf_DN(D, N, t=t)[source]#
              +sympy.solvers.diophantine.diophantine.diop_bf_DN(D, N, t=t)[source]#

              Uses brute force to solve the equation, \(x^2 - Dy^2 = N\).

              Explanation

              Mainly concerned with the generalized Pell equation which is the case when @@ -1397,7 +1397,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.transformation_to_DN(eq)[source]#
              +sympy.solvers.diophantine.diophantine.transformation_to_DN(eq)[source]#

              This function transforms general quadratic, \(ax^2 + bxy + cy^2 + dx + ey + f = 0\) to more easy to deal with \(X^2 - DY^2 = N\) form.

              @@ -1469,7 +1469,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.transformation_to_normal(eq)[source]#
              +sympy.solvers.diophantine.diophantine.transformation_to_normal(eq)[source]#

              Returns the transformation Matrix that converts a general ternary quadratic equation eq (\(ax^2 + by^2 + cz^2 + dxy + eyz + fxz\)) to a form without cross terms: \(ax^2 + by^2 + cz^2 = 0\). This is @@ -1479,7 +1479,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.find_DN(eq)[source]#
              +sympy.solvers.diophantine.diophantine.find_DN(eq)[source]#

              This function returns a tuple, \((D, N)\) of the simplified form, \(x^2 - Dy^2 = N\), corresponding to the general quadratic, \(ax^2 + bxy + cy^2 + dx + ey + f = 0\).

              @@ -1515,7 +1515,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_ternary_quadratic(eq, parameterize=False)[source]#
              +sympy.solvers.diophantine.diophantine.diop_ternary_quadratic(eq, parameterize=False)[source]#

              Solves the general quadratic ternary form, \(ax^2 + by^2 + cz^2 + fxy + gyz + hxz = 0\).

              Returns a tuple \((x, y, z)\) which is a base solution for the above @@ -1543,7 +1543,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.square_factor(a)[source]#
              +sympy.solvers.diophantine.diophantine.square_factor(a)[source]#

              Returns an integer \(c\) s.t. \(a = c^2k, \ c,k \in Z\). Here \(k\) is square free. \(a\) can be given as an integer or a dictionary of factors.

              Examples

              @@ -1566,7 +1566,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.descent(A, B)[source]#
              +sympy.solvers.diophantine.diophantine.descent(A, B)[source]#

              Returns a non-trivial solution, (x, y, z), to \(x^2 = Ay^2 + Bz^2\) using Lagrange’s descent method with lattice-reduction. \(A\) and \(B\) are assumed to be valid for such a solution to exist.

              @@ -1595,7 +1595,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_general_pythagorean(eq, param=m)[source]#
              +sympy.solvers.diophantine.diophantine.diop_general_pythagorean(eq, param=m)[source]#

              Solves the general pythagorean equation, \(a_{1}^2x_{1}^2 + a_{2}^2x_{2}^2 + . . . + a_{n}^2x_{n}^2 - a_{n + 1}^2x_{n + 1}^2 = 0\).

              Returns a tuple which contains a parametrized solution to the equation, @@ -1617,7 +1617,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_general_sum_of_squares(eq, limit=1)[source]#
              +sympy.solvers.diophantine.diophantine.diop_general_sum_of_squares(eq, limit=1)[source]#

              Solves the equation \(x_{1}^2 + x_{2}^2 + . . . + x_{n}^2 - k = 0\).

              Returns at most limit number of solutions.

              Usage

              @@ -1647,7 +1647,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_general_sum_of_even_powers(eq, limit=1)[source]#
              +sympy.solvers.diophantine.diophantine.diop_general_sum_of_even_powers(eq, limit=1)[source]#

              Solves the equation \(x_{1}^e + x_{2}^e + . . . + x_{n}^e - k = 0\) where \(e\) is an even, integer power.

              Returns at most limit number of solutions.

              @@ -1670,7 +1670,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.power_representation(n, p, k, zeros=False)[source]#
              +sympy.solvers.diophantine.diophantine.power_representation(n, p, k, zeros=False)[source]#

              Returns a generator for finding k-tuples of integers, \((n_{1}, n_{2}, . . . n_{k})\), such that \(n = n_{1}^p + n_{2}^p + . . . n_{k}^p\).

              @@ -1714,7 +1714,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.partition(n, k=None, zeros=False)[source]#
              +sympy.solvers.diophantine.diophantine.partition(n, k=None, zeros=False)[source]#

              Returns a generator that can be used to generate partitions of an integer \(n\).

              Explanation

              @@ -1753,7 +1753,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.sum_of_three_squares(n)[source]#
              +sympy.solvers.diophantine.diophantine.sum_of_three_squares(n)[source]#

              Returns a 3-tuple \((a, b, c)\) such that \(a^2 + b^2 + c^2 = n\) and \(a, b, c \geq 0\).

              Returns None if \(n = 4^a(8m + 7)\) for some \(a, m \in \mathbb{Z}\). See @@ -1783,7 +1783,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.sum_of_four_squares(n)[source]#
              +sympy.solvers.diophantine.diophantine.sum_of_four_squares(n)[source]#

              Returns a 4-tuple \((a, b, c, d)\) such that \(a^2 + b^2 + c^2 + d^2 = n\).

              Here \(a, b, c, d \geq 0\).

              Usage

              @@ -1812,7 +1812,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.sum_of_powers(n, p, k, zeros=False)[source]#
              +sympy.solvers.diophantine.diophantine.sum_of_powers(n, p, k, zeros=False)[source]#

              Returns a generator for finding k-tuples of integers, \((n_{1}, n_{2}, . . . n_{k})\), such that \(n = n_{1}^p + n_{2}^p + . . . n_{k}^p\).

              @@ -1856,7 +1856,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.sum_of_squares(n, k, zeros=False)[source]#
              +sympy.solvers.diophantine.diophantine.sum_of_squares(n, k, zeros=False)[source]#

              Return a generator that yields the k-tuples of nonnegative values, the squares of which sum to n. If zeros is False (default) then the solution will not contain zeros. The nonnegative @@ -1899,7 +1899,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.merge_solution(var, var_t, solution)[source]#
              +sympy.solvers.diophantine.diophantine.merge_solution(var, var_t, solution)[source]#

              This is used to construct the full solution from the solutions of sub equations.

              Explanation

              @@ -1913,13 +1913,13 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.divisible(a, b)[source]#
              +sympy.solvers.diophantine.diophantine.divisible(a, b)[source]#

              Returns \(True\) if a is divisible by b and \(False\) otherwise.

              -sympy.solvers.diophantine.diophantine.PQa(P_0, Q_0, D)[source]#
              +sympy.solvers.diophantine.diophantine.PQa(P_0, Q_0, D)[source]#

              Returns useful information needed to solve the Pell equation.

              Explanation

              There are six sequences of integers defined related to the continued @@ -1954,7 +1954,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.equivalent(u, v, r, s, D, N)[source]#
              +sympy.solvers.diophantine.diophantine.equivalent(u, v, r, s, D, N)[source]#

              Returns True if two solutions \((u, v)\) and \((r, s)\) of \(x^2 - Dy^2 = N\) belongs to the same equivalence class and False otherwise.

              Explanation

              @@ -1987,7 +1987,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.parametrize_ternary_quadratic(eq)[source]#
              +sympy.solvers.diophantine.diophantine.parametrize_ternary_quadratic(eq)[source]#

              Returns the parametrized general solution for the ternary quadratic equation eq which has the form \(ax^2 + by^2 + cz^2 + fxy + gyz + hxz = 0\).

              @@ -2041,7 +2041,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.diop_ternary_quadratic_normal(eq, parameterize=False)[source]#
              +sympy.solvers.diophantine.diophantine.diop_ternary_quadratic_normal(eq, parameterize=False)[source]#

              Solves the quadratic ternary diophantine equation, \(ax^2 + by^2 + cz^2 = 0\).

              Explanation

              @@ -2067,7 +2067,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.ldescent(A, B)[source]#
              +sympy.solvers.diophantine.diophantine.ldescent(A, B)[source]#

              Return a non-trivial solution to \(w^2 = Ax^2 + By^2\) using Lagrange’s method; return None if there is no such solution. .

              @@ -2106,7 +2106,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.gaussian_reduce(w, a, b)[source]#
              +sympy.solvers.diophantine.diophantine.gaussian_reduce(w, a, b)[source]#

              Returns a reduced solution \((x, z)\) to the congruence \(X^2 - aZ^2 \equiv 0 \ (mod \ b)\) so that \(x^2 + |a|z^2\) is minimal.

              Details

              @@ -2128,7 +2128,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.holzer(x, y, z, a, b, c)[source]#
              +sympy.solvers.diophantine.diophantine.holzer(x, y, z, a, b, c)[source]#

              Simplify the solution \((x, y, z)\) of the equation \(ax^2 + by^2 = cz^2\) with \(a, b, c > 0\) and \(z^2 \geq \mid ab \mid\) to a new reduced solution \((x', y', z')\) such that \(z'^2 \leq \mid ab \mid\).

              @@ -2153,7 +2153,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.prime_as_sum_of_two_squares(p)[source]#
              +sympy.solvers.diophantine.diophantine.prime_as_sum_of_two_squares(p)[source]#

              Represent a prime \(p\) as a unique sum of two squares; this can only be done if the prime is congruent to 1 mod 4.

              Examples

              @@ -2179,7 +2179,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.sqf_normal(a, b, c, steps=False)[source]#
              +sympy.solvers.diophantine.diophantine.sqf_normal(a, b, c, steps=False)[source]#

              Return \(a', b', c'\), the coefficients of the square-free normal form of \(ax^2 + by^2 + cz^2 = 0\), where \(a', b', c'\) are pairwise prime. If \(steps\) is True then also return three tuples: @@ -2213,7 +2213,7 @@

              Internal Functions
              -sympy.solvers.diophantine.diophantine.reconstruct(A, B, z)[source]#
              +sympy.solvers.diophantine.diophantine.reconstruct(A, B, z)[source]#

              Reconstruct the \(z\) value of an equivalent solution of \(ax^2 + by^2 + cz^2\) from the \(z\) value of a solution of the square-free normal form of the equation, \(a'*x^2 + b'*y^2 + c'*z^2\), where \(a'\), \(b'\) and \(c'\) are square @@ -2226,7 +2226,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.DiophantineSolutionSet(symbols_seq, parameters)[source]#
              +class sympy.solvers.diophantine.diophantine.DiophantineSolutionSet(symbols_seq, parameters)[source]#

              Container for a set of solutions to a particular diophantine equation.

              The base representation is a set of tuples representing each of the solutions.

              @@ -2290,7 +2290,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.DiophantineEquationType(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.DiophantineEquationType(equation, free_symbols=None)[source]#

              Internal representation of a particular diophantine equation type.

              Parameters:
              @@ -2325,7 +2325,7 @@

              Internal Classes
              -matches()[source]#
              +matches()[source]#

              Determine whether the given equation can be matched to the particular equation type.

              @@ -2333,7 +2333,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.Univariate(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.Univariate(equation, free_symbols=None)[source]#

              Representation of a univariate diophantine equation.

              A univariate diophantine equation is an equation of the form \(a_{0} + a_{1}x + a_{2}x^2 + .. + a_{n}x^n = 0\) where \(a_{1}, a_{2}, ..a_{n}\) are @@ -2349,7 +2349,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.Linear(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.Linear(equation, free_symbols=None)[source]#

              Representation of a linear diophantine equation.

              A linear diophantine equation is an equation of the form \(a_{1}x_{1} + a_{2}x_{2} + .. + a_{n}x_{n} = 0\) where \(a_{1}, a_{2}, ..a_{n}\) are @@ -2373,7 +2373,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.BinaryQuadratic(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.BinaryQuadratic(equation, free_symbols=None)[source]#

              Representation of a binary quadratic diophantine equation.

              A binary quadratic diophantine equation is an equation of the form \(Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0\), where \(A, B, C, D, E, @@ -2408,14 +2408,14 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.InhomogeneousTernaryQuadratic(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.InhomogeneousTernaryQuadratic(equation, free_symbols=None)[source]#

              Representation of an inhomogeneous ternary quadratic.

              No solver is currently implemented for this equation type.

              -class sympy.solvers.diophantine.diophantine.HomogeneousTernaryQuadraticNormal(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.HomogeneousTernaryQuadraticNormal(equation, free_symbols=None)[source]#

              Representation of a homogeneous ternary quadratic normal diophantine equation.

              Examples

              >>> from sympy.abc import x, y, z
              @@ -2428,7 +2428,7 @@ 

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.HomogeneousTernaryQuadratic(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.HomogeneousTernaryQuadratic(equation, free_symbols=None)[source]#

              Representation of a homogeneous ternary quadratic diophantine equation.

              Examples

              >>> from sympy.abc import x, y, z
              @@ -2443,21 +2443,21 @@ 

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.InhomogeneousGeneralQuadratic(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.InhomogeneousGeneralQuadratic(equation, free_symbols=None)[source]#

              Representation of an inhomogeneous general quadratic.

              No solver is currently implemented for this equation type.

              -class sympy.solvers.diophantine.diophantine.HomogeneousGeneralQuadratic(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.HomogeneousGeneralQuadratic(equation, free_symbols=None)[source]#

              Representation of a homogeneous general quadratic.

              No solver is currently implemented for this equation type.

              -class sympy.solvers.diophantine.diophantine.GeneralSumOfSquares(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.GeneralSumOfSquares(equation, free_symbols=None)[source]#

              Representation of the diophantine equation

              \(x_{1}^2 + x_{2}^2 + . . . + x_{n}^2 - k = 0\).

              Details

              @@ -2489,7 +2489,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.GeneralPythagorean(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.GeneralPythagorean(equation, free_symbols=None)[source]#

              Representation of the general pythagorean equation, \(a_{1}^2x_{1}^2 + a_{2}^2x_{2}^2 + . . . + a_{n}^2x_{n}^2 - a_{n + 1}^2x_{n + 1}^2 = 0\).

              Examples

              @@ -2505,7 +2505,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.CubicThue(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.CubicThue(equation, free_symbols=None)[source]#

              Representation of a cubic Thue diophantine equation.

              A cubic Thue diophantine equation is a polynomial of the form \(f(x, y) = r\) of degree 3, where \(x\) and \(y\) are integers @@ -2523,7 +2523,7 @@

              Internal Classes
              -class sympy.solvers.diophantine.diophantine.GeneralSumOfEvenPowers(equation, free_symbols=None)[source]#
              +class sympy.solvers.diophantine.diophantine.GeneralSumOfEvenPowers(equation, free_symbols=None)[source]#

              Representation of the diophantine equation

              \(x_{1}^e + x_{2}^e + . . . + x_{n}^e - k = 0\)

              where \(e\) is an even, integer power.

              diff --git a/dev/modules/solvers/inequalities.html b/dev/modules/solvers/inequalities.html index b3198da2147..7a254611dbd 100644 --- a/dev/modules/solvers/inequalities.html +++ b/dev/modules/solvers/inequalities.html @@ -755,7 +755,7 @@
              Documentation Version

              -sympy.solvers.inequalities.solve_rational_inequalities(eqs)[source]#
              +sympy.solvers.inequalities.solve_rational_inequalities(eqs)[source]#

              Solve a system of rational inequalities with rational coefficients.

              Examples

              >>> from sympy.abc import x
              @@ -782,7 +782,7 @@ 
              Documentation Version
              -sympy.solvers.inequalities.solve_poly_inequality(poly, rel)[source]#
              +sympy.solvers.inequalities.solve_poly_inequality(poly, rel)[source]#

              Solve a polynomial inequality with rational coefficients.

              Examples

              >>> from sympy import solve_poly_inequality, Poly
              @@ -809,7 +809,7 @@ 
              Documentation Version
              -sympy.solvers.inequalities.solve_poly_inequalities(polys)[source]#
              +sympy.solvers.inequalities.solve_poly_inequalities(polys)[source]#

              Solve polynomial inequalities with rational coefficients.

              Examples

              >>> from sympy import Poly
              @@ -825,7 +825,7 @@ 
              Documentation Version
              -sympy.solvers.inequalities.reduce_rational_inequalities(exprs, gen, relational=True)[source]#
              +sympy.solvers.inequalities.reduce_rational_inequalities(exprs, gen, relational=True)[source]#

              Reduce a system of rational inequalities with rational coefficients.

              Examples

              >>> from sympy import Symbol
              @@ -859,7 +859,7 @@ 
              Documentation Version
              -sympy.solvers.inequalities.reduce_abs_inequality(expr, rel, gen)[source]#
              +sympy.solvers.inequalities.reduce_abs_inequality(expr, rel, gen)[source]#

              Reduce an inequality with nested absolute values.

              Examples

              >>> from sympy import reduce_abs_inequality, Abs, Symbol
              @@ -882,7 +882,7 @@ 
              Documentation Version
              -sympy.solvers.inequalities.reduce_abs_inequalities(exprs, gen)[source]#
              +sympy.solvers.inequalities.reduce_abs_inequalities(exprs, gen)[source]#

              Reduce a system of inequalities with nested absolute values.

              Examples

              >>> from sympy import reduce_abs_inequalities, Abs, Symbol
              @@ -906,7 +906,7 @@ 
              Documentation Version
              -sympy.solvers.inequalities.reduce_inequalities(inequalities, symbols=[])[source]#
              +sympy.solvers.inequalities.reduce_inequalities(inequalities, symbols=[])[source]#

              Reduce a system of inequalities with rational coefficients.

              Examples

              >>> from sympy.abc import x, y
              @@ -925,7 +925,7 @@ 
              Documentation Version
              -sympy.solvers.inequalities.solve_univariate_inequality(expr, gen, relational=True, domain=Reals, continuous=False)[source]#
              +sympy.solvers.inequalities.solve_univariate_inequality(expr, gen, relational=True, domain=Reals, continuous=False)[source]#

              Solves a real univariate inequality.

              Parameters:
              diff --git a/dev/modules/solvers/ode.html b/dev/modules/solvers/ode.html index cb81575e995..0bb6d68a1da 100644 --- a/dev/modules/solvers/ode.html +++ b/dev/modules/solvers/ode.html @@ -751,7 +751,7 @@
              Documentation Version
              intended for use by ordinary users of SymPy.

              -sympy.solvers.ode.dsolve(eq, func=None, hint='default', simplify=True, ics=None, xi=None, eta=None, x0=0, n=6, **kwargs)[source]#
              +sympy.solvers.ode.dsolve(eq, func=None, hint='default', simplify=True, ics=None, xi=None, eta=None, x0=0, n=6, **kwargs)[source]#

              Solves any (supported) kind of ordinary differential equation and system of ordinary differential equations.

              For Single Ordinary Differential Equation

              @@ -938,7 +938,7 @@
              Documentation Version
              -sympy.solvers.ode.systems.dsolve_system(eqs, funcs=None, t=None, ics=None, doit=False, simplify=True)[source]#
              +sympy.solvers.ode.systems.dsolve_system(eqs, funcs=None, t=None, ics=None, doit=False, simplify=True)[source]#

              Solves any(supported) system of Ordinary Differential Equations

              Parameters:
              @@ -1037,7 +1037,7 @@
              Documentation Version
              -sympy.solvers.ode.classify_ode(eq, func=None, dict=False, ics=None, *, prep=True, xi=None, eta=None, n=None, **kwargs)[source]#
              +sympy.solvers.ode.classify_ode(eq, func=None, dict=False, ics=None, *, prep=True, xi=None, eta=None, n=None, **kwargs)[source]#

              Returns a tuple of possible dsolve() classifications for an ODE.

              The tuple is ordered so that first item is the classification that @@ -1155,7 +1155,7 @@

              Documentation Version
              -sympy.solvers.ode.checkodesol(ode, sol, func=None, order='auto', solve_for_func=True)[source]#
              +sympy.solvers.ode.checkodesol(ode, sol, func=None, order='auto', solve_for_func=True)[source]#

              Substitutes sol into ode and checks that the result is 0.

              This works when func is one function, like \(f(x)\) or a list of functions like \([f(x), g(x)]\) when \(ode\) is a system of ODEs. sol can @@ -1216,7 +1216,7 @@

              Documentation Version
              -sympy.solvers.ode.homogeneous_order(eq, *symbols)[source]#
              +sympy.solvers.ode.homogeneous_order(eq, *symbols)[source]#

              Returns the order \(n\) if \(g\) is homogeneous and None if it is not homogeneous.

              Determines if a function is homogeneous and if so of what order. A @@ -1254,7 +1254,7 @@

              Documentation Version
              -sympy.solvers.ode.infinitesimals(eq, func=None, order=None, hint='default', match=None)[source]#
              +sympy.solvers.ode.infinitesimals(eq, func=None, order=None, hint='default', match=None)[source]#

              The infinitesimal functions of an ordinary differential equation, \(\xi(x,y)\) and \(\eta(x,y)\), are the infinitesimals of the Lie group of point transformations for which the differential equation is invariant. So, the ODE \(y'=f(x,y)\) @@ -1321,7 +1321,7 @@

              Documentation Version
              -sympy.solvers.ode.checkinfsol(eq, infinitesimals, func=None, order=None)[source]#
              +sympy.solvers.ode.checkinfsol(eq, infinitesimals, func=None, order=None)[source]#

              This function is used to check if the given infinitesimals are the actual infinitesimals of the given first order differential equation. This method is specific to the Lie Group Solver of ODEs.

              @@ -1345,7 +1345,7 @@
              Documentation Version
              -sympy.solvers.ode.constantsimp(expr, constants)[source]#
              +sympy.solvers.ode.constantsimp(expr, constants)[source]#

              Simplifies an expression with arbitrary constants in it.

              This function is written specifically to work with dsolve(), and is not intended for general use.

              @@ -1419,7 +1419,7 @@
              Documentation Version
              -sympy.solvers.ode.ode.odesimp(ode, eq, func, hint)[source]#
              +sympy.solvers.ode.ode.odesimp(ode, eq, func, hint)[source]#

              Simplifies solutions of ODEs, including trying to solve for func and running constantsimp().

              It may use knowledge of the type of solution that the hint returns to @@ -1475,7 +1475,7 @@

              Documentation Version
              -sympy.solvers.ode.ode.constant_renumber(expr, variables=None, newconstants=None)[source]#
              +sympy.solvers.ode.ode.constant_renumber(expr, variables=None, newconstants=None)[source]#

              Renumber arbitrary constants in expr to use the symbol names as given in newconstants. In the process, this reorders expression terms in a standard way.

              @@ -1519,7 +1519,7 @@
              Documentation Version
              -sympy.solvers.ode.ode.ode_sol_simplicity(sol, func, trysolving=True)[source]#
              +sympy.solvers.ode.ode.ode_sol_simplicity(sol, func, trysolving=True)[source]#

              Returns an extended integer representing how simple a solution to an ODE is.

              The following things are considered, in order from most simple to least:

              @@ -1600,7 +1600,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.Factorable(ode_problem)[source]#
              +class sympy.solvers.ode.single.Factorable(ode_problem)[source]#

              Solves equations having a solvable factor.

              This function is used to solve the equation having factors. Factors may be of type algebraic or ode. It will try to solve each factor independently. Factors will be solved by calling dsolve. We will return the @@ -1619,7 +1619,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.FirstExact(ode_problem)[source]#
              +class sympy.solvers.ode.single.FirstExact(ode_problem)[source]#

              Solves 1st order exact ordinary differential equations.

              A 1st order differential equation is called exact if it is the total differential of a function. That is, the differential equation

              @@ -1672,7 +1672,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.HomogeneousCoeffBest(ode_problem)[source]#
              +class sympy.solvers.ode.single.HomogeneousCoeffBest(ode_problem)[source]#

              Returns the best solution to an ODE from the two hints 1st_homogeneous_coeff_subs_dep_div_indep and 1st_homogeneous_coeff_subs_indep_div_dep.

              @@ -1709,7 +1709,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.HomogeneousCoeffSubsDepDivIndep(ode_problem)[source]#
              +class sympy.solvers.ode.single.HomogeneousCoeffSubsDepDivIndep(ode_problem)[source]#

              Solves a 1st order differential equation with homogeneous coefficients using the substitution \(u_1 = \frac{\text{<dependent variable>}}{\text{<independent variable>}}\).

              @@ -1782,7 +1782,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.HomogeneousCoeffSubsIndepDivDep(ode_problem)[source]#
              +class sympy.solvers.ode.single.HomogeneousCoeffSubsIndepDivDep(ode_problem)[source]#

              Solves a 1st order differential equation with homogeneous coefficients using the substitution \(u_2 = \frac{\text{<independent variable>}}{\text{<dependent variable>}}\).

              @@ -1858,7 +1858,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.FirstLinear(ode_problem)[source]#
              +class sympy.solvers.ode.single.FirstLinear(ode_problem)[source]#

              Solves 1st order linear differential equations.

              These are differential equations of the form

              @@ -1907,7 +1907,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.RationalRiccati(ode_problem)[source]#
              +class sympy.solvers.ode.single.RationalRiccati(ode_problem)[source]#

              Gives general solutions to the first order Riccati differential equations that have atleast one rational particular solution.

              @@ -1940,7 +1940,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.SecondLinearAiry(ode_problem)[source]#
              +class sympy.solvers.ode.single.SecondLinearAiry(ode_problem)[source]#

              Gives solution of the Airy differential equation

              @@ -1960,7 +1960,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.SecondLinearBessel(ode_problem)[source]#
              +class sympy.solvers.ode.single.SecondLinearBessel(ode_problem)[source]#

              Gives solution of the Bessel differential equation

              @@ -1989,7 +1989,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.Bernoulli(ode_problem)[source]#
              +class sympy.solvers.ode.single.Bernoulli(ode_problem)[source]#

              Solves Bernoulli differential equations.

              These are equations of the form

              @@ -2061,7 +2061,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.Liouville(ode_problem)[source]#
              +class sympy.solvers.ode.single.Liouville(ode_problem)[source]#

              Solves 2nd order Liouville differential equations.

              The general form of a Liouville ODE is

              @@ -2117,7 +2117,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.RiccatiSpecial(ode_problem)[source]#
              +class sympy.solvers.ode.single.RiccatiSpecial(ode_problem)[source]#

              The general Riccati equation has the form

              @@ -2159,7 +2159,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.NthLinearConstantCoeffHomogeneous(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthLinearConstantCoeffHomogeneous(ode_problem)[source]#

              Solves an \(n\)th order linear homogeneous differential equation with constant coefficients.

              This is an equation of the form

              @@ -2220,7 +2220,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.NthLinearConstantCoeffUndeterminedCoefficients(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthLinearConstantCoeffUndeterminedCoefficients(ode_problem)[source]#

              Solves an \(n\)th order linear differential equation with constant coefficients using the method of undetermined coefficients.

              This method works on differential equations of the form

              @@ -2273,7 +2273,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.NthLinearConstantCoeffVariationOfParameters(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthLinearConstantCoeffVariationOfParameters(ode_problem)[source]#

              Solves an \(n\)th order linear differential equation with constant coefficients using the method of variation of parameters.

              This method works on any differential equations of the form

              @@ -2340,7 +2340,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.NthLinearEulerEqHomogeneous(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthLinearEulerEqHomogeneous(ode_problem)[source]#

              Solves an \(n\)th order linear homogeneous variable-coefficient Cauchy-Euler equidimensional ordinary differential equation.

              This is an equation with form \(0 = a_0 f(x) + a_1 x f'(x) + a_2 x^2 f''(x) @@ -2403,7 +2403,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.NthLinearEulerEqNonhomogeneousVariationOfParameters(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthLinearEulerEqNonhomogeneousVariationOfParameters(ode_problem)[source]#

              Solves an \(n\)th order linear non homogeneous Cauchy-Euler equidimensional ordinary differential equation using variation of parameters.

              This is an equation with form \(g(x) = a_0 f(x) + a_1 x f'(x) + a_2 x^2 f''(x) @@ -2455,7 +2455,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.NthLinearEulerEqNonhomogeneousUndeterminedCoefficients(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthLinearEulerEqNonhomogeneousUndeterminedCoefficients(ode_problem)[source]#

              Solves an \(n\)th order linear non homogeneous Cauchy-Euler equidimensional ordinary differential equation using undetermined coefficients.

              This is an equation with form \(g(x) = a_0 f(x) + a_1 x f'(x) + a_2 x^2 f''(x) @@ -2497,7 +2497,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.NthAlgebraic(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthAlgebraic(ode_problem)[source]#

              Solves an \(n\)th order ordinary differential equation using algebra and integrals.

              There is no general form for the kind of equation that this can solve. The @@ -2518,7 +2518,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.NthOrderReducible(ode_problem)[source]#
              +class sympy.solvers.ode.single.NthOrderReducible(ode_problem)[source]#

              Solves ODEs that only involve derivatives of the dependent variable using a substitution of the form \(f^n(x) = g(x)\).

              For example any second order ODE of the form \(f''(x) = h(f'(x), x)\) can be @@ -2540,7 +2540,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.Separable(ode_problem)[source]#
              +class sympy.solvers.ode.single.Separable(ode_problem)[source]#

              Solves separable 1st order differential equations.

              This is any differential equation that can be written as \(P(y) \tfrac{dy}{dx} = Q(x)\). The solution can then just be found by @@ -2593,7 +2593,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.AlmostLinear(ode_problem)[source]#
              +class sympy.solvers.ode.single.AlmostLinear(ode_problem)[source]#

              Solves an almost-linear differential equation.

              The general form of an almost linear differential equation is

              @@ -2639,7 +2639,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.LinearCoefficients(ode_problem)[source]#
              +class sympy.solvers.ode.single.LinearCoefficients(ode_problem)[source]#

              Solves a differential equation with linear coefficients.

              The general form of a differential equation with linear coefficients is

              @@ -2684,7 +2684,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.SeparableReduced(ode_problem)[source]#
              +class sympy.solvers.ode.single.SeparableReduced(ode_problem)[source]#

              Solves a differential equation that can be reduced to the separable form.

              The general form of this equation is

              @@ -2745,7 +2745,7 @@
              Documentation Version
              -class sympy.solvers.ode.single.LieGroup(ode_problem)[source]#
              +class sympy.solvers.ode.single.LieGroup(ode_problem)[source]#

              This hint implements the Lie group method of solving first order differential equations. The aim is to convert the given differential equation from the given coordinate system into another coordinate system where it becomes @@ -2795,7 +2795,7 @@

              Documentation Version
              -class sympy.solvers.ode.single.SecondHypergeometric(ode_problem)[source]#
              +class sympy.solvers.ode.single.SecondHypergeometric(ode_problem)[source]#

              Solves 2nd order linear differential equations.

              It computes special function solutions which can be expressed using the 2F1, 1F1 or 0F1 hypergeometric functions.

              @@ -2844,7 +2844,7 @@
              Documentation Version
              -sympy.solvers.ode.ode.ode_1st_power_series(eq, func, order, match)[source]#
              +sympy.solvers.ode.ode.ode_1st_power_series(eq, func, order, match)[source]#

              The power series solution is a method which gives the Taylor series expansion to the solution of a differential equation.

              For a first order differential equation \(\frac{dy}{dx} = h(x, y)\), a power @@ -2882,7 +2882,7 @@

              Documentation Version
              -sympy.solvers.ode.ode.ode_2nd_power_series_ordinary(eq, func, order, match)[source]#
              +sympy.solvers.ode.ode.ode_2nd_power_series_ordinary(eq, func, order, match)[source]#

              Gives a power series solution to a second order homogeneous differential equation with polynomial coefficients at an ordinary point. A homogeneous differential equation is of the form

              @@ -2917,7 +2917,7 @@
              Documentation Version
              -sympy.solvers.ode.ode.ode_2nd_power_series_regular(eq, func, order, match)[source]#
              +sympy.solvers.ode.ode.ode_2nd_power_series_regular(eq, func, order, match)[source]#

              Gives a power series solution to a second order homogeneous differential equation with polynomial coefficients at a regular point. A second order homogeneous differential equation is of the form

              @@ -2976,7 +2976,7 @@

              Lie heuristics
              -sympy.solvers.ode.lie_group.lie_heuristic_abaco1_simple(match, comp=False)[source]#
              +sympy.solvers.ode.lie_group.lie_heuristic_abaco1_simple(match, comp=False)[source]#

              The first heuristic uses the following four sets of assumptions on \(\xi\) and \(\eta\)

              @@ -3016,7 +3016,7 @@

              Lie heuristics
              -sympy.solvers.ode.lie_group.lie_heuristic_abaco1_product(match, comp=False)[source]#
              +sympy.solvers.ode.lie_group.lie_heuristic_abaco1_product(match, comp=False)[source]#

              The second heuristic uses the following two assumptions on \(\xi\) and \(\eta\)

              @@ -3049,7 +3049,7 @@

              Lie heuristics
              -sympy.solvers.ode.lie_group.lie_heuristic_bivariate(match, comp=False)[source]#
              +sympy.solvers.ode.lie_group.lie_heuristic_bivariate(match, comp=False)[source]#

              The third heuristic assumes the infinitesimals \(\xi\) and \(\eta\) to be bi-variate polynomials in \(x\) and \(y\). The assumption made here for the logic below is that \(h\) is a rational function in \(x\) and \(y\) @@ -3068,7 +3068,7 @@

              Lie heuristics
              -sympy.solvers.ode.lie_group.lie_heuristic_chi(match, comp=False)[source]#
              +sympy.solvers.ode.lie_group.lie_heuristic_chi(match, comp=False)[source]#

              The aim of the fourth heuristic is to find the function \(\chi(x, y)\) that satisfies the PDE \(\frac{d\chi}{dx} + h\frac{d\chi}{dx} - \frac{\partial h}{\partial y}\chi = 0\).

              @@ -3089,7 +3089,7 @@

              Lie heuristics
              -sympy.solvers.ode.lie_group.lie_heuristic_abaco2_similar(match, comp=False)[source]#
              +sympy.solvers.ode.lie_group.lie_heuristic_abaco2_similar(match, comp=False)[source]#

              This heuristic uses the following two assumptions on \(\xi\) and \(\eta\)

              @@ -3127,7 +3127,7 @@

              Lie heuristics
              -sympy.solvers.ode.lie_group.lie_heuristic_function_sum(match, comp=False)[source]#
              +sympy.solvers.ode.lie_group.lie_heuristic_function_sum(match, comp=False)[source]#

              This heuristic uses the following two assumptions on \(\xi\) and \(\eta\)

              @@ -3167,7 +3167,7 @@

              Lie heuristics
              -sympy.solvers.ode.lie_group.lie_heuristic_abaco2_unique_unknown(match, comp=False)[source]#
              +sympy.solvers.ode.lie_group.lie_heuristic_abaco2_unique_unknown(match, comp=False)[source]#

              This heuristic assumes the presence of unknown functions or known functions with non-integer powers.

                @@ -3196,7 +3196,7 @@

                Lie heuristics
                -sympy.solvers.ode.lie_group.lie_heuristic_abaco2_unique_general(match, comp=False)[source]#
                +sympy.solvers.ode.lie_group.lie_heuristic_abaco2_unique_general(match, comp=False)[source]#

                This heuristic finds if infinitesimals of the form \(\eta = f(x)\), \(\xi = g(y)\) without making any assumptions on \(h\).

                The complete sequence of steps is given in the paper mentioned below.

                @@ -3209,7 +3209,7 @@

                Lie heuristics
                -sympy.solvers.ode.lie_group.lie_heuristic_linear(match, comp=False)[source]#
                +sympy.solvers.ode.lie_group.lie_heuristic_linear(match, comp=False)[source]#

                This heuristic assumes

                1. \(\xi = ax + by + c\) and

                2. @@ -3240,7 +3240,7 @@

                  Rational Riccati Solver
                  -sympy.solvers.ode.riccati.riccati_normal(w, x, b1, b2)[source]#
                  +sympy.solvers.ode.riccati.riccati_normal(w, x, b1, b2)[source]#

                  Given a solution \(w(x)\) to the equation

                  @@ -3263,28 +3263,28 @@

                  Rational Riccati Solver
                  -sympy.solvers.ode.riccati.riccati_inverse_normal(y, x, b1, b2, bp=None)[source]#
                  +sympy.solvers.ode.riccati.riccati_inverse_normal(y, x, b1, b2, bp=None)[source]#

                  Inverse transforming the solution to the normal Riccati ODE to get the solution to the Riccati ODE.

                  -sympy.solvers.ode.riccati.riccati_reduced(eq, f, x)[source]#
                  +sympy.solvers.ode.riccati.riccati_reduced(eq, f, x)[source]#

                  Convert a Riccati ODE into its corresponding normal Riccati ODE.

                  -sympy.solvers.ode.riccati.construct_c(num, den, x, poles, muls)[source]#
                  +sympy.solvers.ode.riccati.construct_c(num, den, x, poles, muls)[source]#

                  Helper function to calculate the coefficients in the c-vector for each pole.

                  -sympy.solvers.ode.riccati.construct_d(num, den, x, val_inf)[source]#
                  +sympy.solvers.ode.riccati.construct_d(num, den, x, val_inf)[source]#

                  Helper function to calculate the coefficients in the d-vector based on the valuation of the function at oo.

                  @@ -3292,7 +3292,7 @@

                  Rational Riccati Solver
                  -sympy.solvers.ode.riccati.rational_laurent_series(num, den, x, r, m, n)[source]#
                  +sympy.solvers.ode.riccati.rational_laurent_series(num, den, x, r, m, n)[source]#

                  The function computes the Laurent series coefficients of a rational function.

                  @@ -3337,7 +3337,7 @@

                  Rational Riccati Solver
                  -sympy.solvers.ode.riccati.compute_m_ybar(x, poles, choice, N)[source]#
                  +sympy.solvers.ode.riccati.compute_m_ybar(x, poles, choice, N)[source]#

                  Helper function to calculate -

                  1. m - The degree bound for the polynomial solution that must be found for the auxiliary @@ -3348,7 +3348,7 @@

                  Rational Riccati Solver
                  -sympy.solvers.ode.riccati.solve_aux_eq(numa, dena, numy, deny, x, m)[source]#
                  +sympy.solvers.ode.riccati.solve_aux_eq(numa, dena, numy, deny, x, m)[source]#

                  Helper function to find a polynomial solution of degree m for the auxiliary differential equation.

                  @@ -3356,14 +3356,14 @@

                  Rational Riccati Solver
                  -sympy.solvers.ode.riccati.remove_redundant_sols(sol1, sol2, x)[source]#
                  +sympy.solvers.ode.riccati.remove_redundant_sols(sol1, sol2, x)[source]#

                  Helper function to remove redundant solutions to the differential equation.

                  -sympy.solvers.ode.riccati.get_gen_sol_from_part_sol(part_sols, a, x)[source]#
                  +sympy.solvers.ode.riccati.get_gen_sol_from_part_sol(part_sols, a, x)[source]#

                  ” Helper function which computes the general solution for a Riccati ODE from its particular @@ -3379,7 +3379,7 @@

                  Rational Riccati Solver
                  -sympy.solvers.ode.riccati.solve_riccati(fx, x, b0, b1, b2, gensol=False)[source]#
                  +sympy.solvers.ode.riccati.solve_riccati(fx, x, b0, b1, b2, gensol=False)[source]#

                  The main function that gives particular/general solutions to Riccati ODEs that have atleast 1 rational particular solution.

                  @@ -3392,7 +3392,7 @@

                  System of ODEsdsolve() for system of differential equations.

                  -sympy.solvers.ode.ode._linear_2eq_order1_type6(x, y, t, r, eq)[source]#
                  +sympy.solvers.ode.ode._linear_2eq_order1_type6(x, y, t, r, eq)[source]#

                  The equations of this type of ode are .

                  @@ -3419,7 +3419,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._linear_2eq_order1_type7(x, y, t, r, eq)[source]#
                  +sympy.solvers.ode.ode._linear_2eq_order1_type7(x, y, t, r, eq)[source]#

                  The equations of this type of ode are .

                  @@ -3462,7 +3462,7 @@

                  System of ODEs
                  -sympy.solvers.ode.systems.linear_ode_to_matrix(eqs, funcs, t, order)[source]#
                  +sympy.solvers.ode.systems.linear_ode_to_matrix(eqs, funcs, t, order)[source]#

                  Convert a linear system of ODEs to matrix form

                  Parameters:
                  @@ -3591,7 +3591,7 @@

                  System of ODEs
                  -sympy.solvers.ode.systems.canonical_odes(eqs, funcs, t)[source]#
                  +sympy.solvers.ode.systems.canonical_odes(eqs, funcs, t)[source]#

                  Function that solves for highest order derivatives in a system

                  Parameters:
                  @@ -3652,7 +3652,7 @@

                  System of ODEs
                  -sympy.solvers.ode.systems.linodesolve_type(A, t, b=None)[source]#
                  +sympy.solvers.ode.systems.linodesolve_type(A, t, b=None)[source]#

                  Helper function that determines the type of the system of ODEs for solving with sympy.solvers.ode.systems.linodesolve()

                  Parameters:
                  @@ -3741,7 +3741,7 @@

                  System of ODEs
                  -sympy.solvers.ode.systems.matrix_exp_jordan_form(A, t)[source]#
                  +sympy.solvers.ode.systems.matrix_exp_jordan_form(A, t)[source]#

                  Matrix exponential \(\exp(A*t)\) for the matrix A and scalar t.

                  Parameters:
                  @@ -3802,7 +3802,7 @@

                  System of ODEs
                  -sympy.solvers.ode.systems.matrix_exp(A, t)[source]#
                  +sympy.solvers.ode.systems.matrix_exp(A, t)[source]#

                  Matrix exponential \(\exp(A*t)\) for the matrix A and scalar t.

                  Parameters:
                  @@ -3886,7 +3886,7 @@

                  System of ODEs
                  -sympy.solvers.ode.systems.linodesolve(A, t, b=None, B=None, type='auto', doit=False, tau=None)[source]#
                  +sympy.solvers.ode.systems.linodesolve(A, t, b=None, B=None, type='auto', doit=False, tau=None)[source]#

                  System of n equations linear first-order differential equations

                  Parameters:
                  @@ -4105,7 +4105,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_2eq_order1_type1(x, y, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_2eq_order1_type1(x, y, t, eq)[source]#

                  Equations:

                  @@ -4136,7 +4136,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_2eq_order1_type2(x, y, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_2eq_order1_type2(x, y, t, eq)[source]#

                  Equations:

                  @@ -4167,7 +4167,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_2eq_order1_type3(x, y, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_2eq_order1_type3(x, y, t, eq)[source]#

                  Autonomous system of general form

                  @@ -4192,7 +4192,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_2eq_order1_type4(x, y, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_2eq_order1_type4(x, y, t, eq)[source]#

                  Equation:

                  @@ -4215,7 +4215,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_2eq_order1_type5(func, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_2eq_order1_type5(func, t, eq)[source]#

                  Clairaut system of ODEs

                  @@ -4239,7 +4239,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_3eq_order1_type1(x, y, z, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_3eq_order1_type1(x, y, z, t, eq)[source]#

                  Equations:

                  @@ -4264,7 +4264,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_3eq_order1_type2(x, y, z, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_3eq_order1_type2(x, y, z, t, eq)[source]#

                  Equations:

                  @@ -4297,7 +4297,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_3eq_order1_type3(x, y, z, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_3eq_order1_type3(x, y, z, t, eq)[source]#

                  Equations:

                  @@ -4327,7 +4327,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_3eq_order1_type4(x, y, z, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_3eq_order1_type4(x, y, z, t, eq)[source]#

                  Equations:

                  @@ -4357,7 +4357,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._nonlinear_3eq_order1_type5(x, y, z, t, eq)[source]#
                  +sympy.solvers.ode.ode._nonlinear_3eq_order1_type5(x, y, z, t, eq)[source]#
                  \[x' = x (c F_2 - b F_3), \enspace y' = y (a F_3 - c F_1), \enspace z' = z (b F_1 - a F_2)\]
                  @@ -4595,7 +4595,7 @@

                  System of ODEs
                  -sympy.solvers.ode.ode._handle_Integral(expr, func, hint)[source]#
                  +sympy.solvers.ode.ode._handle_Integral(expr, func, hint)[source]#

                  Converts a solution with Integrals in it into an actual solution.

                  For most hints, this simply runs expr.doit().

                  diff --git a/dev/modules/solvers/pde.html b/dev/modules/solvers/pde.html index 268359fb7e3..15b3c35afbf 100644 --- a/dev/modules/solvers/pde.html +++ b/dev/modules/solvers/pde.html @@ -744,7 +744,7 @@

                  User Functionsfrom sympy import *. They are intended for user use.

                  -sympy.solvers.pde.pde_separate(eq, fun, sep, strategy='mul')[source]#
                  +sympy.solvers.pde.pde_separate(eq, fun, sep, strategy='mul')[source]#

                  Separate variables in partial differential equation either by additive or multiplicative separation approach. It tries to rewrite an equation so that one of the specified variables occurs on a different side of the @@ -785,7 +785,7 @@

                  User Functions
                  -sympy.solvers.pde.pde_separate_add(eq, fun, sep)[source]#
                  +sympy.solvers.pde.pde_separate_add(eq, fun, sep)[source]#

                  Helper function for searching additive separable solutions.

                  Consider an equation of two independent variables x, y and a dependent variable w, we look for the product of two functions depending on different @@ -806,7 +806,7 @@

                  User Functions
                  -sympy.solvers.pde.pde_separate_mul(eq, fun, sep)[source]#
                  +sympy.solvers.pde.pde_separate_mul(eq, fun, sep)[source]#

                  Helper function for searching multiplicative separable solutions.

                  Consider an equation of two independent variables x, y and a dependent variable w, we look for the product of two functions depending on different @@ -827,7 +827,7 @@

                  User Functions
                  -sympy.solvers.pde.pdsolve(eq, func=None, hint='default', dict=False, solvefun=None, **kwargs)[source]#
                  +sympy.solvers.pde.pdsolve(eq, func=None, hint='default', dict=False, solvefun=None, **kwargs)[source]#

                  Solves any (supported) kind of partial differential equation.

                  Usage

                  @@ -929,7 +929,7 @@

                  User Functions
                  -sympy.solvers.pde.classify_pde(eq, func=None, dict=False, *, prep=True, **kwargs)[source]#
                  +sympy.solvers.pde.classify_pde(eq, func=None, dict=False, *, prep=True, **kwargs)[source]#

                  Returns a tuple of possible pdsolve() classifications for a PDE.

                  The tuple is ordered so that first item is the classification that pdsolve() uses to solve the PDE by default. In general, @@ -963,7 +963,7 @@

                  User Functions
                  -sympy.solvers.pde.checkpdesol(pde, sol, func=None, solve_for_func=True)[source]#
                  +sympy.solvers.pde.checkpdesol(pde, sol, func=None, solve_for_func=True)[source]#

                  Checks if the given solution satisfies the partial differential equation.

                  pde is the partial differential equation which can be given in the @@ -1007,7 +1007,7 @@

                  Hint Methods
                  -sympy.solvers.pde.pde_1st_linear_constant_coeff_homogeneous(eq, func, order, match, solvefun)[source]#
                  +sympy.solvers.pde.pde_1st_linear_constant_coeff_homogeneous(eq, func, order, match, solvefun)[source]#

                  Solves a first order linear homogeneous partial differential equation with constant coefficients.

                  The general form of this partial differential equation is

                  @@ -1067,7 +1067,7 @@

                  Hint Methods
                  -sympy.solvers.pde.pde_1st_linear_constant_coeff(eq, func, order, match, solvefun)[source]#
                  +sympy.solvers.pde.pde_1st_linear_constant_coeff(eq, func, order, match, solvefun)[source]#

                  Solves a first order linear partial differential equation with constant coefficients.

                  The general form of this partial differential equation is

                  @@ -1159,7 +1159,7 @@

                  Hint Methods
                  -sympy.solvers.pde.pde_1st_linear_variable_coeff(eq, func, order, match, solvefun)[source]#
                  +sympy.solvers.pde.pde_1st_linear_variable_coeff(eq, func, order, match, solvefun)[source]#

                  Solves a first order linear partial differential equation with variable coefficients. The general form of this partial differential equation is

                  diff --git a/dev/modules/solvers/solvers.html b/dev/modules/solvers/solvers.html index f65317202e2..8caa4c8871d 100644 --- a/dev/modules/solvers/solvers.html +++ b/dev/modules/solvers/solvers.html @@ -771,7 +771,7 @@
                  Documentation Version
                  is the symbol that we want to solve the equation for.

                  -sympy.solvers.solvers.solve(f, *symbols, **flags)[source]#
                  +sympy.solvers.solvers.solve(f, *symbols, **flags)[source]#

                  Algebraically solves equations and systems of equations.

                  Parameters:
                  @@ -1261,7 +1261,7 @@
                  Documentation Version
                  -sympy.solvers.solvers.solve_linear(lhs, rhs=0, symbols=[], exclude=[])[source]#
                  +sympy.solvers.solvers.solve_linear(lhs, rhs=0, symbols=[], exclude=[])[source]#

                  Return a tuple derived from f = lhs - rhs that is one of the following: (0, 1), (0, 0), (symbol, solution), (n, d).

                  Explanation

                  @@ -1361,7 +1361,7 @@
                  Documentation Version
                  -sympy.solvers.solvers.solve_linear_system(system, *symbols, **flags)[source]#
                  +sympy.solvers.solvers.solve_linear_system(system, *symbols, **flags)[source]#

                  Solve system of \(N\) linear equations with \(M\) variables, which means both under- and overdetermined systems are supported.

                  Explanation

                  @@ -1404,7 +1404,7 @@
                  Documentation Version
                  -sympy.solvers.solvers.solve_linear_system_LU(matrix, syms)[source]#
                  +sympy.solvers.solvers.solve_linear_system_LU(matrix, syms)[source]#

                  Solves the augmented matrix system using LUsolve and returns a dictionary in which solutions are keyed to the symbols of syms as ordered.

                  Explanation

                  @@ -1429,7 +1429,7 @@
                  Documentation Version
                  -sympy.solvers.solvers.solve_undetermined_coeffs(equ, coeffs, *syms, **flags)[source]#
                  +sympy.solvers.solvers.solve_undetermined_coeffs(equ, coeffs, *syms, **flags)[source]#

                  Solve a system of equations in \(k\) parameters that is formed by matching coefficients in variables coeffs that are on factors dependent on the remaining variables (or those given @@ -1492,7 +1492,7 @@

                  Documentation Version
                  -sympy.solvers.solvers.nsolve(*args, dict=False, **kwargs)[source]#
                  +sympy.solvers.solvers.nsolve(*args, dict=False, **kwargs)[source]#

                  Solve a nonlinear equation system numerically: nsolve(f, [args,] x0, modules=['mpmath'], **kwargs).

                  Explanation

                  @@ -1594,7 +1594,7 @@
                  Documentation Version
                  -sympy.solvers.solvers.checksol(f, symbol, sol=None, **flags)[source]#
                  +sympy.solvers.solvers.checksol(f, symbol, sol=None, **flags)[source]#

                  Checks whether sol is a solution of equation f == 0.

                  Explanation

                  Input can be either a single symbol and corresponding value @@ -1642,7 +1642,7 @@

                  Documentation Version
                  -sympy.solvers.solvers.unrad(eq, *syms, **flags)[source]#
                  +sympy.solvers.solvers.unrad(eq, *syms, **flags)[source]#

                  Remove radicals with symbolic arguments and return (eq, cov), None, or raise an error.

                  Explanation

                  @@ -1717,7 +1717,7 @@

                  Partial Differential Equations (PDEs)#

                  -sympy.solvers.deutils.ode_order(expr, func)[source]#
                  +sympy.solvers.deutils.ode_order(expr, func)[source]#

                  Returns the order of a given differential equation with respect to func.

                  This function is implemented recursively.

                  @@ -1742,7 +1742,7 @@

                  Deutils (Utilities for solving ODE’s and PDE’s)

                  Recurrence Equations#

                  -sympy.solvers.recurr.rsolve(f, y, init=None)[source]#
                  +sympy.solvers.recurr.rsolve(f, y, init=None)[source]#

                  Solve univariate recurrence with rational coefficients.

                  Given \(k\)-th order linear recurrence \(\operatorname{L} y = f\), or equivalently:

                  @@ -1798,7 +1798,7 @@

                  Deutils (Utilities for solving ODE’s and PDE’s)
                  -sympy.solvers.recurr.rsolve_poly(coeffs, f, n, shift=0, **hints)[source]#
                  +sympy.solvers.recurr.rsolve_poly(coeffs, f, n, shift=0, **hints)[source]#

                  Given linear recurrence operator \(\operatorname{L}\) of order \(k\) with polynomial coefficients and inhomogeneous equation \(\operatorname{L} y = f\), where \(f\) is a polynomial, we seek for @@ -1859,7 +1859,7 @@

                  Deutils (Utilities for solving ODE’s and PDE’s)
                  -sympy.solvers.recurr.rsolve_ratio(coeffs, f, n, **hints)[source]#
                  +sympy.solvers.recurr.rsolve_ratio(coeffs, f, n, **hints)[source]#

                  Given linear recurrence operator \(\operatorname{L}\) of order \(k\) with polynomial coefficients and inhomogeneous equation \(\operatorname{L} y = f\), where \(f\) is a polynomial, we seek @@ -1912,7 +1912,7 @@

                  Deutils (Utilities for solving ODE’s and PDE’s)
                  -sympy.solvers.recurr.rsolve_hyper(coeffs, f, n, **hints)[source]#
                  +sympy.solvers.recurr.rsolve_hyper(coeffs, f, n, **hints)[source]#

                  Given linear recurrence operator \(\operatorname{L}\) of order \(k\) with polynomial coefficients and inhomogeneous equation \(\operatorname{L} y = f\) we seek for all hypergeometric solutions @@ -1975,7 +1975,7 @@

                  Deutils (Utilities for solving ODE’s and PDE’s)Systems of Polynomial Equations#

                  -sympy.solvers.polysys.solve_poly_system(seq, *gens, strict=False, **args)[source]#
                  +sympy.solvers.polysys.solve_poly_system(seq, *gens, strict=False, **args)[source]#

                  Return a list of solutions for the system of polynomial equations or else None.

                  @@ -2031,7 +2031,7 @@

                  Systems of Polynomial Equations
                  -sympy.solvers.polysys.solve_triangulated(polys, *gens, **args)[source]#
                  +sympy.solvers.polysys.solve_triangulated(polys, *gens, **args)[source]#

                  Solve a polynomial system using Gianni-Kalkbrenner algorithm.

                  The algorithm proceeds by computing one Groebner basis in the ground domain and then by iteratively computing polynomial factorizations in @@ -2091,7 +2091,7 @@

                  Inequalities

                  Linear Programming (Optimization)#

                  -sympy.solvers.simplex.lpmax(f, constr)[source]#
                  +sympy.solvers.simplex.lpmax(f, constr)[source]#

                  return maximum of linear equation f under linear constraints expressed using Ge, Le or Eq.

                  All variables are unbounded unless constrained.

                  @@ -2125,7 +2125,7 @@

                  Inequalities
                  -sympy.solvers.simplex.lpmin(f, constr)[source]#
                  +sympy.solvers.simplex.lpmin(f, constr)[source]#

                  return minimum of linear equation f under linear constraints expressed using Ge, Le or Eq.

                  All variables are unbounded unless constrained.

                  @@ -2161,7 +2161,7 @@

                  Inequalities
                  -sympy.solvers.simplex.linprog(c, A=None, b=None, A_eq=None, b_eq=None, bounds=None)[source]#
                  +sympy.solvers.simplex.linprog(c, A=None, b=None, A_eq=None, b_eq=None, bounds=None)[source]#

                  Return the minimization of c*x with the given constraints A*x <= b and A_eq*x = b_eq. Unless bounds are given, variables will have nonnegative values in the solution.

                  diff --git a/dev/modules/solvers/solveset.html b/dev/modules/solvers/solveset.html index addbbcb5d56..af81afff7fc 100644 --- a/dev/modules/solvers/solveset.html +++ b/dev/modules/solvers/solveset.html @@ -1262,7 +1262,7 @@

                  Solveset Module Reference
                  -sympy.solvers.solveset.solveset(f, symbol=None, domain=Complexes)[source]#
                  +sympy.solvers.solveset.solveset(f, symbol=None, domain=Complexes)[source]#

                  Solves a given inequality or equation with set as output

                  Parameters:
                  @@ -1378,24 +1378,24 @@

                  Solveset Module Reference
                  -sympy.solvers.solveset.solveset_real(f, symbol)[source]#
                  +sympy.solvers.solveset.solveset_real(f, symbol)[source]#

                  -sympy.solvers.solveset.solveset_complex(f, symbol)[source]#
                  +sympy.solvers.solveset.solveset_complex(f, symbol)[source]#
                  -sympy.solvers.solveset.invert_real(f_x, y, x)[source]#
                  +sympy.solvers.solveset.invert_real(f_x, y, x)[source]#

                  Inverts a real-valued function. Same as invert_complex(), but sets the domain to S.Reals before inverting.

                  -sympy.solvers.solveset.invert_complex(f_x, y, x, domain=Complexes)[source]#
                  +sympy.solvers.solveset.invert_complex(f_x, y, x, domain=Complexes)[source]#

                  Reduce the complex valued equation \(f(x) = y\) to a set of equations

                  @@ -1451,7 +1451,7 @@

                  Solveset Module Reference
                  -sympy.solvers.solveset.domain_check(f, symbol, p)[source]#
                  +sympy.solvers.solveset.domain_check(f, symbol, p)[source]#

                  Returns False if point p is infinite or any subexpression of f is infinite or becomes so after replacing symbol with p. If none of these conditions is met then True will be returned.

                  @@ -1487,7 +1487,7 @@

                  Solveset Module Reference
                  -sympy.solvers.solveset.solvify(f, symbol, domain)[source]#
                  +sympy.solvers.solveset.solvify(f, symbol, domain)[source]#

                  Solves an equation using solveset and returns the solution in accordance with the \(solve\) output API.

                  @@ -1529,7 +1529,7 @@

                  Solveset Module Reference
                  -sympy.solvers.solveset.linear_eq_to_matrix(equations, *symbols)[source]#
                  +sympy.solvers.solveset.linear_eq_to_matrix(equations, *symbols)[source]#

                  Converts a given System of Equations into Matrix form. Here \(equations\) must be a linear system of equations in \(symbols\). Element M[i, j] corresponds to the coefficient @@ -1619,7 +1619,7 @@

                  Solveset Module Reference
                  -sympy.solvers.solveset.linsolve(system, *symbols)[source]#
                  +sympy.solvers.solveset.linsolve(system, *symbols)[source]#

                  Solve system of \(N\) linear equations with \(M\) variables; both underdetermined and overdetermined systems are supported. The possible number of solutions is zero, one or infinite. @@ -1815,7 +1815,7 @@

                  Solveset Module Reference
                  -sympy.solvers.solveset.nonlinsolve(system, *symbols)[source]#
                  +sympy.solvers.solveset.nonlinsolve(system, *symbols)[source]#

                  Solve system of \(N\) nonlinear equations with \(M\) variables, which means both under and overdetermined systems are supported. Positive dimensional system is also supported (A system with infinitely many solutions is said @@ -1973,7 +1973,7 @@

                  Solveset Module Reference#

                  -sympy.solvers.solveset._transolve(f, symbol, domain)[source]#
                  +sympy.solvers.solveset._transolve(f, symbol, domain)[source]#

                  Function to solve transcendental equations. It is a helper to solveset and should be used internally. _transolve currently supports the following class of equations:

                  @@ -2146,7 +2146,7 @@

                  transolve
                  -sympy.solvers.solveset._is_exponential(f, symbol)[source]#
                  +sympy.solvers.solveset._is_exponential(f, symbol)[source]#

                  Return True if one or more terms contain symbol only in exponents, else False.

                  @@ -2186,7 +2186,7 @@

                  transolve
                  -sympy.solvers.solveset._solve_exponential(lhs, rhs, symbol, domain)[source]#
                  +sympy.solvers.solveset._solve_exponential(lhs, rhs, symbol, domain)[source]#

                  Helper function for solving (supported) exponential equations.

                  Exponential equations are the sum of (currently) at most two terms with one or both of them having a power with a @@ -2266,7 +2266,7 @@

                  transolve
                  -sympy.solvers.solveset._solve_logarithm(lhs, rhs, symbol, domain)[source]#
                  +sympy.solvers.solveset._solve_logarithm(lhs, rhs, symbol, domain)[source]#

                  Helper to solve logarithmic equations which are reducible to a single instance of \(\log\).

                  Logarithmic equations are (currently) the equations that contains @@ -2357,7 +2357,7 @@

                  transolve
                  -sympy.solvers.solveset._is_logarithmic(f, symbol)[source]#
                  +sympy.solvers.solveset._is_logarithmic(f, symbol)[source]#

                  Return True if the equation is in the form \(a\log(f(x)) + b\log(g(x)) + ... + c\) else False.

                  diff --git a/dev/modules/stats.html b/dev/modules/stats.html index fac81e016a8..d5714d48e2e 100644 --- a/dev/modules/stats.html +++ b/dev/modules/stats.html @@ -864,7 +864,7 @@

                  Random Variable TypesFinite Types#

                  -sympy.stats.DiscreteUniform(name, items)[source]#
                  +sympy.stats.DiscreteUniform(name, items)[source]#

                  Create a Finite Random Variable representing a uniform distribution over the input set.

                  @@ -908,7 +908,7 @@

                  Finite Types
                  -sympy.stats.Die(name, sides=6)[source]#
                  +sympy.stats.Die(name, sides=6)[source]#

                  Create a Finite Random Variable representing a fair die.

                  Parameters:
                  @@ -948,7 +948,7 @@

                  Finite Types
                  -sympy.stats.Bernoulli(name, p, succ=1, fail=0)[source]#
                  +sympy.stats.Bernoulli(name, p, succ=1, fail=0)[source]#

                  Create a Finite Random Variable representing a Bernoulli process.

                  Parameters:
                  @@ -999,7 +999,7 @@

                  Finite Types
                  -sympy.stats.Coin(name, p=1 / 2)[source]#
                  +sympy.stats.Coin(name, p=1 / 2)[source]#

                  Create a Finite Random Variable representing a Coin toss.

                  Parameters:
                  @@ -1042,7 +1042,7 @@

                  Finite Types
                  -sympy.stats.Binomial(name, n, p, succ=1, fail=0)[source]#
                  +sympy.stats.Binomial(name, n, p, succ=1, fail=0)[source]#

                  Create a Finite Random Variable representing a binomial distribution.

                  Parameters:
                  @@ -1101,7 +1101,7 @@

                  Finite Types
                  -sympy.stats.BetaBinomial(name, n, alpha, beta)[source]#
                  +sympy.stats.BetaBinomial(name, n, alpha, beta)[source]#

                  Create a Finite Random Variable representing a Beta-binomial distribution.

                  Parameters:
                  @@ -1140,7 +1140,7 @@

                  Finite Types
                  -sympy.stats.Hypergeometric(name, N, m, n)[source]#
                  +sympy.stats.Hypergeometric(name, N, m, n)[source]#

                  Create a Finite Random Variable representing a hypergeometric distribution.

                  Parameters:
                  @@ -1185,7 +1185,7 @@

                  Finite Types
                  -sympy.stats.FiniteRV(name, density, **kwargs)[source]#
                  +sympy.stats.FiniteRV(name, density, **kwargs)[source]#

                  Create a Finite Random Variable given a dict representing the density.

                  Parameters:
                  @@ -1226,7 +1226,7 @@

                  Finite Types
                  -sympy.stats.Rademacher(name)[source]#
                  +sympy.stats.Rademacher(name)[source]#

                  Create a Finite Random Variable representing a Rademacher distribution.

                  Returns:
                  @@ -1260,7 +1260,7 @@

                  Finite Types#

                  -sympy.stats.Geometric(name, p)[source]#
                  +sympy.stats.Geometric(name, p)[source]#

                  Create a discrete random variable with a Geometric distribution.

                  Parameters:
                  @@ -1315,7 +1315,7 @@

                  Discrete Types
                  -sympy.stats.Hermite(name, a1, a2)[source]#
                  +sympy.stats.Hermite(name, a1, a2)[source]#

                  Create a discrete random variable with a Hermite distribution.

                  Parameters:
                  @@ -1369,7 +1369,7 @@

                  Discrete Types
                  -sympy.stats.Poisson(name, lamda)[source]#
                  +sympy.stats.Poisson(name, lamda)[source]#

                  Create a discrete random variable with a Poisson distribution.

                  Parameters:
                  @@ -1424,7 +1424,7 @@

                  Discrete Types
                  -sympy.stats.Logarithmic(name, p)[source]#
                  +sympy.stats.Logarithmic(name, p)[source]#

                  Create a discrete random variable with a Logarithmic distribution.

                  Parameters:
                  @@ -1479,7 +1479,7 @@

                  Discrete Types
                  -sympy.stats.NegativeBinomial(name, r, p)[source]#
                  +sympy.stats.NegativeBinomial(name, r, p)[source]#

                  Create a discrete random variable with a Negative Binomial distribution.

                  Parameters:
                  @@ -1536,7 +1536,7 @@

                  Discrete Types
                  -sympy.stats.Skellam(name, mu1, mu2)[source]#
                  +sympy.stats.Skellam(name, mu1, mu2)[source]#

                  Create a discrete random variable with a Skellam distribution.

                  Parameters:
                  @@ -1591,7 +1591,7 @@

                  Discrete Types
                  -sympy.stats.YuleSimon(name, rho)[source]#
                  +sympy.stats.YuleSimon(name, rho)[source]#

                  Create a discrete random variable with a Yule-Simon distribution.

                  Parameters:
                  @@ -1642,7 +1642,7 @@

                  Discrete Types
                  -sympy.stats.Zeta(name, s)[source]#
                  +sympy.stats.Zeta(name, s)[source]#

                  Create a discrete random variable with a Zeta distribution.

                  Parameters:
                  @@ -1696,7 +1696,7 @@

                  Discrete Types#

                  -sympy.stats.Arcsin(name, a=0, b=1)[source]#
                  +sympy.stats.Arcsin(name, a=0, b=1)[source]#

                  Create a Continuous Random Variable with an arcsin distribution.

                  The density of the arcsin distribution is given by

                  @@ -1747,7 +1747,7 @@

                  Continuous Types
                  -sympy.stats.Benini(name, alpha, beta, sigma)[source]#
                  +sympy.stats.Benini(name, alpha, beta, sigma)[source]#

                  Create a Continuous Random Variable with a Benini distribution.

                  The density of the Benini distribution is given by

                  @@ -1811,7 +1811,7 @@

                  Continuous Types
                  -sympy.stats.Beta(name, alpha, beta)[source]#
                  +sympy.stats.Beta(name, alpha, beta)[source]#

                  Create a Continuous Random Variable with a Beta distribution.

                  The density of the Beta distribution is given by

                  @@ -1872,7 +1872,7 @@

                  Continuous Types
                  -sympy.stats.BetaNoncentral(name, alpha, beta, lamda)[source]#
                  +sympy.stats.BetaNoncentral(name, alpha, beta, lamda)[source]#

                  Create a Continuous Random Variable with a Type I Noncentral Beta distribution.

                  The density of the Noncentral Beta distribution is given by

                  @@ -1943,7 +1943,7 @@

                  Continuous Types
                  -sympy.stats.BetaPrime(name, alpha, beta)[source]#
                  +sympy.stats.BetaPrime(name, alpha, beta)[source]#

                  Create a continuous random variable with a Beta prime distribution.

                  The density of the Beta prime distribution is given by

                  @@ -1996,7 +1996,7 @@

                  Continuous Types
                  -sympy.stats.BoundedPareto(name, alpha, left, right)[source]#
                  +sympy.stats.BoundedPareto(name, alpha, left, right)[source]#

                  Create a continuous random variable with a Bounded Pareto distribution.

                  The density of the Bounded Pareto distribution is given by

                  @@ -2047,7 +2047,7 @@

                  Continuous Types
                  -sympy.stats.Cauchy(name, x0, gamma)[source]#
                  +sympy.stats.Cauchy(name, x0, gamma)[source]#

                  Create a continuous random variable with a Cauchy distribution.

                  The density of the Cauchy distribution is given by

                  @@ -2095,7 +2095,7 @@

                  Continuous Types
                  -sympy.stats.Chi(name, k)[source]#
                  +sympy.stats.Chi(name, k)[source]#

                  Create a continuous random variable with a Chi distribution.

                  The density of the Chi distribution is given by

                  @@ -2146,7 +2146,7 @@

                  Continuous Types
                  -sympy.stats.ChiNoncentral(name, k, l)[source]#
                  +sympy.stats.ChiNoncentral(name, k, l)[source]#

                  Create a continuous random variable with a non-central Chi distribution.

                  Parameters:
                  @@ -2200,7 +2200,7 @@

                  Continuous Types
                  -sympy.stats.ChiSquared(name, k)[source]#
                  +sympy.stats.ChiSquared(name, k)[source]#

                  Create a continuous random variable with a Chi-squared distribution.

                  Parameters:
                  @@ -2264,7 +2264,7 @@

                  Continuous Types
                  -sympy.stats.Dagum(name, p, a, b)[source]#
                  +sympy.stats.Dagum(name, p, a, b)[source]#

                  Create a continuous random variable with a Dagum distribution.

                  Parameters:
                  @@ -2326,7 +2326,7 @@

                  Continuous Types
                  -sympy.stats.Davis(name, b, n, mu)[source]#
                  +sympy.stats.Davis(name, b, n, mu)[source]#

                  Create a continuous random variable with Davis distribution.

                  Parameters:
                  @@ -2382,7 +2382,7 @@

                  Continuous Types
                  -sympy.stats.Erlang(name, k, l)[source]#
                  +sympy.stats.Erlang(name, k, l)[source]#

                  Create a continuous random variable with an Erlang distribution.

                  Parameters:
                  @@ -2453,7 +2453,7 @@

                  Continuous Types
                  -sympy.stats.ExGaussian(name, mean, std, rate)[source]#
                  +sympy.stats.ExGaussian(name, mean, std, rate)[source]#

                  Create a continuous random variable with an Exponentially modified Gaussian (EMG) distribution.

                  @@ -2540,7 +2540,7 @@

                  Continuous Types
                  -sympy.stats.Exponential(name, rate)[source]#
                  +sympy.stats.Exponential(name, rate)[source]#

                  Create a continuous random variable with an Exponential distribution.

                  Parameters:
                  @@ -2623,7 +2623,7 @@

                  Continuous Types
                  -sympy.stats.FDistribution(name, d1, d2)[source]#
                  +sympy.stats.FDistribution(name, d1, d2)[source]#

                  Create a continuous random variable with a F distribution.

                  Parameters:
                  @@ -2683,7 +2683,7 @@

                  Continuous Types
                  -sympy.stats.FisherZ(name, d1, d2)[source]#
                  +sympy.stats.FisherZ(name, d1, d2)[source]#

                  Create a Continuous Random Variable with an Fisher’s Z distribution.

                  Parameters:
                  @@ -2748,7 +2748,7 @@

                  Continuous Types
                  -sympy.stats.Frechet(name, a, s=1, m=0)[source]#
                  +sympy.stats.Frechet(name, a, s=1, m=0)[source]#

                  Create a continuous random variable with a Frechet distribution.

                  Parameters:
                  @@ -2801,7 +2801,7 @@

                  Continuous Types
                  -sympy.stats.Gamma(name, k, theta)[source]#
                  +sympy.stats.Gamma(name, k, theta)[source]#

                  Create a continuous random variable with a Gamma distribution.

                  Parameters:
                  @@ -2878,7 +2878,7 @@

                  Continuous Types
                  -sympy.stats.GammaInverse(name, a, b)[source]#
                  +sympy.stats.GammaInverse(name, a, b)[source]#

                  Create a continuous random variable with an inverse Gamma distribution.

                  Parameters:
                  @@ -2935,7 +2935,7 @@

                  Continuous Types
                  -sympy.stats.Gompertz(name, b, eta)[source]#
                  +sympy.stats.Gompertz(name, b, eta)[source]#

                  Create a Continuous Random Variable with Gompertz distribution.

                  Parameters:
                  @@ -2981,7 +2981,7 @@

                  Continuous Types
                  -sympy.stats.Gumbel(name, beta, mu, minimum=False)[source]#
                  +sympy.stats.Gumbel(name, beta, mu, minimum=False)[source]#

                  Create a Continuous Random Variable with Gumbel distribution.

                  Parameters:
                  @@ -3044,7 +3044,7 @@

                  Continuous Types
                  -sympy.stats.Kumaraswamy(name, a, b)[source]#
                  +sympy.stats.Kumaraswamy(name, a, b)[source]#

                  Create a Continuous Random Variable with a Kumaraswamy distribution.

                  Parameters:
                  @@ -3097,7 +3097,7 @@

                  Continuous Types
                  -sympy.stats.Laplace(name, mu, b)[source]#
                  +sympy.stats.Laplace(name, mu, b)[source]#

                  Create a continuous random variable with a Laplace distribution.

                  Parameters:
                  @@ -3164,7 +3164,7 @@

                  Continuous Types
                  -sympy.stats.Levy(name, mu, c)[source]#
                  +sympy.stats.Levy(name, mu, c)[source]#

                  Create a continuous random variable with a Levy distribution.

                  The density of the Levy distribution is given by

                  @@ -3222,7 +3222,7 @@

                  Continuous Types
                  -sympy.stats.Logistic(name, mu, s)[source]#
                  +sympy.stats.Logistic(name, mu, s)[source]#

                  Create a continuous random variable with a logistic distribution.

                  Parameters:
                  @@ -3275,7 +3275,7 @@

                  Continuous Types
                  -sympy.stats.LogLogistic(name, alpha, beta)[source]#
                  +sympy.stats.LogLogistic(name, alpha, beta)[source]#

                  Create a continuous random variable with a log-logistic distribution. The distribution is unimodal when beta > 1.

                  @@ -3341,7 +3341,7 @@

                  Continuous Types
                  -sympy.stats.LogNormal(name, mean, std)[source]#
                  +sympy.stats.LogNormal(name, mean, std)[source]#

                  Create a continuous random variable with a log-normal distribution.

                  Parameters:
                  @@ -3414,7 +3414,7 @@

                  Continuous Types
                  -sympy.stats.Lomax(name, alpha, lamda)[source]#
                  +sympy.stats.Lomax(name, alpha, lamda)[source]#

                  Create a continuous random variable with a Lomax distribution.

                  Parameters:
                  @@ -3464,7 +3464,7 @@

                  Continuous Types
                  -sympy.stats.Maxwell(name, a)[source]#
                  +sympy.stats.Maxwell(name, a)[source]#

                  Create a continuous random variable with a Maxwell distribution.

                  Parameters:
                  @@ -3520,7 +3520,7 @@

                  Continuous Types
                  -sympy.stats.Moyal(name, mu, sigma)[source]#
                  +sympy.stats.Moyal(name, mu, sigma)[source]#

                  Create a continuous random variable with a Moyal distribution.

                  Parameters:
                  @@ -3572,7 +3572,7 @@

                  Continuous Types
                  -sympy.stats.Nakagami(name, mu, omega)[source]#
                  +sympy.stats.Nakagami(name, mu, omega)[source]#

                  Create a continuous random variable with a Nakagami distribution.

                  Parameters:
                  @@ -3643,7 +3643,7 @@

                  Continuous Types
                  -sympy.stats.Normal(name, mean, std)[source]#
                  +sympy.stats.Normal(name, mean, std)[source]#

                  Create a continuous random variable with a Normal distribution.

                  Parameters:
                  @@ -3741,7 +3741,7 @@

                  Continuous Types
                  -sympy.stats.Pareto(name, xm, alpha)[source]#
                  +sympy.stats.Pareto(name, xm, alpha)[source]#

                  Create a continuous random variable with the Pareto distribution.

                  Parameters:
                  @@ -3791,7 +3791,7 @@

                  Continuous Types
                  -sympy.stats.PowerFunction(name, alpha, a, b)[source]#
                  +sympy.stats.PowerFunction(name, alpha, a, b)[source]#

                  Creates a continuous random variable with a Power Function Distribution.

                  Parameters:
                  @@ -3856,7 +3856,7 @@

                  Continuous Types
                  -sympy.stats.QuadraticU(name, a, b)[source]#
                  +sympy.stats.QuadraticU(name, a, b)[source]#

                  Create a Continuous Random Variable with a U-quadratic distribution.

                  Parameters:
                  @@ -3911,7 +3911,7 @@

                  Continuous Types
                  -sympy.stats.RaisedCosine(name, mu, s)[source]#
                  +sympy.stats.RaisedCosine(name, mu, s)[source]#

                  Create a Continuous Random Variable with a raised cosine distribution.

                  Parameters:
                  @@ -3964,7 +3964,7 @@

                  Continuous Types
                  -sympy.stats.Rayleigh(name, sigma)[source]#
                  +sympy.stats.Rayleigh(name, sigma)[source]#

                  Create a continuous random variable with a Rayleigh distribution.

                  Parameters:
                  @@ -4020,7 +4020,7 @@

                  Continuous Types
                  -sympy.stats.Reciprocal(name, a, b)[source]#
                  +sympy.stats.Reciprocal(name, a, b)[source]#

                  Creates a continuous random variable with a reciprocal distribution.

                  Parameters:
                  @@ -4055,7 +4055,7 @@

                  Continuous Types
                  -sympy.stats.StudentT(name, nu)[source]#
                  +sympy.stats.StudentT(name, nu)[source]#

                  Create a continuous random variable with a student’s t distribution.

                  Parameters:
                  @@ -4120,7 +4120,7 @@

                  Continuous Types
                  -sympy.stats.ShiftedGompertz(name, b, eta)[source]#
                  +sympy.stats.ShiftedGompertz(name, b, eta)[source]#

                  Create a continuous random variable with a Shifted Gompertz distribution.

                  Parameters:
                  @@ -4166,7 +4166,7 @@

                  Continuous Types
                  -sympy.stats.Trapezoidal(name, a, b, c, d)[source]#
                  +sympy.stats.Trapezoidal(name, a, b, c, d)[source]#

                  Create a continuous random variable with a trapezoidal distribution.

                  Parameters:
                  @@ -4233,7 +4233,7 @@

                  Continuous Types
                  -sympy.stats.Triangular(name, a, b, c)[source]#
                  +sympy.stats.Triangular(name, a, b, c)[source]#

                  Create a continuous random variable with a triangular distribution.

                  Parameters:
                  @@ -4302,7 +4302,7 @@

                  Continuous Types
                  -sympy.stats.Uniform(name, left, right)[source]#
                  +sympy.stats.Uniform(name, left, right)[source]#

                  Create a continuous random variable with a uniform distribution.

                  Parameters:
                  @@ -4367,7 +4367,7 @@

                  Continuous Types
                  -sympy.stats.UniformSum(name, n)[source]#
                  +sympy.stats.UniformSum(name, n)[source]#

                  Create a continuous random variable with an Irwin-Hall distribution.

                  Parameters:
                  @@ -4437,7 +4437,7 @@

                  Continuous Types
                  -sympy.stats.VonMises(name, mu, k)[source]#
                  +sympy.stats.VonMises(name, mu, k)[source]#

                  Create a Continuous Random Variable with a von Mises distribution.

                  Parameters:
                  @@ -4497,7 +4497,7 @@

                  Continuous Types
                  -sympy.stats.Wald(name, mean, shape)[source]#
                  +sympy.stats.Wald(name, mean, shape)[source]#

                  Create a continuous random variable with an Inverse Gaussian distribution. Inverse Gaussian distribution is also known as Wald distribution.

                  @@ -4572,7 +4572,7 @@

                  Continuous Types
                  -sympy.stats.Weibull(name, alpha, beta)[source]#
                  +sympy.stats.Weibull(name, alpha, beta)[source]#

                  Create a continuous random variable with a Weibull distribution.

                  Parameters:
                  @@ -4633,7 +4633,7 @@

                  Continuous Types
                  -sympy.stats.WignerSemicircle(name, R)[source]#
                  +sympy.stats.WignerSemicircle(name, R)[source]#

                  Create a continuous random variable with a Wigner semicircle distribution.

                  Parameters:
                  @@ -4685,7 +4685,7 @@

                  Continuous Types
                  -sympy.stats.ContinuousRV(symbol, density, set=Interval(-oo, oo), **kwargs)[source]#
                  +sympy.stats.ContinuousRV(symbol, density, set=Interval(-oo, oo), **kwargs)[source]#

                  Create a Continuous Random Variable given the following:

                  Parameters:
                  @@ -4739,7 +4739,7 @@

                  Continuous Types#

                  -sympy.stats.JointRV(symbol, pdf, _set=None)[source]#
                  +sympy.stats.JointRV(symbol, pdf, _set=None)[source]#

                  Create a Joint Random Variable where each of its component is continuous, given the following:

                  @@ -4774,7 +4774,7 @@

                  Joint Types
                  -sympy.stats.marginal_distribution(rv, *indices)[source]#
                  +sympy.stats.marginal_distribution(rv, *indices)[source]#

                  Marginal distribution function of a joint random variable.

                  Parameters:
                  @@ -4799,7 +4799,7 @@

                  Joint Types
                  -sympy.stats.MultivariateNormal(name, mu, sigma)[source]#
                  +sympy.stats.MultivariateNormal(name, mu, sigma)[source]#

                  Creates a continuous random variable with Multivariate Normal Distribution.

                  The density of the multivariate normal distribution can be found at [1].

                  @@ -4857,7 +4857,7 @@

                  Joint Types
                  -sympy.stats.MultivariateLaplace(name, mu, sigma)[source]#
                  +sympy.stats.MultivariateLaplace(name, mu, sigma)[source]#

                  Creates a continuous random variable with Multivariate Laplace Distribution.

                  The density of the multivariate Laplace distribution can be found at [1].

                  @@ -4895,7 +4895,7 @@

                  Joint Types
                  -sympy.stats.GeneralizedMultivariateLogGamma(syms, delta, v, lamda, mu)[source]#
                  +sympy.stats.GeneralizedMultivariateLogGamma(syms, delta, v, lamda, mu)[source]#

                  Creates a joint random variable with generalized multivariate log gamma distribution.

                  The joint pdf can be found at [1].

                  @@ -4948,7 +4948,7 @@

                  Joint Types
                  -sympy.stats.GeneralizedMultivariateLogGammaOmega(syms, omega, v, lamda, mu)[source]#
                  +sympy.stats.GeneralizedMultivariateLogGammaOmega(syms, omega, v, lamda, mu)[source]#

                  Extends GeneralizedMultivariateLogGamma.

                  Parameters:
                  @@ -5004,7 +5004,7 @@

                  Joint Types
                  -sympy.stats.Multinomial(syms, n, *p)[source]#
                  +sympy.stats.Multinomial(syms, n, *p)[source]#

                  Creates a discrete random variable with Multinomial Distribution.

                  The density of the said distribution can be found at [1].

                  @@ -5050,7 +5050,7 @@

                  Joint Types
                  -sympy.stats.MultivariateBeta(syms, *alpha)[source]#
                  +sympy.stats.MultivariateBeta(syms, *alpha)[source]#

                  Creates a continuous random variable with Dirichlet/Multivariate Beta Distribution.

                  The density of the Dirichlet distribution can be found at [1].

                  @@ -5095,7 +5095,7 @@

                  Joint Types
                  -sympy.stats.MultivariateEwens(syms, n, theta)[source]#
                  +sympy.stats.MultivariateEwens(syms, n, theta)[source]#

                  Creates a discrete random variable with Multivariate Ewens Distribution.

                  The density of the said distribution can be found at [1].

                  @@ -5141,7 +5141,7 @@

                  Joint Types
                  -sympy.stats.MultivariateT(syms, mu, sigma, v)[source]#
                  +sympy.stats.MultivariateT(syms, mu, sigma, v)[source]#

                  Creates a joint random variable with multivariate T-distribution.

                  Parameters:
                  @@ -5176,7 +5176,7 @@

                  Joint Types
                  -sympy.stats.NegativeMultinomial(syms, k0, *p)[source]#
                  +sympy.stats.NegativeMultinomial(syms, k0, *p)[source]#

                  Creates a discrete random variable with Negative Multinomial Distribution.

                  The density of the said distribution can be found at [1].

                  @@ -5223,7 +5223,7 @@

                  Joint Types
                  -sympy.stats.NormalGamma(sym, mu, lamda, alpha, beta)[source]#
                  +sympy.stats.NormalGamma(sym, mu, lamda, alpha, beta)[source]#

                  Creates a bivariate joint random variable with multivariate Normal gamma distribution.

                  @@ -5280,7 +5280,7 @@

                  Joint Types

                  Stochastic Processes#

                  -class sympy.stats.DiscreteMarkovChain(sym, state_space=None, trans_probs=None)[source]#
                  +class sympy.stats.DiscreteMarkovChain(sym, state_space=None, trans_probs=None)[source]#

                  Represents a finite discrete time-homogeneous Markov chain.

                  This type of Markov Chain can be uniquely characterised by its (ordered) state space and its one-step transition probability @@ -5407,7 +5407,7 @@

                  Joint Types
                  -absorbing_probabilities()[source]#
                  +absorbing_probabilities()[source]#

                  Computes the absorbing probabilities, i.e. the ij-th entry of the matrix denotes the probability of Markov chain being absorbed @@ -5416,7 +5416,7 @@

                  Joint Types
                  -canonical_form() Tuple[List[Basic], ImmutableDenseMatrix][source]#
                  +canonical_form() Tuple[List[Basic], ImmutableDenseMatrix][source]#

                  Reorders the one-step transition matrix so that recurrent states appear first and transient states appear last. Other representations include inserting @@ -5518,7 +5518,7 @@

                  Joint Types
                  -communication_classes() List[Tuple[List[Basic], Boolean, Integer]][source]#
                  +communication_classes() List[Tuple[List[Basic], Boolean, Integer]][source]#

                  Returns the list of communication classes that partition the states of the markov chain.

                  A communication class is defined to be a set of states @@ -5590,7 +5590,7 @@

                  Joint Types
                  -decompose() Tuple[List[Basic], ImmutableDenseMatrix, ImmutableDenseMatrix, ImmutableDenseMatrix][source]#
                  +decompose() Tuple[List[Basic], ImmutableDenseMatrix, ImmutableDenseMatrix, ImmutableDenseMatrix][source]#

                  Decomposes the transition matrix into submatrices with special properties.

                  The transition matrix can be decomposed into 4 submatrices: @@ -5673,13 +5673,13 @@

                  Joint Types
                  -fixed_row_vector()[source]#
                  +fixed_row_vector()[source]#

                  A wrapper for stationary_distribution().

                  -fundamental_matrix()[source]#
                  +fundamental_matrix()[source]#

                  Each entry fundamental matrix can be interpreted as the expected number of times the chains is in state j if it started in state i.

                  @@ -5701,7 +5701,7 @@

                  Joint Types
                  -sample()[source]#
                  +sample()[source]#
                  Returns:

                  sample: iterator object

                  @@ -5714,7 +5714,7 @@

                  Joint Types
                  -stationary_distribution(condition_set=False) ImmutableDenseMatrix | ConditionSet | Lambda[source]#
                  +stationary_distribution(condition_set=False) ImmutableDenseMatrix | ConditionSet | Lambda[source]#

                  The stationary distribution is any row vector, p, that solves p = pP, is row stochastic and each element in p must be nonnegative. That means in matrix form: \((P-I)^T p^T = 0\) and @@ -5794,7 +5794,7 @@

                  Joint Types
                  -class sympy.stats.ContinuousMarkovChain(sym, state_space=None, gen_mat=None)[source]#
                  +class sympy.stats.ContinuousMarkovChain(sym, state_space=None, gen_mat=None)[source]#

                  Represents continuous time Markov chain.

                  Parameters:
                  @@ -5879,7 +5879,7 @@

                  Joint Types
                  -class sympy.stats.BernoulliProcess(sym, p, success=1, failure=0)[source]#
                  +class sympy.stats.BernoulliProcess(sym, p, success=1, failure=0)[source]#

                  The Bernoulli process consists of repeated independent Bernoulli process trials with the same parameter \(p\). It’s assumed that the probability \(p\) applies to every @@ -5949,7 +5949,7 @@

                  Joint Types
                  -expectation(expr, condition=None, evaluate=True, **kwargs)[source]#
                  +expectation(expr, condition=None, evaluate=True, **kwargs)[source]#

                  Computes expectation.

                  Parameters:
                  @@ -5971,7 +5971,7 @@

                  Joint Types
                  -probability(condition, given_condition=None, evaluate=True, **kwargs)[source]#
                  +probability(condition, given_condition=None, evaluate=True, **kwargs)[source]#

                  Computes probability.

                  Parameters:
                  @@ -5995,7 +5995,7 @@

                  Joint Types
                  -class sympy.stats.PoissonProcess(sym, lamda)[source]#
                  +class sympy.stats.PoissonProcess(sym, lamda)[source]#

                  The Poisson process is a counting process. It is usually used in scenarios where we are counting the occurrences of certain events that appear to happen at a certain rate, but completely at random.

                  @@ -6065,7 +6065,7 @@

                  Joint Types
                  -class sympy.stats.WienerProcess(sym)[source]#
                  +class sympy.stats.WienerProcess(sym)[source]#

                  The Wiener process is a real valued continuous-time stochastic process. In physics it is used to study Brownian motion and it is often also called Brownian motion due to its historical connection with physical process of the @@ -6108,7 +6108,7 @@

                  Joint Types
                  -class sympy.stats.GammaProcess(sym, lamda, gamma)[source]#
                  +class sympy.stats.GammaProcess(sym, lamda, gamma)[source]#

                  A Gamma process is a random process with independent gamma distributed increments. It is a pure-jump increasing Levy process.

                  @@ -6157,7 +6157,7 @@

                  Joint Types#

                  -sympy.stats.MatrixGamma(symbol, alpha, beta, scale_matrix)[source]#
                  +sympy.stats.MatrixGamma(symbol, alpha, beta, scale_matrix)[source]#

                  Creates a random variable with Matrix Gamma Distribution.

                  The density of the said distribution can be found at [1].

                  @@ -6204,7 +6204,7 @@

                  Matrix Distributions
                  -sympy.stats.Wishart(symbol, n, scale_matrix)[source]#
                  +sympy.stats.Wishart(symbol, n, scale_matrix)[source]#

                  Creates a random variable with Wishart Distribution.

                  The density of the said distribution can be found at [1].

                  @@ -6247,7 +6247,7 @@

                  Matrix Distributions
                  -sympy.stats.MatrixNormal(symbol, location_matrix, scale_matrix_1, scale_matrix_2)[source]#
                  +sympy.stats.MatrixNormal(symbol, location_matrix, scale_matrix_1, scale_matrix_2)[source]#

                  Creates a random variable with Matrix Normal Distribution.

                  The density of the said distribution can be found at [1].

                  @@ -6296,7 +6296,7 @@

                  Matrix DistributionsCompound Distribution#

                  -class sympy.stats.compound_rv.CompoundDistribution(dist)[source]#
                  +class sympy.stats.compound_rv.CompoundDistribution(dist)[source]#

                  Class for Compound Distributions.

                  Parameters:
                  @@ -6335,7 +6335,7 @@

                  Compound DistributionInterface#

                  -sympy.stats.P(condition, given_condition=None, numsamples=None, evaluate=True, **kwargs)[source]#
                  +sympy.stats.P(condition, given_condition=None, numsamples=None, evaluate=True, **kwargs)[source]#

                  Probability that a condition is true, optionally given a second condition.

                  Parameters:
                  @@ -6374,7 +6374,7 @@

                  Interface
                  -class sympy.stats.Probability(prob, condition=None, **kwargs)[source]#
                  +class sympy.stats.Probability(prob, condition=None, **kwargs)[source]#

                  Symbolic expression for the probability.

                  Examples

                  >>> from sympy.stats import Probability, Normal
                  @@ -6399,7 +6399,7 @@ 

                  Interface
                  -sympy.stats.E(expr, condition=None, numsamples=None, evaluate=True, **kwargs)[source]#
                  +sympy.stats.E(expr, condition=None, numsamples=None, evaluate=True, **kwargs)[source]#

                  Returns the expected value of a random expression.

                  Parameters:
                  @@ -6442,7 +6442,7 @@

                  Interface
                  -class sympy.stats.Expectation(expr, condition=None, **kwargs)[source]#
                  +class sympy.stats.Expectation(expr, condition=None, **kwargs)[source]#

                  Symbolic expression for the expectation.

                  Examples

                  >>> from sympy.stats import Expectation, Normal, Probability, Poisson
                  @@ -6511,7 +6511,7 @@ 

                  Interface
                  -sympy.stats.density(expr, condition=None, evaluate=True, numsamples=None, **kwargs)[source]#
                  +sympy.stats.density(expr, condition=None, evaluate=True, numsamples=None, **kwargs)[source]#

                  Probability density of a random expression, optionally given a second condition.

                  @@ -6557,7 +6557,7 @@

                  Interface
                  -sympy.stats.entropy(expr, condition=None, **kwargs)[source]#
                  +sympy.stats.entropy(expr, condition=None, **kwargs)[source]#

                  Calculuates entropy of a probability distribution.

                  Parameters:
                  @@ -6603,7 +6603,7 @@

                  Interface
                  -sympy.stats.given(expr, condition=None, **kwargs)[source]#
                  +sympy.stats.given(expr, condition=None, **kwargs)[source]#

                  Conditional Random Expression.

                  Explanation

                  From a random expression and a condition on that expression creates a new @@ -6641,7 +6641,7 @@

                  Interface
                  -sympy.stats.where(condition, given_condition=None, **kwargs)[source]#
                  +sympy.stats.where(condition, given_condition=None, **kwargs)[source]#

                  Returns the domain where a condition is True.

                  Examples

                  >>> from sympy.stats import where, Die, Normal
                  @@ -6669,7 +6669,7 @@ 

                  Interface
                  -sympy.stats.variance(X, condition=None, **kwargs)[source]#
                  +sympy.stats.variance(X, condition=None, **kwargs)[source]#

                  Variance of a random expression.

                  @@ -6697,7 +6697,7 @@

                  Interface
                  -class sympy.stats.Variance(arg, condition=None, **kwargs)[source]#
                  +class sympy.stats.Variance(arg, condition=None, **kwargs)[source]#

                  Symbolic expression for the variance.

                  Examples

                  >>> from sympy import symbols, Integral
                  @@ -6746,7 +6746,7 @@ 

                  Interface
                  -sympy.stats.covariance(X, Y, condition=None, **kwargs)[source]#
                  +sympy.stats.covariance(X, Y, condition=None, **kwargs)[source]#

                  Covariance of two random expressions.

                  Explanation

                  The expectation that the two variables will rise and fall together

                  @@ -6776,7 +6776,7 @@

                  Interface
                  -class sympy.stats.Covariance(arg1, arg2, condition=None, **kwargs)[source]#
                  +class sympy.stats.Covariance(arg1, arg2, condition=None, **kwargs)[source]#

                  Symbolic expression for the covariance.

                  Examples

                  >>> from sympy.stats import Covariance
                  @@ -6821,7 +6821,7 @@ 

                  Interface
                  -sympy.stats.coskewness(X, Y, Z, condition=None, **kwargs)[source]#
                  +sympy.stats.coskewness(X, Y, Z, condition=None, **kwargs)[source]#

                  Calculates the co-skewness of three random variables.

                  Parameters:
                  @@ -6881,7 +6881,7 @@

                  Interface
                  -sympy.stats.median(X, evaluate=True, **kwargs)[source]#
                  +sympy.stats.median(X, evaluate=True, **kwargs)[source]#

                  Calculuates the median of the probability distribution.

                  Parameters:
                  @@ -6920,7 +6920,7 @@

                  Interface
                  -sympy.stats.std(X, condition=None, **kwargs)[source]#
                  +sympy.stats.std(X, condition=None, **kwargs)[source]#

                  Standard Deviation of a random expression

                  @@ -6943,7 +6943,7 @@

                  Interface
                  -sympy.stats.quantile(expr, evaluate=True, **kwargs)[source]#
                  +sympy.stats.quantile(expr, evaluate=True, **kwargs)[source]#

                  Return the \(p^{th}\) order quantile of a probability distribution.

                  Explanation

                  Quantile is defined as the value at which the probability of the random @@ -6985,7 +6985,7 @@

                  Interface
                  -sympy.stats.sample(expr, condition=None, size=(), library='scipy', numsamples=1, seed=None, **kwargs)[source]#
                  +sympy.stats.sample(expr, condition=None, size=(), library='scipy', numsamples=1, seed=None, **kwargs)[source]#

                  A realization of the random expression.

                  Parameters:
                  @@ -7094,7 +7094,7 @@

                  Interface
                  -sympy.stats.sample_iter(expr, condition=None, size=(), library='scipy', numsamples=oo, seed=None, **kwargs)[source]#
                  +sympy.stats.sample_iter(expr, condition=None, size=(), library='scipy', numsamples=oo, seed=None, **kwargs)[source]#

                  Returns an iterator of realizations from the expression given a condition.

                  Parameters:
                  @@ -7153,7 +7153,7 @@

                  Interface
                  -sympy.stats.factorial_moment(X, n, condition=None, **kwargs)[source]#
                  +sympy.stats.factorial_moment(X, n, condition=None, **kwargs)[source]#

                  The factorial moment is a mathematical quantity defined as the expectation or average of the falling factorial of a random variable.

                  @@ -7198,7 +7198,7 @@

                  Interface
                  -sympy.stats.kurtosis(X, condition=None, **kwargs)[source]#
                  +sympy.stats.kurtosis(X, condition=None, **kwargs)[source]#

                  Characterizes the tails/outliers of a probability distribution.

                  Parameters:
                  @@ -7247,7 +7247,7 @@

                  Interface
                  -sympy.stats.skewness(X, condition=None, **kwargs)[source]#
                  +sympy.stats.skewness(X, condition=None, **kwargs)[source]#

                  Measure of the asymmetry of the probability distribution.

                  Parameters:
                  @@ -7284,7 +7284,7 @@

                  Interface
                  -sympy.stats.correlation(X, Y, condition=None, **kwargs)[source]#
                  +sympy.stats.correlation(X, Y, condition=None, **kwargs)[source]#

                  Correlation of two random expressions, also known as correlation coefficient or Pearson’s correlation.

                  Explanation

                  @@ -7316,7 +7316,7 @@

                  Interface
                  -sympy.stats.rv.sampling_density(expr, given_condition=None, library='scipy', numsamples=1, seed=None, **kwargs)[source]#
                  +sympy.stats.rv.sampling_density(expr, given_condition=None, library='scipy', numsamples=1, seed=None, **kwargs)[source]#

                  Sampling version of density.

                  See also

                  @@ -7326,7 +7326,7 @@

                  Interface
                  -sympy.stats.rv.sampling_P(condition, given_condition=None, library='scipy', numsamples=1, evalf=True, seed=None, **kwargs)[source]#
                  +sympy.stats.rv.sampling_P(condition, given_condition=None, library='scipy', numsamples=1, evalf=True, seed=None, **kwargs)[source]#

                  Sampling version of P.

                  See also

                  @@ -7336,7 +7336,7 @@

                  Interface
                  -sympy.stats.rv.sampling_E(expr, given_condition=None, library='scipy', numsamples=1, evalf=True, seed=None, **kwargs)[source]#
                  +sympy.stats.rv.sampling_E(expr, given_condition=None, library='scipy', numsamples=1, evalf=True, seed=None, **kwargs)[source]#

                  Sampling version of E.

                  See also

                  @@ -7346,7 +7346,7 @@

                  Interface
                  -class sympy.stats.Moment(X, n, c=0, condition=None, **kwargs)[source]#
                  +class sympy.stats.Moment(X, n, c=0, condition=None, **kwargs)[source]#

                  Symbolic class for Moment

                  Examples

                  >>> from sympy import Symbol, Integral
                  @@ -7381,7 +7381,7 @@ 

                  Interface
                  -sympy.stats.moment(X, n, c=0, condition=None, *, evaluate=True, **kwargs)[source]#
                  +sympy.stats.moment(X, n, c=0, condition=None, *, evaluate=True, **kwargs)[source]#

                  Return the nth moment of a random expression about c.

                  @@ -7403,7 +7403,7 @@

                  Interface
                  -class sympy.stats.CentralMoment(X, n, condition=None, **kwargs)[source]#
                  +class sympy.stats.CentralMoment(X, n, condition=None, **kwargs)[source]#

                  Symbolic class Central Moment

                  Examples

                  >>> from sympy import Symbol, Integral
                  @@ -7438,7 +7438,7 @@ 

                  Interface
                  -sympy.stats.cmoment(X, n, condition=None, *, evaluate=True, **kwargs)[source]#
                  +sympy.stats.cmoment(X, n, condition=None, *, evaluate=True, **kwargs)[source]#

                  Return the nth central moment of a random expression about its mean.

                  @@ -7459,7 +7459,7 @@

                  Interface
                  -class sympy.stats.ExpectationMatrix(expr, condition=None)[source]#
                  +class sympy.stats.ExpectationMatrix(expr, condition=None)[source]#

                  Expectation of a random matrix expression.

                  Examples

                  >>> from sympy.stats import ExpectationMatrix, Normal
                  @@ -7498,7 +7498,7 @@ 

                  Interface
                  -class sympy.stats.VarianceMatrix(arg, condition=None)[source]#
                  +class sympy.stats.VarianceMatrix(arg, condition=None)[source]#

                  Variance of a random matrix probability expression. Also known as Covariance matrix, auto-covariance matrix, dispersion matrix, or variance-covariance matrix.

                  @@ -7526,7 +7526,7 @@

                  Interface
                  -class sympy.stats.CrossCovarianceMatrix(arg1, arg2, condition=None)[source]#
                  +class sympy.stats.CrossCovarianceMatrix(arg1, arg2, condition=None)[source]#

                  Covariance of a random matrix probability expression.

                  Examples

                  >>> from sympy.stats import CrossCovarianceMatrix
                  @@ -7565,7 +7565,7 @@ 

                  Interface\(\{1,2,3,4,5,6\}\).

                  -class sympy.stats.rv.RandomDomain[source]#
                  +class sympy.stats.rv.RandomDomain[source]#

                  A PSpace, or Probability Space, combines a RandomDomain @@ -7575,13 +7575,13 @@

                  Interfacex.

                  -class sympy.stats.rv.PSpace[source]#
                  +class sympy.stats.rv.PSpace[source]#

                  A RandomSymbol represents the PSpace’s symbol ‘x’ inside of SymPy expressions.

                  -class sympy.stats.rv.RandomSymbol[source]#
                  +class sympy.stats.rv.RandomSymbol[source]#

                  The RandomDomain and PSpace classes are almost never directly instantiated. @@ -7593,12 +7593,12 @@

                  Interface
                  -class sympy.stats.rv.SinglePSpace[source]#
                  +class sympy.stats.rv.SinglePSpace[source]#

                  -class sympy.stats.rv.SingleDomain[source]#
                  +class sympy.stats.rv.SingleDomain[source]#

                  Another common case is to collect together a set of such univariate random @@ -7607,12 +7607,12 @@

                  Interface
                  -class sympy.stats.rv.ProductDomain[source]#
                  +class sympy.stats.rv.ProductDomain[source]#

                  -class sympy.stats.rv.ProductPSpace[source]#
                  +class sympy.stats.rv.ProductPSpace[source]#

                  The Conditional adjective is added whenever we add a global condition to a @@ -7620,7 +7620,7 @@

                  Interface
                  -class sympy.stats.rv.ConditionalDomain[source]#
                  +class sympy.stats.rv.ConditionalDomain[source]#

                  We specialize further into Finite and Continuous versions of these classes to @@ -7628,22 +7628,22 @@

                  Interface
                  -class sympy.stats.frv.FiniteDomain[source]#
                  +class sympy.stats.frv.FiniteDomain[source]#

                  -class sympy.stats.frv.FinitePSpace[source]#
                  +class sympy.stats.frv.FinitePSpace[source]#
                  -class sympy.stats.crv.ContinuousDomain[source]#
                  +class sympy.stats.crv.ContinuousDomain[source]#
                  -class sympy.stats.crv.ContinuousPSpace[source]#
                  +class sympy.stats.crv.ContinuousPSpace[source]#

                  Additionally there are a few specialized classes that implement certain common @@ -7687,13 +7687,13 @@

                  Interface
                  -sympy.stats.rv.random_symbols(expr)[source]#
                  +sympy.stats.rv.random_symbols(expr)[source]#

                  Returns all RandomSymbols within a SymPy Expression.

                  -sympy.stats.rv.pspace(expr)[source]#
                  +sympy.stats.rv.pspace(expr)[source]#

                  Returns the underlying Probability Space of a random expression.

                  For internal use.

                  Examples

                  @@ -7707,7 +7707,7 @@

                  Interface
                  -sympy.stats.rv.rs_swap(a, b)[source]#
                  +sympy.stats.rv.rs_swap(a, b)[source]#

                  Build a dictionary to swap RandomSymbols based on their underlying symbol.

                  i.e. if X = ('x', pspace1) diff --git a/dev/modules/tensor/array.html b/dev/modules/tensor/array.html index e627949dd85..df148eaa322 100644 --- a/dev/modules/tensor/array.html +++ b/dev/modules/tensor/array.html @@ -973,22 +973,22 @@

                  Derivatives by arrayClasses#

                  -class sympy.tensor.array.ImmutableDenseNDimArray(iterable, shape=None, **kwargs)[source]#
                  +class sympy.tensor.array.ImmutableDenseNDimArray(iterable, shape=None, **kwargs)[source]#
                  -class sympy.tensor.array.ImmutableSparseNDimArray(iterable=None, shape=None, **kwargs)[source]#
                  +class sympy.tensor.array.ImmutableSparseNDimArray(iterable=None, shape=None, **kwargs)[source]#
                  -class sympy.tensor.array.MutableDenseNDimArray(iterable=None, shape=None, **kwargs)[source]#
                  +class sympy.tensor.array.MutableDenseNDimArray(iterable=None, shape=None, **kwargs)[source]#
                  -class sympy.tensor.array.MutableSparseNDimArray(iterable=None, shape=None, **kwargs)[source]#
                  +class sympy.tensor.array.MutableSparseNDimArray(iterable=None, shape=None, **kwargs)[source]#
                  @@ -996,7 +996,7 @@

                  Classes#<

                  Functions#

                  -sympy.tensor.array.derive_by_array(expr, dx)[source]#
                  +sympy.tensor.array.derive_by_array(expr, dx)[source]#

                  Derivative by arrays. Supports both arrays and scalars.

                  The equivalent operator for array expressions is array_derive.

                  Explanation

                  @@ -1019,7 +1019,7 @@

                  Functions
                  -sympy.tensor.array.permutedims(expr, perm=None, index_order_old=None, index_order_new=None)[source]#
                  +sympy.tensor.array.permutedims(expr, perm=None, index_order_old=None, index_order_new=None)[source]#

                  Permutes the indices of an array.

                  Parameter specifies the permutation of the indices.

                  The equivalent operator for array expressions is PermuteDims, which can @@ -1072,7 +1072,7 @@

                  Functions
                  -sympy.tensor.array.tensorcontraction(array, *contraction_axes)[source]#
                  +sympy.tensor.array.tensorcontraction(array, *contraction_axes)[source]#

                  Contraction of an array-like object on the specified axes.

                  The equivalent operator for array expressions is ArrayContraction, which can be used to keep the expression unevaluated.

                  @@ -1113,7 +1113,7 @@

                  Functions
                  -sympy.tensor.array.tensorproduct(*args)[source]#
                  +sympy.tensor.array.tensorproduct(*args)[source]#

                  Tensor product among scalars or array-like objects.

                  The equivalent operator for array expressions is ArrayTensorProduct, which can be used to keep the expression unevaluated.

                  @@ -1146,7 +1146,7 @@

                  Functions
                  -sympy.tensor.array.tensordiagonal(array, *diagonal_axes)[source]#
                  +sympy.tensor.array.tensordiagonal(array, *diagonal_axes)[source]#

                  Diagonalization of an array-like object on the specified axes.

                  This is equivalent to multiplying the expression by Kronecker deltas uniting the axes.

                  diff --git a/dev/modules/tensor/array_expressions.html b/dev/modules/tensor/array_expressions.html index 30b2b63931b..ae3cf63722d 100644 --- a/dev/modules/tensor/array_expressions.html +++ b/dev/modules/tensor/array_expressions.html @@ -904,20 +904,20 @@

                  Compatibility with matrices
                  -class sympy.tensor.array.expressions.ArrayTensorProduct(*args, **kwargs)[source]#
                  +class sympy.tensor.array.expressions.ArrayTensorProduct(*args, **kwargs)[source]#

                  Class to represent the tensor product of array-like objects.

                  -class sympy.tensor.array.expressions.ArrayContraction(expr, *contraction_indices, **kwargs)[source]#
                  +class sympy.tensor.array.expressions.ArrayContraction(expr, *contraction_indices, **kwargs)[source]#

                  This class is meant to represent contractions of arrays in a form easily processable by the code printers.

                  -class sympy.tensor.array.expressions.ArrayDiagonal(expr, *diagonal_indices, **kwargs)[source]#
                  +class sympy.tensor.array.expressions.ArrayDiagonal(expr, *diagonal_indices, **kwargs)[source]#

                  Class to represent the diagonal operator.

                  Explanation

                  In a 2-dimensional array it returns the diagonal, this looks like the @@ -936,7 +936,7 @@

                  Compatibility with matrices
                  -class sympy.tensor.array.expressions.PermuteDims(expr, permutation=None, index_order_old=None, index_order_new=None, **kwargs)[source]#
                  +class sympy.tensor.array.expressions.PermuteDims(expr, permutation=None, index_order_old=None, index_order_new=None, **kwargs)[source]#

                  Class to represent permutation of axes of arrays.

                  Examples

                  >>> from sympy.tensor.array import permutedims
                  diff --git a/dev/modules/tensor/index_methods.html b/dev/modules/tensor/index_methods.html
                  index 4ace4db47f2..b37331619c5 100644
                  --- a/dev/modules/tensor/index_methods.html
                  +++ b/dev/modules/tensor/index_methods.html
                  @@ -750,7 +750,7 @@ 
                  Documentation Version
                  refactoring.

                  -sympy.tensor.index_methods.get_contraction_structure(expr)[source]#
                  +sympy.tensor.index_methods.get_contraction_structure(expr)[source]#

                  Determine dummy indices of expr and describe its structure

                  By dummy we mean indices that are summation indices.

                  The structure of the expression is determined and described as follows:

                  @@ -850,7 +850,7 @@
                  Documentation Version
                  -sympy.tensor.index_methods.get_indices(expr)[source]#
                  +sympy.tensor.index_methods.get_indices(expr)[source]#

                  Determine the outer indices of expression expr

                  By outer we mean indices that are not summation indices. Returns a set and a dict. The set contains outer indices and the dict contains diff --git a/dev/modules/tensor/indexed.html b/dev/modules/tensor/indexed.html index 9b1ebf8879a..4a3a534f054 100644 --- a/dev/modules/tensor/indexed.html +++ b/dev/modules/tensor/indexed.html @@ -824,7 +824,7 @@

                  Examples
                  -class sympy.tensor.indexed.Idx(label, range=None, **kw_args)[source]#
                  +class sympy.tensor.indexed.Idx(label, range=None, **kw_args)[source]#

                  Represents an integer index as an Integer or integer expression.

                  There are a number of ways to create an Idx object. The constructor takes two arguments:

                  @@ -930,7 +930,7 @@

                  Examples
                  -class sympy.tensor.indexed.Indexed(base, *args, **kw_args)[source]#
                  +class sympy.tensor.indexed.Indexed(base, *args, **kw_args)[source]#

                  Represents a mathematical object with indices.

                  >>> from sympy import Indexed, IndexedBase, Idx, symbols
                   >>> i, j = symbols('i j', cls=Idx)
                  @@ -1038,7 +1038,7 @@ 

                  Examples
                  -class sympy.tensor.indexed.IndexedBase(label, shape=None, *, offset=0, strides=None, **kw_args)[source]#
                  +class sympy.tensor.indexed.IndexedBase(label, shape=None, *, offset=0, strides=None, **kw_args)[source]#

                  Represent the base or stem of an indexed object

                  The IndexedBase class represent an array that contains elements. The main purpose of this class is to allow the convenient creation of objects of the Indexed diff --git a/dev/modules/tensor/tensor.html b/dev/modules/tensor/tensor.html index e45bb32b09a..40bf8197d7a 100644 --- a/dev/modules/tensor/tensor.html +++ b/dev/modules/tensor/tensor.html @@ -741,7 +741,7 @@

                  Documentation Version

                  Tensor#

                  -class sympy.tensor.tensor.TensorIndexType(name, dummy_name=None, dim=None, eps_dim=None, metric_symmetry=1, metric_name='metric', **kwargs)[source]#
                  +class sympy.tensor.tensor.TensorIndexType(name, dummy_name=None, dim=None, eps_dim=None, metric_symmetry=1, metric_name='metric', **kwargs)[source]#

                  A TensorIndexType is characterized by its name and its metric.

                  Parameters:
                  @@ -810,7 +810,7 @@
                  Documentation Version
                  -class sympy.tensor.tensor.TensorIndex(name, tensor_index_type, is_up=True)[source]#
                  +class sympy.tensor.tensor.TensorIndex(name, tensor_index_type, is_up=True)[source]#

                  Represents a tensor index

                  Parameters:
                  @@ -863,7 +863,7 @@
                  Documentation Version
                  -class sympy.tensor.tensor.TensorHead(name, index_types, symmetry=None, comm=0)[source]#
                  +class sympy.tensor.tensor.TensorHead(name, index_types, symmetry=None, comm=0)[source]#

                  Tensor head of the tensor.

                  Parameters:
                  @@ -982,7 +982,7 @@
                  Documentation Version

                  -commutes_with(other)[source]#
                  +commutes_with(other)[source]#

                  Returns 0 if self and other commute, 1 if they anticommute.

                  Returns None if self and other neither commute nor anticommute.

                  @@ -991,13 +991,13 @@
                  Documentation Version
                  -sympy.tensor.tensor.tensor_heads(s, index_types, symmetry=None, comm=0)[source]#
                  +sympy.tensor.tensor.tensor_heads(s, index_types, symmetry=None, comm=0)[source]#

                  Returns a sequence of TensorHeads from a string \(s\)

                  -class sympy.tensor.tensor.TensExpr(*args)[source]#
                  +class sympy.tensor.tensor.TensExpr(*args)[source]#

                  Abstract base class for tensor expressions

                  Notes

                  A tensor expression is an expression formed by tensors; @@ -1012,7 +1012,7 @@

                  Documentation Version

                  Contracted indices are therefore nameless in the internal representation.

                  -get_matrix()[source]#
                  +get_matrix()[source]#

                  DEPRECATED: do not use.

                  Returns ndarray components data as a matrix, if components data are available and ndarray dimension does not exceed 2.

                  @@ -1020,7 +1020,7 @@
                  Documentation Version
                  -replace_with_arrays(replacement_dict, indices=None)[source]#
                  +replace_with_arrays(replacement_dict, indices=None)[source]#

                  Replace the tensorial expressions with arrays. The final array will correspond to the N-dimensional array with indices arranged according to indices.

                  @@ -1095,7 +1095,7 @@
                  Documentation Version
                  -class sympy.tensor.tensor.TensAdd(*args, **kw_args)[source]#
                  +class sympy.tensor.tensor.TensAdd(*args, **kw_args)[source]#

                  Sum of tensors.

                  Parameters:
                  @@ -1144,14 +1144,14 @@
                  Documentation Version
                  -canon_bp()[source]#
                  +canon_bp()[source]#

                  Canonicalize using the Butler-Portugal algorithm for canonicalization under monoterm symmetries.

                  -contract_metric(g)[source]#
                  +contract_metric(g)[source]#

                  Raise or lower indices with the metric g.

                  Parameters:
                  @@ -1167,7 +1167,7 @@
                  Documentation Version
                  -class sympy.tensor.tensor.TensMul(*args, **kw_args)[source]#
                  +class sympy.tensor.tensor.TensMul(*args, **kw_args)[source]#

                  Product of tensors.

                  Parameters:
                  @@ -1221,7 +1221,7 @@
                  Documentation Version

                  -canon_bp()[source]#
                  +canon_bp()[source]#

                  Canonicalize using the Butler-Portugal algorithm for canonicalization under monoterm symmetries.

                  Examples

                  @@ -1241,7 +1241,7 @@
                  Documentation Version
                  -contract_metric(g)[source]#
                  +contract_metric(g)[source]#

                  Raise or lower indices with the metric g.

                  Parameters:
                  @@ -1267,7 +1267,7 @@
                  Documentation Version
                  -get_free_indices() list[TensorIndex][source]#
                  +get_free_indices() list[TensorIndex][source]#

                  Returns the list of free indices of the tensor.

                  Explanation

                  The indices are listed in the order in which they appear in the @@ -1290,7 +1290,7 @@

                  Documentation Version
                  -get_indices()[source]#
                  +get_indices()[source]#

                  Returns the list of indices of the tensor.

                  Explanation

                  The indices are listed in the order in which they appear in the @@ -1315,20 +1315,20 @@

                  Documentation Version
                  -perm2tensor(g, is_canon_bp=False)[source]#
                  +perm2tensor(g, is_canon_bp=False)[source]#

                  Returns the tensor corresponding to the permutation g

                  For further details, see the method in TIDS with the same name.

                  -sorted_components()[source]#
                  +sorted_components()[source]#

                  Returns a tensor product with sorted components.

                  -split()[source]#
                  +split()[source]#

                  Returns a list of tensors, whose product is self.

                  Explanation

                  Dummy indices contracted among different tensor components @@ -1352,21 +1352,21 @@

                  Documentation Version
                  -sympy.tensor.tensor.canon_bp(p)[source]#
                  +sympy.tensor.tensor.canon_bp(p)[source]#

                  Butler-Portugal canonicalization. See tensor_can.py from the combinatorics module for the details.

                  -sympy.tensor.tensor.riemann_cyclic_replace(t_r)[source]#
                  +sympy.tensor.tensor.riemann_cyclic_replace(t_r)[source]#

                  replace Riemann tensor with an equivalent expression

                  R(m,n,p,q) -> 2/3*R(m,n,p,q) - 1/3*R(m,q,n,p) + 1/3*R(m,p,n,q)

                  -sympy.tensor.tensor.riemann_cyclic(t2)[source]#
                  +sympy.tensor.tensor.riemann_cyclic(t2)[source]#

                  Replace each Riemann tensor with an equivalent expression satisfying the cyclic identity.

                  This trick is discussed in the reference guide to Cadabra.

                  @@ -1384,7 +1384,7 @@
                  Documentation Version
                  -class sympy.tensor.tensor.TensorSymmetry(*args, **kw_args)[source]#
                  +class sympy.tensor.tensor.TensorSymmetry(*args, **kw_args)[source]#

                  Monoterm symmetry of a tensor (i.e. any symmetric or anti-symmetric index permutation). For the relevant terminology see tensor_can.py section of the combinatorics module.

                  @@ -1435,7 +1435,7 @@
                  Documentation Version
                  -classmethod direct_product(*args)[source]#
                  +classmethod direct_product(*args)[source]#

                  Returns a TensorSymmetry object that is being a direct product of fully (anti-)symmetric index permutation groups.

                  Notes

                  @@ -1449,20 +1449,20 @@
                  Documentation Version
                  -classmethod fully_symmetric(rank)[source]#
                  +classmethod fully_symmetric(rank)[source]#

                  Returns a fully symmetric (antisymmetric if rank``<0) TensorSymmetry object for ``abs(rank) indices.

                  -classmethod no_symmetry(rank)[source]#
                  +classmethod no_symmetry(rank)[source]#

                  TensorSymmetry object for rank indices with no symmetry

                  -classmethod riemann()[source]#
                  +classmethod riemann()[source]#

                  Returns a monotorem symmetry of the Riemann tensor

                  @@ -1470,7 +1470,7 @@
                  Documentation Version
                  -sympy.tensor.tensor.tensorsymmetry(*args)[source]#
                  +sympy.tensor.tensor.tensorsymmetry(*args)[source]#

                  Returns a TensorSymmetry object. This method is deprecated, use TensorSymmetry.direct_product() or .riemann() instead.

                  Explanation

                  @@ -1499,7 +1499,7 @@
                  Documentation Version
                  -class sympy.tensor.tensor.TensorType(*args, **kwargs)[source]#
                  +class sympy.tensor.tensor.TensorType(*args, **kwargs)[source]#

                  Class of tensor types. Deprecated, use tensor_heads() instead.

                  Parameters:
                  @@ -1527,7 +1527,7 @@
                  Documentation Version
                  -class sympy.tensor.tensor._TensorManager[source]#
                  +class sympy.tensor.tensor._TensorManager[source]#

                  Class to manage tensor properties.

                  Notes

                  Tensors belong to tensor commutation groups; each group has a label @@ -1540,19 +1540,19 @@

                  Documentation Version
                  do not commute with any other group.

                  -clear()[source]#
                  +clear()[source]#

                  Clear the TensorManager.

                  -comm_i2symbol(i)[source]#
                  +comm_i2symbol(i)[source]#

                  Returns the symbol corresponding to the commutation group number.

                  -comm_symbols2i(i)[source]#
                  +comm_symbols2i(i)[source]#

                  Get the commutation group number corresponding to i.

                  i can be a symbol or a number or a string.

                  If i is not already defined its commutation group number @@ -1561,14 +1561,14 @@

                  Documentation Version
                  -get_comm(i, j)[source]#
                  +get_comm(i, j)[source]#

                  Return the commutation parameter for commutation group numbers i, j

                  see _TensorManager.set_comm

                  -set_comm(i, j, c)[source]#
                  +set_comm(i, j, c)[source]#

                  Set the commutation parameter c for commutation groups i, j.

                  Parameters:
                  @@ -1610,7 +1610,7 @@
                  Documentation Version
                  -set_comms(*args)[source]#
                  +set_comms(*args)[source]#

                  Set the commutation group numbers c for symbols i, j.

                  Parameters:
                  diff --git a/dev/modules/tensor/toperators.html b/dev/modules/tensor/toperators.html index ded4d442b96..4af99d0f1d8 100644 --- a/dev/modules/tensor/toperators.html +++ b/dev/modules/tensor/toperators.html @@ -741,7 +741,7 @@
                  Documentation Version

                  Tensor Operators#

                  -class sympy.tensor.toperators.PartialDerivative(expr, *variables)[source]#
                  +class sympy.tensor.toperators.PartialDerivative(expr, *variables)[source]#

                  Partial derivative for tensor expressions.

                  Examples

                  >>> from sympy.tensor.tensor import TensorIndexType, TensorHead
                  diff --git a/dev/modules/testing/pytest.html b/dev/modules/testing/pytest.html
                  index b254e4fe1b1..8ac308ecd70 100644
                  --- a/dev/modules/testing/pytest.html
                  +++ b/dev/modules/testing/pytest.html
                  @@ -742,19 +742,19 @@ 
                  Documentation Version

                  py.test hacks to support XFAIL/XPASS

                  -sympy.testing.pytest.SKIP(reason)[source]#
                  +sympy.testing.pytest.SKIP(reason)[source]#

                  Similar to skip(), but this is a decorator.

                  -sympy.testing.pytest.nocache_fail(func)[source]#
                  +sympy.testing.pytest.nocache_fail(func)[source]#

                  Dummy decorator for marking tests that fail when cache is disabled

                  -sympy.testing.pytest.raises(expectedException, code=None)[source]#
                  +sympy.testing.pytest.raises(expectedException, code=None)[source]#

                  Tests that code raises the exception expectedException.

                  code may be a callable, such as a lambda expression or function name.

                  @@ -806,13 +806,13 @@
                  Documentation Version
                  -sympy.testing.pytest.skip_under_pyodide(message)[source]#
                  +sympy.testing.pytest.skip_under_pyodide(message)[source]#

                  Decorator to skip a test if running under pyodide.

                  -sympy.testing.pytest.warns(warningcls, *, match='', test_stacklevel=True)[source]#
                  +sympy.testing.pytest.warns(warningcls, *, match='', test_stacklevel=True)[source]#

                  Like raises but tests that warnings are emitted.

                  >>> from sympy.testing.pytest import warns
                   >>> import warnings
                  @@ -841,7 +841,7 @@ 
                  Documentation Version
                  -sympy.testing.pytest.warns_deprecated_sympy()[source]#
                  +sympy.testing.pytest.warns_deprecated_sympy()[source]#

                  Shorthand for warns(SymPyDeprecationWarning)

                  This is the recommended way to test that SymPyDeprecationWarning is emitted for deprecated features in SymPy. To test for other warnings use diff --git a/dev/modules/testing/runtests.html b/dev/modules/testing/runtests.html index b05f79d9ce0..f01c8a8868f 100644 --- a/dev/modules/testing/runtests.html +++ b/dev/modules/testing/runtests.html @@ -751,11 +751,11 @@

                  Documentation Version

            -class sympy.testing.runtests.PyTestReporter(verbose=False, tb='short', colors=True, force_colors=False, split=None)[source]#
            +class sympy.testing.runtests.PyTestReporter(verbose=False, tb='short', colors=True, force_colors=False, split=None)[source]#

            Py.test like reporter. Should produce output identical to py.test.

            -write(text, color='', align='left', width=None, force_colors=False)[source]#
            +write(text, color='', align='left', width=None, force_colors=False)[source]#

            Prints a text on the screen.

            It uses sys.stdout.write(), so no readline library is necessary.

            @@ -775,13 +775,13 @@
            Documentation Version
            -class sympy.testing.runtests.Reporter[source]#
            +class sympy.testing.runtests.Reporter[source]#

            Parent class for all reporters.

            -class sympy.testing.runtests.SymPyDocTestFinder(verbose=False, parser=<doctest.DocTestParser object>, recurse=True, exclude_empty=True)[source]#
            +class sympy.testing.runtests.SymPyDocTestFinder(verbose=False, parser=<doctest.DocTestParser object>, recurse=True, exclude_empty=True)[source]#

            A class used to extract the DocTests that are relevant to a given object, from its docstring and the docstrings of its contained objects. Doctests can currently be extracted from the following @@ -795,7 +795,7 @@

            Documentation Version
            -class sympy.testing.runtests.SymPyDocTestRunner(checker=None, verbose=None, optionflags=0)[source]#
            +class sympy.testing.runtests.SymPyDocTestRunner(checker=None, verbose=None, optionflags=0)[source]#

            A class used to run DocTest test cases, and accumulate statistics. The run method is used to process a single DocTest case. It returns a tuple (f, t), where t is the number of test cases @@ -805,7 +805,7 @@

            Documentation Version

            See the docstring of the original DocTestRunner for more information.

            -run(test, compileflags=None, out=None, clear_globs=True)[source]#
            +run(test, compileflags=None, out=None, clear_globs=True)[source]#

            Run the examples in test, and display the results using the writer function out.

            The examples are run in the namespace test.globs. If @@ -826,13 +826,13 @@

            Documentation Version
            -class sympy.testing.runtests.SymPyOutputChecker[source]#
            +class sympy.testing.runtests.SymPyOutputChecker[source]#

            Compared to the OutputChecker from the stdlib our OutputChecker class supports numerical comparison of floats occurring in the output of the doctest examples

            -check_output(want, got, optionflags)[source]#
            +check_output(want, got, optionflags)[source]#

            Return True iff the actual output from an example (\(got\)) matches the expected output (\(want\)). These strings are always considered to match if they are identical; but @@ -846,7 +846,7 @@

            Documentation Version
            -class sympy.testing.runtests.SymPyTestResults(failed, attempted)[source]#
            +class sympy.testing.runtests.SymPyTestResults(failed, attempted)[source]#
            attempted#
            @@ -863,7 +863,7 @@
            Documentation Version
            -sympy.testing.runtests.convert_to_native_paths(lst)[source]#
            +sympy.testing.runtests.convert_to_native_paths(lst)[source]#

            Converts a list of ‘/’ separated paths into a list of native (os.sep separated) paths and converts to lowercase if the system is case insensitive.

            @@ -871,7 +871,7 @@
            Documentation Version
            -sympy.testing.runtests.doctest(*paths, subprocess=True, rerun=0, **kwargs)[source]#
            +sympy.testing.runtests.doctest(*paths, subprocess=True, rerun=0, **kwargs)[source]#

            Runs doctests in all *.py files in the SymPy directory which match any of the given strings in paths or all tests if paths=[].

            Notes:

            @@ -920,14 +920,14 @@
            Documentation Version
            -sympy.testing.runtests.get_sympy_dir()[source]#
            +sympy.testing.runtests.get_sympy_dir()[source]#

            Returns the root SymPy directory and set the global value indicating whether the system is case sensitive or not.

            -sympy.testing.runtests.raise_on_deprecated()[source]#
            +sympy.testing.runtests.raise_on_deprecated()[source]#

            Context manager to make DeprecationWarning raise an error

            This is to catch SymPyDeprecationWarning from library code while running tests and doctests. It is important to use this context manager around @@ -937,7 +937,7 @@

            Documentation Version
            -sympy.testing.runtests.run_all_tests(test_args=(), test_kwargs=None, doctest_args=(), doctest_kwargs=None, examples_args=(), examples_kwargs=None)[source]#
            +sympy.testing.runtests.run_all_tests(test_args=(), test_kwargs=None, doctest_args=(), doctest_kwargs=None, examples_args=(), examples_kwargs=None)[source]#

            Run all tests.

            Right now, this runs the regular tests (bin/test), the doctests (bin/doctest), and the examples (examples/all.py).

            @@ -955,7 +955,7 @@
            Documentation Version
            -sympy.testing.runtests.run_in_subprocess_with_hash_randomization(function, function_args=(), function_kwargs=None, command='/opt/hostedtoolcache/Python/3.11.5/x64/bin/python', module='sympy.testing.runtests', force=False)[source]#
            +sympy.testing.runtests.run_in_subprocess_with_hash_randomization(function, function_args=(), function_kwargs=None, command='/opt/hostedtoolcache/Python/3.11.5/x64/bin/python', module='sympy.testing.runtests', force=False)[source]#

            Run a function in a Python subprocess with hash randomization enabled.

            If hash randomization is not supported by the version of Python given, it returns False. Otherwise, it returns the exit value of the command. The @@ -998,7 +998,7 @@

            Documentation Version
            -sympy.testing.runtests.split_list(l, split, density=None)[source]#
            +sympy.testing.runtests.split_list(l, split, density=None)[source]#

            Splits a list into part a of b

            split should be a string of the form ‘a/b’. For instance, ‘1/3’ would give the split one of three.

            @@ -1021,7 +1021,7 @@
            Documentation Version
            -sympy.testing.runtests.sympytestfile(filename, module_relative=True, name=None, package=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False, parser=<doctest.DocTestParser object>, encoding=None)[source]#
            +sympy.testing.runtests.sympytestfile(filename, module_relative=True, name=None, package=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False, parser=<doctest.DocTestParser object>, encoding=None)[source]#

            Test examples in the given file. Return (#failures, #tests).

            Optional keyword arg module_relative specifies how filenames should be interpreted:

            @@ -1089,7 +1089,7 @@
            Documentation Version
            -sympy.testing.runtests.test(*paths, subprocess=True, rerun=0, **kwargs)[source]#
            +sympy.testing.runtests.test(*paths, subprocess=True, rerun=0, **kwargs)[source]#

            Run tests in the specified test_*.py files.

            Tests in a particular test_*.py file are run if any of the given strings in paths matches a part of the test file’s path. If paths=[], diff --git a/dev/modules/utilities/autowrap.html b/dev/modules/utilities/autowrap.html index ff832a85c5a..b7902df6a7a 100644 --- a/dev/modules/utilities/autowrap.html +++ b/dev/modules/utilities/autowrap.html @@ -867,17 +867,17 @@

            Implementation details

-class sympy.utilities.autowrap.CodeWrapper(generator, filepath=None, flags=[], verbose=False)[source]#
+class sympy.utilities.autowrap.CodeWrapper(generator, filepath=None, flags=[], verbose=False)[source]#

Base Class for code wrappers

-class sympy.utilities.autowrap.CythonCodeWrapper(*args, **kwargs)[source]#
+class sympy.utilities.autowrap.CythonCodeWrapper(*args, **kwargs)[source]#

Wrapper that uses Cython

-dump_pyx(routines, f, prefix)[source]#
+dump_pyx(routines, f, prefix)[source]#

Write a Cython file with Python wrappers

This file contains all the definitions of the routines in c code and refers to the header file.

@@ -897,23 +897,23 @@

Implementation details
-class sympy.utilities.autowrap.DummyWrapper(generator, filepath=None, flags=[], verbose=False)[source]#
+class sympy.utilities.autowrap.DummyWrapper(generator, filepath=None, flags=[], verbose=False)[source]#

Class used for testing independent of backends

-class sympy.utilities.autowrap.F2PyCodeWrapper(*args, **kwargs)[source]#
+class sympy.utilities.autowrap.F2PyCodeWrapper(*args, **kwargs)[source]#

Wrapper that uses f2py

-class sympy.utilities.autowrap.UfuncifyCodeWrapper(*args, **kwargs)[source]#
+class sympy.utilities.autowrap.UfuncifyCodeWrapper(*args, **kwargs)[source]#

Wrapper for Ufuncify

-dump_c(routines, f, prefix, funcname=None)[source]#
+dump_c(routines, f, prefix, funcname=None)[source]#

Write a C file with Python wrappers

This file contains all the definitions of the routines in c code.

Arguments

@@ -933,7 +933,7 @@

Implementation details
-sympy.utilities.autowrap.autowrap(expr, language=None, backend='f2py', tempdir=None, args=None, flags=None, verbose=False, helpers=None, code_gen=None, **kwargs)[source]#
+sympy.utilities.autowrap.autowrap(expr, language=None, backend='f2py', tempdir=None, args=None, flags=None, verbose=False, helpers=None, code_gen=None, **kwargs)[source]#

Generates Python callable binaries based on the math expression.

Parameters:
@@ -1028,7 +1028,7 @@

Implementation details
-sympy.utilities.autowrap.binary_function(symfunc, expr, **kwargs)[source]#
+sympy.utilities.autowrap.binary_function(symfunc, expr, **kwargs)[source]#

Returns a SymPy function with expr as binary implementation

This is a convenience function that automates the steps needed to autowrap the SymPy expression and attaching it to a Function object @@ -1066,7 +1066,7 @@

Implementation details
-sympy.utilities.autowrap.ufuncify(args, expr, language=None, backend='numpy', tempdir=None, flags=None, verbose=False, helpers=None, **kwargs)[source]#
+sympy.utilities.autowrap.ufuncify(args, expr, language=None, backend='numpy', tempdir=None, flags=None, verbose=False, helpers=None, **kwargs)[source]#

Generates a binary function that supports broadcasting on numpy arrays.

Parameters:
diff --git a/dev/modules/utilities/codegen.html b/dev/modules/utilities/codegen.html index 1032b7f3005..34640e59d79 100644 --- a/dev/modules/utilities/codegen.html +++ b/dev/modules/utilities/codegen.html @@ -854,20 +854,20 @@

Routine#<
-class sympy.utilities.codegen.Argument(name, datatype=None, dimensions=None, precision=None)[source]#
+class sympy.utilities.codegen.Argument(name, datatype=None, dimensions=None, precision=None)[source]#

An abstract Argument data structure: a name and a data type.

This structure is refined in the descendants below.

-class sympy.utilities.codegen.CCodeGen(project='project', printer=None, preprocessor_statements=None, cse=False)[source]#
+class sympy.utilities.codegen.CCodeGen(project='project', printer=None, preprocessor_statements=None, cse=False)[source]#

Generator for C code.

The .write() method inherited from CodeGen will output a code file and an interface file, <prefix>.c and <prefix>.h respectively.

-dump_c(routines, f, prefix, header=True, empty=True)[source]#
+dump_c(routines, f, prefix, header=True, empty=True)[source]#

Write the code by calling language specific methods.

The generated file contains all the definitions of the routines in low-level code and refers to the header file if appropriate.

@@ -902,7 +902,7 @@

Routine#<
-dump_h(routines, f, prefix, header=True, empty=True)[source]#
+dump_h(routines, f, prefix, header=True, empty=True)[source]#

Writes the C header file.

This file contains all the function declarations.

@@ -936,7 +936,7 @@

Routine#<
-get_prototype(routine)[source]#
+get_prototype(routine)[source]#

Returns a string for the function prototype of the routine.

If the routine has multiple result objects, an CodeGenError is raised.

@@ -947,11 +947,11 @@

Routine#<
-class sympy.utilities.codegen.CodeGen(project='project', cse=False)[source]#
+class sympy.utilities.codegen.CodeGen(project='project', cse=False)[source]#

Abstract class for the code generators.

-dump_code(routines, f, prefix, header=True, empty=True)[source]#
+dump_code(routines, f, prefix, header=True, empty=True)[source]#

Write the code by calling language specific methods.

The generated file contains all the definitions of the routines in low-level code and refers to the header file if appropriate.

@@ -986,7 +986,7 @@

Routine#<
-routine(name, expr, argument_sequence=None, global_vars=None)[source]#
+routine(name, expr, argument_sequence=None, global_vars=None)[source]#

Creates an Routine object that is appropriate for this language.

This implementation is appropriate for at least C/Fortran. Subclasses can override this if necessary.

@@ -1000,7 +1000,7 @@

Routine#<
-write(routines, prefix, to_files=False, header=True, empty=True)[source]#
+write(routines, prefix, to_files=False, header=True, empty=True)[source]#

Writes all the source code files for the given routines.

The generated source is returned as a list of (filename, contents) tuples, or is written to files (see below). Each filename consists @@ -1038,19 +1038,19 @@

Routine#<
-class sympy.utilities.codegen.DataType(cname, fname, pyname, jlname, octname, rsname)[source]#
+class sympy.utilities.codegen.DataType(cname, fname, pyname, jlname, octname, rsname)[source]#

Holds strings for a certain datatype in different languages.

-class sympy.utilities.codegen.FCodeGen(project='project', printer=None)[source]#
+class sympy.utilities.codegen.FCodeGen(project='project', printer=None)[source]#

Generator for Fortran 95 code

The .write() method inherited from CodeGen will output a code file and an interface file, <prefix>.f90 and <prefix>.h respectively.

-dump_f95(routines, f, prefix, header=True, empty=True)[source]#
+dump_f95(routines, f, prefix, header=True, empty=True)[source]#

Write the code by calling language specific methods.

The generated file contains all the definitions of the routines in low-level code and refers to the header file if appropriate.

@@ -1085,7 +1085,7 @@

Routine#<
-dump_h(routines, f, prefix, header=True, empty=True)[source]#
+dump_h(routines, f, prefix, header=True, empty=True)[source]#

Writes the interface to a header file.

This file contains all the function declarations.

@@ -1118,7 +1118,7 @@

Routine#<
-get_interface(routine)[source]#
+get_interface(routine)[source]#

Returns a string for the function interface.

The routine should have a single result object, which can be None. If the routine has multiple result objects, a CodeGenError is @@ -1130,13 +1130,13 @@

Routine#<
-class sympy.utilities.codegen.JuliaCodeGen(project='project', printer=None)[source]#
+class sympy.utilities.codegen.JuliaCodeGen(project='project', printer=None)[source]#

Generator for Julia code.

The .write() method inherited from CodeGen will output a code file <prefix>.jl.

-dump_jl(routines, f, prefix, header=True, empty=True)[source]#
+dump_jl(routines, f, prefix, header=True, empty=True)[source]#

Write the code by calling language specific methods.

The generated file contains all the definitions of the routines in low-level code and refers to the header file if appropriate.

@@ -1171,7 +1171,7 @@

Routine#<
-routine(name, expr, argument_sequence, global_vars)[source]#
+routine(name, expr, argument_sequence, global_vars)[source]#

Specialized Routine creation for Julia.

@@ -1179,7 +1179,7 @@

Routine#<
-class sympy.utilities.codegen.OctaveCodeGen(project='project', printer=None)[source]#
+class sympy.utilities.codegen.OctaveCodeGen(project='project', printer=None)[source]#

Generator for Octave code.

The .write() method inherited from CodeGen will output a code file <prefix>.m.

@@ -1191,7 +1191,7 @@

Routine#< according to their order in name_expr.

-dump_m(routines, f, prefix, header=True, empty=True, inline=True)[source]#
+dump_m(routines, f, prefix, header=True, empty=True, inline=True)[source]#

Write the code by calling language specific methods.

The generated file contains all the definitions of the routines in low-level code and refers to the header file if appropriate.

@@ -1226,7 +1226,7 @@

Routine#<
-routine(name, expr, argument_sequence, global_vars)[source]#
+routine(name, expr, argument_sequence, global_vars)[source]#

Specialized Routine creation for Octave.

@@ -1234,13 +1234,13 @@

Routine#<
-class sympy.utilities.codegen.OutputArgument(name, result_var, expr, datatype=None, dimensions=None, precision=None)[source]#
+class sympy.utilities.codegen.OutputArgument(name, result_var, expr, datatype=None, dimensions=None, precision=None)[source]#

OutputArgument are always initialized in the routine.

-class sympy.utilities.codegen.Result(expr, name=None, result_var=None, datatype=None, dimensions=None, precision=None)[source]#
+class sympy.utilities.codegen.Result(expr, name=None, result_var=None, datatype=None, dimensions=None, precision=None)[source]#

An expression for a return value.

The name result is used to avoid conflicts with the reserved word “return” in the Python language. It is also shorter than ReturnValue.

@@ -1250,7 +1250,7 @@

Routine#<
-class sympy.utilities.codegen.Routine(name, arguments, results, local_vars, global_vars)[source]#
+class sympy.utilities.codegen.Routine(name, arguments, results, local_vars, global_vars)[source]#

Generic description of evaluation routine for set of expressions.

A CodeGen class can translate instances of this class into code in a particular language. The routine specification covers all the features @@ -1278,13 +1278,13 @@

Routine#<
-class sympy.utilities.codegen.RustCodeGen(project='project', printer=None)[source]#
+class sympy.utilities.codegen.RustCodeGen(project='project', printer=None)[source]#

Generator for Rust code.

The .write() method inherited from CodeGen will output a code file <prefix>.rs

-dump_rs(routines, f, prefix, header=True, empty=True)[source]#
+dump_rs(routines, f, prefix, header=True, empty=True)[source]#

Write the code by calling language specific methods.

The generated file contains all the definitions of the routines in low-level code and refers to the header file if appropriate.

@@ -1319,7 +1319,7 @@

Routine#<
-get_prototype(routine)[source]#
+get_prototype(routine)[source]#

Returns a string for the function prototype of the routine.

If the routine has multiple result objects, an CodeGenError is raised.

@@ -1328,7 +1328,7 @@

Routine#<
-routine(name, expr, argument_sequence, global_vars)[source]#
+routine(name, expr, argument_sequence, global_vars)[source]#

Specialized Routine creation for Rust.

@@ -1336,7 +1336,7 @@

Routine#<
-sympy.utilities.codegen.codegen(name_expr, language=None, prefix=None, project='project', to_files=False, header=True, empty=True, argument_sequence=None, global_vars=None, standard=None, code_gen=None, printer=None)[source]#
+sympy.utilities.codegen.codegen(name_expr, language=None, prefix=None, project='project', to_files=False, header=True, empty=True, argument_sequence=None, global_vars=None, standard=None, code_gen=None, printer=None)[source]#

Generate source code for expressions in a given language.

Parameters:
@@ -1474,13 +1474,13 @@

Routine#<
-sympy.utilities.codegen.get_default_datatype(expr, complex_allowed=None)[source]#
+sympy.utilities.codegen.get_default_datatype(expr, complex_allowed=None)[source]#

Derives an appropriate datatype based on the expression.

-sympy.utilities.codegen.make_routine(name, expr, argument_sequence=None, global_vars=None, language='F95')[source]#
+sympy.utilities.codegen.make_routine(name, expr, argument_sequence=None, global_vars=None, language='F95')[source]#

A factory that makes an appropriate Routine from an expression.

Parameters:
diff --git a/dev/modules/utilities/decorator.html b/dev/modules/utilities/decorator.html index 8f069f10ffa..ef952bbcdd2 100644 --- a/dev/modules/utilities/decorator.html +++ b/dev/modules/utilities/decorator.html @@ -742,7 +742,7 @@
Documentation Version

Useful utility decorators.

-@sympy.utilities.decorator.deprecated(message, *, deprecated_since_version, active_deprecations_target, stacklevel=3)[source]#
+@sympy.utilities.decorator.deprecated(message, *, deprecated_since_version, active_deprecations_target, stacklevel=3)[source]#

Mark a function as deprecated.

This decorator should be used if an entire function or class is deprecated. If only a certain functionality is deprecated, you should use @@ -798,14 +798,14 @@

Documentation Version
-sympy.utilities.decorator.conserve_mpmath_dps(func)[source]#
+sympy.utilities.decorator.conserve_mpmath_dps(func)[source]#

After the function finishes, resets the value of mpmath.mp.dps to the value it had before the function was run.

-sympy.utilities.decorator.doctest_depends_on(exe=None, modules=None, disable_viewers=None, python_version=None, ground_types=None)[source]#
+sympy.utilities.decorator.doctest_depends_on(exe=None, modules=None, disable_viewers=None, python_version=None, ground_types=None)[source]#

Adds metadata about the dependencies which need to be met for doctesting the docstrings of the decorated objects.

exe should be a list of executables

@@ -817,7 +817,7 @@
Documentation Version
-sympy.utilities.decorator.memoize_property(propfunc)[source]#
+sympy.utilities.decorator.memoize_property(propfunc)[source]#

Property decorator that caches the value of potentially expensive propfunc after the first evaluation. The cached value is stored in the corresponding property name with an attached underscore.

@@ -825,7 +825,7 @@
Documentation Version
-class sympy.utilities.decorator.no_attrs_in_subclass(cls, f)[source]#
+class sympy.utilities.decorator.no_attrs_in_subclass(cls, f)[source]#

Don’t ‘inherit’ certain attributes from a base class

>>> from sympy.utilities.decorator import no_attrs_in_subclass
 
@@ -851,7 +851,7 @@
Documentation Version
-sympy.utilities.decorator.public(obj)[source]#
+sympy.utilities.decorator.public(obj)[source]#

Append obj’s name to global __all__ variable (call site).

By using this decorator on functions or classes you achieve the same goal as by filling __all__ variables manually, you just do not have to repeat @@ -884,7 +884,7 @@

Documentation Version
-sympy.utilities.decorator.threaded(func)[source]#
+sympy.utilities.decorator.threaded(func)[source]#

Apply func to sub–elements of an object, including Add.

This decorator is intended to make it uniformly possible to apply a function to all elements of composite objects, e.g. matrices, lists, tuples @@ -901,13 +901,13 @@

Documentation Version
-sympy.utilities.decorator.threaded_factory(func, use_add)[source]#
+sympy.utilities.decorator.threaded_factory(func, use_add)[source]#

A factory for threaded decorators.

-sympy.utilities.decorator.xthreaded(func)[source]#
+sympy.utilities.decorator.xthreaded(func)[source]#

Apply func to sub–elements of an object, excluding Add.

This decorator is intended to make it uniformly possible to apply a function to all elements of composite objects, e.g. matrices, lists, tuples diff --git a/dev/modules/utilities/enumerative.html b/dev/modules/utilities/enumerative.html index 0aa648ede21..5b316164050 100644 --- a/dev/modules/utilities/enumerative.html +++ b/dev/modules/utilities/enumerative.html @@ -743,7 +743,7 @@

Documentation Version
counting multiset partitions.

-sympy.utilities.enumerative.multiset_partitions_taocp(multiplicities)[source]#
+sympy.utilities.enumerative.multiset_partitions_taocp(multiplicities)[source]#

Enumerates partitions of a multiset.

Parameters:
@@ -806,7 +806,7 @@
Documentation Version
-sympy.utilities.enumerative.factoring_visitor(state, primes)[source]#
+sympy.utilities.enumerative.factoring_visitor(state, primes)[source]#

Use with multiset_partitions_taocp to enumerate the ways a number can be expressed as a product of factors. For this usage, the exponents of the prime factors of a number are arguments to @@ -833,7 +833,7 @@

Documentation Version
-sympy.utilities.enumerative.list_visitor(state, components)[source]#
+sympy.utilities.enumerative.list_visitor(state, components)[source]#

Return a list of lists to represent the partition.

Examples

>>> from sympy.utilities.enumerative import list_visitor
@@ -853,7 +853,7 @@ 
Documentation Version
and generalized by the class MultisetPartitionTraverser.

-class sympy.utilities.enumerative.MultisetPartitionTraverser[source]#
+class sympy.utilities.enumerative.MultisetPartitionTraverser[source]#

Has methods to enumerate and count the partitions of a multiset.

This implements a refactored and extended version of Knuth’s algorithm 7.1.2.5M [AOCP].”

@@ -897,7 +897,7 @@
Documentation Version
-count_partitions(multiplicities)[source]#
+count_partitions(multiplicities)[source]#

Returns the number of partitions of a multiset whose components have the multiplicities given in multiplicities.

For larger counts, this method is much faster than calling one @@ -962,7 +962,7 @@

Documentation Version
-enum_all(multiplicities)[source]#
+enum_all(multiplicities)[source]#

Enumerate the partitions of a multiset.

Examples

>>> from sympy.utilities.enumerative import list_visitor
@@ -992,7 +992,7 @@ 
Documentation Version
-enum_large(multiplicities, lb)[source]#
+enum_large(multiplicities, lb)[source]#

Enumerate the partitions of a multiset with lb < num(parts)

Equivalent to enum_range(multiplicities, lb, sum(multiplicities))

@@ -1028,7 +1028,7 @@
Documentation Version
-enum_range(multiplicities, lb, ub)[source]#
+enum_range(multiplicities, lb, ub)[source]#

Enumerate the partitions of a multiset with lb < num(parts) <= ub.

In particular, if partitions with exactly k parts are @@ -1050,7 +1050,7 @@

Documentation Version
-enum_small(multiplicities, ub)[source]#
+enum_small(multiplicities, ub)[source]#

Enumerate multiset partitions with no more than ub parts.

Equivalent to enum_range(multiplicities, 0, ub)

diff --git a/dev/modules/utilities/exceptions.html b/dev/modules/utilities/exceptions.html index bed75461992..aeb9aa67484 100644 --- a/dev/modules/utilities/exceptions.html +++ b/dev/modules/utilities/exceptions.html @@ -742,7 +742,7 @@
Documentation Version

General SymPy exceptions and warnings.

-exception sympy.utilities.exceptions.SymPyDeprecationWarning(message, *, deprecated_since_version, active_deprecations_target)[source]#
+exception sympy.utilities.exceptions.SymPyDeprecationWarning(message, *, deprecated_since_version, active_deprecations_target)[source]#

A warning for deprecated features of SymPy.

See the Deprecation Policy document for details on when and how things should be deprecated in SymPy.

@@ -773,7 +773,7 @@
Documentation Version
-sympy.utilities.exceptions.ignore_warnings(warningcls)[source]#
+sympy.utilities.exceptions.ignore_warnings(warningcls)[source]#

Context manager to suppress warnings during tests.

Note

@@ -818,7 +818,7 @@
Documentation Version
-sympy.utilities.exceptions.sympy_deprecation_warning(message, *, deprecated_since_version, active_deprecations_target, stacklevel=3)[source]#
+sympy.utilities.exceptions.sympy_deprecation_warning(message, *, deprecated_since_version, active_deprecations_target, stacklevel=3)[source]#

Warn that a feature is deprecated in SymPy.

See the Deprecation Policy document for details on when and how things should be deprecated in SymPy.

diff --git a/dev/modules/utilities/iterables.html b/dev/modules/utilities/iterables.html index 68cd80fc398..97e8dcd19df 100644 --- a/dev/modules/utilities/iterables.html +++ b/dev/modules/utilities/iterables.html @@ -741,7 +741,7 @@
Documentation Version

Iterables#

-class sympy.utilities.iterables.NotIterable[source]#
+class sympy.utilities.iterables.NotIterable[source]#

Use this as mixin when creating a class which is not supposed to return true when iterable() is called on its instances because calling list() on the instance, for example, would result in @@ -750,7 +750,7 @@

Documentation Version
-sympy.utilities.iterables.binary_partitions(n)[source]#
+sympy.utilities.iterables.binary_partitions(n)[source]#

Generates the binary partition of n.

A binary partition consists only of numbers that are powers of two. Each step reduces a \(2^{k+1}\) to \(2^k\) and @@ -777,13 +777,13 @@

Documentation Version
-sympy.utilities.iterables.bracelets(n, k)[source]#
+sympy.utilities.iterables.bracelets(n, k)[source]#

Wrapper to necklaces to return a free (unrestricted) necklace.

-sympy.utilities.iterables.capture(func)[source]#
+sympy.utilities.iterables.capture(func)[source]#

Return the printed output of func().

func should be a function without arguments that produces output with print statements.

@@ -803,7 +803,7 @@
Documentation Version
-sympy.utilities.iterables.common_prefix(*seqs)[source]#
+sympy.utilities.iterables.common_prefix(*seqs)[source]#

Return the subsequence that is a common start of sequences in seqs.

>>> from sympy.utilities.iterables import common_prefix
 >>> common_prefix(list(range(3)))
@@ -820,7 +820,7 @@ 
Documentation Version
-sympy.utilities.iterables.common_suffix(*seqs)[source]#
+sympy.utilities.iterables.common_suffix(*seqs)[source]#

Return the subsequence that is a common ending of sequences in seqs.

>>> from sympy.utilities.iterables import common_suffix
 >>> common_suffix(list(range(3)))
@@ -837,7 +837,7 @@ 
Documentation Version
-sympy.utilities.iterables.connected_components(G)[source]#
+sympy.utilities.iterables.connected_components(G)[source]#

Connected components of an undirected graph or weakly connected components of a directed graph.

@@ -898,13 +898,13 @@
Documentation Version
-sympy.utilities.iterables.dict_merge(*dicts)[source]#
+sympy.utilities.iterables.dict_merge(*dicts)[source]#

Merge dictionaries into a single dictionary.

-sympy.utilities.iterables.filter_symbols(iterator, exclude)[source]#
+sympy.utilities.iterables.filter_symbols(iterator, exclude)[source]#

Only yield elements from \(iterator\) that do not occur in \(exclude\).

Parameters:
@@ -928,7 +928,7 @@
Documentation Version
-sympy.utilities.iterables.flatten(iterable, levels=None, cls=None)[source]#
+sympy.utilities.iterables.flatten(iterable, levels=None, cls=None)[source]#

Recursively denest iterable containers.

>>> from sympy import flatten
 
@@ -968,7 +968,7 @@
Documentation Version
-sympy.utilities.iterables.generate_bell(n)[source]#
+sympy.utilities.iterables.generate_bell(n)[source]#

Return permutations of [0, 1, …, n - 1] such that each permutation differs from the last by the exchange of a single pair of neighbors. The n! permutations are returned as an iterator. In order to obtain @@ -1042,7 +1042,7 @@

Documentation Version
-sympy.utilities.iterables.generate_derangements(s)[source]#
+sympy.utilities.iterables.generate_derangements(s)[source]#

Return unique derangements of the elements of iterable s.

Examples

>>> from sympy.utilities.iterables import generate_derangements
@@ -1062,7 +1062,7 @@ 
Documentation Version
-sympy.utilities.iterables.generate_involutions(n)[source]#
+sympy.utilities.iterables.generate_involutions(n)[source]#

Generates involutions.

An involution is a permutation that when multiplied by itself equals the identity permutation. In this @@ -1090,7 +1090,7 @@

Documentation Version
-sympy.utilities.iterables.generate_oriented_forest(n)[source]#
+sympy.utilities.iterables.generate_oriented_forest(n)[source]#

This algorithm generates oriented forests.

An oriented graph is a directed graph having no symmetric pair of directed edges. A forest is an acyclic graph, i.e., it has no cycles. A forest can @@ -1118,7 +1118,7 @@

Documentation Version
-sympy.utilities.iterables.group(seq, multiple=True)[source]#
+sympy.utilities.iterables.group(seq, multiple=True)[source]#

Splits a sequence into a list of lists of equal, adjacent elements.

Examples

>>> from sympy import group
@@ -1140,7 +1140,7 @@ 
Documentation Version
-sympy.utilities.iterables.has_dups(seq)[source]#
+sympy.utilities.iterables.has_dups(seq)[source]#

Return True if there are any duplicate elements in seq.

Examples

>>> from sympy import has_dups, Dict, Set
@@ -1156,7 +1156,7 @@ 
Documentation Version
-sympy.utilities.iterables.has_variety(seq)[source]#
+sympy.utilities.iterables.has_variety(seq)[source]#

Return True if there are any different elements in seq.

Examples

>>> from sympy import has_variety
@@ -1172,7 +1172,7 @@ 
Documentation Version
-sympy.utilities.iterables.ibin(n, bits=None, str=False)[source]#
+sympy.utilities.iterables.ibin(n, bits=None, str=False)[source]#

Return a list of length bits corresponding to the binary value of n with small bits to the right (last). If bits is omitted, the length will be the number required to represent n. If the bits are @@ -1215,7 +1215,7 @@

Documentation Version
-sympy.utilities.iterables.iproduct(*iterables)[source]#
+sympy.utilities.iterables.iproduct(*iterables)[source]#

Cartesian product of iterables.

Generator of the Cartesian product of iterables. This is analogous to itertools.product except that it works with infinite iterables and will @@ -1242,7 +1242,7 @@

Documentation Version
-sympy.utilities.iterables.is_palindromic(s, i=0, j=None)[source]#
+sympy.utilities.iterables.is_palindromic(s, i=0, j=None)[source]#

Return True if the sequence is the same from left to right as it is from right to left in the whole sequence (default) or in the Python slice s[i: j]; else False.

@@ -1275,7 +1275,7 @@
Documentation Version
-sympy.utilities.iterables.is_sequence(i, include=None)[source]#
+sympy.utilities.iterables.is_sequence(i, include=None)[source]#

Return a boolean indicating whether i is a sequence in the SymPy sense. If anything that fails the test below should be included as being a sequence for your application, set ‘include’ to that object’s @@ -1307,7 +1307,7 @@

Documentation Version
-sympy.utilities.iterables.iterable(i, exclude=(<class 'str'>, <class 'dict'>, <class 'sympy.utilities.iterables.NotIterable'>))[source]#
+sympy.utilities.iterables.iterable(i, exclude=(<class 'str'>, <class 'dict'>, <class 'sympy.utilities.iterables.NotIterable'>))[source]#

Return a boolean indicating whether i is SymPy iterable. True also indicates that the iterator is finite, e.g. you can call list(…) on the instance.

@@ -1351,7 +1351,7 @@
Documentation Version
-sympy.utilities.iterables.kbins(l, k, ordered=None)[source]#
+sympy.utilities.iterables.kbins(l, k, ordered=None)[source]#

Return sequence l partitioned into k bins.

Examples

The default is to give the items in the same order, but grouped @@ -1431,7 +1431,7 @@

Documentation Version
-sympy.utilities.iterables.least_rotation(x, key=None)[source]#
+sympy.utilities.iterables.least_rotation(x, key=None)[source]#

Returns the number of steps of left rotation required to obtain lexicographically minimal string/list/tuple, etc.

Examples

@@ -1454,7 +1454,7 @@
Documentation Version
-sympy.utilities.iterables.minlex(seq, directed=True, key=None)[source]#
+sympy.utilities.iterables.minlex(seq, directed=True, key=None)[source]#

Return the rotation of the sequence in which the lexically smallest elements appear first, e.g. \(cba \rightarrow acb\).

The sequence returned is a tuple, unless the input sequence is a string @@ -1488,7 +1488,7 @@

Documentation Version
-sympy.utilities.iterables.multiset(seq)[source]#
+sympy.utilities.iterables.multiset(seq)[source]#

Return the hashable sequence in multiset form with values being the multiplicity of the item in the sequence.

Examples

@@ -1505,7 +1505,7 @@
Documentation Version
-sympy.utilities.iterables.multiset_combinations(m, n, g=None)[source]#
+sympy.utilities.iterables.multiset_combinations(m, n, g=None)[source]#

Return the unique combinations of size n from multiset m.

Examples

>>> from sympy.utilities.iterables import multiset_combinations
@@ -1532,7 +1532,7 @@ 
Documentation Version
-sympy.utilities.iterables.multiset_derangements(s)[source]#
+sympy.utilities.iterables.multiset_derangements(s)[source]#

Generate derangements of the elements of s in place.

Examples

>>> from sympy.utilities.iterables import multiset_derangements, uniq
@@ -1553,7 +1553,7 @@ 
Documentation Version
-sympy.utilities.iterables.multiset_partitions(multiset, m=None)[source]#
+sympy.utilities.iterables.multiset_partitions(multiset, m=None)[source]#

Return unique partitions of the given multiset (in list form). If m is None, all multisets will be returned, otherwise only partitions with m parts will be returned.

@@ -1617,7 +1617,7 @@
Documentation Version
-sympy.utilities.iterables.multiset_permutations(m, size=None, g=None)[source]#
+sympy.utilities.iterables.multiset_permutations(m, size=None, g=None)[source]#

Return the unique permutations of multiset m.

Examples

>>> from sympy.utilities.iterables import multiset_permutations
@@ -1634,7 +1634,7 @@ 
Documentation Version
-sympy.utilities.iterables.necklaces(n, k, free=False)[source]#
+sympy.utilities.iterables.necklaces(n, k, free=False)[source]#

A routine to generate necklaces that may (free=True) or may not (free=False) be turned over to be viewed. The “necklaces” returned are comprised of n integers (beads) with k different @@ -1684,7 +1684,7 @@

Documentation Version
-sympy.utilities.iterables.numbered_symbols(prefix='x', cls=None, start=0, exclude=(), *args, **assumptions)[source]#
+sympy.utilities.iterables.numbered_symbols(prefix='x', cls=None, start=0, exclude=(), *args, **assumptions)[source]#

Generate an infinite stream of Symbols consisting of a prefix and increasing subscripts provided that they do not occur in exclude.

@@ -1723,7 +1723,7 @@
Documentation Version
-sympy.utilities.iterables.ordered_partitions(n, m=None, sort=True)[source]#
+sympy.utilities.iterables.ordered_partitions(n, m=None, sort=True)[source]#

Generates ordered partitions of integer n.

Parameters:
@@ -1813,7 +1813,7 @@
Documentation Version
-sympy.utilities.iterables.partitions(n, m=None, k=None, size=False)[source]#
+sympy.utilities.iterables.partitions(n, m=None, k=None, size=False)[source]#

Generate all partitions of positive integer, n.

Each partition is represented as a dictionary, mapping an integer to the number of copies of that integer in the partition. For example, @@ -1879,7 +1879,7 @@

Documentation Version
-sympy.utilities.iterables.permute_signs(t)[source]#
+sympy.utilities.iterables.permute_signs(t)[source]#

Return iterator in which the signs of non-zero elements of t are permuted.

Examples

@@ -1892,7 +1892,7 @@
Documentation Version
-sympy.utilities.iterables.postfixes(seq)[source]#
+sympy.utilities.iterables.postfixes(seq)[source]#

Generate all postfixes of a sequence.

Examples

>>> from sympy.utilities.iterables import postfixes
@@ -1906,7 +1906,7 @@ 
Documentation Version
-sympy.utilities.iterables.prefixes(seq)[source]#
+sympy.utilities.iterables.prefixes(seq)[source]#

Generate all prefixes of a sequence.

Examples

>>> from sympy.utilities.iterables import prefixes
@@ -1920,7 +1920,7 @@ 
Documentation Version
-sympy.utilities.iterables.random_derangement(t, choice=None, strict=True)[source]#
+sympy.utilities.iterables.random_derangement(t, choice=None, strict=True)[source]#

Return a list of elements in which none are in the same positions as they were originally. If an element fills more than half of the positions then an error will be raised since no derangement is possible. To obtain @@ -1954,7 +1954,7 @@

Documentation Version
-sympy.utilities.iterables.reshape(seq, how)[source]#
+sympy.utilities.iterables.reshape(seq, how)[source]#

Reshape the sequence according to the template in how.

Examples

>>> from sympy.utilities import reshape
@@ -2001,7 +2001,7 @@ 
Documentation Version
-sympy.utilities.iterables.rotate_left(x, y)[source]#
+sympy.utilities.iterables.rotate_left(x, y)[source]#

Left rotates a list x by the number of steps specified in y.

Examples

@@ -2015,7 +2015,7 @@
Documentation Version
-sympy.utilities.iterables.rotate_right(x, y)[source]#
+sympy.utilities.iterables.rotate_right(x, y)[source]#

Right rotates a list x by the number of steps specified in y.

Examples

@@ -2029,7 +2029,7 @@
Documentation Version
-sympy.utilities.iterables.rotations(s, dir=1)[source]#
+sympy.utilities.iterables.rotations(s, dir=1)[source]#

Return a generator giving the items in s as list where each subsequent list has the items rotated to the left (default) or right (dir=-1) relative to the previous list.

@@ -2045,7 +2045,7 @@
Documentation Version
-sympy.utilities.iterables.roundrobin(*iterables)[source]#
+sympy.utilities.iterables.roundrobin(*iterables)[source]#

roundrobin recipe taken from itertools documentation: https://docs.python.org/3/library/itertools.html#itertools-recipes

roundrobin(‘ABC’, ‘D’, ‘EF’) –> A D E B F C

@@ -2054,7 +2054,7 @@
Documentation Version
-sympy.utilities.iterables.runs(seq, op=<built-in function gt>)[source]#
+sympy.utilities.iterables.runs(seq, op=<built-in function gt>)[source]#

Group the sequence into lists in which successive elements all compare the same with the comparison operator, op: op(seq[i + 1], seq[i]) is True from all elements in a run.

@@ -2071,7 +2071,7 @@
Documentation Version
-sympy.utilities.iterables.sequence_partitions(l, n, /)[source]#
+sympy.utilities.iterables.sequence_partitions(l, n, /)[source]#

Returns the partition of sequence \(l\) into \(n\) bins

Parameters:
@@ -2121,7 +2121,7 @@
Documentation Version
-sympy.utilities.iterables.sequence_partitions_empty(l, n, /)[source]#
+sympy.utilities.iterables.sequence_partitions_empty(l, n, /)[source]#

Returns the partition of sequence \(l\) into \(n\) bins with empty sequence

@@ -2174,7 +2174,7 @@
Documentation Version
-sympy.utilities.iterables.sift(seq, keyfunc, binary=False)[source]#
+sympy.utilities.iterables.sift(seq, keyfunc, binary=False)[source]#

Sift the sequence, seq according to keyfunc.

Returns:
@@ -2246,7 +2246,7 @@
Documentation Version
-sympy.utilities.iterables.signed_permutations(t)[source]#
+sympy.utilities.iterables.signed_permutations(t)[source]#

Return iterator in which the signs of non-zero elements of t and the order of the elements are permuted.

Examples

@@ -2263,7 +2263,7 @@
Documentation Version
-sympy.utilities.iterables.strongly_connected_components(G)[source]#
+sympy.utilities.iterables.strongly_connected_components(G)[source]#

Strongly connected components of a directed graph in reverse topological order.

@@ -2337,7 +2337,7 @@
Documentation Version
-sympy.utilities.iterables.subsets(seq, k=None, repetition=False)[source]#
+sympy.utilities.iterables.subsets(seq, k=None, repetition=False)[source]#

Generates all \(k\)-subsets (combinations) from an \(n\)-element set, seq.

A \(k\)-subset of an \(n\)-element set is any subset of length exactly \(k\). The number of \(k\)-subsets of an \(n\)-element set is given by binomial(n, k), @@ -2378,13 +2378,13 @@

Documentation Version
-sympy.utilities.iterables.take(iter, n)[source]#
+sympy.utilities.iterables.take(iter, n)[source]#

Return n items from iter iterator.

-sympy.utilities.iterables.topological_sort(graph, key=None)[source]#
+sympy.utilities.iterables.topological_sort(graph, key=None)[source]#

Topological sort of graph’s vertices.

Parameters:
@@ -2459,14 +2459,14 @@
Documentation Version
-sympy.utilities.iterables.unflatten(iter, n=2)[source]#
+sympy.utilities.iterables.unflatten(iter, n=2)[source]#

Group iter into tuples of length n. Raise an error if the length of iter is not a multiple of n.

-sympy.utilities.iterables.uniq(seq, result=None)[source]#
+sympy.utilities.iterables.uniq(seq, result=None)[source]#

Yield unique elements from seq as an iterator. The second parameter result is used internally; it is not necessary to pass anything for this.

@@ -2493,7 +2493,7 @@
Documentation Version
-sympy.utilities.iterables.variations(seq, n, repetition=False)[source]#
+sympy.utilities.iterables.variations(seq, n, repetition=False)[source]#

Returns an iterator over the n-sized variations of seq (size N). repetition controls whether items in seq can appear more than once;

Examples

diff --git a/dev/modules/utilities/lambdify.html b/dev/modules/utilities/lambdify.html index c56028b2909..98911f89842 100644 --- a/dev/modules/utilities/lambdify.html +++ b/dev/modules/utilities/lambdify.html @@ -743,7 +743,7 @@
Documentation Version
lambda functions which can be used to calculate numerical values very fast.

-sympy.utilities.lambdify.implemented_function(symfunc, implementation)[source]#
+sympy.utilities.lambdify.implemented_function(symfunc, implementation)[source]#

Add numerical implementation to function symfunc.

symfunc can be an UndefinedFunction instance, or a name string. In the latter case we create an UndefinedFunction instance with that @@ -786,7 +786,7 @@

Documentation Version
-sympy.utilities.lambdify.lambdastr(args, expr, printer=None, dummify=None)[source]#
+sympy.utilities.lambdify.lambdastr(args, expr, printer=None, dummify=None)[source]#

Returns a string that can be evaluated to a lambda function.

Examples

>>> from sympy.abc import x, y, z
@@ -808,7 +808,7 @@ 
Documentation Version
-sympy.utilities.lambdify.lambdify(args, expr, modules=None, printer=None, use_imps=True, dummify=False, cse=False, docstring_limit=1000)[source]#
+sympy.utilities.lambdify.lambdify(args, expr, modules=None, printer=None, use_imps=True, dummify=False, cse=False, docstring_limit=1000)[source]#

Convert a SymPy expression into a function that allows for fast numeric evaluation.

diff --git a/dev/modules/utilities/memoization.html b/dev/modules/utilities/memoization.html index e8311156e89..44aec0cf9c4 100644 --- a/dev/modules/utilities/memoization.html +++ b/dev/modules/utilities/memoization.html @@ -741,7 +741,7 @@
Documentation Version

Memoization#

-sympy.utilities.memoization.assoc_recurrence_memo(base_seq)[source]#
+sympy.utilities.memoization.assoc_recurrence_memo(base_seq)[source]#

Memo decorator for associated sequences defined by recurrence starting from base

base_seq(n) – callable to get base sequence elements

XXX works only for Pn0 = base_seq(0) cases @@ -750,7 +750,7 @@

Documentation Version
-sympy.utilities.memoization.recurrence_memo(initial)[source]#
+sympy.utilities.memoization.recurrence_memo(initial)[source]#

Memo decorator for sequences defined by recurrence

See usage examples e.g. in the specfun/combinatorial module

diff --git a/dev/modules/utilities/misc.html b/dev/modules/utilities/misc.html index e364e976e07..d3c79634cd7 100644 --- a/dev/modules/utilities/misc.html +++ b/dev/modules/utilities/misc.html @@ -742,7 +742,7 @@
Documentation Version

Miscellaneous stuff that does not really fit anywhere else.

-sympy.utilities.misc.as_int(n, strict=True)[source]#
+sympy.utilities.misc.as_int(n, strict=True)[source]#

Convert the argument to a builtin integer.

The return value is guaranteed to be equal to the input. ValueError is raised if the input has a non-integral value. When strict is True, this @@ -791,27 +791,27 @@

Documentation Version
-sympy.utilities.misc.debug(*args)[source]#
+sympy.utilities.misc.debug(*args)[source]#

Print *args if SYMPY_DEBUG is True, else do nothing.

-sympy.utilities.misc.debug_decorator(func)[source]#
+sympy.utilities.misc.debug_decorator(func)[source]#

If SYMPY_DEBUG is True, it will print a nice execution tree with arguments and results of all decorated functions, else do nothing.

-sympy.utilities.misc.debugf(string, args)[source]#
+sympy.utilities.misc.debugf(string, args)[source]#

Print string%args if SYMPY_DEBUG is True, else do nothing. This is intended for debug messages using formatted strings.

-sympy.utilities.misc.filldedent(s, w=70, **kwargs)[source]#
+sympy.utilities.misc.filldedent(s, w=70, **kwargs)[source]#

Strips leading and trailing empty lines from a copy of s, then dedents, fills and returns it.

Empty line stripping serves to deal with docstrings like this one that @@ -826,7 +826,7 @@

Documentation Version
-sympy.utilities.misc.find_executable(executable, path=None)[source]#
+sympy.utilities.misc.find_executable(executable, path=None)[source]#

Try to find ‘executable’ in the directories listed in ‘path’ (a string listing directories separated by ‘os.pathsep’; defaults to os.environ[‘PATH’]). Returns the complete filename or None if not @@ -835,7 +835,7 @@

Documentation Version
-sympy.utilities.misc.func_name(x, short=False)[source]#
+sympy.utilities.misc.func_name(x, short=False)[source]#

Return function name of \(x\) (if defined) else the \(type(x)\). If short is True and there is a shorter alias for the result, return the alias.

@@ -855,13 +855,13 @@
Documentation Version
-sympy.utilities.misc.ordinal(num)[source]#
+sympy.utilities.misc.ordinal(num)[source]#

Return ordinal number string of num, e.g. 1 becomes 1st.

-sympy.utilities.misc.rawlines(s)[source]#
+sympy.utilities.misc.rawlines(s)[source]#

Return a cut-and-pastable string that, when printed, is equivalent to the input. Use this when there is more than one line in the string. The string returned is formatted so it can be indented @@ -925,7 +925,7 @@

Documentation Version
-sympy.utilities.misc.replace(string, *reps)[source]#
+sympy.utilities.misc.replace(string, *reps)[source]#

Return string with all keys in reps replaced with their corresponding values, longer strings first, irrespective of the order they are given. reps may be passed as tuples @@ -960,7 +960,7 @@

Documentation Version
-sympy.utilities.misc.strlines(s, c=64, short=False)[source]#
+sympy.utilities.misc.strlines(s, c=64, short=False)[source]#

Return a cut-and-pastable string that, when printed, is equivalent to the input. The lines will be surrounded by parentheses and no line will be longer than c (default 64) @@ -991,7 +991,7 @@

Documentation Version
-sympy.utilities.misc.translate(s, a, b=None, c=None)[source]#
+sympy.utilities.misc.translate(s, a, b=None, c=None)[source]#

Return s where characters have been replaced or deleted.

Syntax

diff --git a/dev/modules/utilities/source.html b/dev/modules/utilities/source.html index ef0b594067b..70b6ce40a48 100644 --- a/dev/modules/utilities/source.html +++ b/dev/modules/utilities/source.html @@ -742,7 +742,7 @@
Documentation Version

This module adds several functions for interactive source code inspection.

-sympy.utilities.source.get_class(lookup_view)[source]#
+sympy.utilities.source.get_class(lookup_view)[source]#

Convert a string version of a class name to the object.

For example, get_class(‘sympy.core.Basic’) will return class Basic located in module sympy.core

@@ -750,7 +750,7 @@
Documentation Version
-sympy.utilities.source.get_mod_func(callback)[source]#
+sympy.utilities.source.get_mod_func(callback)[source]#

splits the string path to a class into a string path to the module and the name of the class.

Examples

diff --git a/dev/modules/utilities/timeutils.html b/dev/modules/utilities/timeutils.html index fd2dd6e256d..ad4eb3d4d0e 100644 --- a/dev/modules/utilities/timeutils.html +++ b/dev/modules/utilities/timeutils.html @@ -742,7 +742,7 @@
Documentation Version

Simple tools for timing functions’ execution, when IPython is not available.

-sympy.utilities.timeutils.timed(func, setup='pass', limit=None)[source]#
+sympy.utilities.timeutils.timed(func, setup='pass', limit=None)[source]#

Adaptively measure execution time of a function.

diff --git a/dev/modules/vector/api/classes.html b/dev/modules/vector/api/classes.html index e3333a8dad6..471cfbbd254 100644 --- a/dev/modules/vector/api/classes.html +++ b/dev/modules/vector/api/classes.html @@ -741,11 +741,11 @@
Documentation Version

Essential Classes in sympy.vector (docstrings)#

-class sympy.vector.coordsysrect.CoordSys3D(name, transformation=None, parent=None, location=None, rotation_matrix=None, vector_names=None, variable_names=None)[source]#
+class sympy.vector.coordsysrect.CoordSys3D(name, transformation=None, parent=None, location=None, rotation_matrix=None, vector_names=None, variable_names=None)[source]#

Represents a coordinate system in 3-D space.

-__init__(name, location=None, rotation_matrix=None, parent=None, vector_names=None, variable_names=None, latex_vects=None, pretty_vects=None, latex_scalars=None, pretty_scalars=None, transformation=None)[source]#
+__init__(name, location=None, rotation_matrix=None, parent=None, vector_names=None, variable_names=None, latex_vects=None, pretty_vects=None, latex_scalars=None, pretty_scalars=None, transformation=None)[source]#

The orientation/location parameters are necessary if this system is being defined at a certain orientation or location wrt another.

@@ -787,7 +787,7 @@

Essential Classes in sympy.vector (docstrings)
-create_new(name, transformation, variable_names=None, vector_names=None)[source]#
+create_new(name, transformation, variable_names=None, vector_names=None)[source]#

Returns a CoordSys3D which is connected to self by transformation.

Parameters:
@@ -822,7 +822,7 @@

Essential Classes in sympy.vector (docstrings)
-locate_new(name, position, vector_names=None, variable_names=None)[source]#
+locate_new(name, position, vector_names=None, variable_names=None)[source]#

Returns a CoordSys3D with its origin located at the given position wrt this coordinate system’s origin.

@@ -856,7 +856,7 @@

Essential Classes in sympy.vector (docstrings)
-orient_new(name, orienters, location=None, vector_names=None, variable_names=None)[source]#
+orient_new(name, orienters, location=None, vector_names=None, variable_names=None)[source]#

Creates a new CoordSys3D oriented in the user-specified way with respect to this system.

Please refer to the documentation of the orienter classes @@ -925,7 +925,7 @@

Essential Classes in sympy.vector (docstrings)
-orient_new_axis(name, angle, axis, location=None, vector_names=None, variable_names=None)[source]#
+orient_new_axis(name, angle, axis, location=None, vector_names=None, variable_names=None)[source]#

Axis rotation is a rotation about an arbitrary axis by some angle. The angle is supplied as a SymPy expr scalar, and the axis is supplied as a Vector.

@@ -969,7 +969,7 @@

Essential Classes in sympy.vector (docstrings)
-orient_new_body(name, angle1, angle2, angle3, rotation_order, location=None, vector_names=None, variable_names=None)[source]#
+orient_new_body(name, angle1, angle2, angle3, rotation_order, location=None, vector_names=None, variable_names=None)[source]#

Body orientation takes this coordinate system through three successive simple rotations.

Body fixed rotations include both Euler Angles and @@ -1036,7 +1036,7 @@

Essential Classes in sympy.vector (docstrings)
-orient_new_quaternion(name, q0, q1, q2, q3, location=None, vector_names=None, variable_names=None)[source]#
+orient_new_quaternion(name, q0, q1, q2, q3, location=None, vector_names=None, variable_names=None)[source]#

Quaternion orientation orients the new CoordSys3D with Quaternions, defined as a finite rotation about lambda, a unit vector, by some amount theta.

@@ -1082,7 +1082,7 @@

Essential Classes in sympy.vector (docstrings)
-orient_new_space(name, angle1, angle2, angle3, rotation_order, location=None, vector_names=None, variable_names=None)[source]#
+orient_new_space(name, angle1, angle2, angle3, rotation_order, location=None, vector_names=None, variable_names=None)[source]#

Space rotation is similar to Body rotation, but the rotations are applied in the opposite order.

@@ -1145,7 +1145,7 @@

Essential Classes in sympy.vector (docstrings)
-position_wrt(other)[source]#
+position_wrt(other)[source]#

Returns the position vector of the origin of this coordinate system with respect to another Point/CoordSys3D.

@@ -1170,7 +1170,7 @@

Essential Classes in sympy.vector (docstrings)
-rotation_matrix(other)[source]#
+rotation_matrix(other)[source]#

Returns the direction cosine matrix(DCM), also known as the ‘rotation matrix’ of this coordinate system with respect to another system.

@@ -1203,7 +1203,7 @@

Essential Classes in sympy.vector (docstrings)
-scalar_map(other)[source]#
+scalar_map(other)[source]#

Returns a dictionary which expresses the coordinate variables (base scalars) of this frame in terms of the variables of otherframe.

@@ -1231,7 +1231,7 @@

Essential Classes in sympy.vector (docstrings)
-class sympy.vector.vector.Vector(*args)[source]#
+class sympy.vector.vector.Vector(*args)[source]#

Super class for all Vector classes. Ideally, neither this class nor any of its subclasses should be instantiated by the user.

@@ -1253,7 +1253,7 @@

Essential Classes in sympy.vector (docstrings)
-cross(other)[source]#
+cross(other)[source]#

Returns the cross product of this Vector with another Vector or Dyadic instance. The cross product is a Vector, if ‘other’ is a Vector. If ‘other’ @@ -1285,7 +1285,7 @@

Essential Classes in sympy.vector (docstrings)
-dot(other)[source]#
+dot(other)[source]#

Returns the dot product of this Vector, either with another Vector, or a Dyadic, or a Del operator. If ‘other’ is a Vector, returns the dot product scalar (SymPy @@ -1325,19 +1325,19 @@

Essential Classes in sympy.vector (docstrings)
-magnitude()[source]#
+magnitude()[source]#

Returns the magnitude of this vector.

-normalize()[source]#
+normalize()[source]#

Returns the normalized version of this vector.

-outer(other)[source]#
+outer(other)[source]#

Returns the outer product of this vector with another, in the form of a Dyadic instance.

@@ -1360,7 +1360,7 @@

Essential Classes in sympy.vector (docstrings)
-projection(other, scalar=False)[source]#
+projection(other, scalar=False)[source]#

Returns the vector or scalar projection of the ‘other’ on ‘self’.

Examples

>>> from sympy.vector.coordsysrect import CoordSys3D
@@ -1378,7 +1378,7 @@ 

Essential Classes in sympy.vector (docstrings)
-separate()[source]#
+separate()[source]#

The constituents of this vector in different coordinate systems, as per its definition.

Returns a dict mapping each CoordSys3D to the corresponding @@ -1396,7 +1396,7 @@

Essential Classes in sympy.vector (docstrings)
-to_matrix(system)[source]#
+to_matrix(system)[source]#

Returns the matrix form of this vector with respect to the specified coordinate system.

@@ -1425,7 +1425,7 @@

Essential Classes in sympy.vector (docstrings)
-class sympy.vector.dyadic.Dyadic(*args)[source]#
+class sympy.vector.dyadic.Dyadic(*args)[source]#

Super class for all Dyadic-classes.

References

@@ -1449,7 +1449,7 @@

Essential Classes in sympy.vector (docstrings)
-cross(other)[source]#
+cross(other)[source]#

Returns the cross product between this Dyadic, and a Vector, as a Vector instance.

@@ -1472,7 +1472,7 @@

Essential Classes in sympy.vector (docstrings)
-dot(other)[source]#
+dot(other)[source]#

Returns the dot product(also called inner product) of this Dyadic, with another Dyadic or Vector. If ‘other’ is a Dyadic, this returns a Dyadic. Else, it returns @@ -1500,7 +1500,7 @@

Essential Classes in sympy.vector (docstrings)
-to_matrix(system, second_system=None)[source]#
+to_matrix(system, second_system=None)[source]#

Returns the matrix form of the dyadic with respect to one or two coordinate systems.

@@ -1544,12 +1544,12 @@

Essential Classes in sympy.vector (docstrings)
-class sympy.vector.deloperator.Del[source]#
+class sympy.vector.deloperator.Del[source]#

Represents the vector differential operator, usually represented in mathematical expressions as the ‘nabla’ symbol.

-cross(vect, doit=False)[source]#
+cross(vect, doit=False)[source]#

Represents the cross product between this operator and a given vector - equal to the curl of the vector field.

@@ -1582,7 +1582,7 @@

Essential Classes in sympy.vector (docstrings)
-dot(vect, doit=False)[source]#
+dot(vect, doit=False)[source]#

Represents the dot product between this operator and a given vector - equal to the divergence of the vector field.

@@ -1614,7 +1614,7 @@

Essential Classes in sympy.vector (docstrings)
-gradient(scalar_field, doit=False)[source]#
+gradient(scalar_field, doit=False)[source]#

Returns the gradient of the given scalar field, as a Vector instance.

@@ -1647,7 +1647,7 @@

Essential Classes in sympy.vector (docstrings)
-class sympy.vector.parametricregion.ParametricRegion(definition, *bounds)[source]#
+class sympy.vector.parametricregion.ParametricRegion(definition, *bounds)[source]#

Represents a parametric region in space.

Parameters:
@@ -1690,7 +1690,7 @@

Essential Classes in sympy.vector (docstrings)
-class sympy.vector.implicitregion.ImplicitRegion(variables, equation)[source]#
+class sympy.vector.implicitregion.ImplicitRegion(variables, equation)[source]#

Represents an implicit region in space.

Parameters:
@@ -1730,7 +1730,7 @@

Essential Classes in sympy.vector (docstrings)
-multiplicity(point)[source]#
+multiplicity(point)[source]#

Returns the multiplicity of a singular point on the region.

A singular point (x,y) of region is said to be of multiplicity m if all the partial derivatives off to order m - 1 vanish there.

@@ -1748,7 +1748,7 @@

Essential Classes in sympy.vector (docstrings)
-rational_parametrization(parameters=('t', 's'), reg_point=None)[source]#
+rational_parametrization(parameters=('t', 's'), reg_point=None)[source]#

Returns the rational parametrization of implicit region.

Examples

>>> from sympy import Eq
@@ -1799,7 +1799,7 @@ 

Essential Classes in sympy.vector (docstrings)
-regular_point()[source]#
+regular_point()[source]#

Returns a point on the implicit region.

Examples

>>> from sympy.abc import x, y, z
@@ -1825,7 +1825,7 @@ 

Essential Classes in sympy.vector (docstrings)
-singular_points()[source]#
+singular_points()[source]#

Returns a set of singular points of the region.

The singular points are those points on the region where all partial derivatives vanish.

@@ -1843,7 +1843,7 @@

Essential Classes in sympy.vector (docstrings)
-class sympy.vector.integrals.ParametricIntegral(field, parametricregion)[source]#
+class sympy.vector.integrals.ParametricIntegral(field, parametricregion)[source]#

Represents integral of a scalar or vector field over a Parametric Region

Examples

diff --git a/dev/modules/vector/api/orienterclasses.html b/dev/modules/vector/api/orienterclasses.html index f941706fd14..64a4b7c2d41 100644 --- a/dev/modules/vector/api/orienterclasses.html +++ b/dev/modules/vector/api/orienterclasses.html @@ -741,11 +741,11 @@
Documentation Version

Orienter classes (docstrings)#

-class sympy.vector.orienters.Orienter(*args)[source]#
+class sympy.vector.orienters.Orienter(*args)[source]#

Super-class for all orienter classes.

-rotation_matrix()[source]#
+rotation_matrix()[source]#

The rotation matrix corresponding to this orienter instance.

@@ -754,11 +754,11 @@

Orienter classes (docstrings)
-class sympy.vector.orienters.AxisOrienter(angle, axis)[source]#
+class sympy.vector.orienters.AxisOrienter(angle, axis)[source]#

Class to denote an axis orienter.

-__init__(angle, axis)[source]#
+__init__(angle, axis)[source]#

Axis rotation is a rotation about an arbitrary axis by some angle. The angle is supplied as a SymPy expr scalar, and the axis is supplied as a Vector.

@@ -788,7 +788,7 @@

Orienter classes (docstrings)
-rotation_matrix(system)[source]#
+rotation_matrix(system)[source]#

The rotation matrix corresponding to this orienter instance.

@@ -806,11 +806,11 @@

Orienter classes (docstrings)
-class sympy.vector.orienters.BodyOrienter(angle1, angle2, angle3, rot_order)[source]#
+class sympy.vector.orienters.BodyOrienter(angle1, angle2, angle3, rot_order)[source]#

Class to denote a body-orienter.

-__init__(angle1, angle2, angle3, rot_order)[source]#
+__init__(angle1, angle2, angle3, rot_order)[source]#

Body orientation takes this coordinate system through three successive simple rotations.

Body fixed rotations include both Euler Angles and @@ -868,11 +868,11 @@

Orienter classes (docstrings)
-class sympy.vector.orienters.SpaceOrienter(angle1, angle2, angle3, rot_order)[source]#
+class sympy.vector.orienters.SpaceOrienter(angle1, angle2, angle3, rot_order)[source]#

Class to denote a space-orienter.

-__init__(angle1, angle2, angle3, rot_order)[source]#
+__init__(angle1, angle2, angle3, rot_order)[source]#

Space rotation is similar to Body rotation, but the rotations are applied in the opposite order.

@@ -926,11 +926,11 @@

Orienter classes (docstrings)
-class sympy.vector.orienters.QuaternionOrienter(q0, q1, q2, q3)[source]#
+class sympy.vector.orienters.QuaternionOrienter(q0, q1, q2, q3)[source]#

Class to denote a quaternion-orienter.

-__init__(angle1, angle2, angle3, rot_order)[source]#
+__init__(angle1, angle2, angle3, rot_order)[source]#

Quaternion orientation orients the new CoordSys3D with Quaternions, defined as a finite rotation about lambda, a unit vector, by some amount theta.

diff --git a/dev/modules/vector/api/vectorfunctions.html b/dev/modules/vector/api/vectorfunctions.html index 54acfff3d2e..9f6dc94838a 100644 --- a/dev/modules/vector/api/vectorfunctions.html +++ b/dev/modules/vector/api/vectorfunctions.html @@ -741,7 +741,7 @@
Documentation Version

Essential Functions in sympy.vector (docstrings)#

-sympy.vector.matrix_to_vector(matrix, system)[source]#
+sympy.vector.matrix_to_vector(matrix, system)[source]#

Converts a vector in matrix form to a Vector instance.

It is assumed that the elements of the Matrix represent the measure numbers of the components of the vector along basis @@ -774,7 +774,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.express(expr, system, system2=None, variables=False)[source]#
+sympy.vector.express(expr, system, system2=None, variables=False)[source]#

Global function for ‘express’ functionality.

Re-expresses a Vector, Dyadic or scalar(sympyfiable) in the given coordinate system.

@@ -824,7 +824,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.curl(vect, doit=True)[source]#
+sympy.vector.curl(vect, doit=True)[source]#

Returns the curl of a vector field computed wrt the base scalars of the given coordinate system.

@@ -856,7 +856,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.divergence(vect, doit=True)[source]#
+sympy.vector.divergence(vect, doit=True)[source]#

Returns the divergence of a vector field computed wrt the base scalars of the given coordinate system.

@@ -890,7 +890,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.gradient(scalar_field, doit=True)[source]#
+sympy.vector.gradient(scalar_field, doit=True)[source]#

Returns the vector gradient of a scalar field computed wrt the base scalars of the given coordinate system.

@@ -922,7 +922,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.is_conservative(field)[source]#
+sympy.vector.is_conservative(field)[source]#

Checks if a field is conservative.

Parameters:
@@ -946,7 +946,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.is_solenoidal(field)[source]#
+sympy.vector.is_solenoidal(field)[source]#

Checks if a field is solenoidal.

Parameters:
@@ -970,7 +970,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.scalar_potential(field, coord_sys)[source]#
+sympy.vector.scalar_potential(field, coord_sys)[source]#

Returns the scalar potential function of a field in a given coordinate system (without the added integration constant).

@@ -1002,7 +1002,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.scalar_potential_difference(field, coord_sys, point1, point2)[source]#
+sympy.vector.scalar_potential_difference(field, coord_sys, point1, point2)[source]#

Returns the scalar potential difference between two points in a certain coordinate system, wrt a given field.

If a scalar field is provided, its values at the two points are @@ -1048,7 +1048,7 @@

Essential Functions in sympy.vector (docstrings)
-sympy.vector.integrals.vector_integrate(field, *region)[source]#
+sympy.vector.integrals.vector_integrate(field, *region)[source]#

Compute the integral of a vector/scalar field over a a region or a set of parameters.

Examples