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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.872-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.872-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.872-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ead923cd627e29373d035faf6aa1c29e82a1e7cb12778dad49ddeba72e0912fe
MD5 7c0148763e3032bcf0212ee36b962c65
BLAKE2b-256 855e0fcf9ae27d69806918df63f086fd5687a66a340bba77cc9b2cd5b01a39e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.872-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.872-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6b7acdd549d72f53867c7df73067d1a0c133df9f78c9afa2e2758165009f52b6
MD5 538a47118f08f0f83784dbfa97df7f3e
BLAKE2b-256 27c778c6e5430193a975ed0db4c6c55c2d8da27f0c9a0af97c2446e5b3d7215b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.872-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.872-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9594698776792831a73642911cde36576097e567ea63099d3e73623f51fbe72d
MD5 f3b6d76e189f8ad29b0e7b3e8c8d3805
BLAKE2b-256 7feb3c34734f5b2fb98c4321f0637a4ed73f4f7aa1d791e5c2544f3a4daee188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9874e815960203d22deb2bdcaf7d5df665d888d14fe1718dd15e699029cefd14
MD5 1d4410459e2cfdf58d2125ec9589dc8a
BLAKE2b-256 0f9aca48b826dfbca3028850c148b7646f5d168ae1d8df8d7b3f361acd9ed315

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 253046ce51fc9fc431552fcfd97c2e6ba1ffc8b802ad20d64d3bb61e77f10267
MD5 a72ca275f0ceaed9a9f53dc1ada3c838
BLAKE2b-256 5038094b6419ba34e523fe51cfd07eb04601cdbf71e9f8e37a50aed5602f2b75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.872-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.872-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 04c023bf8a5b070f85dc2cb628051927f9f669181696f360ace5645c6d10c665
MD5 2028604049371141bc649eaba9cb6238
BLAKE2b-256 eb6ad478efdeec5dabc2b264f19e3639038b6dd0274af2265cab0363ac8668a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.872-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.872-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 075172fac7c43012e22423e49bb097f2b836bb94285953ec1ee0d71818fdd705
MD5 490dc96cce20eba34c39d8e043e63a56
BLAKE2b-256 9216ef9e9abb286ba3a95ddfdc642a3723a6b4a86e1a1b5a76bd463038809480

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbcce5b58c11f595944f4be697260b382385472110010153cda4877d0bd4d699
MD5 24c9e2154c8ef858c8fb9ecfaec7bbe5
BLAKE2b-256 29f5946fd5cfe6c1a5e66901dc8f9b2b17fb6271ac2f8bfaa542b68ab0301945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 06cbcfb6b87e965ea309616e1bab4d4b145a65e69585f02f089e3ca17a390a4c
MD5 dabaa08d789b7947cb2874208e1ff181
BLAKE2b-256 0c0d9bdd4e7a4a27a532368a89e0a887f04e0026bfb5094724582b38d9c7fed0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.872-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.872-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9a95a6bcce4279606fe0ea99196f9e5735ac406c8119d77db9fac42754787e27
MD5 4f567dfa1e87396982c748b75243efad
BLAKE2b-256 6382d70f9a45d1437d608eb708e4f318a8a99c6882de7ba8bf66c047b82c3950

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.872-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.872-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4644d2c211e67e4fc5f64ff8eff9389f4e8f0738b782fbe13b344a9fa20e9e0
MD5 212d650bbb2bafc3e7061ba089cb84dd
BLAKE2b-256 ce6ddddcf5fbf34684dd7c0ab65cdac5d9ae0fb109108a4b617ff6e8286bfaab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff50507e66d1ab7191c6bae00f9df00337a9d85d0c83e040f0256e9ba30d1479
MD5 71b9473cbeff70626f48c838194f9032
BLAKE2b-256 8f6b838a99d99959601e42453d64cf5f5bed2edb26d097e9210325694fb33004

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.872-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.872-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a620477e94c080e0ac8f3b23763aac82dda08fa9755f1a3e464de048d07c4872
MD5 15c12eed1147478fefdb51d317bcca3d
BLAKE2b-256 dc32ce6e17a383321cccbe74e441c9a3fe40e993191097acda38ce3b3c4c8673

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.872-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.872-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a27517c54f3fa1c2e2a71cdef4bb72d5517f9c92005045725a83a4f1bbf298a4
MD5 f0467d4da0ba13e4d1eee17ee6ce588f
BLAKE2b-256 7c4e309a304b404debc5c7cd938d4f67503ac1cfd960229ec3b266186f766dea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.872-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.872-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6912e0f1ebc4e187b450e25e9088df56700e44a3a117c00d265ee32070fea2f6
MD5 fa757fd688cb747b537f17f0189a5010
BLAKE2b-256 5c3b571521c63fef1a3dd3d4acd4303573c8ebd8fb9d5875a71ec0b19990c850

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12b998d8aead35a87260e13a266d56598d04486d99aada6b8978b0cf8593ea3d
MD5 5ec08f02df018c28e59b7fbff43c4346
BLAKE2b-256 3cd6929ab174b72587d05f10c54f42c74f8e5996b14fe1b452d6eeca1f2e2d9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.872-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.872-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5564e3d1535babb84174d51660ba54f9b7569690c82d5add764214410efef03f
MD5 a1c71b81e494971b8955ec48587c538a
BLAKE2b-256 5e7e045c7e97b47d4bb9310fad2aac71c3c804c26f68b64a52b5f145e1ef5b84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.872-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.872-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cd8b96b99dbb93e9bcbf64a44b6ec149d751c3064e75c6745362faa4083c783f
MD5 65983ef6e3472ea04321b3a9476bb6a3
BLAKE2b-256 29205660b1acfa00c4ca43fe3fa4aa79ceca8e96aaab1f0184a11999cd0650f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.872-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.872-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc99c02cc6feb5bd4dd5eabf660a80c4976ac2f092ae48fbd3a178f58861c9a4
MD5 a7a2b9433249378c530a564bb8cb6206
BLAKE2b-256 6932f755ea03c1de12db143a1077e41abbe0992c603dea2207bf9146844e6431

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.872-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44c2aacebee43581b1318fc2c27deaa18560db08dbfd46b88fbfde7b857432a6
MD5 89656c6b0527a110b5df22837222c2f1
BLAKE2b-256 a1e29227feed14421850bc1dbd5f6e60edc9fd131d1ea520a82f52375297d697

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