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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.394-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.394-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.394-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8d03306c58f84ec97c9b62fe5b4c4def1b03c7af3bf839ff229c45866138108
MD5 a68ffd40576d9898497f3d6fd5a0c7f8
BLAKE2b-256 52e2c245d922e4f872aaa254c6658303e31616fbc76fb496698768c769a6fcd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.394-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.394-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3b7c3da692fda47e76b4a474b263c970281ffa24d11178b580e0f6c6ca42536
MD5 8bb433a0cefd0d83b6fa8ed0b2958fbe
BLAKE2b-256 a3ce9ba7d1b3419e1472e33cd6f6e573dee7025a4492f7993e3338fcc1654dc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.394-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.394-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f98689698bbe45d30f7bdfcaad17601f4fce59e6f16c2fb0d9d75b6a178834ae
MD5 a3917e4749365b4a0efd9034f2a1e262
BLAKE2b-256 c06d21febf7e1aaea6ada18fa0e5407d264589f29d63cccdc8120f9b61945a62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff386a63b4f2ef5467d7da9b65e4d83dfdabfb03d54bd7e965ac540b98a0f57d
MD5 6deb09b9962dff4042835cf202730adc
BLAKE2b-256 d8e7006ae56118cdad269a6b5f12ff2db69c4d40cd76d51e8a0cdf22d9c95ebb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f3337624bd6a87b200cdae6bddc447c8eee24ea7e7a318642647dc9576a41455
MD5 2a86a30dce19e3e9726d45b3317d97f0
BLAKE2b-256 dd7621defdb284f2815cdcbd889b58fb9a77af3315df3aac2115cbbfba4ded79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.394-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.394-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e9cae697eafac883fe87754ee8b8346be59ed669734bbe4552f6d0442bd7b35d
MD5 515e0ac779606ad91926f2809e45aef7
BLAKE2b-256 de77205459854e88993467a90171d15f9aac64d998d7591f19efd7dc8fb1137d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.394-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.394-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52c61a9161c81fe6fd1a6f8df2030e1401dbe1fc8d0c7e2f64ecb55f642c2fbc
MD5 acba778ff01b4e0ada4c7cfeb610abcb
BLAKE2b-256 3b1e6672a2ac3fae67427285a63f5a6836c1b61e703ce72ca8b097dd4c59f4c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb41c736a055170ea25314602704141b664f6ad3ddaf558cdb86e8a1c423d262
MD5 48c300bf6b3c870ca4881609366cbc4c
BLAKE2b-256 10bd13144ab217b781d049d4d8c098aabdaa393a819b81ea87b7a37d9b6db1eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5137aa66528e6633169996d02e592e723290bdbac9c012adc11119c0d7d0ee7d
MD5 b75466a7392c4a9e75d4d098c8e79545
BLAKE2b-256 e524dec83f4103fbd83a29ffdacb0612153825480a39f27e40a145914e851103

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.394-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.394-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8bdd9b7161bc5bf94924cae13fe08addea1fe17f09cc0bc02e381df752396936
MD5 b5ecff21591e57d3a0d6b6a57c52bfcf
BLAKE2b-256 40dec9ec6b6b1ae58bec52318d6dfc6b266d2dd93965fb74eb2949bc19d49012

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.394-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.394-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2283a2f80d2f09401ca8c7c79220c2400997c818942357511a19d9156ffb8c9e
MD5 b6fe515aef8ff5c3d4ea5d2881628663
BLAKE2b-256 ca6b9812f5fa83833c4cb8dac084795ed40dfbb2e9aa47ac3ddce039e26186f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c92b41a6c986596a0bb81c0b85d7a51843df618b14e5050e64b9e424bd91464c
MD5 4418824614389323e2a342db95cebd09
BLAKE2b-256 d1d49a7e0da2b3e66e8283c7aa0724a1edef6f253b27f8735c9f881833961a70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.394-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.394-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dd6d57afc65deb9b67fab6e625930b8935af3cadeb67588b5133f4903d21c45d
MD5 dcf82cc482ea6da6c7a0ae208d93729c
BLAKE2b-256 af2b613665be46ecb4b726d96de8171a1d7f1222ef8adc2d91d0e2c9b18c90f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.394-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.394-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d078280231fce41603bea4f0a10ddba47bd688cf46f8def3903aa77dba9784b5
MD5 52651ac0cd71ffea48fd8099df9ab9c5
BLAKE2b-256 1f641b7097823984c27c2724974f12f52a6f6c216f7ad17a72b581a8258a77a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.394-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.394-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3dbe9a8e9ee1ebcf2ec04d3a06b9924dc8236e326e8d1b409fec6d702f49120b
MD5 13b2c6505dd45ef5f079e7a981adc1b5
BLAKE2b-256 66e8721bc66f6d443f21176222acf90b4146c618e13615730d39fe9df62aefff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5835f7c0cc81d31a780810fcd52c5246c5429128a2fa61141b6323bd88761f83
MD5 088a78597f83cd1a54bd89d87aad1003
BLAKE2b-256 7959b99e73b40c8e554ce7d46f67bf9f71eb75fedfd0592e8466ae6e9e8fe4ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.394-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.394-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 81d3ff60e81e7a5aa6afba2dc4913444eeed719a127c46cc8212ddc3c6ced603
MD5 3d5a1bf4f13dbb59537271ee6989e192
BLAKE2b-256 8772803c1559e6ed48bc2caa40fe036e932035a23ffdb2d094126f62db0f17ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.394-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.394-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6493526d76c5c722fec8e322c8285a3342560bb56e9f12f3a5b0759d7f65797d
MD5 c50f5c8cb2683da04f88fe5063759a93
BLAKE2b-256 14664be8eee6ef03373b75f395cc86a88b05801407bf5d6f62430ae09b8c5287

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.394-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.394-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c903fde01b17a4c4316ddf7f934c83a36f4968aa814bc302bbdf398774183662
MD5 eeb967f2eeeca707e6cc2fc2b572b713
BLAKE2b-256 dbb9fa9e3f5ef7a5a8ea1289deaf08e86303550c992e565c353f449911447951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.394-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63574724d00589b31209626c7a5eff2ecf84eb6cb08563ab0c7ee3080dcc0db7
MD5 763a10acd3c085a7691c80545347d1a9
BLAKE2b-256 8747022350b80ecc3fc3393cbce32a3d188bec0661d01463f8c2e4f9d73f3794

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