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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.41-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.41-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.41-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.41-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.41-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.41-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.41-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.41-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.41-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.41-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.41-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.41-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 463a8a4eaba624bb7528d3cbf6166a8d227032e9598d19fc23dc6fe76bc2c585
MD5 37bee1a3aa0133475ba7b429fde1b43e
BLAKE2b-256 ec3d608acd9de5851f5f7f54be2a6141abb412709b78171f415c96b3092b48c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-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.41-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a6a52ca8084e667a18cc569fd726980e223103ded3038920a56fd886f95b547e
MD5 baad8d03707f84f20869ec3974027999
BLAKE2b-256 06ee711eeb4575fca8ab93594643b620302292e0dc019d6b762c67fff58ba6c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.41-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.41-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c4ff524b77778279d199407401dfd76c7976477dfa2b789967fa2c1e6bb993b
MD5 e89dc014e839e1431b22ec6ce91effde
BLAKE2b-256 96fec2cd1d01db6283370ad2bcdb83137c3b4754d3c904995f476e787fed67da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.41-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13612666aefa67260fdac079ee93b0a10932234d8b65706927743af13b8b7981
MD5 eaddc054fb1a91954d8c4a2d43c64881
BLAKE2b-256 a2cec93df6fa13e36a28b67349c3af4e3b928520a0f311a99f773ce56d8fe84c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.41-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b6b93883e44d812fbb9a344a6214f3cf93ad9e413667d9e2ba4d6ee72e972be
MD5 4d93a6a53051e297abeea692e05aa24a
BLAKE2b-256 af07d2404f189020b33fe9b81de5d73b0a4522b951a054545c96d3fa0c5c2bcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-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.41-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d60b7d20b91de8e68ccef39591d06d379c5f4eac5f0ae0a39c31edf7e3bfc32f
MD5 c8a7d0a5e875390b8f00df7f060619cf
BLAKE2b-256 2fe890c70b38a878c23a6fb971544734b5600e98af12b1b2b72d21b9796b6d96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.41-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.41-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e6e924123237936c5b32d9022dca808c273f935bee076e8d006f05531e9a86c
MD5 849de01ea255091a44aaf34dc977fe71
BLAKE2b-256 89241630b075fdf398d29bb12e28a43f08ed187db181d385f655398dc84d1bb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.41-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88613da2ceb07027380e62a8db9ad5175e0d3ac1da9faf88acd3ddf34f51cd50
MD5 842c1c4125be755d87b75206251504e8
BLAKE2b-256 9b204ea75f7925f82c68d8cd3afacb7b05a7eb16aba8055d052daa89ddb1c231

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.41-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b18aa621c4b70d75f033e2ad42086e71a543c362899e05753b255ab9aa57fff2
MD5 7ae37c044e55e8c60a16ac53e9a88e48
BLAKE2b-256 15796a0c47161132ea1278563e81a3f8ec08bc6d1826120545349f3536701b35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-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.41-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cf224601b186fa235942a24f1e6ed0ace193d1d8874138136b941661767ffa58
MD5 92ae73bd3ac23724f3a768d4a007b336
BLAKE2b-256 dd36ec1560b17477c2f513c00d3fa3b2733e33928a97ea3ba0d8fca1a013796f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.41-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.41-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54aa91ed530da94bec34ff9501b00377864dbb0e5d21aed533bbc290086ebc8a
MD5 89aa4ae34dc7d0b4e5a5be0ac35f40f0
BLAKE2b-256 429d23c2a7083ef2a56ade07a850d46086a91fcb32897a875472abc9796055ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.41-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f4d748ff3ab9468b08a52ddcf292ed1dc68cb7971a8d62e9fef661271232677
MD5 a79fae1fb6d563632bc949dd986da136
BLAKE2b-256 d1b777e6fa11097e421ced364d79eb6ed637065dabdf4f20dcaa783919d2ade5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-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.41-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2d0d4fc7df1386de4a453fa6028cc8273d285b791ca9ee7827ea768b005cc478
MD5 95b140f70726f7575aa02f60a297b33c
BLAKE2b-256 b606c66acdd326138ddb6a61aab7fb1b3d77fcf0bf4cd5546469db5e7338ffe0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-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.41-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 628088052aed8fe8e77cc448d11e3a02fc82c54531279536ec1277cb4fdd4e5e
MD5 e41bcc6354d84f059424500c7e0a9717
BLAKE2b-256 6bed71f79a3b7a65ea505b6410e7d488fbbb3022793f14f01d20ffb4bfee5d07

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.41-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.41-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 927f2f56b9ecb0681d2e08076787c1cbe96384b522518e1f96225de630ad4de8
MD5 4c63351aa8f21787d9ca285dcba0d537
BLAKE2b-256 742171edfdca38d4688d8196791843459b485869819544672ae05cb6faa2a640

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.41-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4467d00e08f25bcfa96dbd84393bf1e7a892cc79b24ed1facff47f9442e12134
MD5 e979ac77adfe16fe4e3e2ef3e195e97c
BLAKE2b-256 4c1c26e88f900bd3f7e9edad161108d6edbf907f4201b1323e2bd7f329b2dad1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-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.41-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0dcb443f20f1c00680ad731ad5460de2388d8fcc4737357841e75d7d4e4deb4d
MD5 58c780c1b25fb7c586a95b1966305c7a
BLAKE2b-256 07b98dc53dbd77c867bc27bbc736a19df50e24f09aef7708b167f1349cddb925

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.41-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.41-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ecdfd2be540956d5f0e3a56f1893bd32e08d221165067f4ace717f0356f5b632
MD5 d34984f649e0f4b8ad999833d01b70b8
BLAKE2b-256 f4ee829fc70d2c905a8f14e7a70923765380ee11bc4615341f8ed6719fff27ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.41-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.41-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c741c185e64a7aacdb1932b75ca64cfde374dfc626354ec1608de62f07177b9
MD5 48abaa357ba2372958959311cd34871b
BLAKE2b-256 7e7223fab5c6141c0fd3bce4c08b1fb964c7792a4b7018d80d2b6bed1c2dd49a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.41-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 050eefdf6ddbbaa13992243f1cce37e033f7c070da3a7c1df5c04b8398054fe0
MD5 9d3260e3a0d070ab463079525dc465e2
BLAKE2b-256 0eb765773dee7f40cae8b5efefad00e0ec6a994f704502eec8a03ff68de50dc9

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