Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.5.6-cp312-cp312-win_amd64.whl (121.5 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.6-cp312-cp312-win32.whl (118.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (371.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.6-cp312-cp312-macosx_11_0_arm64.whl (124.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.6-cp311-cp311-win_amd64.whl (122.2 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.6-cp311-cp311-win32.whl (119.8 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (332.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.6-cp311-cp311-macosx_11_0_arm64.whl (124.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.6-cp310-cp310-win_amd64.whl (122.1 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.6-cp310-cp310-win32.whl (120.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (321.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.6-cp310-cp310-macosx_11_0_arm64.whl (124.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.6-cp39-cp39-win_amd64.whl (122.2 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.6-cp39-cp39-win32.whl (120.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.6-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (320.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.6-cp39-cp39-macosx_11_0_arm64.whl (124.6 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.6-cp38-cp38-win_amd64.whl (122.7 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.6-cp38-cp38-win32.whl (120.7 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.6-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (303.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.6-cp38-cp38-macosx_11_0_arm64.whl (124.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.5.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 121.5 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a49e3bc1809550e0ee7ce6d97f051f9a3c0a982eac25c2153039804eba4bdbb0
MD5 6956fede235c2d658ce7d180d04cf143
BLAKE2b-256 cd34eb4de6fbb31c0644e2f92629ef9d02a8bc6dd9949fe1a83ec754799ffb57

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp312-cp312-win32.whl
  • Upload date:
  • Size: 118.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 50961462385ce3f054db44acf403fc35775c6f6893d925de86f4500db8122741
MD5 9e84f862f023939897e5b9e370cfbd66
BLAKE2b-256 5a78aaa4062c06c2f5e18999ab0368a15aff31005d35992beba686a274b3e198

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a181299afb3f845c3e7e3e5b0ea38580b3b66ccd692a97793fe943a407dff385
MD5 0012d90e34e41901586d2fc538ebb9d4
BLAKE2b-256 fe67438a3f9fed54fe4a51c20077afcaebb01774875c96badeb538b4520612b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c5d021eb86006285615e5bd0bae1f03fb5160ac479cf5db010cc44a36fc77f0
MD5 fa7d36e2c77368ffd440fe227a5110e4
BLAKE2b-256 31e1887272ca17e05631394fd0e385f957d952fc982eeb219d2221fce02988df

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 122.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4dfb8e06a8db418a7520290e5535e718942c7b47784ab97137f543477cc16239
MD5 0cb37e892ccc3c4eeff139b4a7cb2727
BLAKE2b-256 73a7c60b1c6d2c51ee47c37c7e92031f8d408ae5cdbfce95f3e0f971b4b97860

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp311-cp311-win32.whl
  • Upload date:
  • Size: 119.8 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 76a44e9ca2a4824c822881a184df196a08717ce1edd31d17bb8e8c071f80fb24
MD5 a39ffca6590fd0a06cb3dd6c8a21f5c8
BLAKE2b-256 38b248901182a06d1dc6b65ad8c139756e7338691a0973a742581fd73c54d375

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 859e97ed26b8646d132ceb34a9815bdc5a1a9ca4c008998b11bc812cbf7389ed
MD5 6d286e5a5d9e3d2b6fd4d8b869873aa3
BLAKE2b-256 0dfecc247b1d8a7c7bfcbd7fe1f7045c829f6e77bc29d7639eb55b67571d2db1

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4634c80b44f2379f7d7ebdf8ae62c6ff77f7090fc24ef465b22247039d1083d
MD5 e21c542a46e4fdbbc049b7ebad7cd4d4
BLAKE2b-256 ed424e2982069b0e528f378b336382c0cb6ae10a335fd6c842baac33ce81b16f

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 122.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a81d27c8c131a3ee652a9d12ad14570564fd61c206ab3814fb90f8607f5a7a3b
MD5 b25059dfbd879d3232f0598ee9b180fb
BLAKE2b-256 1495157bcbde624f9794963aaa09ec8a059c5b087395ff3817417fb8808ac0de

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp310-cp310-win32.whl
  • Upload date:
  • Size: 120.2 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 15dc871542414aa8a85e9cd3b43db7facf9dac99298b3aa5e9a980e51a5ef9bb
MD5 6b08a01f5ff78fda7ac5cc0f8c3f6235
BLAKE2b-256 6df21ba18088ab7673134158f6426e5091c845348451910b8d5693d80aaedba0

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 96d3cff1cd2a0b821200c088e0f1eabbdc77f93e4c8e43850decedda45feb861
MD5 7b1adad35648be43e6b8fe118a34333e
BLAKE2b-256 26ef7ea700ea0ed8ed4f206564f0ab12f699a8e6e35ac26ba075fa86066c445b

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e53826bddb8336870b8a63eb9a7dbf2d77ed2b08c56074966fa5a8e8c0be42c
MD5 ffbf7e038dcfed5ab0b26c921e9f22d2
BLAKE2b-256 64bd538799b51ff9d2754711049bf0378ffe1b3091e9e849e80177db0d4d9f63

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 122.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5868f67db0b4a5d8b2d63e131da17bb74a8ae64a78641390965dd0dd01e4d712
MD5 f3bd45775c8ca4c9fbdbc1deb21e240f
BLAKE2b-256 00084d68ba7a9015e216dcaa94bb6274ef451a80fddc538f9dec7f8ba5c794c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp39-cp39-win32.whl
  • Upload date:
  • Size: 120.3 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d8691ee4036b3ba324fd83e427eb27e2f56790b84a24072d4923b1a34c5d57ca
MD5 f753bc1d3a7a0b8352109b4be5ae975d
BLAKE2b-256 5cddc2100c3dc1643c170c385a7a6ba15a34abfde1e541ff74d7febcb330edf9

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9d5238f7ad906cf2f1de1323c0211e9f3017936158a7ffbcc4ec2d9939bd98ec
MD5 7566e8b88945084c154ede2c956c977e
BLAKE2b-256 b2cfc7026825d4b521dc0535709978ae61c0b3e0074ea0f230ec75f9bf8e342e

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26abfebafff11174cb1e7af4de6fedd217b6e2033ab95a65df1fc3ed56646f3c
MD5 9e4742324ef6cbc97fc0e609442c3b05
BLAKE2b-256 95c65c21cb1fa89415647fa52df0a18f45215705f52e9f4d39a71c44995df029

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 122.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3024cc290631ca9a2f6af8a7d159e5746526cf0f8d3b3ab3e74c6d4057377511
MD5 9d0b6a240b27b2f216325e8a67231192
BLAKE2b-256 789c007913eebd1eac52cc6fe49d32b1b3f203bd064ea1023274f7df9570e818

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.5.6-cp38-cp38-win32.whl
  • Upload date:
  • Size: 120.7 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.5.6-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 705c7be198ae01c4ed786c649751d403f6465f9d742ccbeb09bd1eaad1edf55d
MD5 d37669112b0a3ac87543777dfcb281ca
BLAKE2b-256 d2561e97a6bd9ebd280c34a87ac6e5859b0adde64f7db2b2acf033c9683bdce9

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca7985a0faf6275850fdc200b3a7136e4f22d954b7f99a9c6f7fb2a480ce33ed
MD5 918279d8c02e3407985657c1bc7b0794
BLAKE2b-256 e3cce4b654f1ce07ee85b91982b83c68358422d2520100fbdeb1d4f9e212932a

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.6-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.5.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2430edd9ec503cadc6264eddf955155c5e93db13d9ec2b4e3b252f8f7d40701
MD5 d3de701668785f934345fb7f39cc636b
BLAKE2b-256 65e762e580f1badb2fe00b2e214af71c82e711ed7d27604777a343033a971520

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page