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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.126-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.126-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.126-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4d588b640f2fe2eaa516675ddcb9e8a0c999abcc0161f88fd8f5b274a398345b
MD5 e293eb9438db98f0abb4128fbb2ac8fc
BLAKE2b-256 dc4a6af7d36c477bcc1695facde4e0657b09806299030c79b04ce70a67c9e746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.126-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.126-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c7cce70efe47c55c1efdf7cb96f326074d7a03631449aa6f76f12ac1762c4d08
MD5 221877fd9d3ddf37465d7f044ac362ba
BLAKE2b-256 1985ba4e1f8c1b683cbd45024beec36a753a1e61f6adc4ef665726cc99900d40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.126-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.126-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57af7ad18846bef5762a70520d6eebfd5f19b702135851e1947b1dca191cc594
MD5 50f68cda0a005fc879e1fafa5f3929fa
BLAKE2b-256 2f311f1e8a9e81a7a934ee4500c8b5eeb2ffa5d7e4d5f1bb38e893820add779c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8be92650e70ceaff1928003410b6443c5f33bc5fdade1c24cc3703b50d98f2c1
MD5 826afbc21010e7c61c6933e3a9a07cb8
BLAKE2b-256 6fbb3ac6a062b30b16d0702d2557a441db3e3c2672fa585a1e76649c7f1fc6c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9a5ebfd2bd6123c5ddde3186da854a2b317c85b63abe745ac68eaf595c43eb8f
MD5 dc4350027e7e9fdbe7ede40931487c97
BLAKE2b-256 7fb9d56d5fce9a545df5e6d440075eee63c622359e1dbca5b970cb6f25bddf55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.126-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.126-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cc35c09b9834a5d2ad9343fac6aa67ea15cf6ec6f231b83792764d077765e479
MD5 1b894a057ac0ba756f6ad5050df72394
BLAKE2b-256 8cdde147a1552029d4c167ef8805e82f60b9a079931b11a7bfffe9dd8d60bc61

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.126-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.126-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d067bca7cb371c619d5c4da86edc49338859082b6553e74a908175185b17f99b
MD5 a9f10d9badcb799d4380d2686049e80a
BLAKE2b-256 c5983b797d9ba17261180190be55155fb56eec17d1dbb1e8c5f3b725b4212054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 151c6579d86b972f1754a623cbe8ff2e735b1790d28daf09c3eeb41350d6fd0c
MD5 31c9c596f4803e9801b6e31bb9d0b04b
BLAKE2b-256 1b0866441818b64483acb12436fc68519c8371c19206a8261de7d6f0d344e7a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 94a26277e1e78ff087d2c6fb468793b2901385ee7756b6be28255a7e67c9d89e
MD5 ab75853371fb67c27a8bbd6f1cdf132d
BLAKE2b-256 bab5840fc98bb685f6622e1718c4e50273b7402ad0e08b3f6ad583b17c4574c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.126-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.126-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6f7472447da35408be115703a05fea7869d84140cbcc08e83f3c9f93c70a8a11
MD5 287553ca749fb14a88dd023130970a19
BLAKE2b-256 ea0b96c2ac4bdc57df97ba3b2811c43f1f4e85f3b100a1642be58e69c4014d44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.126-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.126-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8b69bab0d410a3a5fb869fffd283ca6365a058729b7324a7bb7ec3714227fb6
MD5 2b093c71d62799be751d0ab514600d71
BLAKE2b-256 6aa84f87cc66cad550ad526592a40b91efe73e14ca3dbaa2c860be5e5bec0fc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50b71f8019f9556e189a378156bb4a3857862b1920b567b00884409a500c295f
MD5 a78fcb6cc1a11aac5cd16b1215da3174
BLAKE2b-256 eb6cf0c206512050e38d1a0b33addbcb3fca72f0d3163e0616c8d94cef692383

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.126-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.126-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 973c633be99eb0b13f80f09646cc313aee7d5147073a865c94dd3b43f468d8b2
MD5 cf1ec541277b6f6cd1efeaf7c2dd071a
BLAKE2b-256 92200acd7d5f04bb13bda538b7e3e9dc3801e37603e1331f8e5be542029db066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.126-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.126-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 10b341d9991f2a8bc67d6b7dba50d8c8f2e2faa7e6c6f0be81915036936d9423
MD5 446b6dd20c30fdd4f1a1cb2b24f1ce6b
BLAKE2b-256 3d0eb882a35abc5250a7912cd7af28684448b8f1ce382923baa285b8a23edfb4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.126-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.126-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e165e18379b14dc1743ca9c2ca00c75152c903c9f7d48429c3a986834fcc8c42
MD5 ca2051ab332fb60fbf29fedf76f0ae16
BLAKE2b-256 88326f2a8f59717a91ab204345971a08f605b437a13ef9b925d540fa03df82b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a7e818071eec6daf016458b4d97a646882e2dfd38537b0fbbf05528cab6f404
MD5 3a0430584d36c12fa61181d544357a7c
BLAKE2b-256 21bac58d16bca7361a9b3149726c82919bde40c657ef157d931b539c2011c2d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.126-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.126-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b191aa5c2e42b2a17ccfa4840f75a717e1744746739ba89e44085fa8a55d4d76
MD5 eb8185b41e3aab89e1e8346609e5999e
BLAKE2b-256 26fa01ad57070dfafd299dcfb2d85fff5f22a09839b37d7f4e35393360520e40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.126-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.126-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c2caf2b003c2528e608c2f0a8fa5b1fe39b5b03578af6d42e01969a89a75fa36
MD5 ba057cd8f63e5d97e2e2e68bbec97799
BLAKE2b-256 f934fadd25aa9a2b4acf6eb19ce0b4dbe9123a0f2f9d53a9737d234c95a842a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.126-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.126-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 338fea89b69838e3824b8ef676cf710d41b5b511f3624c30ebe5e912f48ca6f3
MD5 2aa90574d9f78bbde49eb4c5bddc7062
BLAKE2b-256 4b7ad3ebf33a8352eafe0e0aa664b1fc3071d8e222df60dd6fe69a9081af87fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.126-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61ae351ca7328d71e35f197b6519b166c09a1ce56fa1c88d05ac43d3be060975
MD5 228335b8d9a60c9a9d5729a53b7203de
BLAKE2b-256 e34d763550816c380e490163379083ad4b3c484a45afec7f0b67e4565e3d57ba

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