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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.637-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.637-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.637-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6792a29eea458858a347fc315b296c64831b0f168e7619bb6f239f2bdb0a2247
MD5 404b1fb22c94b54e484b6831a6fe7250
BLAKE2b-256 f20f1a138f2971d1d77bde49412628e9cc5c13035cb166bb9e5967eace339514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.637-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.637-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7bd13be49c35f2be9ad323dedc7b779128625155c9b65ab334a8a41b4d24a322
MD5 6992a60b8dd619b55956951090aee42e
BLAKE2b-256 67c342229d9b82a9cf4694f065fc26aa624b3e9b9fbdf4cccaffd1f847b507bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.637-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.637-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b163a07c5d7088d467c714b3e24acedbae140d5950024ecacf5e36b5ef5b235b
MD5 c571cb2754f5c590e8a465b1d85120d1
BLAKE2b-256 4a2a653fce962067967472bb1c6cb28a22c8a53ac1e6ece3b2adf8986e283d1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b99df1412dea642c904b1b11195ed3122b56f91161e8c5b849f464723fcfbc4
MD5 cf76a637eac809e22513a6867f3761c6
BLAKE2b-256 56f0dce34b2a2e8cf02868668262c0962d3391b54ecc9449bfe33f3ec965d13a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7edd40e68e103b900594f535fbc88d4692b5591d851b09ab73796d1c1a3fd9b3
MD5 4c9df753ea87d5361ffbcd9d26970bbe
BLAKE2b-256 f79acef97cd535511a5d9da32b673aea9ae07d38a25122de4b21b46de4a7c8a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.637-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.637-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ebca19360af17d61ede3dd775bb96f42a32d345487f4afa6369c2a0784ca8b30
MD5 567f7337f8f9216c164d978b3cb2c820
BLAKE2b-256 3beba7930e98892ecf416c0d01ee874f4c5389582de684da68e541e54b195ddc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.637-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.637-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2021e8b44d12f3c5701d01f231c743f32f3a7835cfc7909d173896a94e1e5ce0
MD5 55e69fa6bb993726cd381672f23e581c
BLAKE2b-256 e7dd3dbe05f17e0fd70c9bcebf1a7c792d53e80c6b3669a39d5028483b93f916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50107a2de37ffac7b1d51748fdfc5266436572ee942502d261c2b9dba7d420ca
MD5 aadaec337d466ee14295f883ae151996
BLAKE2b-256 3ad1e6030131f1a3df9daf49ed7a2db52edfb5614e040493d958ecf0429762e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bcb08223ee45e92d07ed7d05af1738613f3be6da9403e477ac0f1c0c994f1102
MD5 bf29584b0aca0db0143700b18c5b5b55
BLAKE2b-256 945bd3fd2a6ea71da389f0a941377dc9b1c2228692fc96cdb35d4e56273a2627

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.637-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.637-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2777dca971e8b67ffd484c9dc2f64713bf24febd291a7de1e0e1b3f551fe385b
MD5 4dae2a7a59a79070b373827b53a11522
BLAKE2b-256 db64a631aafaf55fa8b8a78b35bdb79cc7016a3b559686ed8e7bc8f0de585d9d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.637-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.637-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 409e656109b55e44b34eb511b1dd878e8404cb6d3a2f9180ea2777e1c378110d
MD5 b4addbb2c795b4d4dbf05673e88327ea
BLAKE2b-256 78554e235f453df2033e30086cd02715748c095e0806af7f17c4e3a76e450946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a8719060690c8e65a660a5c75020688b9aa243cebb66f83336869d304654b5a
MD5 68d0ec943f23639f5fea22cc3031f92b
BLAKE2b-256 248459102c239e018c9011ed7e77d97dba19ceffd4588f82d0492ebe814da82c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.637-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.637-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c340e50abecc3b960776a183697168d6ad4374a3b6825e67b707658245ec8a6c
MD5 1f59fde02ffe97e81e6592d921a36c92
BLAKE2b-256 eaf2c7785411f77afa4b6ee519e2cdb91b751fffcecdc98838c5154cd31217dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.637-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.637-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 37cb60af9f2e3a480d4708d7d3a13eec40261746f5c64186c636f5bc8d6d330c
MD5 52a32306d58a568f8a46728e530084fe
BLAKE2b-256 907b81e6a5d7c0831c1eb51f80b02f47cc57b89c66fdfce69cdd3106f6c257ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.637-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.637-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b07b274141bcf885902ff1178334829050b447537c8249b2304a1206092689a
MD5 fe6e34ac248a4a84d79f2717e031a6af
BLAKE2b-256 8ce244790e6deb3aef56508df7d5a8f0bb28f4f48ed28d473fb358939b8ca040

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4576db284a8e50f13949b1ef4f980acbdf42f31bef83b44763055d051924d9b2
MD5 eb8a798f1a2e1ba5c0c8e845e76771f3
BLAKE2b-256 13a1263730b9d1535ffb03ecbec837b4a61701b3416507856518202e1f6c32fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.637-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.637-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3c844fd171ab63fddba1ee3252f60741c20de9009ae29a937d91cf6cd7d25fb4
MD5 7cb62a0c81d5ca7d4e924a26d9eace30
BLAKE2b-256 5b15f60c53570ce4ccd18887859432ca543625cf15cd1040b1130ca3927305f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.637-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.637-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8caed7a847887bc5cc6ca7164dad84887f0619ad21b9d0bd316dae3b4f94c2f0
MD5 5b58611c5ff538ba46ac08dc55439db3
BLAKE2b-256 1927422ef45f4dc11861e5bb2902c22ed904690731381feda4b678c113c67e44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.637-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.637-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec69ef2aa9487825b4f6e6e46c3e6d1b90753ffb72b0b164f565bd82dee5b397
MD5 8c6a0fee45618a8ce1b97e8580f151cf
BLAKE2b-256 1cd7abce3837620e71b57811a3094c5447391da286ca7517f392bdfd956129ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.637-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91606a885ae7942234447e4ece7e9d787e9ec9e18f50635f87da4cac02032611
MD5 5f0a1031cbd81e7d846762536f2abc2c
BLAKE2b-256 ea1d2a391775af6d58f7bef353788c3a24a21ca6bfe3f1f133232187233cddd9

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