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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.896-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.896-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.896-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5cae84d4c39d34f7cbb2c9de2fb3fd2e2a70fa5decac0e4bfe1d4324ce578bfb
MD5 a77c606cdaa5c3d154ed088ab20002ba
BLAKE2b-256 77cac9e754002eeadb57e38e6788e42b89a56332ecaaeb23701b9b4f1bad52c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.896-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.896-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f37acadf6853bee76ae93cdccc2a1a426023ffa83e8eb7446225c19089c9b850
MD5 dfc10d9370b986a64b4f42414777dca4
BLAKE2b-256 a649ccece1b4a15b6abf36568667039d5011a71913f11612643dfb49959e21f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.896-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.896-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e09802fc65729d76f91356a3bfb73a056b981ce19761fe0d296217fd7d750dd
MD5 96b21e208d0c7745349307169843cc68
BLAKE2b-256 08f28eccc38e929b32a3cf1697d0ab8a54b75055ba9d9a48a5bd99ffe59e4810

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11d422e7e4fa82b6f4b94759e6375e42f30bb5fb16907a3439e8841f60b366da
MD5 91da17f5d8bf5b4722f7fcbc8eb7dda4
BLAKE2b-256 a72d517e156c3c3d92bd06ec7bc79eb0b7f1c9e64ddd90c01b5119ae0cf13daa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a35eba7e6e89d2f8dfe9e13e4095378130fe37cf4bdc3e16566d8dc50437117
MD5 d52e828365f3430282b3e5e26e7a03f3
BLAKE2b-256 0fc37f6265432b90d45e1e8b1ef3e9bee533f90627ca8419833bddbcfc815502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.896-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.896-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ba1e1bd9d4aad49ede0c66edecd1d71b07a52206f853cea87603f50b13491e0b
MD5 a4c8b843214e4b7b87869d25a4437b24
BLAKE2b-256 66c6b7432f939f5fd534c6f90b7cee70cc7a6898047d1cf880b8990e0ddea03c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.896-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.896-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a29c889d7006bd6493962ba8a26cf407721da7c316d2df8d385c955a0bac0ecd
MD5 0c2ef4ad8e23c5eb74e4b3efffba2c4d
BLAKE2b-256 e94ada654ca9f24cd828a530f633b5e1bd3b4d7a862fc85a431a3139dc0352e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d46f61ea84dccb6c9c75edbf4a17d6f98538965e4d2db314e90ee6cb489d0b0
MD5 eded04d3fe3ef2465fc9ef9a6a116e0f
BLAKE2b-256 c016cfa1fee08d5104fc3d209089fcedf5462619606062137b8b40b3838efcfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ed09e795939837492086b7af5aa7f74bead9eca9114c01c5cce4872abf788935
MD5 763be1c8429cc08a89ea5ae15b045c4a
BLAKE2b-256 40f5fff67177c1f8d792ce406c702e6a2f81e6c89cccbc88dc0d23f4a695e19a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.896-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.896-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0a4f3def96d7b9f3eca46f211e4eb3681eba320fb16b11d50df910449c0187b7
MD5 4695dee0864042f1a44c2baea25c6aed
BLAKE2b-256 b7137fdc0474e5b81e22dfbd56a89a91aa08bd5e527ab76c5b3651fe09ec972d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.896-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.896-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87274ee5061eb2daf8986b1848bd122da61e276afe8178bba90534a7a028ca11
MD5 b7ac3ba576c59cea7ebcf0c15672b90a
BLAKE2b-256 ccba534fc08741053d3e1b009574e0a9542d7996e20bee707b1e5f7ef10a713a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a5c81e07e5c75ae4ec380de2406f476b20fd72b2596e3ea9321f6f037c4d345
MD5 dd9099cd9cc13742ba8e178aff705155
BLAKE2b-256 98880d3eb6053abe39b60225a67740374b2ad894e2a4c425dfbf0c061eac940c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.896-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.896-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a3d74f2c2f363aeab2206b2755bac991b7b522ffcbec3cb29dad6cab43a599f7
MD5 5e1d02868b51b16ee38f1c0b7318fcb8
BLAKE2b-256 037db96b26efde1d90f253cc9298d71c0f1c15b910469ebf2cefee4d9d357aef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.896-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.896-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 78dc607676de0b32640ebf98e3ec22cc4db055f12efebdc1f89568d5f6f8ab71
MD5 dbfd9fb59cc4372efa073926256235dd
BLAKE2b-256 7d30723d87c601db157b0c737f5d3007d31203e0ef60298881f889e8212f345b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.896-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.896-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fcec64064e2efd0dc6f7496de59fed1dffd4ed25a0410824cb32a753bf45312f
MD5 27bac7281bdfa7c7704fdc80560ddec3
BLAKE2b-256 6f022b3dac440c27bb1d511680594f0b3c51d473c91ccd502b33f87125cff6db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57d110ee7c72a3719b1af6760a31057b3bbce26a528d1c7136090e19cb72eea6
MD5 74a46912b04d5605f6fa3891e331993f
BLAKE2b-256 e013423765ec38403291700e695d3513cc6aa55c9808ff53279f4e3c087c8ab5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.896-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.896-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8826fb0a58bd45282e336b1cb40dcaca3e66206351e8f3997e341ef57faebdf0
MD5 43e530caba9e21a505d0297629c0a251
BLAKE2b-256 b73a10ae4c7a0bd900c69a79c2dbf5595dde0ba7ba402f43a13363b1a1525ce0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.896-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.896-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f584cb7d767e1a633e7107d86de87c38a360bd7e39c7bf48dc0fa77bda464257
MD5 d47fab8a35e77472b66a46ebdaed5c32
BLAKE2b-256 429b5b9cd36af713d8d27b45949192686e59a710b3f5244e54c5ee831ceff331

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.896-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.896-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a71069b5a144fd5c1591fe0bf0f127ea2cb5674da5f7556580b8e79d6bc3838
MD5 79e4c538831b3237f5771e72ae64eaf0
BLAKE2b-256 9838df4a14c55b2035f7881abfb910de66626132641fe2a10cc3a641618b998e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.896-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbb78a14916c38fba1d33ea67a0a8384ca3aba0b911f57b14708418acfc6b174
MD5 214df2b4b9459e0ea21d856df7d5aa85
BLAKE2b-256 71afd7dc35b0d020cbed8bf726e079bdffca5601aef07a2a11a15135f07389c9

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