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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.42-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.42-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.42-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.42-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.42-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.42-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.42-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.42-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.42-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.42-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.42-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.42-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.42-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.42-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.42-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.42-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.42-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.42-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.42-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ebce810eaad10c16ada60692b96e8239eef0a327947a0c86404856bbb93d64d4
MD5 d75b283da9b6d0ae6a888514c9bb6ed2
BLAKE2b-256 410b380fbd229cea062bcdcf9e2a2c5aec33a9854e1c2fa983cd656697886050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.42-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 583a73dfe6a94ac65077d3d6836599335e4d9aaf1179d50056b46af804b5d514
MD5 d4fa44d6816b4338313bc83997aafe8e
BLAKE2b-256 1e6f72bed3c896d8800b987fdef61bcf9cbe90237ab6e303bd467ff27b983ec9

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.42-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.4.42-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12ebef7de529fad2f0935aa3f62684a8e08c11483eff57de495060eb5df36cc3
MD5 a3dc4840481647ecaedab25a7082c9fc
BLAKE2b-256 694289461c9728aa4c7516bcb47f0f55f0624ae01141881e60dbefecd411dcd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.42-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6b72d608c1d78633621110ee498fbc1da8aa2cce8fd906ff67d1e42966e767b
MD5 faeb2200faa374a3932277ca28fc5568
BLAKE2b-256 4d6d7d0c6e2ed4e4ffc7c32b6a84bfd001e36a2a2403a7fcc662d602d8bd5a78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.42-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7ff52f0832c377623c1b14046db13e0dcdaba89ad88ccd144bb72058a4686622
MD5 d8eed8e115dba4b913709e5aa0121695
BLAKE2b-256 1e01a1c01ab5311b758da12acb7d02396ddbbf8ad608f879bd758a9d6d2915ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.42-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0cfbee392e9acd3c26d79cf7d88728a66a4eed40b727dee82b13d4eb0d5cdaa1
MD5 667180fb2b06487b9c990ccf26399976
BLAKE2b-256 e03563ddc06d305f353cb48fcea71ef1435ff67409d5a13c5532f34a1801657c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.42-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.4.42-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 571f62cedb411f49a6c238f272aa6cd6be6a00d285702c8b8459fb5cabb9c271
MD5 5dec284d682a336b4f1a1e2adacc7809
BLAKE2b-256 8e90c6664f314d20537413a88874f3a135516df6f592ddc95f071a88c3882c33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.42-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50fca599396435e89b8972b039abb4e675b3c2ad5201cdbebae8319f5ecb4b5e
MD5 be9607488e16cf911bb45855568d2a62
BLAKE2b-256 d1e5cf474d2332df63a1b65bcbad311454ceff55220a2ba5ffd489ef9050ff5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.42-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6975e9ab90fb80f89ba6876eef8a42bb95fe66407bebe90c6c19ebb30f0f996d
MD5 38a79c8890349f8ab722bee145b726db
BLAKE2b-256 79ac1ecabd6ec4facef5b8ef1c6a8de7193cc9e69e0cebc48b3050cd689c38fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.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.4.42-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5a8b5b0ceaf84328b6032dbada6e8c55427d18ad15d0e4416a1851261e819367
MD5 57ab3608dab08f21ba2483ba7ddb562f
BLAKE2b-256 3a4f60823beae1d68679c413ceda79c02600a8211a5bb1e6b04af4ab685de8e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.42-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.4.42-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3db2947cab28bf7aaee4b45170a4eeb6b9bee889cd1af0981ac51f3c00568d2
MD5 1fd7a222335b626fca2204070691de85
BLAKE2b-256 2e37ae87c2d82c4e122a5572ac362315d5b6ef1a30051c6a8ec15200f55f0141

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.42-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54a8de740f7c11cfc3020697e68eec5abd981eb02fb42cd017784b7f5d405e64
MD5 da3cef4233bf70e34dc0e07d5729af2d
BLAKE2b-256 f37dcd62fd5ffde07a99d0c4e1855730de6544eb14e07c625742c0b9326e2af6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.42-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0827cae2274a545afe2aa7862c827492b8b09b34c683b63cbf5fb1d3f68b2cfb
MD5 5e6185c2ab3ec717c2ceb47623e999e8
BLAKE2b-256 362dd5c38c17c8f0b7407f0186a9ba8f08b68d1f99b27c1f009b46efdb7e288e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.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.4.42-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a47875707b1379a6f4a997bf2139b5eeb0d2e20c90ea18edd63a21d418a3044f
MD5 66f1446f94ae5c68db9091e8de76360e
BLAKE2b-256 ce77ba78b39ab3b3b5effcc4a0c116be98110d5cd5516a083df637be30ba042c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.42-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.4.42-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c53cb43d0c71f0d2eb7ea4bf3e15f6e96efd3832be42888b84ffc55320f9ecd7
MD5 273f383d5e84a6862e22c9f7a41c137c
BLAKE2b-256 9929a532da2594109b5702ea84697eb033ebd8a35a30768b4254fe590febfec0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.42-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70652dfe843586ca7727d1d3f1f2e53c0c1736a363507799fec2cf689662d382
MD5 d33876a004629aeaaf910ec9588857f0
BLAKE2b-256 7fc1235d6a091d8ad88786813ba82c038fcf57980fe66c1c4b9a44265261e522

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.42-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 186c8e0943dc1599adad54d03e9fd10cd391c46192e6a9051fd00aa36ece427d
MD5 2347c9c451d6f190bef80aabbf50d7d4
BLAKE2b-256 8872397bb36a2180291569115b6daca1a588383c0fb156540f1b86d7953cdda7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.42-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.42-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d0a85275249e0739131b3c2b8c25b454f6c94c6ea670289750e8b2a53bff4d32
MD5 d0a8204ba213e73faf5862a9cfd6716d
BLAKE2b-256 131ffecc5fa437a6559210753820078dd18ab699b8939f49078be05dc0706108

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.42-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.4.42-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0dbdb663d6e9093e018355bb51bfcb280b5bca87f8c5a58dafc7c8a69635da24
MD5 e225c8adc883a2370392e9ab88d54105
BLAKE2b-256 e875e11f5d97e8345c33a1c78ba461a99a017c294d62f2f984c54bf98d143b6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.42-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f9dc0c0ed66addbfc003435e67880a0c5f61a66dc512fd3e814d1ccf0ba96a3
MD5 245e273931d28b49760c31efe73a5af4
BLAKE2b-256 af7699c2036272e5359421ab349ca8bb4b275832aacc1207f059840274059832

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