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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.83-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.83-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.83-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.83-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.83-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.83-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.83-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b5fbf939c65ced2a9a3a4960f00d85c23755b83a3560d0e4ac0e9c27c31f4377
MD5 c5770deae2bae92a509e98ec937fd8ba
BLAKE2b-256 d7d35ece5c46b10785da4830e06a32e712dc0a5f0782e1cc600ac6f88b15ad73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-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.83-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 13b5cc63239b3ea138745443818a9a7810a40e7edaca313f7253d1552af77288
MD5 16e818f8c635b5ab44d81d4eed5ea37c
BLAKE2b-256 97af5c9488c4f5b8dcc9f939f28d7069da51719eb46017b7cae7fad58134a561

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.83-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.83-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb4f4ed496f83677cf3d7845627254ceb41f0bb57da82cb26c2b26bf345cd19a
MD5 7a63e8997f37df2c96b8738d423d8bfa
BLAKE2b-256 5e25b3f7569801aafd73e47c294f4dffe4371b6e0c6f991cda425c031e8a3880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.83-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bac73b261d24e2558ce98a12ce8af3eac6444b0c269a329a0b878e2728e98883
MD5 ca54108b982bb75721f1bdda2ffb03b0
BLAKE2b-256 f0f4b7ab63b5e79a0b068814941d546a0ddc012ab15ecfa20c42d4df307e63d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.83-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 26e35520fb0f9f729ad857d2c62739cc1d426861307c999f9fc8bfa2f5cf6f79
MD5 58bf92d60f1419dadce82d9371cd4ea5
BLAKE2b-256 930f613a2361d8ab9124347201754648a52e4a75cdb9b38ec6b331c1a9149906

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-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.83-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5465eb017a448a0f5195b43e2c8a122fe023e304b6c65c06cd00e8c14f698f0c
MD5 62531c57341252a411aea7d465ca8db9
BLAKE2b-256 ad11bc110c5bf58904d9e5e7f66b71bea63eebbf82e7c257ba83f5a65448456a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.83-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.83-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f7654adc12cb26f85d83e4521e447d5cdc6ace32004464f9e526dc9359de242
MD5 95222d91c56e8592f613af97fda90c70
BLAKE2b-256 fa550a466bae0ecdaee9a7882fbd2998ef2aca4a7eb37f0ccc8152aab99c9f26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.83-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 841626ca627df6d5e9661d614669aaf4ad9de921f539d4ebb625e58dc62731ba
MD5 e68a3878875eb18870e213cc1f647aaf
BLAKE2b-256 3d462228bdea91a4093b649579a712ac26580c6b0d900722f133882c44440e6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.83-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8812925194fb6725dcc0a01c4e9d1874317b4819b502d08310e6f23a5d08e273
MD5 50460cbbc2df4f80cca8073ee20f763b
BLAKE2b-256 72bb01cfe5d2e2e9b721f4f8c2e93d3e3528ce3ce46fb281d7562e4ccfb39be8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-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.83-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0431b44862c2843215a48716ce298f7aa6898f35678b4ece086c191002a4d7a5
MD5 ea31a4cf1a32549ae6ece4ad6ad9b1f9
BLAKE2b-256 9fb3cb1be7d1f8f0083e990aee5229795d04a86b9c66f8831931b543183a0367

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.83-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.83-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 539fbbf6dfbef2ced9a87db6293cf0f5f668db80c8db1fb60740b574a6938e0a
MD5 b6e63cb39bd077d44a0aa35437ff589f
BLAKE2b-256 3b847dee2ce6811336c7ce3d695eb4bfe546aa3e9c4f381ffdac9c6683130f6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.83-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 295541a07d08c27f0b46c49ba7cd8a5fc0851c4a317b8e12fe09a63e3cec2c89
MD5 201e569f4b260ae8639a39794f8b2c55
BLAKE2b-256 3a1a9eb55a922e7a0db8ddaf393d0ce58da1f0719dcd9184221e66da46f8ca4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-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.83-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b706864ff2a5a41eae3df466e93cfc97836623fa5a9d41b6a3992c193481490b
MD5 fad6319c7d36063a62a62dd25f23a02b
BLAKE2b-256 3ee7f148feaf979eab23b47dd74886e4668333c4b320213670ffcea662f8aef9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-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.83-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b8164ca6e0d4e6fbfd081bbe71d853b7c2b490c7644a7b55da6388a81052cc53
MD5 3dbe033b64b15e8adfb8a7342295b16c
BLAKE2b-256 9387b4ec6cc2d55141e3f6761e8eac8c846acf8eb09d534b780ef5d6613282d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.83-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.83-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d2f43e97c4edb92a959afdd562406f9e2fc0e0f1b0ae57d9a5b9cdef50039ba7
MD5 3926443ec6815524f20becb8e3f67d77
BLAKE2b-256 a6220aaf16f2e5ddb885a751c794c15969f1a4bc7ad6106fcb15321f34c123bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.83-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 436356e8b22ee531aad2f0add71a3b14dbccded41405c1c874f4bdc7a37b8ef7
MD5 bcac36f2447b0cd9afe0eb74df0f1e95
BLAKE2b-256 d303a5808a7b0b169ed57c0a9b22639fc023223bb798b6527d003c3e2df751bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-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.83-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24b3009e55efd4c402e0c0d6a86dd55fc84699eaf7f98ebbfb0d2f8a07645497
MD5 748076c4b8c541b062f80c420fde6211
BLAKE2b-256 af55206685b73938bd021dab01dd1cee7ae0b822c75b2cc3e4264a38a1166e2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.83-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.83-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ad1eddde7bc608d85d002315b7a8c07e2ee2ee74c3e4caf118960b689f296cef
MD5 39603f25b38241e029a506a7de2dd0c3
BLAKE2b-256 f0ff4e61b9c08ec8e24ce9b43e83eaddc2fce48157e2399de27072bd7ace9c46

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.83-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.83-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc105f2f0e04575e4ffe55f280bfb1a35baf076f08fb89b188fd5e92736e727d
MD5 60eff7bad0af2a415c08b831e61a9b0f
BLAKE2b-256 31e4b04596c00c84c3d7fa7a0182cc14b888352187ea3e4f98ab164b320162ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.83-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 077345ebb888a54c927b1aad0961e2e4f18f5037cd2133dc7f679b4e95545d59
MD5 a39b467ddcff76869fc411959f671035
BLAKE2b-256 a3d9365407901a40591cd597394ed7d9a3061bb547c25c11002b4ec9e8792e4d

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