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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.154-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.154-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.154-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 377f2e7ff2c96993f746b99ede6acceeae607500b88bdf5b41f2fa2a3b7043ea
MD5 b0e69514c2e8c5df4d8e024e257e58a5
BLAKE2b-256 0743254f0be6ba559036a949543211999cbdafa740aa822c543e1b037772eb2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.154-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.154-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 087fc2b71ad4866f9284ac3defa6ba0c4274bece1053dc540903a8b070290482
MD5 b2b8c57491fcace6e675410cbae3d1a1
BLAKE2b-256 790a73e05d5dc4ea7566784337c9a30b1b824569a29592d583e1c6b1d4a96a29

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.154-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.154-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a347aed0d676b6618cc5eb62bb2fcfe0b73527795f61d4e382d2de597037fbfa
MD5 00b43a696f8153996309f324474a1d31
BLAKE2b-256 37d38ecbda491f68764fca6356b2be4e7d2ae346013940433133561b730b6e9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0eba2d1ef93145a0023505cf1ee3222aef46032a9c85dc6d28f5cd0c904ae163
MD5 2d277bf3705aac37dd78d3104dea299b
BLAKE2b-256 327e665321c0e468eee5bdaf776e4f032eaf344cb11d24f094c2318c83645853

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0b95ae6c03239c6dcf4ea39d5683b7d4ade4f9b8c23be280638243887d13ee99
MD5 b280c4f1833ad9972ac7018ed7a54aa6
BLAKE2b-256 f8bbcfd8680ffd4a72f4d83825309d487905aa736050c2103da1ef05c9827898

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.154-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.154-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 979055ad1c513beed8df39fe1444fce68352b7a86409226a7896c36077d72e00
MD5 3dfa66c98da639a7b0318d3d64bbd43c
BLAKE2b-256 e90dfe8416b6949899b9e9632c9a6741e14d3ec59c106b211cd1273d0bd78f6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.154-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.154-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55a42e5806a86343c6396a7a7d5a4d6b42c3b78280ed9f70e282686d8d4d3770
MD5 27f7d9876269caa5f07cdca2ce7c5b65
BLAKE2b-256 e8d1cff8f9e2affc639cf53aaba6320d44c00d7941d6c0eeea77e080d7e38232

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bc701c38e9b8b311ac9f3f20f301507bc689a1d8952c1055ca2108c9bb87fae
MD5 2c167e875ebabf5e6ff466b0c91be774
BLAKE2b-256 f895fb3a7e285c32c8b89ebfbd1eb2b73f212177760533a720c254c3ad15f44c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e898c91b7b9101c70f0844351d6470f52ada27c6b2b76b6505e9372c9c9dbfa9
MD5 291ca59241f0420a324e3f64cf95bf83
BLAKE2b-256 d33301e66ef87b5d9defe973857059a884ce66e342ed3a223eff8052c63677c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.154-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.154-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7bd10ed432544cdfc529300b42cfbb7cab617a666a3b421257cc5411371d2b29
MD5 50be42e11256ef957c29fa70a7f5768d
BLAKE2b-256 9676a9d4e53ae2da65e3df6772bbecf0ba1c1634a5f5ce686563bd4c72c0886f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.154-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.154-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f08536df2adb3b6964c5edebf89b6ea995640555b0f6115d82a4d96141394fcf
MD5 b5c1bca3fe07b46d12820acbe70a1fd9
BLAKE2b-256 076a1b437eeb19553afa92df097dbfca0da9e2fb7aee2910bc1601ce8429be00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abf593dd5119cc25ed6ee39e6afb7b6d8af35957bc721f1fae8904e2ec513ebf
MD5 f23135d11cfeddf9ee304f876082f788
BLAKE2b-256 c7588c6f20281df7b090043797309acc07c4e3f0e2bf4065908776f079869d7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.154-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.154-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 edfde9b562ce8b6d22ed64143de6e3ac6dc5d87f9aac8c54563a13ef73805e56
MD5 a91580d248bdbd1897c618bef1774e0b
BLAKE2b-256 659dd793169d232ede390d8626f0036dad72bf76f54d95e195745821074a7580

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.154-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.154-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 38fa3e08a13e8e4fa7fc11d64625492b824975920b99fe5f8de78bbdded0505a
MD5 c42a42e54f73bdb659fe27b7bde288b2
BLAKE2b-256 34fc4346113c5767800839d89be1726234753ed01dd594c28432528560476535

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.154-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.154-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b34cdad142542f7f916c8aa20e46c87d7de3a423f929c82dbcf559fecff0ede
MD5 0249b28f8ae035072538eafeee49c3c5
BLAKE2b-256 5f58321bdde448a6eb37191f1cfd5a04dd0e9d75b5c0de3007e166ae8eb95695

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ceaa01efaf970d3b3a483daa714ad566c2715df161565951bcbf5e67eda7d190
MD5 08804e4f1943be5eada604d887b45bea
BLAKE2b-256 222efb6c45589ee8bddb8882fb480b159108a77313af6c2244c900c52f3ede32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.154-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.154-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2fbdc8e6fc7892948aec672700bac0dd17e349a52e3d943cd596069a2144efce
MD5 fd48249e118dfd907754df6be9a50f2a
BLAKE2b-256 75bc8ff29936f747055e384c00437ac1f5ae95d2628bdd96283c0dc931af27c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.154-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.154-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f4343aa67785a12e7aad5dd9174701084f1fc8a0942a850a3798b3eeea6bbdc5
MD5 c88e752b94ac4efb1901e3c8e42a43b3
BLAKE2b-256 def243841a73866d38ab4ca38d479cfa90cc8e8937cb678dde033403ef57e961

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.154-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.154-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 510c2bb4b43bfd212ef3a90de1872af0a9ea3c0e7c8e91204a481a9ef4c13cbd
MD5 a7e5fa243ad49c0a00d71c1355fdd363
BLAKE2b-256 f088331dbf9f4498821759d3650f365d6e7b951fbb6edb522dbeffe8b9714357

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.154-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66d2b5290712c6766981958d5b23f3d35bc24be08f5c56a6b05fcfd48becb59d
MD5 af13dea405111453537f94536be200c3
BLAKE2b-256 8f52a38ef6d8432ac012084aa1ff4159b00daa78aebcae5483e44aebb4127844

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