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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.51-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.51-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.51-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.51-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.51-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.51-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.51-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4af96ae0b23cf571911f88065b3d1652bab8e0345a49772b5ba25fb07d5033fc
MD5 98437d8651cb5364f7130ce595e94c3a
BLAKE2b-256 4016570a8b77bab2fa03d769b1cf9c1dab2c3841e8aa3dd42d07ace523196eaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-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.51-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9666cab8e87e6cedd06248c10c763cc23f4dfc4e5965d19b0ccc5ca63ba93448
MD5 b2458849823c1ce3071870417104b19c
BLAKE2b-256 648f6a78a9dd5f0e98d5a71fe6d2e1c05cbd6a3d51d81bfa2e60ada3f064d054

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.51-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.51-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a73f9ddf1f36fb4ebb6dea187aa45ac1b681a706215c011859a07fe3a40675e7
MD5 5980844b0f05f87b0c5e34cc430045ef
BLAKE2b-256 73d04eb9c52c4228e1c79a71d6f58e34f066c64a78adbf9d9daf1840ad596a64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.51-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 762db9a1f4523fac14114c17249aa04fcbe11455f85ef90d51d7703240826eeb
MD5 cdfd9e2c1c6334fbd5fa15d6b6e0a314
BLAKE2b-256 61c91535ee1717c77e2da3336a28bed08cbd18c3398bb5700ec4ba1f39a5fbb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.51-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8a3ed58da5380fdd171f592bda361627d8396d920a5ba5d00b875e627da3c631
MD5 570aae05ff293a4f14a62f569621869e
BLAKE2b-256 477cad9059cdfb13ae851c8cd7e8568ef4ac2f77e3c838a3a5e51e9a6590e7a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-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.51-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a75fae877247ddf99db533546f71151c350597f5a44b60ecebb75fb637e01aac
MD5 d06ebc2338de76eeb2c7b67c801eb2b2
BLAKE2b-256 d5fabd6b7e80e1025f137df08e7f15e8010bbe6747e53f796f7a620bf4b93383

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.51-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.51-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 690564807352d94ad5137a58abd318d57520fd9234e214caeb67e19284d9cac5
MD5 474d36a23946e1226343a9e86cf36a7b
BLAKE2b-256 7577a41ec7ae198a10a1676535314db46a18288b9879ea5a5ad6d96331e0a2df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.51-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e61b174eb4a0897d3dddba469d70aa6ad9530eaaede324398343cc6ba98c25a
MD5 c4bb68c448f2dd8651205baba2dcd4bc
BLAKE2b-256 0791688d79971fa917a281bbf809d3e35b7a4d6c2985684b8bf889e75ec39da1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.51-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b6f7025ff7208512e13e7464282774d19826b17f92d9ac8a732550df37fa36d2
MD5 6fdbc439eeae11e65b62cda9251f38ef
BLAKE2b-256 ed9f8e9a377be3225922f6a517e3ab36aa72db5002106fbc8a9cb432ab2149e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-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.51-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 366a02ac3d25e21dc78b685e15060e9298663b19cc0586bbedc1ac84a50e6be3
MD5 2d327e07be969bb910d2d39b4d525d71
BLAKE2b-256 5ebaaf1f0c05a4afedb7cea3893cb227e3e574c3afb754ed538fc0b728f1fa85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.51-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.51-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a087a63e1f000d15a93b620d52c6283b3cf1df64ba4f8ab937aaede4b0ab286
MD5 9a95a9651712d4655e5b43b35a882f32
BLAKE2b-256 9f5d18a621aafe376f643c1046226dbb5c901069dd833df21a50e0815cf7ff9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.51-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 178f5acdea72985eeda7ef36fb7b671bb98c91199082c988c932ace3002ea96a
MD5 a70daf27661de1336c897b384cf1f82b
BLAKE2b-256 d404809ca85edac42dca86e79b174a95611ffdc13b18b035c140c608a5a1cc0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-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.51-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f788e8d45cdbf3e0d80a5087ee316b86abac6f1ac91ab969a600309ad25c11c7
MD5 1762f5fff76904cdab772a16cc0ce512
BLAKE2b-256 7fe87b2e50c66be137b134485e2873bfac3a2381471a3bb3006a4ca30c0b4341

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-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.51-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7fba98d56ad7111f43f6a255a3ca8dda5b679628bbff4b5e2ea6e2074d35e725
MD5 114e03c373c6d1b1ae0be222ad5c480e
BLAKE2b-256 43ad735fb87cf6a3c736db47752e9475521bc705d00a39e222d00f9d5569fa04

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.51-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.51-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 faa34c101b4d7bfc80269df0cf0a02aab92b91d15a8a0e272673ca838de1a5ac
MD5 453e79a1de6e4c7361632b070d13ddee
BLAKE2b-256 2b660e458fdaa6f4411d520976be0d77153de16a57440cd249621721e407e534

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.51-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71c8c3b8c621c28de96009d53b3304a6ce92a50a9cfbfbfe5687a4bac789ce76
MD5 6bec8fb7b7fa24529cb40bc2cb17864d
BLAKE2b-256 d0f6012e17b48aaf12c06e4c61b7b733cdb6770625e96b83ec9a3fa8d7730d7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-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.51-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e85d227220679f1ce8ac3bc9d0437126dbe91915e2a6b104f203578edbed05a3
MD5 005fcddc1f77a1d6582a045d2fc067bf
BLAKE2b-256 a9e6418c05343599c8d1a817e343367fe849dcb202dcb81d8400cf11ca15776c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.51-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.51-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5c8b14f69c6f8ae57596c0ed0014399175db125e12f95219dea9ec39d7910ecd
MD5 fa36fd772290c74d07a599bc343639ee
BLAKE2b-256 cbdb172669381cd20d476c571fee7da014401f5698c295eb33aec207420b4288

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.51-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.51-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1b882c203ea1395e5a4aadefc98880b3c89457e399306efad6c211838f11a2f
MD5 bf5cb2f381d7bea5f61ca68fdd52d8af
BLAKE2b-256 bd9866e66c7a503d2cb2318b0aa9bbebb7d1de55ba0db74207122e56e73630b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.51-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70c25564f6ab2edf46671af41fb231d7ac5d3cbbeda2fdbb07fe72939f831c24
MD5 c0d99f920fc9a84be4eaef35f70a7de7
BLAKE2b-256 0466a79c0f28858d09eec5a881d72dcce7ba3230dabc4d738607928675cc1c34

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