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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.595-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.595-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.595-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ced076bf732ba336040faafd9ff2d95cbfff71180d0be017880c29bcd7d15e26
MD5 d9943c385b1e390eda70f92a95d9a3d6
BLAKE2b-256 a4e7ff98e93623819e61de13e50b10f4cdc03e0e7d4f08316d1c998ea481d1a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.595-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.595-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e4157c5bfb38a891d691e5c8adff923c33180e690d2cc73d8e99fcc85342af92
MD5 01e8d2173e1d58af1a849bcfc1878a0c
BLAKE2b-256 0ce1fd2a13d1dc81314f01407e7da0dcfa88ff19f16dc50921a7713ee79aa032

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.595-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.595-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 003280d8f7e0ada6fb2fe765a71c4d0fa4504b9781e28fadaccea7196b487e37
MD5 35fc82c03fa1be437e1c740181e8e4a2
BLAKE2b-256 346da80122c731be1faa45dfa8b3b7ff1e9d04dff8a4ee753e80a980217a0038

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c067570674a45c41016d6dbdaf02b6d09574e232a59bed5c10237ed9c5e34fa6
MD5 bc0470db5f7924ee43ccc3c16902419f
BLAKE2b-256 e7aef9580dcace2dbf400ce4786a5d84975b9382f7e2db0ba2425b53cd7c67a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8bbca780b14879a0137a9a671ae586f45e046b4fd918fbeed74c11e05e1bd2b6
MD5 223d776ae6806af7e9f44dbe694acc1b
BLAKE2b-256 2c3ce824b14f8bf3890d62fd88863dce8ee4c81cc806004270fcdcf27dcaa610

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.595-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.595-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e94cbc9895e3f25bd33ff90f62a2285d0bd7d3318edbf53f8b5e08c023bea96c
MD5 68d76854ca6768a47c6197570f2aba6a
BLAKE2b-256 3b74d16b5339cc900f15fab0c3ce89c0e40617217156784bb587c3f13a33e846

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.595-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.595-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af65d7e8b5800dfd4f7034d40953fe92f4979430867720c67e24193f17b7a06a
MD5 2724f302b1f745d007f9e05afcdd1d7e
BLAKE2b-256 cbd87f5cbdf73310112046c4677d745256ab155d30353a207b4bd09c7977c0a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9dc14a6643297dc91cc46f8fa2d19f493fc687a9698213a55f06fd1f290a74da
MD5 e12ac44a12bb7d72b6de5a5115a65eb0
BLAKE2b-256 0d29cfd305b8597a18102e6879eb684bdcb985e75615e96318c73daec323a839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ad5dce5fc2fcee369c89c9aec63f853ec8af2fc0db3f64a45facc7e71450deb3
MD5 c59fcce2d3eeca3f152091c37c493867
BLAKE2b-256 b3db5be5e1ec19be211b3bc70ac8611d5ae088a1189a9a15bd19d86df603900e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.595-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.595-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 029d5be99e04a7237933e359e622147b23dd2b95dc7d5c527d97dd2fc600d5a8
MD5 18367946dcfc287ef67348232f331297
BLAKE2b-256 3fc30eb44c0130090da0cd672695c2a270679928eb9a88c64b82293c7c10dd09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.595-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.595-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 622a15c085deec984fa39c85a75af7f42049fca9ba1207c0f4d3376175cc81f6
MD5 2369eae58336d72f18c104177c7be79d
BLAKE2b-256 f8906d96bd6117edc8266bafd68858ba9fb389c53778a5e596272517e994f45b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 331819e915f01c63a325de238e8fc57d6a77b2b291bab49e6b0ef654df12f31e
MD5 ccb76bc2c96858390f91b97cd4377821
BLAKE2b-256 55ad398da634b411fe3f3005b918d4152f3a6d35dc644419a9cdb5f77a201f85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.595-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.595-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c57d3c09111e87c68edcf7b6122ecb0baddaf432926276b18db7fb640110dfa5
MD5 e8c4314d2f215050b46ea22effaa6037
BLAKE2b-256 dbe524aad859bd8e44624b1261d1658d070b5b92f51bd3e5335b799f65fa0881

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.595-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.595-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f12d567557a1d374e3ef17ec0b0c12f1c2ae6dfe9d727f9d65dc73a62cb85a09
MD5 6888d5bc1de24b6e3ec8141d1a33269f
BLAKE2b-256 d567d937a79ab85db5a765904bf69c5b7ef83a88046e4c2bc70837a908172552

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.595-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.595-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2f593138763b0ab217484a66c16a18de0505b84776254e8fc50a9cda3521570
MD5 3e05374ef2093d4133a9d2c594ead2c2
BLAKE2b-256 82d85a6014ff6f878018ce52a22f7cf8f1e2c4f7527312c8e46fac36901b0406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3c31f2e6a46ab3a4e8de062de87e212aaed55ea6a63ee8ef70ef74891b5629a
MD5 0d555fc67e972255ebda32af5d24a38e
BLAKE2b-256 423fcc166c613e3323d6f5ef53d25098322868597d911ac84bea00a20833999c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.595-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.595-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b8f11c3233d9f907eab32b9f2f8a65c44340f29395e9b92a4af0761b3b121031
MD5 e9fdc0aac4e93ba2a8756d17a3775a58
BLAKE2b-256 5daa855d3fd7c72c98f4bea3454896ee7fc62c121afa4f1b92701362dde4d23d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.595-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.595-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4c2d040c7834b9a4e23d3220c8aa1df0be76e52ec4c1a5be3c3ff4b900075b69
MD5 deabea9d3ae9fe6f225938bbe0d30c49
BLAKE2b-256 1769266b3c2e478420bb67c863637d87f96bb961f7ac0b2da8c1c95f77b555c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.595-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.595-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 739117907d897e2c8f888a9f695736ed8862533e7d9a66d16b5d1b3fda0a874a
MD5 f646d7a3e998a84223f77f5d9d512ab2
BLAKE2b-256 84f6422f3bbb786dd244cce638b50fd49aa9c5795f25ec391c775cb7b178042d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.595-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 999ec9504c631288a32505727ff10c311779bea7b4453562a679c565de4b42fe
MD5 3ac0214a5443257923c531a17043c8c2
BLAKE2b-256 d6c685c09c3ffdc13c9c4f8bec392436dbb14fa40f8a25a2407c75fb69ae05f2

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