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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.487-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.487-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.487-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 321ee6660ff87ca5df453de2dc776237e300cb904df009908f12d670fcd5ce52
MD5 98f5731c4d087ee6a053284eb9255b44
BLAKE2b-256 02181421a61995c8520b029ba64b2b1ba40ec26b4331211ff5db9e66d022c350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.487-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.487-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6918c71262647bbce32cf7e02a2e76b28511db2917918d1e5e6dc4d4ce5604a0
MD5 b82970a1ad74a27a70e93ddc117b55d2
BLAKE2b-256 5658ee834c25a945289e69c671dc6eca9505aefef5923390a88e31658dbcee8c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.487-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.487-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7441549bd00e798b2518be271dfbab76e5992bff8a5f36d3329a92629914a8e3
MD5 76e0c8555c15fdbbbf4e5933a370925b
BLAKE2b-256 a3f21e41897cbbe58c7891d386363a7a88831bd89e3c64e7ab091a7964279210

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45d3b378aa9917fd7cc6355621942f7b9acf74d49c1406d14fb1bdc45960cd10
MD5 df2ace5c0274d7321423d82b017c3a31
BLAKE2b-256 be828abd980b4f7bddac393df6326526024e5f9bfdb821648b30a8beff12e56a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8bd4a08f6ac60068dc97511936c3d2b808ea7abef4ccc3fecfb4aa5424325d0a
MD5 9368dcac86c303421d2cbc08fd7a7410
BLAKE2b-256 3c3d82fb655c729501dc5ae59cbdb9e4e1f8d4067b4096d0d7bfca38fb26a55f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.487-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.487-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7eae095afb5bc04fe93a22ca9800e6478492b8522abf39ba9975f615bd50f58b
MD5 72d2e78e8123f138d1f51900fbaf1911
BLAKE2b-256 819ab62441960010804165bf78a9ba0c3e4fc30bfb9de30df69d6d9203f0fc3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.487-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.487-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd0355ab2249ec88ddb8373d4a7656d4445bef0e1bf79fc62b1e0a20504dac00
MD5 a1090506cb137987f842787daf7e48e5
BLAKE2b-256 357e05c9639c77c040a2671a98344a26c51ae6526bc4e0dfc02592177582bcc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4960a7d7d4d21a726b5e8bed6d50ec2210a321d8b478da2273efe8a8d0db8a8f
MD5 6bf894f0c8780c2df95dce94f15cd729
BLAKE2b-256 5766eaaa80b835ebe4b230d9316a00c97aa1bf623c0bd27f5c7343ce908fc27b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f884d65991aad445dc333e73dabb7355ef0900ded284ca9aa189373b777dd87
MD5 c99162e04cddf4adcf2e686a04f5ac44
BLAKE2b-256 2e3f8bdac68ca183fb39f836713398a1ff1cdd833ec618da7e3112db242c4137

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.487-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.487-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 49013207d7c4c37d3838e153b4a182d7006ca9018bbf3cc1455f4828da90bf12
MD5 adf1b2aa08d39e76a3b9bb14b7b4d6c5
BLAKE2b-256 aa406dd70df403924e5cfe4a1e0e163fc09f1213832ccaa62fdb0a18655615e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.487-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.487-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de5e56b82e144b4e6686a288db0fa1fc7ac3d8b8227b3b2c255c2ad8f5b94f98
MD5 5fe21382ae58ab678f67961ee6a79e55
BLAKE2b-256 026a153e6407eb75909a7db3072759f5318117a1732d9b8596e43af3603bd237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbbfd90a4e50da201482134d82d5e803004233e2de127e498021a3f98f0ad2c3
MD5 d6ef2f275e3d9a0408973d2f64ea599d
BLAKE2b-256 9ccd2f6b29dd1a1fb93d796176983ab6a6979279689b3d1a061d90eb11f95d85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.487-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.487-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fc78113a04230bf95d1e197e306246fdf9625c35164f3682e02b4cd1b9eeeada
MD5 41020120aaab64f7113fbff1d3e761a7
BLAKE2b-256 d7293f390802a73df512011f248210a8cc0c31e00d1a9c34e5170f6571847da6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.487-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.487-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2be6f1955ed4214ca2586b7d0a5c681417186380df20c10d24d786dec9e3f516
MD5 526e690d1d1dce083569fea872c05ebb
BLAKE2b-256 f69f5e573badb75580df3930c19d42370d950a8e19388c7dfd722aa23e3651fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.487-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.487-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44992d2aa967599c506ac40976781b4f72ed28f76f1b0d0eddc17627c5b29a0b
MD5 d748a2e8cc7fe4083273bc1e259e3282
BLAKE2b-256 ac95c3adfaadf9ade77ab83b199177aa97aa71f3108965cb0452541d3f28810d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b1c98d33924da97dda620ecbbdb52cb99531e9045d452d01582862526c8a5fa
MD5 ea3d042fc8a71c82dd289d856ccde6b6
BLAKE2b-256 acd45432728d2bc01ab0cb292c42c17ff8d6e5ad4cc98ccb4d7bd01795c6dab0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.487-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.487-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9fd53c09ead73fdd2877265810bdac8955e2214ae7791483450afe7f880e7d6a
MD5 36ad7a64c9b890bf744e6d404be43916
BLAKE2b-256 0df4dbef53045b434b09300c5d8f924b4a93fc762714a1797a9fd85ce037714a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.487-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.487-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 924d94b2ab1d7628a73b89c4cce2f81828c67aa002207304e438ba15be74785b
MD5 fd53ef7e290beee052e8271e4ea02b5d
BLAKE2b-256 95d571575bda1188e447df27184b74fd2a90cb86ca3d3d58f23de9155f835a53

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.487-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.487-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70b4a0e527bfa63e78c9e523352d12ca4f2479aaf27dc7c658739115882e6275
MD5 e7252584d1c2dab37552a6f257ca865e
BLAKE2b-256 0308128c72a982375d6525a70063d564bcece8d70e3aff299cf7770faf4f8cac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.487-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9daf10d14056d098ba301d308f86e6a1aef01f85e60d308490888936d782700
MD5 0f812fb5499eeb2ab8bc1025a467e2e4
BLAKE2b-256 fda20c119c54ecb55d14a1078b24bdd2d06a15c597244551d374e4354207a403

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