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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.84-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.84-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.84-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.84-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.84-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.84-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.84-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a0e0ee0c51e05877d729402eec316bdc1fd8b46888e7d46150fdcf79b45d0e71
MD5 39b5e8f1c5a13beb0fb1b3fb134ee756
BLAKE2b-256 934ecb0395bfcabd6255257ddb27e26fde17f1ee815c4c58663adb463c1316b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-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.84-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f4204dc343847d9a474b39e14f195718e5e30b7f38302bca308fdf061f41804e
MD5 87d9a8e693d851cb73772da85fbbd5a1
BLAKE2b-256 c264777d8ced6437a6c6377152c308f09407595b17936b5ca11983b78d3e01ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.84-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.84-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4720095185bea58b1c84fd3db4ddd8bf3f0ceb85ebea87483cc4660ff19a799a
MD5 ff4fd6a58200aef88ea7bc58d82fdd9b
BLAKE2b-256 204beae74f6b6ecc64d4c9dc0440aa4afbd78d91c1e2bac326a317486b98ba59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.84-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eaceaee8789daa6653810b18a66dc071bf7b991faf2449feda22a4ec7767cb66
MD5 75cb59d43a25ab16ca7c2627df8c6dc3
BLAKE2b-256 51fda55519b2370041b2c9606ce5d2f2ba3d3a6a7470682a71c29906ea4e735c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.84-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a2737eace339b3e7dd6e2b4899e5fdc50e4282acc3fea0510b934d5f47569b7
MD5 5870db9a927dbea538411fc4705af936
BLAKE2b-256 4d3a24f2ac2ed660f0e115cb08ebf78bf3e68f01bbd6bb897f8b0328a298c75a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-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.84-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5d64f2b0b3378d1e3fe09757597f40f2a685c7efb7f8f2df00ed9fb13d0e8ec6
MD5 7500b42ed7611374cd40442f3d1ec354
BLAKE2b-256 e6fb63f83ac917ac6d6a624a514394832c6d683bdcdf0db74f06a414d5dc971d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.84-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.84-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00572c4be98135d622712963b802283580820651a4f152351ea1409fa3edf6ab
MD5 03d72fdaadcbc2978721c3073e3ced09
BLAKE2b-256 d6c7d1c86592ba3e7c15933300b4b951c8b4fe6c7a76bb6512228987561ae609

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.84-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fab6eb76e6443affcf7afcc1a75978c039e8d5b0fbc00a4787bc2adcdc43d35d
MD5 2b0887af22254521f5a72777b3e91d2f
BLAKE2b-256 79e17992cdbf00ac9c0e3e55f72bed539bec44bf5fb838ea41cce8e6328b4b50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.84-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ab5159c9f065ad9e4a7851a22b9b354122569e1cbbbfc0c6f8f963d8a105bed1
MD5 652b3a4da632fd2dd863d71fb2378206
BLAKE2b-256 aa3684166b0ffcdeaa3c4f581a8b69ee1eb4924983922dbd1af8a872d0baf409

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-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.84-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a1711cd8f8f894626b4924012b4e5a0df9287902da578c872c039e9538e29f45
MD5 289419a582adde54cbbfd85936c7e8b2
BLAKE2b-256 9ee27d78b41f0ecfcea835c652f930441c159309797532b9aad725e98d2f4378

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.84-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.84-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c9d5c32ae061d7a8626ab2bb904e5f423ad050a932f1c65512c5dd7878441a4
MD5 e493d25a71724b64bca4793e2a27fdd3
BLAKE2b-256 a8a9fe02986bb130073349c7111b09b3af6daac812a058485d6fb70e525a828a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.84-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b28c6278ed45a1c597330df896f1d3a556a3571a64c7b0f5b88345bc5ca05ad9
MD5 62bd0f40184fa19d6b992488265609df
BLAKE2b-256 3743242bbd196dec01d113aeaecb2ba852a7b0b69e49163ed60325702b00b5b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-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.84-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 96074640b4d5f42d131268bbe457b1ed6443fda0cc02d89c589b382332c4b0b6
MD5 c7073bc26a387cc734e5aa3f1a87801b
BLAKE2b-256 883a87ffe09b88c9dd04871eab782c7e19dd760509614718c751bedf7eb5e10d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-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.84-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d6eefae7402a9dd91473d5df3642b383ceeb1a81b490a0e4b7de611b569b241a
MD5 98eb3f93c0d6b8d469c1db485bdd7401
BLAKE2b-256 31f22decd6189d8a03bd99378770e02ac2679aec76a0beab23357b684ed96b9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.84-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.84-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12206acd2d10d85ecf36da449d3707ec7775394de6506a8d68c4b3a12fac3f79
MD5 8e85fa235239e69cb9779228ab2b88f2
BLAKE2b-256 52a4690a394b8bfda46d8b7348c5c3f9fba3d477f6ce3622a78920bab9cf165d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.84-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dad3f6206683f2f9e497944916428c197d7bb3f8b842534b1e4642771d0fbd06
MD5 c03a6e92d9a87ce7d0641d8fbfe1f6ab
BLAKE2b-256 23862e5866fc6923342c2dc0ff03b0be93e6aa901e5c223337a6d6f01ec97687

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-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.84-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e5d9b1f290dab4a296f00ff97ec0bd1c335fb4888b778dba4a922a613ab25024
MD5 f9d045e0d3ed15336eaa31632557886e
BLAKE2b-256 9e38d0efedc96481b4db343bf275879e5dc6ed145d9d8c146465ea410e55520c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.84-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.84-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b23cbef6b5249b59fb3ccc05b15d5d6389caa29ad9ee8a3488976f8f6d333fee
MD5 fc81d8557ccf69b4dfd18ff961721848
BLAKE2b-256 a4f2c4288d198fdac3f6449d32f909895ae15e2119819466654be825bd732418

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.84-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.84-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b782087b2b714175735bc627b896e2599e9351c4af343818f0b9935c511ca8a7
MD5 90c1e89826aafbe1473ee9fbb5d33162
BLAKE2b-256 39e3be85e06151940f4c5108aa7569d0fa2126a5cd3735b315173676a45b2ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.84-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2385c2c80e63761ece8c75f78d0ad37082db68e96d874017529eeb6d98f9633
MD5 cea9661a0f0f4ee91bc45c1aafb55375
BLAKE2b-256 af132f7342fd68401b0a683e5631c6c68d7f5fae4fa9a182b3cd4880be469e1a

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