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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.846-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.846-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.846-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 db44e0c7dc9db1368e2bf15ee65a57c5e78f3c5ebc9f392b57bfc0d6f8f47ff3
MD5 2b8e88f200b99db1b414b5640c4a44e0
BLAKE2b-256 1483ce7237fc834d589387f315bc2c675b9e46e0516df5347a23fbd4cfc8df1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.846-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.846-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b56562160aa7f4ec9781b61ab35e83bfa6bea5478ec8523c431aa343fb8cdfcd
MD5 b60143a7f0f59d6a41ccb3875dd21e31
BLAKE2b-256 7662b7c549e3b013334246e84f2f41471b803865e5f558b4a3b9ae0abc1860e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.846-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.846-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 26e7eecef7fc64590f168991df70112adb7a43edd9c614e547624aa7a84e9552
MD5 7a8e3b5253972d4224b049bced1b4caa
BLAKE2b-256 30cf081f8ef313f1ff1d626b311560afbd0a77ef5871ab30d2e9bb6d27874399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e653a0f590bb31297091a87505635610d12b9a1511300f3482b4be70e65aa12
MD5 c571b4af002dc7441929d7e191b6c79a
BLAKE2b-256 62c09d6b1314531895e2725aaea9e0e468bdf03c26781f543f2b0842b1fe840b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 751d90bf2992e4bed1d5f3a94a367d1a0b2e8446558a86285c0febb68b8899b5
MD5 8e9d497ff59a92ba8ad3a2a58efd7113
BLAKE2b-256 19020e85d1b67a524726f263c338afd5b225735dc3b0b0720151c00f9fcc98fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.846-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.846-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c4000a15d78965fedab79663264d01da05be40fbeb42aa209919e8305997437c
MD5 61a609b0ae591ed7eea007f8a73d18e8
BLAKE2b-256 70d374f32e9d8d2e04a346c444047be8f9b4aef4aaba3764218793e0ba161afd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.846-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.846-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d72af3e620199b5fec42f00b21fab0c9575e255983089498b0c54f884d6a54db
MD5 0eb094a65717cffab7a451e727d062c9
BLAKE2b-256 265f58c6ab741d41e9b04c4177774e20c7245bf4553bf9bae8fd945e4073bbef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c13fa82f5279f775629e166e982aae2f7a4f0f67ae75b83927e0bab601b4309
MD5 5a0ec3d5adc7eb7e510ca2ea0693458e
BLAKE2b-256 0ea1be54c43fca99f812d359ceec92978883e94732a39906b1aecfa3bbeb4f94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 52ebb42110c15f5cf6e05f46fdaefb01238bcf3032fa55f365ba93da59970f5b
MD5 8e42bb8c50dd94476f87c2ab79afb29b
BLAKE2b-256 8722f8ad34de5c46a737e9ffdeddf7e2be86f9101808f180e66c2d23467baa51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.846-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.846-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cba744ed9b52f3ece41cea846339b897bf591ba33e47915801c7c57994eb421d
MD5 6cb3da186b816e66f508e57fb7a7df1b
BLAKE2b-256 0c041b1ba29fbcccdbe12064e31c460c3be1c2bb4c7f540c17d74a6fbd7a39c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.846-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.846-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a8763d6bb99753038a19064d5d00fafadd56b26ed346c51c943ae4fda541bad
MD5 bb42639548f0ce2f9c1ba71ce20784e5
BLAKE2b-256 e0aad96273df5c27fbf22e4f1e52f2a986063c6e88cb09cae9936d01fa2ca3da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8aed9bc57489374a3ea35a72f71b4baf4b474a27204f10d2b144dbf9552e17dc
MD5 bfb7a272da7293c8d613fd2c335d9e97
BLAKE2b-256 d934e0155a2d5684a61206fc6bc63fd24efb968914ea367dee71b535c392aebf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.846-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.846-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5f9a1857e8d7df4973fde4ae29e3c36a0124ee05ed32aec02c5fb0ead25dddf4
MD5 985fb66d0feec7260612437835fd2f43
BLAKE2b-256 ea331681fbc972ec998702ff4b466aa6e021581169867e01d0a42b7c805ee764

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.846-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.846-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e5de9f60ecbeb5e93c541438ed1c9ee848633d0d593c00755e92bfaad5b2810c
MD5 9eca6ed2466a47bbf1f02969011ca70f
BLAKE2b-256 adee5f6967edbcdef4857d61c6e84cc41b5beb3ff77544336e43cb46dd4dc67f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.846-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.846-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51de2a347992c42a4fa2106ae496aea3c5c79a759eac4287731857f7dec9e6b9
MD5 64f5afd2182193c8915ed7157253c25e
BLAKE2b-256 c17e62dffc2e8ccf118a44da4c3c66da8c83a348eb75efdde29a008530df3727

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea967b01ecd70c36a2ddfdbf9298bf9b25170ac03073120a6fe7f8da3b6024bd
MD5 2114f8a616643ddfa82894718ff12ef6
BLAKE2b-256 5ac86be14051e992d1f1a717c1aff1983bf11c744bbdbce547f73e1b3bb2dae3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.846-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.846-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d66e7ab532cb4d4f3f3896d42a2e40a3d9165f2e848a499f83b551af0a5e4e98
MD5 b8a360ba2cd29e4d0e969638a83c4ec2
BLAKE2b-256 ba60bce82212b4288f5c38f73d93f3051ee6520a54388c7993b76ed3b05d584f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.846-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.846-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4c1822e92c58f5d7f5321dfebffc48b1ac52e660e681a84756869f9ff3fecb92
MD5 d283d8689f1933e580a0b4b5360f95de
BLAKE2b-256 abd51499c2147c13e540ea6b4e259dd92d8bda8bff12736cf8033b5f3d88445a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.846-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.846-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2afeb43762492f22bea1172d718d8c5275f3dd7b839247ebbfcc6e36a7800bda
MD5 959129de8f3ea49cf0e9cd0b0dd7f74c
BLAKE2b-256 f70aee6c71365ff971ad2a7ca6689796ca093b0baedca082e830cd7e71c82681

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.846-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad891bcbd9b27900df9d4eb15197a2bbd6e35c459d561b1f3d2dfa632755d26a
MD5 7fd6916da1fee83360dd08bd58e59197
BLAKE2b-256 cd3a807ccbd201d67ec07e743ebdf3cc070691b1a40e4bec77b52c95d3564476

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