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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.416-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.416-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.416-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.416-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.416-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b130ecac28fc1280f419932147094fb826e8896e7124ae6b2549952363e8a0c9
MD5 b3edc8a867d26c013cbb5c7b6eb8a7cc
BLAKE2b-256 bafd50fe96c0ddd6d214feff39b8597a574d30195614fbd71d96ba58d86b845f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.416-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.416-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8100b1a92e8c97bc849fa2607d50cda6815744e3c6d007871aed3692fefc411b
MD5 4f864155cee9616345b22da99e681a2f
BLAKE2b-256 9ed0e9922d19fa4572e732e4e05a80690a0f8f9a6e4dd9fa39ec7b8725954fda

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.416-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.416-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 187952f53696b469a53bac8e632481da3675ca77a6b9fb65b99cb8015fc2506c
MD5 4f3b21a12a77c47ed285b794a06597c4
BLAKE2b-256 e7f2f09ec7014d0f21b7a66c67efb96e0b6feb14202fec92dcebfd514c332828

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6eff95c9984a994239aa8ae610d8606bc32ce1aa7575c3fa3b42607c21471eff
MD5 ce6f699058a769e8b602d9f692f23bb7
BLAKE2b-256 af658ab59e982bcf37a0028ca0991b495621872cc93c14edc48afb2fe996f5cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7c9f8b943f3059b3826e0d322522c13974f7f5c6f45e3f65b43ccef7369c102a
MD5 0d7148313d83ec718af0e86b074aa219
BLAKE2b-256 a8dcc0c3b54d8b1dfe22aea3069d37fead2ff2b6e72a5806f2b326c8ec83b4df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.416-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.416-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 97066e11740e169c66bae23e2c66ace1f23f8540e14107f2f597bdb7cd3f24e2
MD5 d3a35ddd52602df65c45186d67c137cc
BLAKE2b-256 d7a572398af90ffa31269ec34ca650f67f967a0ba34a154e710520ab2535d2cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.416-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.416-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15ff1d78d43e7050c982be3c4da9ecba038a00e19a4d2f59a3385fc5ae62fdfc
MD5 37d19afe96fccc3af0a3ac63bf8b3a07
BLAKE2b-256 796eff61ab3be96de9add8ee054c4596026448656e77c2c7076226c8aad248bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e144a51240da7bc97fe3335e8864357f9cf98a263498f76bbe194a2db2ec53eb
MD5 bbab7e0ab19659b003fa329923ecc1cb
BLAKE2b-256 19b18f3c4f9635eb7c717d99ab38ae7b37c3b04749c1cae015bb222f6a6b49e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6606ff8bc8f1fdff6df2281aee0d7af58908a6eedec3f5ff285d6d49a57714a0
MD5 a2335d2c1da63f4c20195c53a7a4955b
BLAKE2b-256 20f6451a2d6a8dbe7082d8ae898d83e816038d9fabe19b7f9ff640ff9bfa4d19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.416-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.416-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e4b4db9bdd60515fdeb6e6b2b4a68e9256451819bbf9a4c5ccbeb3ce14467726
MD5 70182deb9ec38cfe921bbf29d0b7260e
BLAKE2b-256 46a08d978e0652508a45fbd483b1c65f952152747b15e71edb333f3a9c0bec89

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.416-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.416-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 003c4de059b07650e11731ce05289f2b7b530a1cdb5671f19ba95a234013f53e
MD5 b8b8f3a8a5113695815ae3aba40b8539
BLAKE2b-256 f8eccc3e740ad369a8f99a36f425e590c07c755501c4b447eefeb88b4a45aef7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69c94d4e52bc2c3a5e48b0cb5410c5d84aaee1b6b5d5bbad4a96fa203f05d3bf
MD5 047de06918cc422d3da9b9cb8e6a9b88
BLAKE2b-256 7a7e32d100d0b9496b384abe532671e505331e819c2ea43439143fe1926aa87b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.416-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.416-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 22b030478a602353016d894272cddd9644e6f6e94b0337bb34707587e067f352
MD5 535ab68982f1ad8f3c9ded421b1760ba
BLAKE2b-256 bc450a6e5bd3189a2a96079ba5d79761ad3e0c5d30d439d323ac7339785d3eee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.416-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.416-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f45cac4975910192358c3ba06af9236af30238056337bef3a86d56d0f6970771
MD5 17a114958d283dc5adab94f3b4d8d8c8
BLAKE2b-256 ebbb571a17fff37d429bcf165262dbe3f716fc9c9ed055bd907c3ac3b64b4f89

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.416-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.416-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35f0b2a27c47dbf038595fdd5a29422ce11f2d980e2d49dcadd9dfdeec13719e
MD5 1075d22c98727479224772d27c6c1ff3
BLAKE2b-256 98cf53089b6365b812e1b3b8f5ceccbded8b38c9e38f86e81e23bd6b2949665e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 974d11402cda53ee62342f8438aa5257b681064fc09f8db4feb8b85a61d46d7a
MD5 e72be2a58d28969c59ef2d6d39eac1fd
BLAKE2b-256 47f535f631fcb4f3a4fad88c4c2169a9d1c844e9620ec665bb15fa249de006ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.416-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.416-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 31fc009c91a7295fae73e42678ca4e8ea4805e6f19e5c219832c929d6133413d
MD5 29b419ca0ee8c7ce9dd9adcb2cb8c93a
BLAKE2b-256 7fc6926fd4843c3683e3a26e0f179ba1df7f85196776966c40e531c8393471fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.416-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.416-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2f2a09f3ea6ec46c13b686ca9fc40edb33c626b3b7f7a9d05e7321e9a4e95293
MD5 a9180bd7dac6a0db08135d72ac43dc78
BLAKE2b-256 458052acfeae35833439f903d522df08097bedc99fa16478c13438d217bbae44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.416-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.416-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 831d13494c49cadea2433f191c2281a0d0e144521ef835d05d69c1163977641b
MD5 4be5e27acc81fa3bd63d9d33d48c9e56
BLAKE2b-256 f215b75fb5aa91cf852f2fd92a63d1fa6de41b0cba998c95080b2c60617537e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.416-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89a3618f0b2d35a2258ee3dd29e2893f6ab4bc4b3dfb1b677b89660245fe93fd
MD5 011fba484f3eff9a2b5cead34b9ebf9b
BLAKE2b-256 2a4d26b91d1a2935be2def58357367ed2295fdbfd978f50641aa8f5301edc6d8

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