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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.958-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.958-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.958-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 871c569c1bf9c2a2b10b93565f86884c5a6ee2e1d4ea6e1c082f326aaf5c1f3d
MD5 9082eca8355495cf42580776d3cfa3bf
BLAKE2b-256 16a926ff0a454e194c20baaf08da498ee00927693844ed6344ddfe479d75b8f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.958-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.958-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 77d410de20a02ace88deafe9e98fb5b251349168b13519bca20d53b3ee04daca
MD5 f822956abfebeb70448a8f6c2afb2b03
BLAKE2b-256 6d515e1cadddf51f020fa7722633ee5c5891bca2e37dea9202f49016885dacd0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.958-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.958-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 803aa34247150bd953e7f79d8e0a5198ab62b003f6f1c8fec95d56fe2a3a4be4
MD5 e118fb512c1f78fe259efe15d0776ce3
BLAKE2b-256 27681878948920aad2d2f3dfe49760504918b3c3b3c44fa628535c7ef4a129c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e635390fcdf3b723c2607db66da09cfeb325fc675f727df9354e21d1454a997c
MD5 b28cca4d2bea7b06a481dc0fa2fcc860
BLAKE2b-256 35a48efef2a21c8c458dc02d869c3df266ac4afbd8c36ec3fcf522dee5928878

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 857fda219aa023ed96b3accd2f9c90577350e1cc6db75a4de4180c77d678cbd9
MD5 596957196680b2265669e85b0cf0df42
BLAKE2b-256 608cb93969e9228ef8f6b561265a53b2c8da34e976f669e8f1d68d206e27aad2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.958-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.958-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dac6eb92cf8693808a5f85e9e085451511342544ba53acd444b052bd59973c19
MD5 cc4b92c422f4a5047e5b6aadead95b46
BLAKE2b-256 060d395c31f3bc6df130852b87e4d24225f9be332125d4df9411976ba1ac406b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.958-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.958-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 478095f4819354fb0d133f82cb588c8da2d2aabd8e4f17971f8e4529878615b5
MD5 7642bf3acbf7d12f5235e6673e272fcd
BLAKE2b-256 b56df51e3c1956aeff5828a55b2a42229ab99225cc05419f21a5855f697afa57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4271e1f0be910455038e98d570bf68e6bfe181bccbd04b371e1c1a85599be4ca
MD5 22d9b8a9abe0a86b1803f6c7f9547c74
BLAKE2b-256 85e89a52b7c4d2342b0b998922cb2e31196d0bbb1100668131964e3b660a5547

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a980721ae0f3ca9a9c3cb152f85862ddeececf83bfe36ea79af966adb12fd2f7
MD5 41f52b5fdb2b88eb7eeb1fe7e4cc0554
BLAKE2b-256 1c3e92430b14c3c36e2b93b0f328cd79d646e63a6ceaa80616519c949c733df1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.958-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.958-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 723413cb3cd820f56d0abdcd1dc53b5cda024cf0b3f1ea6e77dd10cd0189ece0
MD5 bb8eb287531c19bcaedbba923acea0a1
BLAKE2b-256 59cc7a3e4fcd75dbdff77951fc8e34f9412c75f56d46aae03698f0d5b155008f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.958-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.958-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ebb1f9042596ee2f95ff3c0200d8ff4a8a5338f66eecacd419511ec85bd6178
MD5 572104e37bf9c8921bdc4d295e42eecf
BLAKE2b-256 b378181c8995e665c01584c337f770f28b15fd3df7502c76ad4910abc9be24a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98b90b97672a72e733b7bd352fcc1bd7a89a1227b6a17f37b8029fad9d0c6d38
MD5 09ccc9c106ef9a913a72fca21e2fea21
BLAKE2b-256 881ad41cf6116d70e898d65ac7521674c34985864530b38483e8231d6412acfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.958-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.958-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 43ba6afd13248cbb172f1af3d7ae2611ec09e0dd825ab969a8a10649a019b62b
MD5 0097b4cea7fef5446145892586edbe8f
BLAKE2b-256 b10ccb32ac02ac99beeb8195663c5fd591dab20037de2be519075c7cbf482ab6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.958-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.958-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e76cafd54e722b1bfe9a352c4914d98ee50d81848bad23c239da0f9446a0309d
MD5 2c4b93041abbb8b4ba4b16bb5bcac0f9
BLAKE2b-256 0fb512911aef7cd23c20230acaf19a665e0819c9665385d937f4c9260cb9293d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.958-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.958-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9cc2bd0d3cb6771f0851b103780bc0a71fdcf7805973e7c4080335b12397f6f5
MD5 2ba7da4c0604686f99f88405ce233a80
BLAKE2b-256 02200e238a9e2a744fe06a8f4d88d94db3d772e8634de566a0e4c661c1dfcaa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0afa8c92c7172bf3e6c63f3c5d5dd08bca70676474980adbf5c02c4d77dafa7a
MD5 9b2620b6dad36eb7cd5b58195ac5bb49
BLAKE2b-256 5b2a5905a6d0d097a20ad4d095ac8ebaa73a902c68fd73feae7f88f157c06ed0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.958-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.958-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 eef89dbaed42cb6d3ec7e251511d0d48cb2ed59a5bbbbfd8137e443c42313269
MD5 c90a9a463a58f376cd003256e4c456ea
BLAKE2b-256 612756fe25ed60acfa3e41f07a11b1368378a9d86f1b2ed04ca2a3047aea4125

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.958-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.958-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5a3549c6482f89a5269801031fb50693756a958e8ccb95e73c4ce5eb270137e0
MD5 f3248e62e0bcd638bf6a7b3f1112a680
BLAKE2b-256 c78430cff30a21a15165ab8ffb697ba744b5842e3382c133ee8320b642d97f99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.958-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.958-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16eb40612d6ccf4460d6c8b6d382dc35cc35e9dcec6d53d416ccc305d7c9db74
MD5 73c8e2a5154de24324023b8b6e55a4c1
BLAKE2b-256 5014aacc18e1923d656df9cdf7344c3339bcd758fbd6744a81adab1b23305623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.958-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a25b523723546ffc2ceabc524d72730b1ff9d1541d3574576c6c4bb297beb9e2
MD5 4f3df8f8a7ae0aa9d1310d7455039dba
BLAKE2b-256 5a89fa3704f97b0c92867f564bdf964bfb80bff87c64e3b4f700cf0175f7d4d9

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