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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.41-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.41-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.41-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.41-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.41-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.41-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.41-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.41-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.41-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.41-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.41-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.41-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.41-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.41-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.41-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.41-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.41-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.41-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.41-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.41-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.41-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 167ebb8f8c662b0cba48d3668fa17d62fc8e8a388b8796cc8a252d8d0051d426
MD5 0253c398110cb1d81c38e7c1ad98efe0
BLAKE2b-256 b7bf1f6520646040deff41c45fb5d3965d79429b4f6fcf743dc3782b7a88725a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.41-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ee4ee716ac5c9238d113c0655cf677289a59c647c423eb2ba1756ec32fe7cfed
MD5 a9e13e51b40234e7a2a352f4036a0d3d
BLAKE2b-256 9b6c7f39aa78c5c478025713b19b9f19332aa05ed720e1a553fd922267a354a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.41-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.4.41-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef5a33d19d53bce2d406d3a2d9f50a9da468bd05c9c9fd978bd52e94e70a2742
MD5 e3dfbd5e48a114933dfb2bfcecd09eea
BLAKE2b-256 f4bc1d198e074c72d7fbde95ac68fff1ff111aa09a41acad9274c168624f377b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.41-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2c8c645e81cf871e8812a0ceba06b5051c4efbe149f444017e974fd15000939
MD5 8570d12c2597aac50afb409ae60ed00e
BLAKE2b-256 d00ec97a988944140aa396ef4b58b478ad233683591bb2447ca1159289000fc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.41-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 759867970513aece36f563c2a461e66f8ccce609d3d11a48bb2f65c66c3b7bd1
MD5 4bcb6da9ddb6d14ec1cd30bf2dba1b97
BLAKE2b-256 9471134699604c46a658a930336d5ce909a3a9163b208d531b6068578d8346fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.41-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a18aa45ed68332c22356a2b6bd8286cb67064849405c58fc5a7ca1a9cd2e2af7
MD5 866a8db60e0c7c0757c1576c70bad7f3
BLAKE2b-256 6250b2bccf73371f023b1acf0b19fa6f37f4dc8ada33440aa60675baa197d123

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.41-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.4.41-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a78b39b8bae436eeba2117703a67008d240edc0ec6b1e4ce5e4f92171c58ce68
MD5 6fb277b7654e4858f7ebe194da1dbdfd
BLAKE2b-256 45f971c83923759ed9c4a8cd6dd4d5453c944ae7a5547dcde71cca9385ede590

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.41-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddc043411f35bbfd13e700a0ae0abdd92334124e66e5b89afa607ca16df09c3e
MD5 bd7b28d04c1e6b073b68ed6e9a5976e6
BLAKE2b-256 75850d13d10bfb00b5d99b779bdd50703cb13d4a2c21b2e24e8b2d0bd7d96eca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.41-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 30bf2910d5203b26b0b586660ce5b4865673649e89a0491b3d7e82433063b795
MD5 2df641acd2a90d60eb665b5bba58fa2d
BLAKE2b-256 b7ee080958cec42720382c8eb3f983427e9650fa48e2b0be15e13e8b590eb438

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.41-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 228b580c02b444766817603cc6ed4a6c62156b5cc5c63087452055875d911ae6
MD5 763c63c0f86ad17fb41532a6d21f2129
BLAKE2b-256 de6394d48b80184975e70c79afc26b9914ab0835c42c2a4755b365b33552cff6

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.41-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.4.41-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be1155463fff5a96115cb5733dd35d9a42f53bcab812ca7c0a6a078f6e0044bb
MD5 2dbee629eedff8fb4d95c6ed290fb8c2
BLAKE2b-256 d497b2717939f482b9a11da178bf1ef4f62addda57631cb1cb45c8b351aabc55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.41-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b641f6cd8d1f12576f3c453c11b1263649cb8f75ddfa400da6fa009ca46145d
MD5 f982c97976246732dcbee2453343b609
BLAKE2b-256 ffbebd2894557c40411e4326697d23e52a3d66072e3a20645a50057fd6d2ae56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.41-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 647f8e1782032162cd774a486c127c637ac60ef340e8f9f5caa158051465b613
MD5 8e5184d4505c2fc133dbde07a1d61004
BLAKE2b-256 14e07316c5b1e5f62bec81df318c6af607c0061290261cd20c9855a900af4fa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.41-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 42a93116da53409921d434de6cab5f149d62526b46402f1e07a59f9e124719f8
MD5 ff5166bfd430cf3847ae64bf0d3cff19
BLAKE2b-256 299129a82802af8f7a8873d1e52a7d8cf0074d9548791cc7e1f83f8b83fc1325

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.41-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.4.41-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a168310d587ede46fc388de1c7295c685b789299088aba31d162ba6694b9acd
MD5 9209ce53caff86fc6d11ed3cef814d74
BLAKE2b-256 503a40641406324998ddbef9c74c99c1322eb37c71982ac44056fcd3016e7d7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.41-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb7aa9551efe95a86b056cbd2aa2564a6df28e1305e23339fec1532b8a4dd428
MD5 516b89d69dc3d946d5002f452ce587d2
BLAKE2b-256 b0fb489f40196976ab8985048b57cf49685eb706fcf638976a48ec2feaf96fec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.41-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 75d90cf98a8125df530701981de94947e20c79c0468d1144c74d8f7045830b7d
MD5 15a7a1cd9b5a168787f8f669bbc84a21
BLAKE2b-256 9fb19745202456009f1ad1f9dcb7819b7e07e2f55acd7c3f7b8cdbe570151d0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.41-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.41-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 90e5428d5410f840a85a2038d6f01f381415802459e976a086e1a6596e78706b
MD5 7e6756466e421e024232aa31313eb90a
BLAKE2b-256 ec1336741db02704fe32375a2175d1fe2bc87d2babb6936d0d05f0678f032e94

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.41-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.4.41-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da75cc6edbc08ab36ed8721dfebebaa2329da197f235d4aaff30f924a16bdd03
MD5 90516e7a5836aad184a0ec4ed74fcf69
BLAKE2b-256 a4a9fd30bdec2f2209f05146c88708c25be970edf1a203f5d9755ac77c1aba2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.41-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb5b19f2e949c863ff0c861c4c6130dbfbaf9400d9f1ae8c2ea0b47dd1d1fbca
MD5 f7bf4bea90639ff666eff600bfb88a14
BLAKE2b-256 6ff744f234639a0d50729730367ccefb7c9285a428a3acd20734e513d4d551ec

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