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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.234-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.234-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.234-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ddc6936ac6f5926bff51f270506c146e9904bcb95b7fb308b229d2efbb85791a
MD5 721fdd90e33681106f6235a38aab3dbf
BLAKE2b-256 f56d18fb0362dcc9650c3ccb539dab9ce3ddb57f45f25c0a2a54ff4ce77eae59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.234-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.234-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c10b89e158f89731b694b81337ede3ca1dce37818afc5f2858ed235942ea0705
MD5 3420e44cf748203f9f3ca648eceb95e2
BLAKE2b-256 65099c133641ee92408925350658cbad5b710fce3c3aabf1da4ef97663ab4b97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.234-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.234-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4155da38274c9ffd8caac6cfdf147b3135ce5f4f3fd0f2e81caa8973ba09a699
MD5 492a2cfcca0dde27fd87db9c3a8ffe2b
BLAKE2b-256 003b2d1f4387b8d07e1afafe80c14582223bcdf097cd0b62cd4bc385a6a8ed20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb0a307af1f05d556cc247468752ab90d5bd05a4f042e9ebc52fc37d10458d4d
MD5 77b73b76598be660d516f253a001ea48
BLAKE2b-256 c539569a6096a25c43abb9fb87f152088e17a06dc213c3363b886563daf9bdf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0542df78ec7c15b4eb89d5488df4c83c6b789d601a1fe9ad5fb7a2dc5f368b92
MD5 08731399188d5711a37b93e566d5a8f3
BLAKE2b-256 2aeb110171e4013f076c6622db5a25ded61763af3cf7d94549cbf1c00d1f21d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.234-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.234-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f0a62e2d2ceae19398a6ca38b9ddca3037d51b7db0f152497a091ad16db0d365
MD5 a587ba1a840c355a3af03b5edf4a46cb
BLAKE2b-256 46af079632f6eb9e84b5065a1c95b4533eea1dd41b4833df50836b89c0fb5c72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.234-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.234-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cf486d13727ef7bd527e61d6d0d8a9d607be07f099442949e4a07f7de4d483c
MD5 02461736759ef01b11e45bea63565631
BLAKE2b-256 ace8e9a8adf44efe150ed9761702abb146de2d4b6f8272ed3082209533210a1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d071dcb98c90ffaa19c08aa7a163a5289218a861ccbf6e6ca9131c83caeaaa8
MD5 1a66a8bf49b1ae0ebedc43d870cf3efc
BLAKE2b-256 482928393b3431c1729cb13487f6febd2eebd1d3168a6cdfa142f443ec566dec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eb6fe34aa9002d0ce321a765bdc3a092429d84198651f71798b900301d4b7c0b
MD5 f60d8a9fb034275a6cc5434cee0a652f
BLAKE2b-256 0e232b1286eebd7d308ae2ae465ac52c3619dbdda6ca13254ae15cede3accdd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.234-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.234-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d367a2a531d8a628bb6f7d143ea875ce489319c0a91eaf4a555e724571646261
MD5 71efaa31213c5dfb4645b029c04c0959
BLAKE2b-256 f88e0300303ba36456822fb3e62c8809ec7d574d5d923d82f678630cd1f3b8a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.234-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.234-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94cf6d4849ff6114099d3d8b5633398caccfbcf0bb98ca312c24295fa2fce3d6
MD5 80dd8136555da77e3816f25544bbb0c6
BLAKE2b-256 a8523df7afb82a24ef7b5b22e4a6cae14f45932860464c3c47b03be995d11dd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07de3cced18dab609f4b08568b2dfaf50d2493403b391c8d29ca08767c6b843b
MD5 255b6da2c43cce8fbf7185fd5f27552b
BLAKE2b-256 2877381db27672b7aad4be1fc809a326baa6c2259ecf19946898b366072b1594

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.234-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.234-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e30cc5899ef885e451475b38653fa58729065c488dc8e72c5eba5e4d5bc44695
MD5 40a4100ad8eabb333e0f0bf0ea1c5b23
BLAKE2b-256 bd32c942ddfcf1f9e84c1cc971055f66277d4dc4c496bb0bf269c9e1cc1492d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.234-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.234-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3d51138ff8dcd2177386b6dc24e203b2583dfdf2abfaca40e181b8acb65575e6
MD5 c71016c62b6e171ba9eb29ec9b52a06a
BLAKE2b-256 264d1fe2141dfb9686a697fb60e5215387556f4ba0f340d5bd6890ac9981925f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.234-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.234-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 038fa98d3b5158a00e2a4463790b9cab34c6b07fa89491fa1e9a2bdf348d04c2
MD5 c4f617c069a05fc3e63a6b83b325c69d
BLAKE2b-256 bc0f90b00c946e9a0ac672b06d2562b246f75c5db9c29d1d184735929ca128f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dc441a35d8f1143b00fb7be5b1ac3c26a2b027da64754fc2741cfa686895a54
MD5 1d70348ff1a8e818201f117c4c8f8345
BLAKE2b-256 235e2ddb1d77f671e13552ca6cb6733676e8d1cd26946a76fb248c12205f4c7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.234-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.234-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b4b1ea153e2b92d0ff1ac1b79cb95859a9725714d9f1ba5c433d27e4e2746132
MD5 771fa0a754dbd6b543e1fa142942f3e0
BLAKE2b-256 a39cb2662ec01b03d6d1506a01eb393e2c7a841a0bc7e3bee187e566d46bbefb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.234-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.234-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dccfe45c19ff059a8824cabf4c0a42130d9a435157eee85b9a149b20aa378655
MD5 d311c5cd6c89c67cf055cefc8365d01d
BLAKE2b-256 1946c0e962a44b4bb009ae3b01f22c93d2a4bd4156b55ad17f1245363cf7234a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.234-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.234-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73046caa53fb54945e128e91b641841c41f29675111a9449f3746bb2402b4a10
MD5 38d8da088db1ced85a21eaf844d09288
BLAKE2b-256 7f34a8a0523c4137cdae1de94bc93761d60151584d33daa2b2103a2b5f6d1256

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.234-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8fb9f758f6f54af937a88956fdbd884698856a46ad4cdf6c059e4efca372206
MD5 61343a260ed3ad421c8a5e0892e11fb5
BLAKE2b-256 82d58f85015f65dd61eb34dfd57d21a79d715e874258c572cc4143756b5cdfd2

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