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.3.721-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.721-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.721-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

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

simple_equ-1.3.721-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.721-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.721-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.721-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

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

simple_equ-1.3.721-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.721-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.721-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.721-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

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

simple_equ-1.3.721-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.721-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.721-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.721-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

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

simple_equ-1.3.721-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.721-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.721-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.721-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

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

simple_equ-1.3.721-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d209b697798d37e8a875ade2e3256e451274b3d0bf97f001319422b240a42f55
MD5 04970c38ab73db82a6d2aa3d71fae9b0
BLAKE2b-256 0f61d14cd70c882a028dd88b1d0a39ade2086979fc642d256089263c1b11cf38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.721-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.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.3.721-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6bdb50ecdec9280e36e92d147dc557c3a2270929006295fc7224e8d722d4c000
MD5 0b64535516a6af640386b5d670f2137f
BLAKE2b-256 1614460dde12c38305316ad779fcdc4d9c112a961d156befdefbc7dacb4be848

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.721-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.3.721-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02f7ce42a9a0a43f93c90668ea969c2f5bc00b3f9e9edd6bf228b72c8d36b32c
MD5 10d4d81f8c958ac2b5d6839bd03ec82f
BLAKE2b-256 8f3a05ca8944dd65e56f4d9cff00b5dd63883fecbfa479ec4bdd2c7113b4788b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b19048911964b3b3e7e69d7c64dbfa3f3905b6e9d9447c103b3df9faf48b0744
MD5 71299c15b93ad32df9ba4f7c9e256339
BLAKE2b-256 9a81d88af29dcc9494d25c87d37c722f5efea9a2aeb6e1c64cab3d5841452d73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ee59b08f08c728bd752a6800bf131e92565379c6ae89ba1dea3bc62270f44904
MD5 c7dae165fc8866978ac17d7440847d93
BLAKE2b-256 49de9c81763c78e230c960d60f560d369ae86a625f8304b6117169648c4f308d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.721-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 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.3.721-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c8b1efadb0e59e67beb6c0fca45a4d88468a5f410703a5814398a03d5039179e
MD5 fa435beed3a08afd74949ce86ab5b428
BLAKE2b-256 4234aa69475951e4945f9bf7b6c32fdd619610e9fb65bcd539adefab4aa1f495

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.721-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.3.721-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ce85482017d6416a69e26993b7d2170ac67fcc5c7c93b25032d3bb7110817ea
MD5 ce02f6fe6907e3a03bdddee875af171d
BLAKE2b-256 ca9839da1a623038b8b9de906e612c0d1c2158d7e73e22bd0438f4739fe10312

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 581a5527a00610943f12e2bae8a74916f39e17725a1b3af0f3b7b4c4e5e8f179
MD5 20ccf25ad8900336739c365bd8e12481
BLAKE2b-256 1438fd6017c0c1dfb82b7b29ec31014660deb88b93faa467500d653a6eeb5e2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b44f4099e2a9915a4e8c3ed38761ea914df16aeb5396c508b57eaa4f36723435
MD5 57ff52ea6ab6b6776c349c60bcb225aa
BLAKE2b-256 8c34d59f1c9f919a86449ec09be88e201f6199f2c17f2d649fafed98e1a6c776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.721-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 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.3.721-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0919c726cfb7800394ec3f83b40e557c9cc61a189caf919a4701d4eb202707cc
MD5 3967d97c2b91681aefb3995baf7932b0
BLAKE2b-256 d89421ecec6db7ee1e2e1475fc3794a1e2cafcf6136b87ca96f1a0fede3f883a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.721-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.3.721-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 760888d3c293f78c9141749a22942e8ca9aec3c74f1a5bcc256250f7df36c848
MD5 789890ce3179335a2e6a6d6b1a256ab2
BLAKE2b-256 7b3095a8422e50c3b84e30f63e70db80e3d50c3fa25d397e8c51ca81bbb1b6e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69da71df4b3f40cc5c138ec24c79ad102fbd4cfdabd329edb0e010a5dc9eb0e3
MD5 aa7f545d752b1ffdd7d684a686fa113f
BLAKE2b-256 ed3bedcf3261486a73b18fee0ae43328e12ba5ab1e11015c842dd7262e983386

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.721-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.721-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8be85dacac48552d1e188307e76ba22838002f17c1716a70ffe77340b7f8deb7
MD5 08206883ac8e4a9c99d9fa346cdb6de2
BLAKE2b-256 f36032abd4b9efe711d9c46a592a337b2755f9c82cfc82c3c59931b77ad1e040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.721-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 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.3.721-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3e331e38cc925f1ad67714542028eee1348b07b17d7e125c2034bc56fd8f2dfd
MD5 a72776ae8fedf1bd56c7d851e47611f7
BLAKE2b-256 2fe978922c105c6b420a9e9c50748da5851109fc31d16f5044d775e4bbb77237

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.721-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.3.721-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6705dab78a4f705bef7f4192a3fe7bd20f8222cfecc258cb705c673e62bb74d6
MD5 7ce52d17a206307207356acbbff7599b
BLAKE2b-256 a2d9a79e931301ef13122e58e5aba1175cc3955daff8f3813d099aad39cdee41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef0c72a83b18f9741b60616aab12db8d232103a74c0970b00fe5375663dee9f9
MD5 770d312af181ccdd20ad1035de1859f0
BLAKE2b-256 8d226903ffcb1cc670104ac31a7abafb6a8d79af821c1f81d0cd4b6b964ddcaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.721-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 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.3.721-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 27c69661b403e9751473551ee96152a05eedbd1e61fb06bf287cfa66f8577fb4
MD5 d88ea0c114f31b2e04b614ac3ff99a10
BLAKE2b-256 d9ab63d079862ba36558ca7123ea52db22feb1accc724d23c624e6ca487f4949

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.721-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 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.3.721-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d6adea693e74e47227383ee0a0e05020ce680c06b432d3c8393f829f9c54bf91
MD5 526b5b808c1f938c2f68c9c2db5bfcbe
BLAKE2b-256 ce3369bd2cfd2d8fa66742892008066b9d91a6b95044a23480df71256d0628ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.721-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.3.721-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6adf9a25ee9c3e129974a99ea0893e06c441252c31e51dafad98ad7c4487df62
MD5 c2f673bc0ee39f0cbc441aac6729bcf9
BLAKE2b-256 71f2e619e420979428b4dbb8161c10dbb5ef1733525f77189105e3ed852aa47d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.721-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9cf47f390bc143a90001729ec8e865beb32a690c4a3882da2528e0993213e52
MD5 939d246ec7acb2e9718cb280a447976c
BLAKE2b-256 b9fe2d19b0fe4169b31ad144f139d9efe7fa31f43bcf04b925d46116209eb25c

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