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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.564-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.564-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.564-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 92c845278345aeed29f37d551b4ebb522c698b5394eaebd1cc03fb785670a23f
MD5 486d5733f451c3c55489034452a4762c
BLAKE2b-256 cc9b70b4dafb85066942654727ad86f5f720ede15e4e893e5e8b2dba11f4377a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.564-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.564-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 30a1170a4200ab51160e94ddbc34e148559d9ef7eaa4961c1c82741bcd86e974
MD5 a26d9af5129825d7af2fe945dc7dc628
BLAKE2b-256 7681b904eb69ce645f62a38ead9c8360d63ad20fe7d955e24520b6331091204b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.564-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.564-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aca8ae3ddecb2e212ebf150d1598ffdbd26aff5a91fa5558786b25ce23511e5d
MD5 274d16ef86aaeb3ed2dcce807068ada0
BLAKE2b-256 6cbd6329d5ad4fc8497b9a605847f51df8f2f5e1e441939fb100972fa2623951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7f2183493927a0c3912cd5c6532d9da7628cd52dbe0194c4c8a78af9cc26037
MD5 dd79640eba152181d3dbd4543fb1ac44
BLAKE2b-256 78f4a9dd52e49f1e6a38301ca77227e8e9250be35d66177d5889ce451ebb4077

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aedcb79573aa88f4fe0e2e71c8e8a1fb6ac1e86e7d66985ed593ddef5426fd87
MD5 d1392f84fbe206c9c101cce640f8b080
BLAKE2b-256 898f4654016e4b73ce8ed10959ac94a14bbe6d6f6a07cb20d189833abe1f6d2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.564-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.564-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 acc0d61e61c66c51348b52b8ca81f33bd1b7ba64222528f3ec486e109f8da230
MD5 5e6e814053c8955e86d8522eee9345be
BLAKE2b-256 4da14df44f064d46bb6f996d43797269d029deb2f53270b595dafb982938c93c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.564-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.564-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f40aafce55b46c319ab002a8f6b957addcc3b3b2ddb5b6bef09489191bd0dec6
MD5 70e6a89b85053a41d3a96eb40bdeb74f
BLAKE2b-256 af7611d0ec6498e2d975dc7fabe6905c45c159e34da050c0d948be69c95560c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 024893b0c52621f992ed43883e3a5f4bf859cf3e9802f22166b5ff5f0a25f2d1
MD5 6b5cc07a3456ac741541a62c70f0093c
BLAKE2b-256 8b6039fccfb3821ede1a0c38d85d8822bec66098526f0a234e16a881bc624297

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a989a02bcbe7c20172a7b43cd97dc02d592b4f5338180e51f0291a730b491ee3
MD5 dc99d68b541e8faac18cab698aa1fbf0
BLAKE2b-256 cf9edddfc1a6c19ef8c723a3d420b33a6465c1c1f1a3514733a76ab4ebd2a531

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.564-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.564-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1a487fd4ff9a750e2a0cd911cd6d8f60ccc619811e7b3fa1a179ff3e0a0185a4
MD5 8a48343489654f1d746f8df7b1519f6c
BLAKE2b-256 3b7e53b1d73a460e7ea7b262be8611e655a0087f4134cbdecf732d2b2de732bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.564-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.564-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18c5dba5e989caafc7a56c0326ef79344313470da64e81cbd98d8fe0be4ae2e8
MD5 d84150da8e168e31e134dfd21c5a7caa
BLAKE2b-256 2e3009c1de9dde572af73e2589e600065e48156ca18000900f4c596e3f6d1c11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55dc316a34cd9e008e7364279daeca614ca66cf9673488b05f515e198a4956c5
MD5 d359001313ef9f3a1a89e289d94b771e
BLAKE2b-256 d5b01d26e0a5ad6ee0c41632a753067508a91ea397f1f6a1f2b5575d1ae34b33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.564-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.564-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6ca801a9a65c340e25988ec3cbdc92a9cf0c1e76b51623ff6c8b2ad185da55b7
MD5 0768fdbda6dc52695972360f2c0f9a2b
BLAKE2b-256 c74e83c2976cc1a6b8adf2398b7219d320feff2de375c445c488276f5e0e9f82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.564-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.564-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8a1f420d25b62954cb248b0e64defc0d5bc9e2ccf5cbc0d3ee860a81f747121e
MD5 df5d4ac60ff76844a8d709530efde31e
BLAKE2b-256 73fa9639744972ad748559c4c6ea27e1afe790fa9966013ef6fc91e15ee5148e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.564-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.564-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd3b40516aa2879ad63985593f3d8b88e24463285d2bff1c993fdff29a1d507c
MD5 f6300667fb8379e8ff4b15a2997b83a2
BLAKE2b-256 ebe91a9fb950bdd65ea85db7e3d0975d0e1c53771798c6eebe06168542b44f6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99b70a75e6320e7f1787ea863d2bafcf823660b99fe1c67eee9e6459d1951736
MD5 816b8d054eef9fa2d7d5d77c20f7043b
BLAKE2b-256 d0327e984297e957f9ba68940f55f90f4ef6b2b4abc02747bd395b5aca6e3463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.564-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.564-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 94f5b1cab17994faed7f5c2e68337de5ff63a2c71d1a17287c279a92f8e8514d
MD5 16c18e289e282470f79a83f4836d2af5
BLAKE2b-256 49684809a6d87d3fdb8ebcc3642dd40e5a01d8fb6052b0fc3ab8d4389f78d76a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.564-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.564-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ac5381d720b7fbd2b6d88e4cf1f5a40b35cea60dcd78d5fa7bcd32fa04086059
MD5 176e541a35ed05b01084d3cdda0a206d
BLAKE2b-256 dd09926ed57c7e0e6c96757a2da5f8ea011c0c7d66607992f6b4bd565203c9ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.564-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.564-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 492203305d445f139ad5c4235997125fc3b35e4c643617a88dae1190bff951af
MD5 8ccc7dcdc3164f027511526d66186f30
BLAKE2b-256 56145b31063f40ea76fd87a63e7d1dfd06707b6e255184b15eb36b8e9632ce35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.564-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f594b6b4df1231d3907c8956a6c6017d597d5777f4dae462e7e82bee2b557d9
MD5 92580f4b4582334a4cfb0786e4f90051
BLAKE2b-256 55b1bcbaa61082bcea3b83152d0e1d62bd202d44b2e465a00785263bb1fc62e7

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