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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.877-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.877-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.877-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 79cb7b6ec67cf376a9ec986a6a762a03cc63b58b89ce364374c7305e132121ee
MD5 2525364341080f263a4b80e212407277
BLAKE2b-256 8be25942a72bffec215d54f6b2bef6b792c150caa26235f0f0c76a1233485a15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.877-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.877-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6793b8a2adf6279bf533e8474072d5f3aa10bdb2c0204195d44d44375e83128d
MD5 2643238127438d6b6a2c3764e46614ea
BLAKE2b-256 201b7c34bc0e26802f2b5d5f28cea46edc7a8dde757f45fc4370b6a2562ec583

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.877-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.877-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1fbb2a6811b73e14800cc8f557b33eeef9b420acdf0b99b995c447a33ca1af4
MD5 7611cd4ccf2f851800cb03f890666740
BLAKE2b-256 5927b9741316bb5953c8402815a94b6d8419142cf5fe7fe55921999edd29186c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8df7abb34a0e8d935d924c991a8e5eb4b6ff9459be5b556d81f466496d9bfb6
MD5 698e4a28ab8f302d8c911898cc77a117
BLAKE2b-256 6823a1b3a57aec4f19627691b5d2c865b6be8915b41ca72bdd3e3e8c63011fcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c60af678e4539eaae809545a8c104b158b95dc3c6b9faf2a74b99593c5993a33
MD5 c992b4c0e2463a7fe784a4ccc968cfb5
BLAKE2b-256 5acd07276d0bc0afec5735354230182cf963344acfab920fc29e129e4e0acbd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.877-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.877-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5d2333de0b66b10781f82e53971b924a2eb691476c5cf862b5aa10dee13562d2
MD5 de907f3d6047efad93234ad012b576f8
BLAKE2b-256 dde07707c046c8f7ed06634cef3f6e5315108b1112f5d0ac771875d15b135046

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.877-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.877-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88fadf43895908f659fcc939157dc2dd33dcd2ecb39b78e294872c1b210096a9
MD5 23a515a392342bc94931c73093a40e8f
BLAKE2b-256 d12f987330e748ca4f68233d61a1869fbe55e754c4b122a1cfd0412c4ea0cfd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 282ea2de744f8087b167f9c739971b35fbfaebd0f930de18838a32c12c55eb86
MD5 8a43353c0040161436f21b11c57e4677
BLAKE2b-256 13f17d73600c5fbaab8422a58235db48ff0c41c51b6fd569ec3852942fae9fdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5431ad8ad672ba0e4420a905b3e6949761a29b78177dfc187e2285ec5b02027f
MD5 2fe3d921d70ecc4fb6129925f70306f1
BLAKE2b-256 a59bf5ad9fe51ea84fe1bf527f4d86d9d9e80171094939979d89456ae3015fce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.877-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.877-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 624eafbacff241b92e12ed3170689f24c7d772bc2bc87090e480fa3cd8805b9a
MD5 102d58e927fc0896f401ca710a53865a
BLAKE2b-256 bd88b3edb98b8740ead5b224ad6a18cb5ef7cd4dca5978bf24f3f4e0d5bdedd1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.877-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.877-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8bc412dc8a6deeb234977fd7e9266f0c6e52798abe2afd1017135696e0608f5
MD5 d22cf7e2988921c32ae2396dfa5964df
BLAKE2b-256 79e3dd4fa9abafc34557121298d9516251dbc6f3eec3561e4fbd427ea45ed4b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f5614b95b1b9f4755ae3907bba63e6857e1a4cecd8caca33d1b3143d498f8b0
MD5 190f0f17a4eee2fa5c576b5617d36b68
BLAKE2b-256 f7d0674cff00d3435ac80b1aa1b15d2cf0dd17c1c0d73aa69ef7f4a7c16430a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.877-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.877-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d42cab8b0444ca9999893404937bb61c67cb7d66a6f8dc096bd63120041732fe
MD5 4fa5ae7bcf3f9b009fe133a8a5e929e6
BLAKE2b-256 2f770b3816a9ea61df4f3de3ae1c301fab1fe418c257ff878f6d26f040d7aed7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.877-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.877-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0a2528e6380f09dc5b4ebfc6c1884da88412761594e71be8b3a3acfa3730dcf9
MD5 856ff3c7c3b04db70ef3fef56d404c9b
BLAKE2b-256 640d4cfedd92eca13b426722c7eebde01a14c5fbb5e4d19da465f25f03f0a263

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.877-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.877-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8caaa0fee128cbbf0aac9e9e2cd0e39e4fa985398ab7b5827d4455b2b01a4163
MD5 e4cd3dab97922c8b47b3403c35b13a16
BLAKE2b-256 0353efd0ce6be20535df50a27b257a396991fa6ed212f3da005d177480967f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43c8c418c9f0559a27806e83cbe8d4e881890b743c8ba81dfdf40edd8b58d565
MD5 cad202206969abf07cfce9be34240ca8
BLAKE2b-256 39a117b4ba8daf61e67973657f9517270b39426b63307732e932c827e3e461e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.877-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.877-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cf2dc4f7ebe17cb84cc995d01d2a1576e26db26a38970001286ffee905d5502b
MD5 6d59722d05cd79e4b8e4e61ebb13af3e
BLAKE2b-256 07d8d6043bc725d6ad17820258f35038c699ddb4de1580ff33d122a2191bfcbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.877-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.877-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1fb15889eeb5749208509a0422af16f68836122254059612ed443794e6dae81b
MD5 65fa689b0290467a0f155fbecde6786a
BLAKE2b-256 8409e00a4d496558dc18742fa0d3157c58199c10ba6ee061dd55bb668b0983e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.877-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.877-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cad60715d9992190a411c01eac7e1f6324c0e7e381e363eaefca7450ec410ae
MD5 880bac1d2d3d502aa75bf1169b2a579a
BLAKE2b-256 5d0512fdaa675300a9cbe4e551766d243e85fb121d9e4408ef8722eced6ce047

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.877-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d16daa83727098138091f89c46a2865a762c80684871020d14be788c32651ffd
MD5 9926b3cbc139140ad3250a427af7aca4
BLAKE2b-256 b260e92c889681da10cb2683f48e9e5ca9d2647459d3f63f77940cfc1ebafcbd

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