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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.845-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.845-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.845-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d8d9ec4318efd543fb0ce0a59f73a7004e36193a8560d251da227847cad2bee
MD5 798c1f05e3524db05e06a29981b47e3e
BLAKE2b-256 72fd4bbb4fda96ec83b8130973347512d3ae7eedfe2d21738062de12d8b879c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.845-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.845-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3e7d5274293f30ed40faed807f2320058d87c73e842dc8475cf34396defeb985
MD5 83dbc0b2306c4f7808c1b09b2ef87a93
BLAKE2b-256 afc92b3caa1d73fd9339e44b067c58581d899bc36202b3375d20c4eb8b5c5d1a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.845-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.845-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94ef366b797600239cac13d8ac1ebf55a081da3bcb1ee85faeb8df942b5819dd
MD5 d25d708c8f4e9c44289789a053623142
BLAKE2b-256 a0cf3642b4aeac6ec645882772b0f8edab8f32602de7a01444ef98c0def58ff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4163c338b754a53fb45d8a76519b5277ba96842ccf6e86387e8143a4da2f2909
MD5 6ce32bdf40ff5fa1d9d4fa30509c73ce
BLAKE2b-256 8c0437d1e2919ff52ce8f7f9dcf9b476cff0587dbfb2309d48a63a483f84033f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3c48c0b37674bd98a8568f5a57efffc229fa8dca85acd51db4e717cf3d96581e
MD5 efa538c6cfba9ee04b2cf4b5282366af
BLAKE2b-256 5cf5a26fe1d11a484552f14c96e25578d1d9c486b1a06b84e756ba6d55afafca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.845-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.845-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 33d64e01f08361713d67596fcfc950260e7539a1901d6509f34cb02c577de63a
MD5 42c19ea3cc36ee36428445e1acdf64a1
BLAKE2b-256 23e10c662c20ee46b02c15bea7f724a1b078dd6dc72d03d4022795385f0c5f6a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.845-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.845-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8d8b542686b993b80b11f10bf23b33bf377c8a99f93c67a18d9fb604add0217
MD5 3ac87db650b093f0fdfd7fff2dfd3039
BLAKE2b-256 d422afa35e4c8cd055abd5198fa3a96e49bd13da2c96c7415e19c811c00b75a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c0f6f8214577b406e60d29e7c1849a1dff2a3a1020c96ededb5fc6c09b3c25a
MD5 52df1df1bd43290191dc9d2a5090ba5b
BLAKE2b-256 9e6a996d02d3f285c4dedc4e84daf9176794eb89118a7d1de0531f9e079ff5a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 df5e879a43a45ad1610674cd5309bcd32146ca152d97f2eb74f220a64e8adeaf
MD5 40c43cd9818af0f80a5492ee88311950
BLAKE2b-256 ad8bc1e6f6f3f07db320b06e63530aa13daa14bd52872012accff3b3b42707d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.845-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.845-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 39c03dcc0a52e7244a6eff47b214e49df1ad350331b7875833f19dd5ef4f83e4
MD5 bdfff93b863ab86475299d2db58938f4
BLAKE2b-256 4539d4b9d4ef00622b4d51305c2565b3d9aea429ee0888f0af32104a5e2ae06d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.845-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.845-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23f65a8a8386e0dde95d81887f558712b1a5a2ded9840a3b44619a96fac308ce
MD5 70d020a8d72cae8de25ecd4d4d59a8ec
BLAKE2b-256 4f22016960b257fd366af2c89de18b53f47c8b8bb16bcf6c497180b18b875f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d75cd15ec976556c5660d65d6312760b03c1ed933b615c78a575ea28318c4536
MD5 0168a4a2ef11011415829a7e767b79b9
BLAKE2b-256 209905ca776e6a8c71f4f92829229f57cccc250eb3038b2e2360e8bbd3cc8030

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.845-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.845-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8a149a1e749a54f033585d9d21f92e8ed9c4971580fca568d26b63ccefea329a
MD5 8efd4fafee34e7f629a6b6a49eb7a9c0
BLAKE2b-256 bf04a16c2c15867b2b7ebf5e4529992519b0a0373da6188133bd41dd87e76519

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.845-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.845-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b2c9d0a7d46ebe6fa72b3aea8e5a82b4e0045bffba1ff8033e27e5d9f565a109
MD5 149b34405dc22d3f09386ff581ed4f67
BLAKE2b-256 bbae325d4ea71dc674907e59741f50af1a03dab4f46d271b6c7ee4383f7d0563

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.845-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.845-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15e8cb06b61659e4c7da3168bf7f8040fec2e1f6849cc7504bf0294f8350a9f1
MD5 4ae90b0e88effacc0240ba5ba07c27d2
BLAKE2b-256 6460b0094720bc09ad2630f32b74ea5fa735389a5fb013da34a26965c53de708

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddbd5018e85994b22c1c513186d5260d66ded999f705cbc3a54d9c65106829c4
MD5 cd9e2d5e2bd3682be8f2ac5a67caecd7
BLAKE2b-256 b209089e6149aa0760e63e0e7e7cd70142deaf73f81ffd6dad1459d5fc8ea1f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.845-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.845-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f6388282b673492cde7b0bc00edcf95ca22568d746d664ae13eb855165627cd7
MD5 1698ed4b9964b78d72c721dd6447dd63
BLAKE2b-256 14ef458eba3611180812f780f3656d5ac313997d63b8dce3b6ff0dd73916bf4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.845-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.845-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 20a8d789d86b75b615be7363c66f5ae45875b2afb868433e09043c0954a85070
MD5 023b4854a9b1a1b220f435d8eee722cf
BLAKE2b-256 01483de22229ba7d8a65e24fd0e55bed0fb2c1389d42b42eb2ba9b1192216d04

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.845-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.845-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d69ed48de5ed016dafeec3578aec851597a07b7907a037212aaf13bd3e04c978
MD5 39e1008235c74a694c377be57cc39709
BLAKE2b-256 41229fd632abaf1f899be779db3ebc3d0131bc68568964f50e00b1d2e9c551b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.845-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 062eb90eec554a78200a2f000b4ed7920a1b57d271688c4fdbd860dc33f8e663
MD5 4ee056320bdd8c06c4fab0e196ccd06a
BLAKE2b-256 3d010192c8e3b5a8730fce76df559331e1dfd81e36ba4db64387144375975120

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