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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.898-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.898-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.898-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dda816abad25d578f86933b74279625f1b74655f9d54e0d5091b77104d481d81
MD5 73aea4312ee488e5f9d80fcc68fc3b8f
BLAKE2b-256 02cb22b8b50b9d3c271423c87b80905ce735b936ea9bf08b0e40c57fee0a1f11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.898-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.898-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c7d6ac8bae0931d7cc318c43258bfcef691eddc6b9f011d7918005ce1f66a78b
MD5 a87351d04e4b5506faec1891d99ddb49
BLAKE2b-256 49f5384a3ecaf4aa87b607ed015d95c907b32f7ed7d43e8e96872aac13cf6062

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.898-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.898-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29115727a361eee2597524c7e46550daa272baf3abef23a3c53bbcdd804c288d
MD5 742d97392d929a2be748902fc20ab018
BLAKE2b-256 2427f384e2e9cc01b3199dad2837597a194d385041e0362af3c5c6274732daca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e294154378945b1d42e54614702747c81cc185faa6af6fff4c86cdcea2141a1d
MD5 763ea50eb619532c2b36bb32d3f03b26
BLAKE2b-256 6c15f7cf386f8d04d6f0ad128d1258c2b55766cd31c5b78261d0f81e2dca05d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 06e416130e41c6a799e2202c4481ccf72e462dc8a29c074e47fb0584af907d7b
MD5 6a0765b624e757dcc2a54a8f8f5bddcc
BLAKE2b-256 1220783eef61b8b3df2b7185cde73e9c89508ba52cc935e333acd1bc35119327

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.898-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.898-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3b9af6d20774787bef6a197789ac1894e684d6b623e9492434c3fb6e8f52d5a7
MD5 44b39040a0e4e0ab2e08bd94f3633db3
BLAKE2b-256 c4cea547d2449c7fc64319937a1e461289c332250ab841058b6a7be9be35db2b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.898-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.898-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18124c8b0707b761698df9808bedb0b88e4a19c72f852df3ee75a786d9ccc086
MD5 c06d2f0783291ba8aae241628e6de3e9
BLAKE2b-256 9f15062748f926fd329389ae791a07f17d97f93c2dc864f7dc6773738af9191e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 518d2997e0c47c1a5a14895bad4ab44c1c145cdec6e98bb4f06872b6a113b1fc
MD5 88fa0c6de137dd0dfd0ab0ceb782d059
BLAKE2b-256 46d9f37d33dac12ca4c68d539e1e7170ceb57bd9e4152dfa90ae33598cdad93f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6fed8e64ceff94df00cd142bc616cdb362a564054a4310e301312937a0329ac2
MD5 5f7fe8d7ff63c5195c3b2e542ae795d4
BLAKE2b-256 a09f2ba09ce96c4eb5bb5f0c9c73bc33e90e534e08476cde55ad5551dac9675d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.898-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.898-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0fe2ebcb589f9ea2f5f6aabd3cc167e5813cc4d29434935bc2bc58184ae41bd1
MD5 aeab2db8b9fb247ff3499b45f971bee1
BLAKE2b-256 6af5c077a12cb6b5709772961e699fb237044a20c551686483a3488371e72223

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.898-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.898-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b42178d69a95468a02deafb499755b196f5a8e2f35d3deb85c4d389fe9868bc
MD5 ec84cca6e8be40a329b71bc88faf515a
BLAKE2b-256 9c972a3b5626aa0b6342eb4d9c66db9800597a04a87dcee3afd2642a170560dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb4fd0081e9ee3ea9e6b4c3425861235912c393d1d7cf4cab4e90acb3c29d428
MD5 e9e62e81125cd73a3d6476527874c63c
BLAKE2b-256 6144a86f784df21bb1b20b21abae9ff99c6c8ba38d23c699bb5044d0db517644

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.898-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.898-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d2318afe9ab43a6e9a78b80c7b3e784ede1ab223ed6f4524d1fdffd71847449b
MD5 1e8dd6030debc5c3f037849552469fc4
BLAKE2b-256 82f71c652ceaec17df480c54c416232255b875c848d9d2252869137600983602

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.898-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.898-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5425daba663d4eca7f580f7995f9744cb256206872000b1f8f52b6c1d2bccd7d
MD5 8cc0c71ea02da3b2540bf30ebee6788a
BLAKE2b-256 41665628e58d157bcaec87f02f2d60fa1b41e393e2e943b82f36e7f823e51cdc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.898-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.898-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a5215c49b60c20b9ab5641617636111b2a8796936248f4a8ac8cc24ce46b2cf
MD5 832fd29df3c9be2539abbeeb2147991d
BLAKE2b-256 99d28a0f76375d0ec29639cda99a65939cd75e7652e95440f48c613b76bfaaa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7beed6c73d62a9d798cd6b2190a46daa5d0f213766d08867446f858704b88161
MD5 452868fa5d23f5f9d8962222b7cb4196
BLAKE2b-256 2689e9769c562c6789ab62b6d2d52502065beed01fc4a2056119c2b20916cd2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.898-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.898-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ea743e05ec25cd242ccb28199a7caf198d7efc67578ae4ebd5cec98198e4f9dd
MD5 b8e4e977eab4226ba0d6b7e0242658fa
BLAKE2b-256 49886702f87e64e21a322a00c5d38266ea7ea4a0da9bfaa776d7a803a74608d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.898-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.898-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2a70b20629a2881a45ba90c01540933144c3edb0836fc71f6a981162028072d7
MD5 cb6d32744b159d1525a129dfe8f22ee8
BLAKE2b-256 392b02752d85a03ae79dc4cce75f2783783d7788c56388db190d0acf00aa6724

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.898-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.898-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6126f237e58500b93226dd5f199c8f142cd1c6cd7fb0e492d13da4c42511ef70
MD5 779631e78e169911b17e0c44e6fbd398
BLAKE2b-256 6c054d3a361a76047257c8be9259575dcf43ae114c1e1456ec8f61a8c1be90a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.898-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed72cc64a2861c7ea2b88c5e88701d94a928c5bae8b58c6eb890ea029bd1892d
MD5 020c6a670442da0e400f124f4af459eb
BLAKE2b-256 5bd1ec48e553901125f299ee101e4c1cac87bd1313d2fc2b0b04d6ff482a0fea

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