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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.454-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.454-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.454-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 79a1d6e6e01d56ca29092d13fdc3ff1274c8cbb57d0f1b983116480999d9e087
MD5 a7d9d52f4d064220960de085a0637254
BLAKE2b-256 8ded0da799bf27cd930cac44c2d74306e621662a862caf50914b0ea36ed73893

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.454-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.454-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b149c1577a7902836df7d3af93eeaf8f44c87c1c759b10ca0981262b55d4e3b5
MD5 e46f26f20745307812d194105730a6b4
BLAKE2b-256 658c6aefa449134e7a43c640f82f0c8858e03e5d3500abcc3ee3aee82d7dc798

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.454-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.454-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a4a28dc618fde6659cfaf3ffa67df4afacccfd2e06daf36e32d75fb045bdcbb
MD5 ea068199e2d8494cbe3a36d013ae4f52
BLAKE2b-256 6244821ef3ba9c6f037620090076661254146e8c7d5871b0331c04bbbb6a714b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2edbd504f6e3db495952804c56d311ba1aed11802ee770fc69708cddc30e0c3
MD5 aad5a32d907a60664eb18d25a1ef6beb
BLAKE2b-256 78215652763d5862a8c415d73c477a71a26490a020ca0666734954fe968e0973

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2612076d2eae7f96a7f032a1422fedbb48a8359fd0ed3180f48795ef2e50b9e2
MD5 bf93323b67a72223f59d84371c8604e2
BLAKE2b-256 7d6199fc18f7f4ec58ef0349b1243650dbdbc65b9b9f1acafee0022c0f60f088

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.454-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.454-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 119fa480e33c1a254bcd9f89b9f1b8b9fbfd8cbd28caf0f9e0ee9df3aa7e9dba
MD5 b081fc9803b46c16b3a64eb93a187c17
BLAKE2b-256 353c04238a08f043d881bfece7208c46076746e2ea5c08ce0611df1abb11e48d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.454-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.454-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e10916e664c6e29dc8321ac3d455e0ec21f615c9f694aef6c80b53e6c496a01
MD5 72813f950c6e9d265fc7e8a53d1cb15a
BLAKE2b-256 e6194530f78a766b446131eb52e4b0ab4ebe355d52a14c01b5caeb4176776e83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3482610ca8288b9ee4254fbef7871cd4cd3d4493644f20893caf57868e84a683
MD5 4055f51aeec9ff87a6b3f493e7bce510
BLAKE2b-256 905b904825790dd911bcb8a329a7e75b859d05ebf547081df39d0f3c227ef4a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 facd21eeb71652c2e812d776aa98f115d9cb5bab762aa756cda755caefd7985d
MD5 42777e721162487e89dcddb58f5309fc
BLAKE2b-256 91f19fe6c35cec8b7fb3d6ef92ede34e83bb7398c505354e3977b3dcbdae4beb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.454-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.454-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1818b5c2889c41d345673ea94bc3c6221bcacf2d6945d47daacb408d04411acd
MD5 91ec3e6ea393dd51c552e40b9dc1564d
BLAKE2b-256 1923bfad1e0e477d5ed9ba5a40eedddb19078968bf5bd682a2152bce820ac3a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.454-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.454-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de83b14b0e1ee547e012b40d90b4850925e4640e1adf980fd3e90effc58d688c
MD5 a451bdf3cd104d1dd9dceee86faffe9c
BLAKE2b-256 02bb1afdb90a5ed5e0f013bc20840443a1aa609ba122e71932b02f84d4ccbd1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5a83c29d0a8e691f2508025b7b9bb15deec07d3852ed2f29cbca0c708c507e5
MD5 06a9e414776cffd6bb9aeded2e472c33
BLAKE2b-256 b59bec1d6ceb6856dc2bbb664ed88f67da1f3b900a554e958580577c3925ba11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.454-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.454-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 46f969939302024f0249b3adc2ba355fa6cb29868494d0d9304285cda7ecdb03
MD5 e787ba5421098abf04c4b889491d5dcf
BLAKE2b-256 9a9910504c194ea132842ce480ae09b2608f8f6a0aeee5a34ee8c4131b43d2df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.454-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.454-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3c75a3a9ac3a9e5d63f619371373eef0edb3a7b76a9460d75fe52c3754f3826b
MD5 dfdacc4ad138a98e1f66ba8550d8ae15
BLAKE2b-256 b97efaca62c7307a9736db9ce4c23540d5c71dbef27304233a2587a281143096

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.454-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.454-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 181b2843229520a35c29d8ac58aa23aa2b99f588e7240eb2a598594e13f5d7e1
MD5 53e251c6b54d765602030a933dbc28fb
BLAKE2b-256 04020d41e5beab1a9a16e9b60af10590ee26de3c6ec54a98642f05ca82a3fdd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c185d739c3309d2e6ce2253c0af25484f3a15da9c2eb5125a069f3da590195f
MD5 c77f86432f8d5041b9334d062a3e8495
BLAKE2b-256 33021f31a47cbfc433b9542bb9f0b6e89a43cb23716488223190594b8c9e378d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.454-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.454-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4bc9f42027d8c6f2229eb8e93e640783d7e7a70ec10f4b46988bf17df09e923e
MD5 05cf3bf0d154d5428c32160f52f8de1c
BLAKE2b-256 3057a6e88b4b655bc7f215ced14f9c8563fdd41ae5400a02711f719cb1215e68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.454-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.454-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5f04fad76e5e156a40833d20ea099ab4479488a5cfda9000cc098ac1d96a29d5
MD5 00314ae700e9928a915eec494e7f96be
BLAKE2b-256 880a19aefefef0a464088d6fce350665e6e934dc642aa779aed4ceeaa70750d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.454-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.454-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b34287df9bd4606c6922a24a11c6454bc4eb58a087824a7b428246a9ec4e7c3
MD5 cd63214d553e6307c8901e90109452b3
BLAKE2b-256 ae4e42f94fde76047cfe006fbab71e7044b7900db5f1dcf13753b1b48761f172

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.454-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d06717efcbfea81fbbd6cc2a6bc6e02162d502cce72ed22b539e6b47aa00f0d9
MD5 73c1e2418b0744a6aaab94a706616559
BLAKE2b-256 c1bd979109317367896aa3432a7e3b15fc3b14364c7a115a116501f4715d984e

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