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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.284-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.284-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.284-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f37bda0433577d14be8413092ef0fabf1e2eaca2711801c09b0ecd2d530ba4c5
MD5 35fd587b0837956f82bc97a8bca4f3fe
BLAKE2b-256 4de8dda774b6243d02359d9be584c4011ff11e6a95bb57df9e13d19a4c9b7f7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.284-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.284-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a1e083529e976bf61cd11df38aa9d046bc5cafbaddd5da776f2674ea5d5f2d4c
MD5 ae5a0f1abd665fd2ae2beebccbe306a7
BLAKE2b-256 7741807d0535c8e5010f08176b659cbe7ac50875088d3d752148a58e78bbf779

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.284-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.284-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8f2af4f3027c4e13cc1e4c6b425335f34c902a3d54f5d4ab34ba5524c795d54
MD5 5276ce23ed4ab6ddf8175d3d93a31150
BLAKE2b-256 bf8742a5a90bb02ec18303e578ed9a53bfba9290272e4ae788d79a3295bbeb89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de6a007f5be44710eda522c5d1351a4db182a54618e2f5f33f6f45ef7661d7ba
MD5 7885104b958b53afe7def3a60375695d
BLAKE2b-256 7f95228dfead1c07ca0961d91aca3fae61a93f5a0b126e5dac484db60daaa145

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2f50b9ecc7f75f1840b745e26bfcb772aa8d815f83fca0053a3eb78611d80faf
MD5 cd9c2a171232194ff593ea848659e22f
BLAKE2b-256 468edac7a869f88b89572cdeb1805d0270f584a4ac3ef38c37c537b34d2ac4f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.284-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.284-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1d28c37d2cae5f1481ddadf07bd8ad845b933d41ae045b345f917e0c787c7696
MD5 05db3f4a567940e7f1019b276a32afed
BLAKE2b-256 4db58a8dde3795ce9ee7ebe38f5338f9bc5da93053f83712872acdf1528acdc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.284-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.284-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f259940e5cae0eff155c1ec72722053352e91f8c21a807b041c14e040b308f92
MD5 4fe7227e079f3044c951028de408fad3
BLAKE2b-256 94a4ebeb41e0069eaa3dfbc21022e2fd3f8c1af6934735f7e36feec30a661059

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0968c66cc54afff9f83dbc24488de64d633d4b28872b176e58732c97911d0aaa
MD5 086032f6cbc9f795b5bdd446e9ab7565
BLAKE2b-256 0b73f33382b84499cbba0cf8918c057fdb6a82c3cff1716e3dd2ea5697173f73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3cb7d713de31e3726715f2125f7e3d18e1d1e79933af20a02818e21eac3a2b95
MD5 9e93252e6e4780cb869a907b575e3740
BLAKE2b-256 1f049248ede6dfc82737455bc4c2dc1e0c1b41115c05cfc738a580c06de93abd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.284-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.284-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 265acd9c2086b5b6137521bb5c10efbecd1d104a50b5feeb75978ee823ec9357
MD5 7ff193e2cbbd637462c602be2522e6d9
BLAKE2b-256 2ab558bc22018741f97453cee2f4f1fdcca73c483a2e250530b2005ea0e778f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.284-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.284-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c46b42f4002be47f4b6278e453546ba24697bf058449b76983570964f6133454
MD5 c0dcdbfe11647ed33a333f1302a02eae
BLAKE2b-256 06d084e1120ded1443f87443425f71618bd556c1f7e1259af3c68fdde1e97721

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a053e2b666d16ccfc5256f3fa6953f6a1744adf070e3eb55c08db9a42bc2014
MD5 2ef2d7f91b5f3db2f50f33a41d92c74d
BLAKE2b-256 c1ca8a4fe55ba9a47c2b961b684c1999e872535eb3eeed2d6bcedf30b92b7738

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.284-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.284-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f7e100b952de6d4c61aeec515dfb251aee70afbe4eaa3f783cd55359bbeef5f
MD5 a5785a3abba92326e523dc2b9b9a28c2
BLAKE2b-256 de0de69d9f165b233c35c679605e0cec224324f60701e3cc5790b1d8076cb146

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.284-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.284-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c67f2130eb3143857943d57b0a66941d49f656c1740081567df7acab88148322
MD5 9daef427336e673fd3a164c2cbc61210
BLAKE2b-256 7119a06377e45a490c6448b58cbf31a7feb66887d04c8392ef36505021f24f3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.284-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.284-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f7f6a85ce38ed5f0cf1b4009224c7b0357f1a4036ce6a08294fba38f54b3a92d
MD5 d6728a30a417453215e8a307eeeb5997
BLAKE2b-256 8263ec54a2cce9a57dbe28f0526c06090def0578d826165d69c23895645c9288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1bc00ae67b5b7916622cb86b72ee927be5e419573d81f1161736b411c58ce7a
MD5 d6d199ff87f872fc72c0875eb858a942
BLAKE2b-256 9e17a9caf904b75e633a3b0a6c831de0b096073191cb427a7a1c051a46f95ec9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.284-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.284-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 75d2b1d6bbf797c89b8156ee0ba2a8ab2d740f3e3dc6e3f5153d1e3fa490a81d
MD5 77eb8b0c79311379f30d49c6b4923de9
BLAKE2b-256 fa34e2ebcdfd84d65bd1a859191cb010438d8044c79f894f659eba316af1d015

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.284-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.284-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7dfdb39548a372a6b04dd3552ce36914f5bed6980fbc625ee7955e44cd5d86c6
MD5 c68f93c17617fc8d5c6b30fcad15cb5c
BLAKE2b-256 033ac1b8d66c595ef2c935fa15d179d120ad4d39fbb53446de592f6b619588bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.284-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.284-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8815ae450b0cd91f44a6465a1ba6a6984943a79343d755f9c8154fa4e81d3d55
MD5 0a9d934dce89f3e4ae1a8e851ea5aa62
BLAKE2b-256 da2218519059c51f13fe9d92c872c6b486e0baebc754d2852fc94fb0994fe4b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.284-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc1cc722cd59fefd9cefbb751ffa3c1c789864a0bbf3fede650c62e1c4648ed5
MD5 dde3eff7e7b4bbb9070dac9ebd09dffd
BLAKE2b-256 e97698393a01d7c9ac6b532d23386881fabd44386e2333c7d11a8aeff0f7a71c

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