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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.433-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.433-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.433-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e4e3c347caf8272ad4e1405adc25cbe781acd43193a1767462f385acd4eb1381
MD5 606c9d7abd8c65d92be2b9615ecda438
BLAKE2b-256 bdde6f5bc4884b301a748c56b0ee469afa25f5e7573cbf65f37f8b5ecbc4a0c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.433-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.433-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 51a803ffaf087ae3d8224c515dd2cdbb62fa56fb66486c49f0b9587610501a60
MD5 ed3fe4e1273e85785d81274cc9699843
BLAKE2b-256 ced5e86fda93cb995a4fc643935cf5cba5b1f107f4d966bbc7193772ea75e526

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.433-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.433-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b447a78ca0dd2be81d251a799cdcaa6efee00f7f0556eef3b0c560605b757c15
MD5 c0e62698724ad896875f378874acc26c
BLAKE2b-256 67fdf1df49955429497cec3e4af64a5a8058e5de5db6e49c10031638147e0d79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c281b8dd37d8ffa3222149744e1376377afe3c0820ae3da0d788ef7f1829ec7
MD5 05e28ff4954619305ce039502ecbc9c8
BLAKE2b-256 cee71422a9e7ddda16f41cfe1b667f101220a550ca396e9235bd46934bc9b487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9e0e8823e23b00d46e5ae3b086a8cccf64c3e5811fe776def65ca22d3f93c95e
MD5 9ab0e11029a0774279340cb7dcadd8cc
BLAKE2b-256 811bd724bc620bd690517341814be34513e3bf4c73778cdf29a8f8b0b532c55f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.433-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.433-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 00beb9d8739f2b6dc5f2d52ef78f796f4f228939d8c039fbadf4a88c0495c4cc
MD5 1187afaa3e2514c7e1d782fa64e7fd00
BLAKE2b-256 2a9d45fc8cba90f8329bc3d0f5341bf9693d783feb70cd23d64cf01621fb6ea1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.433-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.433-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 494aa6c9016736de41492cc990088cd5efd36e5ffdaeed75a302708e263fa94f
MD5 2c4ba284a610a3e3c11b7bdf716ac56c
BLAKE2b-256 37232787dba6f03b6407aebd89a175f658a31cd7ee1f34663a62e83bba19d0ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12c8878cc2a5cdfdcd5b99ea0855fcaa1af687ae005d1f8c23b32cd175d6901e
MD5 5dd7f32b35509001ea8ef2d48eeebd0c
BLAKE2b-256 6e666f4e80c17f52e6cdceb82fcdc594773f65bda68deef632bc17ea918ab170

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8e62834ce444e5874389fef011737968a4826a31d976cc154467f99f887f0a22
MD5 b6f081549b5f83fef58d30d72fc2b8da
BLAKE2b-256 c3464b61ef1e771fbafdacf0dd9dccf1ea777b8ce185e8e9bbf365c52b7f849e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.433-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.433-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f8b94f7e823e6727894207009af2a9ccd54268797dc30eed92cb815d56d5ebd1
MD5 09b4e82c711a5024ef73a41108cc2894
BLAKE2b-256 aaf29c63020f0e6d96ff0434f8a404db2659dfd82ed26b7e93042cb2d7f42c48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.433-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.433-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7292d6fcc01cf2556f732e390d61900460d7b900a54d1936a5feb14e98951a80
MD5 9994cbbfececca13454f6acd5be73153
BLAKE2b-256 82c29b95ba2c8b6f318930cff60810026e7cf15e338ec6329a33e006a6bf56c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2cbd335cd6bfa01d5ecfcc1018236243f957e2906caa78ce26ead97401896606
MD5 3f25adf383a45d9eaa62220047996229
BLAKE2b-256 9d5898b9c2812a55049f02a9eedec7bf3099fac22daab8025e3cf3f9654b9942

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.433-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.433-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 813c0a2e29e7618d5f20cc240dde12bc2a5f9f30c2779d93e84cc2a16cacbe33
MD5 023a2a5b9f145168cf07925369b61f84
BLAKE2b-256 6064865fbb9ec558eea0cb195048186111a0ea8b48f104a38a9f05677bd56ddf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.433-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.433-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 50b25adcdd4ebd249499ebbcbb301cd2c8e225ee7f8d69e030909fdb760fd582
MD5 8822f3bb1d488e69a266de0d951005c9
BLAKE2b-256 599e57ca9fd2cefd66b6a62071432e8e7873d7acefc032e3bfe46f1f23bf97f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.433-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.433-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fdd5eada886e2f051d634f2547ea0768fa20433c511adca9bde2eccaa34044e7
MD5 521b6ee237d126a2bcab08f0b97d61ce
BLAKE2b-256 fbd707e7ff03922f3205e7978f07b8c1175e515443c3bea008a59ca887d91f5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce84bf6a7e55542c7f0150dee5c674ceb2325032ff175476864cfa81de41d728
MD5 b2a09bc8d87904f7f755d14e7ca66592
BLAKE2b-256 1bdeae1b1586615b8e4ca431608d064f5b7303d860946c797291eab4bbd131f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.433-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.433-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 658fcc0408e7f7823305aab7499aed2b3633fd435347377aa8831a0be18b1b0c
MD5 c392bc83193edadd197eeab4917598cc
BLAKE2b-256 c4b0c41a176c97a1310060c3872bd9dc408066c7e1a2cd7ca6275fd738d925e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.433-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.433-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 151d4cdf9e9b2fbb3f6bd4fe49eadfb8220b948039d14b2e2c462fb89f91735c
MD5 d0a17d500f4a36fa1233f63357363a96
BLAKE2b-256 c894ac69b0a9e4b0eb71a7592a60efc717c9e27fd0d528b927ad267a8c935c23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.433-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.433-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d4eb5d8ca9145e49b5d695398e50848ec98c8243333f62d3b02bddbb8a38bdd
MD5 2285814b40815136d6ab6b6f79475001
BLAKE2b-256 b568e27e6c3e2dfb854dabd0768b881b289682d6d383b91e6eb2ffdc898b5932

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.433-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71ede6a57343f718f78c45cab79e5ec973d371de7c4d8298317ccd96a978675d
MD5 9bf4860a07119df80ee95164be4b6e0a
BLAKE2b-256 503a5906d0ad777ff98ebd1055f6f9b11adc30d6b737e1a23ec669e467e545ac

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