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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.278-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.278-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.278-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c750bd6ec0ab677b1cf59be400c5660621565c156f6cf78f2b3f3623a46807ec
MD5 aa5de27f25f0da0066b4a43d09708961
BLAKE2b-256 94e50372166dd3539a5dd8fed42bcde0e8771f7e63d2b3fffcf8c47dfc9b00cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.278-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.278-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c7a52d45cccb55469d94365c970c910b3d839d651966f00c0883918b72a0a7de
MD5 09680d746f9b01929b318542c19bd18f
BLAKE2b-256 8eebdf867351b7631a174787b5569ece938328d6f1049f3c6f57a0ca236fe199

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.278-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.278-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc2ec5a4ebfcf1d6116f042e5250eaf56371b02e8c1650a4d2f6dea59af083b5
MD5 171bd03cb0f58515031b82946d996add
BLAKE2b-256 ccecb2293bfb84490cda727bb6c9a6a8d51db78af531d8f47f9f51ac38a8275c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1b32f3aca8a0d01494b83b6637db61ba2fb3158ec6dab02ac98aa83d6c840c5
MD5 6b5bcf023f1fa5a86aa9077f2a6b3da1
BLAKE2b-256 63853b590bf6912cd69eaf26f5fb9daef5db686a409085ae4e6be0a46728a241

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3995d4a540ff0c692e7b10a3875b7068b041f1f69f15891673059808504ad5a
MD5 0e21539cabb598cec64c6c612bcaf57c
BLAKE2b-256 92c7fba7cb918b6b4584bae690080bb34315f6612bd127601be4a934fa116133

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.278-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.278-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e0a36d4130a02c821a9f08018df74400ec4a353da03d7ef80aaabef1c9a78361
MD5 bace60bb886dd83eedb6c73d6d357464
BLAKE2b-256 2599c6bd96f34169f849a03a77c6d11110df98acedbb47d9a1f15601b9bcea21

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.278-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.278-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 121c5c43563a13d7fa7d292fa4a48d4df925de6e3239ee98d63b2ce6c42eff0e
MD5 a381aa10a57ded3bf91807658a23edef
BLAKE2b-256 af54426aa7bbd3d97dd17c6f8dc40fbad107516ac3ef27f7d562feae1237e3f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 670ef71af1fec1af46334c4fa53c4f99e58ca88efdc7e1b5a1e3fb1759938550
MD5 cc170ebf1f86336267d7461344fc1965
BLAKE2b-256 c7cc20704e42cd5c4b6ca203d433f701a6d41d658a570b2713725b93556e91da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 538b5e9f7ef113d730d0de0581fc98465934f5dc94df412eade869e34d808c7c
MD5 daa03c2032cdea2910a2bd7c1c00a32f
BLAKE2b-256 dcd68538a016f79816c53b3ddf07282080f88f2d313def34705d2a18b1c8de56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.278-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.278-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ecf12eff2d43df80cb8faafdac563d67ad445dc3a8e66bd4e313f3ea95e97a08
MD5 99c46e6fbceadc5e8ef7f60f431dea73
BLAKE2b-256 b3e290fe1bed5b446d450f049642d70d3f43182071578166494db6db238d569d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.278-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.278-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dda4d9642f1a623af350c4acdb5057ea319604c2c75d09d3fe020c2d9a0f9650
MD5 213530835c0b2b625065d08023d64370
BLAKE2b-256 bf06e0a50333211990dbde0494a534fbd16508d5e71e52b9a512327d0669e120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94060a8c428a685c3e7bc0429513fa6bb8f0209479c5a13ec70232784d1fdfd8
MD5 6ecdc6139e0222a3814fec6aec242ec1
BLAKE2b-256 f6fa7cff40446733bf03ac59d4726ac87944d8caaedc151cc20c69534ee47cd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.278-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.278-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e44b328fd5c1d7eb9d576bc3a273ce10bc115bc73cd2a4efb52cf1de1e67e6c
MD5 05ab793730fff9a07f20561bd14ca2b3
BLAKE2b-256 c4d090bb2be173d674129e71700940232a119ba9d85087c5859d0c07278c3350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.278-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.278-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c809ab697211d1429ed14e6139bd0383f82f6d6dec9721170c63f1331e8b2f94
MD5 6c8c96c83849a234db962e09dad95c99
BLAKE2b-256 2764e506fcdcf85b470dfb1405f97bfdeac63edda8d23c5da13d236afab7a863

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.278-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.278-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3cd3ff03ddceb0e1e6d15c4742d85ba957987b3be243cef755c50253d15e555c
MD5 fd5cd7a9d5af0b5253f3ff8da0c08ced
BLAKE2b-256 a41488108bacb2ccc49a451e6399494c6e9424fda8686bd29013e36d44a122f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2977c99c87f63c03cb36d565828c9c548d225e99d683ff044acb9e2c3d29bd54
MD5 cfee7203265b673455eb2bc432dc7791
BLAKE2b-256 0b875d3645e2384b39a0780621c71d290a676509d57a235c52abeb8fcc964511

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.278-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.278-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0c67374e657d259879486145c3bb486b5988c552939ac5b96554714691248ae1
MD5 086f60d35b526b4010de756d7db4b7d0
BLAKE2b-256 0d3e99fb974634e9dd53d3a81ca3638d6e6541662edce5891ef6c2d80a962f2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.278-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.278-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5ccbac9df7a876787f878b35156a80e2929d31410188b25e00857ee8e88955fe
MD5 48ceb1f853b63831754c2d336a712ceb
BLAKE2b-256 da676f93d19a84a588a619e1ba2a1af6695f8a34bc86957a58e5bea34201faaa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.278-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.278-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d97d90b8d30b5bf65763a4a4e2d3c5e3cff247c0399c15903cfbc550f08fd0d
MD5 c24d94ab1d54cffcac23afc652182d80
BLAKE2b-256 6d0723d56bc6bbd0b7b851421656e269a0746cb29081c976d4020d7d50f6bb8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.278-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f97ec825fc7f1e451e2a01aa1571b860550f7d0a9f2db34d83981415b4cf0d7
MD5 3a769e32c712416c92edbbc4e70ca92b
BLAKE2b-256 95613ca7219c21df03bdef0723eff1d0e106510e6e5894dcc2dd26dbb6f87eb7

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