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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.409-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.409-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.409-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 babff73b25490b5ad493118d5b1fae7e139768425e3eb29c15f47a16067460dc
MD5 2f042535d0226ac1c3ea1fc67da4550a
BLAKE2b-256 8c5d4d9ac53c741a2af53eed695ea02c65fbcefe6265b154cefa5d73f999e868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.409-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.409-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 aafd9eba5fa001f826f142ab5f8f6f4d8646c1ee79e37c863146c5a254abe67a
MD5 e7d763f39b7148cc2b0f883a61837bfe
BLAKE2b-256 0e7a4f9e292cf524f91dda3fea4d3ef3b8c6382b36727675858bc5630e7e631a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.409-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.409-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 701626793fb8bac17420016be57cfa4a5caecd48787fb1bc4dea3a5793a29130
MD5 519bcd55f837d006ea14ef216f3a21c2
BLAKE2b-256 b299f6e0cdd2701be421655ec66dedf4148d461a1057a75daf576195507d6e40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08ac9030607275e0b6094af5970d936003df10c4fb6f73552f09b081c78423b5
MD5 865f0f22f1689fc478b8f3feee6fdbe9
BLAKE2b-256 37753aca1c89bd0e2d4ee7220f8f68bdeaad2bb456ead7a5a192ad5d2411d180

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 87c5825b1b9fcb7d576a8876ca171c3848990ac011e964a621929b8544750b27
MD5 17889f9fff69a0bdb1b8703b08d53216
BLAKE2b-256 1cb42e64762e00fe89ff67e496334fe62ea802dd9d03b6ce9201651b6d51a4cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.409-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.409-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 56ea1ba6c99d35aa5115d8f9691275447d8e1d85f10b26fd93485164f4c4734d
MD5 e15776b77baaef284cabf806ce8b03d0
BLAKE2b-256 4c7fd5cab0c87d381b24db8cb2dfd95e69e98116ccb90a539867443bb9ffcafa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.409-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.409-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36c0633042678dc7d83a33d0c782127468996073105a6f432d950f785d3d4527
MD5 937668885f4b43c9223888ee4f598098
BLAKE2b-256 b8490f4b5980d26ad22ecbfa7002cb354d5167ec2b6a2b75649d71d32aee89d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 197afe6f58e27842bd3555814c7a33f9a2219c9918b80d1ae7eca942dd839d20
MD5 9bf8240d328b13811c9192a787a7753a
BLAKE2b-256 6f27f9c768cb469419ab1f106916aa088273f043f8cff0ae97f90e83a215275a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 15fa7cfa0652afe90cf3d1dd7935226cd251d7651ac77db87fe8b87c6c8ba12a
MD5 2fa5c3c904f3a483c30cf8d70a1a16e2
BLAKE2b-256 685b566c88f87417520316e796a9a9ccc44b2f8fa90f014c658c6f14eb5d9680

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.409-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.409-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0084a9b70664a01ca48235fecb4b62988816e0d506c4f6a415fe80194a9e5e1e
MD5 8ecf00840865840c5e2ad526f153e745
BLAKE2b-256 211518bc1a9339edca32f2703041d77303bb1da71e0c96d26928ddca6efaab80

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.409-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.409-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc10ed6cfcff2ed9df345cadd184f4a359705ce3d62829d7dafcce17ef342e9b
MD5 3af0dc456422b83e56b680c4a6eff0ef
BLAKE2b-256 c2cd8afc289550afa3cadb998bfe27348832c4fe3ce4c9b198944d3a26a7f967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72cf0046e6def5d27c16a2cdc72d7a80f001040479c8e651f198d88f8b8533a4
MD5 89cfdd23cd129a8ca77543002c48b0f8
BLAKE2b-256 e7d365543411d852be83dd19d540a48761b06f5a74ff80197168e4ea698b6098

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.409-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.409-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 60ff17e2c9ea14ded56b1b646117e0241724793703d5107adf43d9f7de18d145
MD5 d6301c66e64519f67d415cf36b476672
BLAKE2b-256 0e1bfa44c54e7d61924b1ce11601bf9211c6b112c1ff54df7c4749d8271c5ea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.409-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.409-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 62d2bca3efcc80034aa84647e51c77304e4f19307d69302de42e055d4ecaf41d
MD5 db6deee904ccb62e7c4689ec4d86175c
BLAKE2b-256 1e6274a94044c9b01d38ad1b0dcb25e57c5fd7252eee2b256ec1265072f44c07

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.409-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.409-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1345b974f0b7a6af9f5df71b527f2a2d97d1ba08b911708848285884f55a4a18
MD5 55191336d759a686761fd8b6b466b865
BLAKE2b-256 bb997a4d4d4245999c1e489a5eb2343fdda779c0af6cc65024a99b639158f6ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e99203182af5cd4cbc4fc2ac6641ee8c276296c9d579d12257fa5dad88bafb80
MD5 834d02ff8076222dd58b99be429b12a2
BLAKE2b-256 fae974ebd5c3decdc654bf856390582a83a614d0750489ad87536d649b1be190

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.409-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.409-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8c862e20ab6751fa4e444eda7f500f0a35398e06af6b020c2909691132fa0947
MD5 8ad1f1b47d04cebcb1c8d7cb5cff5dbd
BLAKE2b-256 39b6bbfc5f606c41c2ed108d7175d3c7c8c63f7a6c7bb1b4568bab63be855a46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.409-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.409-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 944f869bdaf1ae8ce055e219d76c562f5c50b7b4e30dfadd12d4a22191fc6ebb
MD5 0b5dc3c3cdd46e62c44dd7175246877e
BLAKE2b-256 a2e4cff846fbafe42d4de0d8d9db87ba8c1e70dc1e658489b21caf9aac79c757

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.409-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.409-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4982ed6399faa1f5f609801898c2980183652cf9b73dabd19b18cd76caf206f5
MD5 97528072785f12064c49878616f609c2
BLAKE2b-256 dc3022970e23438eef9ef08e3f87eeb8904d29d67ab092a0199bba655ab571d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.409-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29f77860aeb906cff9c31ec74501a507d031bf28ca2f8e482f91841f5ee53cf2
MD5 6a03aab86dc5a9402796d2123adee91c
BLAKE2b-256 54b86521e10638bc06f225c6d06ec8ea52e875e924c39498f6b4e388b31ab953

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