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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.315-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.315-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.315-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cefd84593ebfe01df73fad13c2c65e50be3cc40654a8012afc92e3f8f130a1d
MD5 20b5e641e3a521def33689b8fc2dd636
BLAKE2b-256 b599e60934d9c9b0dd5d9f697637dea1d1c0f5637c87d4f10d9a7e06a02448eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.315-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.315-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 809ee92164ec4699d3ccce296a093aae055ccc57437a94b65e7bfe7c39716d20
MD5 d4caeaaf972768a44f722ed64d8336d3
BLAKE2b-256 0dff483b4cbf6ef002f9e977b48b042bb571ea18b50772a337e3dc39aa04661a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.315-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.315-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e59bb5c6c9d9a3e89c37b92b5e10f7258553216dfc30dd35c151a7aaf0bb63a8
MD5 18318b7b665fd67b300e9cf75b5e10a3
BLAKE2b-256 e6b3367b597826a3aecd1b299b8f9d984a401d61b3d8a86cf5c60cebb66960f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd8311e02be7314d745f9e6e12edc2193b525d00a42ed2c46dc0bf0368c18b11
MD5 76c497fad65e82dd2e2e780700f7ee82
BLAKE2b-256 fb57852cd1287777130bf62e1352236071735ff86464a005e0f4440f2d8886ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f467c9adc33464f38610f2cdc1a35092aaa2443a1fb3494a8d35b2b51239fd58
MD5 d9051f6f2492b7a25d09ed570029c0e7
BLAKE2b-256 649697d9ea0ab2f6c72db5ba5d5ee026794a31f18ff6c31510026011a6f67996

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.315-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.315-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0020035d73f288eef9d3168cbe9d9165224fb869ed738f10438dd2f104e0e552
MD5 19245d828437178225617bdcacf63b0d
BLAKE2b-256 028408fdc9bb6c4e3700577375826c510f3dd84d3199c2ea680f6a8052d34988

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.315-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.315-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ad3cd65d841dd32ad3722216be86aba0e9123e41a4fdd86abdca4e20c81bd87
MD5 e266193833aa871419d28a58d9c474eb
BLAKE2b-256 09c092cff3891f94460292a3c48612fa1f49f2f51e7156017c99d2814f91bade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74b8ef7f04d7ff6131ed280c37c5eec385bc3efa001d68e110922a8f480f04a3
MD5 45208aa5847c9a829fc52740aeacdcbb
BLAKE2b-256 df193a46774a5267ec67e6eea3d627e2037380c19a2b85129334c4b3b6f88715

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 08cf6af8b8820a71221233a21754908f3e68be9b02886f439fd4aec9fb9cb6f9
MD5 a51edbc048464ddd3f1c816d1a502fb5
BLAKE2b-256 9eddee0fae5a854c07b4022e6bc6cba0aa2efab7d3952c62936c4799535a556f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.315-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.315-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9b2ce16df4346ecf9cd967c303e2c7940a681df827c607dab3726e5b938c6b9a
MD5 860a019a44507fb495b76d32ddec5e22
BLAKE2b-256 530b7e48ac483dfeb37f3c6ba07a9ccc306ec8a5c653ed6632e6708bcba47865

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.315-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.315-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf244cb34d967fdc8d5576c112783bdf5e38370f003c3a06f7819fa564f8bf9f
MD5 7c7711540516bbb4a55614a4df557dce
BLAKE2b-256 c32aad1172a3879494979e33d11dca44d27ad7c8695f2b6b43c1fa0ce7622484

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2963a7d8c9d881b539d4ce0d7f3d0cb9aa1f59fad8665b3fe15de038b5a28973
MD5 a58da85493956d8978cdefa90fb4065c
BLAKE2b-256 fc8af17e0921df66fc1102b63ae3689ca365f73600f90f9d8e65304ba21894f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.315-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.315-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 81fe720cd840593259e05dd9bd59342723cfbb16ad2230d2a4385ac5d99d0333
MD5 44a1a7997e9c06090ce0d44d51c529b8
BLAKE2b-256 43711fba3e6ce47a58532b5271ed2847598bebf36f1fadedd52f51a65e115a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.315-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.315-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c118e9439c088ea5168f4cfec14d16f82ea0739adc4042b9a0b6d3b6726a0335
MD5 405dcdaec398c26249628a41a847e0b1
BLAKE2b-256 657fe4e72b91b201516bf5e80dbd1372771c727fad497efd3200c6afd38b32b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.315-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.315-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6976792e09beeed553fdb03a3eb7dc16a9d047530992c71e18d25c61abc7ec5
MD5 7e1154e4c1b29a227cf92f8697772964
BLAKE2b-256 fc8aadcf1f8d11ecb1b3532f210ac5fa9705a71117e80cd8af0de9d5974eaa63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf8dfbe2c10b33ad94f7dbfd18ec7f1e0ebc93817d7a03e7732c11d0354d64cd
MD5 1b93ad78c7809703930f0ec9416a5ca9
BLAKE2b-256 47ebeeea5fd794d4315a5ff252b73bcbee056c9a15aa4d9cbb95dc1efc396781

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.315-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.315-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cccb8a96aff5eaec9bbdfd4fdc836887d1f2fbe903386d17ebbaa36dd15ce917
MD5 3ff9d32a0d3cde0298d41494e722abe5
BLAKE2b-256 81fbdea2bded846697816c71d4ef40ba765c484f19512ea747b023922cc12974

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.315-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.315-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5fe9c6d90d2c401b90dc42344b89c54a6dbd2abb9fead40572e8240d6517a992
MD5 01d7710804ea7cf90bcfbbf1fe95dd01
BLAKE2b-256 a72803e851c969490079f80b5cd6283e2f3ad2dad0be153b7bd9a29d77a8567c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.315-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.315-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a4ad60c23447383048079e5c140439a098cebdd184aef0b0bc733dfd0a0dcef
MD5 be738b3be1ff36af1c4f794da0ca2a2d
BLAKE2b-256 4ae6f068d851746756c663818217771b11ba21224ec41dae9e92c23664bbd898

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.315-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f818bb22c6acf941a1d3c0a0fba47b6894e61a80276f01813fdc49e4e75c9dd4
MD5 bb4236a19b55b3d94be0451b5b0e6ae3
BLAKE2b-256 94fa90f209ed380b3825d09d378b0a39ab0495f5ce567db34fab9ce1d82e6f29

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