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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.400-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.400-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.400-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 45a09b1cb4cf3c44b1720573360a5183c8c4f973de5856a113ebd34e6bc10139
MD5 db4a324acca7180af8cafd7335dca5b1
BLAKE2b-256 3c6b13b986a949d95d1b4cb160e7f38364a80de0fbe3f450e531499d17e5762b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.400-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.400-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d4a928c814e2bba8ce8a1e1fac6227736dfded3c8c7ae4b7518a1aa0ab06d31b
MD5 239f35eb31ad041c6672928d5ded1338
BLAKE2b-256 fe48b481299d61cfb7318562ae38ca6b240236ef82387100cbad90c21f997c5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.400-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.400-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76e93b4c3beb58774d62aed433d909a015b1a936bc98a2cdc6171705b5f26e7b
MD5 4272c64995f01ddd5aabbcc80ba5e18b
BLAKE2b-256 317f3bf8a3342b8bf88073536c84b9c770591103a9fc1b74d402da399f018986

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b4688179721d2d4cafa8601d5c2b1f80da08a1bfa439e216110864983be566e
MD5 75bcebd58857da3ef4f2c4ae76f72542
BLAKE2b-256 5d50e28068966e99603e3f8e9b544155bcb931ae7d946d730fb5f75ff2015aad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 be5fa0871a41a410fc33576281ef38997aee205986d4f98c2a743711cff8b343
MD5 4734f30f29c406c2f8fb3a0aec78fbea
BLAKE2b-256 6b59e8551aa2b0246331ae0b787bcf5e9c6a421c87c59609809173f39ac35106

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.400-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.400-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 763deda19e1b4ad80194224f03a2d1a91bcf84968053969a131ee8fc30ce834a
MD5 7e601efbcfa16696b913b2dce561db4c
BLAKE2b-256 48bf7640eb0645c96483bdf459f763accd2872a55255c8fc5b1a31605e3a9526

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.400-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.400-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 493727164b4d5e1fee341b00c4ad97935bd2bc49d9d5368702e8d6c36d07692d
MD5 5338062141a1ac1917f4c2ad4644ac66
BLAKE2b-256 ffc5d9dc309d42985ca2eab8016d59e47bda4a0b08b64277ff8a121f477b2a01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 430c0a4d175b2e11bb427fafbfc740153d26cf3f83ba31e77e7405440509856e
MD5 47f2b8958db0bc9acc333af7770bad06
BLAKE2b-256 920869349113d4450ff29c3e3e7bbd5b79046bae65c6e855a5c520ea021ecbe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 01b74936830033b303cdef28ead136ee9f799af55c8dd47f326ae1e14b8a002b
MD5 e969f80ef3eb3e83f01f74ffa960c006
BLAKE2b-256 b40fc6c93af7cb12f9ab55b04a91ba6e061a86ca44963d700302354c133f9991

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.400-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.400-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d203fa74d55ea8b9b0168fa65a5dc390de411fc36bb4218b3883f29987e320dd
MD5 95d1d184dbc2a14a8aef82bf9e7e59ec
BLAKE2b-256 4b9d57a35bf42ee876e49a575e5a929dc2a1029cd634755c698bc7b270d6bd51

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.400-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.400-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d4878a10e80107cb572bc7fae2526ecf468bb9ff3d2499f2fb27cb1452f1005
MD5 2f1e5144046c95d5a5809a3a7f55d478
BLAKE2b-256 21f5f42e0644c07f6fd25ba32bf14ea39ec54c7a7f64cf8a16136695652b349d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ceb2cb6ab4ca4e43123f6cf9e57803b4a3eae1b65fcfc6f0af46426444aa07e2
MD5 6a2cac06b7684a88e7176f1a7432d593
BLAKE2b-256 65bde665b677bc655d6376f5deafb7557256a7ac1dce9126cd978cd338dcda0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.400-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.400-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6916693607aab15155cfe08612e0476f176ea688bfaae1e52c3927ae0dc22c25
MD5 6d5dec4bb15cdc3e562483d314e7eace
BLAKE2b-256 979d6baeb5b0565ef80dd284b46ada68902cf65d289ce33bc1d7c045e8dd5ac1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.400-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.400-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 67fe4160a456f8eae448c2c5858b0af16d848b37273dbf075973d16177f7426e
MD5 b49dcfe5e7d8e7ec16325cd9ca460ae6
BLAKE2b-256 7d170c4fbb834637706ab528b972080a17242cfd4cd9a51ad9f79237901a642c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.400-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.400-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f6454832f0ac46c7d62dadb56d13576369ee6c2a57ddeaf9d7b24da17bbdad8
MD5 0fcd20d93ec6a7aaddb1fd235974b015
BLAKE2b-256 a40b9c497e3861624ef43436c73565edbf66e83dc314ea10f3a6aad8ff51212a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7330100169d71eb363dcdd2fb0a5f3fbbdeecfc29c9a9d335382d82e61d550b1
MD5 2feb52acba7622f802a34c3ffa6c0dcf
BLAKE2b-256 bffe417c5c53f00cb92612f5af2467779074f163cd5e509058c0986213c1686b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.400-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.400-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 107e85c4eb6ddaa214a617085fe5175764e9b004fbb1938612ee195fa7bdfcf6
MD5 b317e0bf9b795e11df0c68a788644e48
BLAKE2b-256 da0af726c7b9e55dc83a5ab3d9cb1b036f87d7037aa9687677b43da68da85bcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.400-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.400-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bb1e6c970725b85fde1a87127251fa69aef71c04df7e4bb5b0a1d48827291ca8
MD5 c3ef74efdf368a7067e7718b2bb35627
BLAKE2b-256 99787596ddf1c11c4b40b1221dab32908af3d0aa81c6c06d11a196c427f8fe01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.400-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.400-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a8f714b4001646e56f8629b1c569b3ef479660d244eb101ea3dc96f7f6409ef
MD5 303708e57d0e790699e1c86f3f50ce28
BLAKE2b-256 7c96b879c9ff169ab2cfc34727423715288bbeb80ecbd78ce82b3b4a9a871ddf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.400-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b73505e02de3d3a685dc99d858837950f3a7be196052d22889f859d5f034b5d
MD5 ba763a24177fea642f81821931c5ddb4
BLAKE2b-256 063c7e76b0eda7bfb13624ab3961267c8ed58676e5c053a8eb2193caf8d42dda

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