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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.827-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.827-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.827-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d966dff7ce1b12ced7b669ee49a2474c159e57447a33d1229701de6b5a3f8561
MD5 bdb1f9dec7d907b925edaae9af1ae678
BLAKE2b-256 37764830b4526aec41beca0eb33c4f0dc820bd95ebe3f9aa5a89cd297b2e5428

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.827-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.827-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5e01d494e009af71eaf148939dd9744235e8215acd726e3e9ed994f51b5441ec
MD5 214fa06c0c383e867ee531267b0fa879
BLAKE2b-256 abe0a183e7638cd9613ffca585db574823f40081900d6d89cb432921e59c836d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.827-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.827-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9870a8328a54a46d46a74b4ba1a96dd686542a39febf6330280525853a8c259
MD5 9476b28db5f703c691bd5c390f0238de
BLAKE2b-256 b8b02ac1d3c431e9495ff4819a69b53bfb71b81279a5d5052be4c1749e2f6ea6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74b0c02f8585330ea29f787cddd71c5a277c473f859016beb3e8920d93a6c1d8
MD5 67deeb96e5ef0607f99380d061479049
BLAKE2b-256 1d2881f5748a0c416fc1cf6bb2b25d3e3f4820d7a4706daea8e095cd4f607d7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 60e6632fcbd5eeb82ba65130c985aa3ca5f7657ad575468ab037ca8ea2a8316f
MD5 f8cedad1a850088358b59ef1925cbdda
BLAKE2b-256 4adef9f75ac7db481e7ad7b8be2b87cb83c7670b9867303cc9fa0260869502a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.827-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.827-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3238d000fa314bedbf8855b726c74b68b3dfd0e19820b07355ef91be1b1557e6
MD5 8ce654afd24eb78690004e9b9a6d32e7
BLAKE2b-256 4607501c1e0c0cf880d8ee2eac892ff68738243b576ec5836797f523e736e539

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.827-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.827-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e3859e3834e4b02a8f7370d1350c459be62b2756b7cea4073965e881ceb2df5
MD5 0619a01d6bb450510c64afa968d30198
BLAKE2b-256 d07fc9970cb70f39e87ce189a069217ccb9af7ba352afcb2f243bba4266bea3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d76c4cb1b648759052837c028935991751d48123f5a5916848633a40e2c93161
MD5 7c3077a65405721ad61cba2e2bef54e5
BLAKE2b-256 cff9bef8334548c5f226e267da1bdb202b1aae8cabbfd3a54be2d04d7d4aff52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d0173f6959fe5f348d56eb9d4ffbdaf8afa66fa383866e35f2c7e3dca24631cc
MD5 5724c85b7a2f8f2f448ba4a8c05432df
BLAKE2b-256 dfc4f2f15f02d87e3d7eae99f78ad437b767955ac9b676e10c5701c90b73d128

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.827-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.827-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 af58f6fc863d5e1491ab79fc2eeaf6e84eb938ca0744a153a0ad390b6ac9806d
MD5 479eb5da1b1b1bfc988661fc21d4deda
BLAKE2b-256 7aad76c2b7b524268d523e3de7d0874e2c89277e9d604bcdb07791f625310412

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.827-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.827-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8749a50ad4d6e4e4435ace5837d1caa0820bfce2f6512f16c954ea5b6f129f8c
MD5 21acf31978cbef348d188f572a4d543a
BLAKE2b-256 074c7cd0dcc9f7c23ccf87c465c220661eac9061f8a17eb6083159e2c9e002ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf886fb1aeb0a9c181dbcd7a3167814e9e386002bc638213e12748a5537164a7
MD5 be535a0d63840850c2652ba00ea8e8c8
BLAKE2b-256 b4784302fae560e54b411f45d062fe7d1d58ac1d6327c7250e380d5a1e7b0d28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.827-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.827-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9c4b5fc60c358e0b0d0f0872246083c504eb7b73840eb7fff4ea763e0680c3da
MD5 c94a8226c3a628b4e112eccc5ec1d3e0
BLAKE2b-256 796bb2db92d5484cd57a523d3d0cc5dfaf2b0b0deecb8d3df8d70b22275af880

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.827-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.827-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 eb68e3f5e29fd957a8f9f824b23296f175f8855055ec2afb4fc41e355e58461d
MD5 f5acb329c82c0519302433749a3f358d
BLAKE2b-256 61c7895a852b332ad0b078cb558c0eafa0a2681dd7021b2a90d6050850fb1cca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.827-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.827-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab97bc2d23b3633ce483cf67012055e059c3f50aacc02f5924bce992bc9741c3
MD5 6b04dc7207266cdd984b9293e387f5d3
BLAKE2b-256 3b46f7e2ba0db90f1511a195577daabd54b4f2b6f8f70d198180091b780a2788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87ffd529e33b410f68d6cdc6b32f27ecfc545b786aff853db1e9253003187a0f
MD5 a20a19f64417b4ffa88648a0f80c9454
BLAKE2b-256 d96edb988a98a8020938fb372c46be0c5e293a162edc202dbaf4dfd8214bad19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.827-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.827-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f61240ee11e1ac082612e1e292024c7f08046b5acac662bd1cd1375fb8c4e27e
MD5 962da7d8b6eb5f375067d90ca76f6eec
BLAKE2b-256 160e2d1e741b95ecfa5e7567405fe3119a7dd31b7ae8c0c2e7d871b692fa02b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.827-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.827-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b3a7c69b4c662673d35228430d419accdb423af48ef45b6b39790b1c22a0d8e3
MD5 e688487d7e0d72034d1e7272bdd3b63e
BLAKE2b-256 d0893fd6657cc01344e529ddbb8eaf0715d22c8ea5fb875c4ae1fdbeb89e96af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.827-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.827-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 13de8d8c28bd768e0951a486feed1f1a1e78e60939f8d5612fa05fa82795b598
MD5 35fb52602632d5fb267e5f731c21822d
BLAKE2b-256 65965f0927e99ebef70da25d3d0201b626ade8a23a4bceeac3c6d4da18062f67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.827-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f613117008ff3cde2da4f20ee00063e2febed991c59246d195bf5dd98ab1df5a
MD5 4dd52bf1d8236d754af1306e40794163
BLAKE2b-256 3b67715c3cf1e27ea41ae6f43988accc735cc71036d67824380af69db331b583

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