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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.473-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.473-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.473-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c1328e23435266c404d7fd2c9d5de3ae982bf252df2e0b543eacdd3a261ce140
MD5 96ba8bd7b0a6ceb8026d6b92bf4d4283
BLAKE2b-256 7916eaa693b23365b766c278c133e764e3aab9320b64c0ef78b9cb00aa4d43e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.473-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.473-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 419f58ae0ff8bfdd281d30d79b2b3b31c3fdaec75499a70473e385a46e1b6761
MD5 8e2cd32c65853108716fceca252b20d9
BLAKE2b-256 8b1f3eae8dc95bf24caa1b9ec75671c3cc80c4ce853b6063723a8f3cfef7a75f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.473-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.473-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39643c530ca547b0f6eaa323559ca9a1a364c88bc50c1f213b7e727cb4899c03
MD5 9121a87634a1c862e47123d9385463bb
BLAKE2b-256 510c854de635e406ab3e187e99b4263db1b6d1b9670fbf1f59c824c4bff37298

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 443a595ff1d6631e5690997d55d97c30ebd42c9be6bb375c33b9f1d4c9f66c00
MD5 7d41c32dddf8196b66a5da5804994724
BLAKE2b-256 22d0e4626ff0152afffec985375f62512f98d1e088ce7b40555112d9817fd67d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 00f23cb48832a5e6ed74c4d72169886b6a991d3b683531d60b062420185602f3
MD5 60f02b8ab911fb193ae92b9784b110a2
BLAKE2b-256 f3d20064eef4fb9c58a9a800a7bb527e0c073348a982fc74437342b9a8ddd298

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.473-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.473-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 be7d59cd9cdb9c5d35bd8ad987cef07802af3a58ac20fc67c1a5e9776a393a04
MD5 09dc00a3206c20657a10ac69f6086984
BLAKE2b-256 8007a442fb806236e80b814516af9151112712780ebb6f2bfa50e2ef625196c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.473-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.473-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91af36d6191ead73000a0ce1376a0696299a5bdb88e94c2cb324b43ed72f39de
MD5 9d42cef82d98a7026791fccf519528e1
BLAKE2b-256 24badbf75d53b9dcbc6541985c15b0d039814633280d88e4fb4a54dfcda1c354

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb8f99b376b966ed945a0caf06c1a3067d78ad2dbba052b03fc2fdfebe775b55
MD5 9a05f38a9175a3711b1165ea4625042c
BLAKE2b-256 d328b776c962d72c11c6bae88100df1436e0373fd409895b7b6178d9f913813f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 07c9c53e1da72b452b4b122e509b96392fc30f063f6bf5a2d844cc9d8fe33ed7
MD5 3134f8225151dfb8949bc0bd36757d0b
BLAKE2b-256 a5da481bbaf7ab1e62902cf064a631e22316f4c7aa02ecc4a39d925bbecad1c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.473-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.473-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 71ed898f6242a850a3bade740a097849d9de515f46526cf78046ad95aad5e295
MD5 90ff363a44788145d518ffd96a89ffa3
BLAKE2b-256 16339b744c0c13df3467855b203b87bb03126c5ddf81594ce1d172abef3320cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.473-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.473-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 27bd96937d5d22c24a86e0396828cc0c5557e0b8d960164aae33d9ff535b624c
MD5 7c4295e5d62a2db4b69b8fb593c7a227
BLAKE2b-256 85d12004cf35f2bc47e69dc64113b4afa459dfa6ef2792cba396b7c169f8f8e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd718804acab0627ce8060d8272a8033eab24097ef62528fb14c2a73239015c4
MD5 0db9375c3182e89e60caae24ef47c882
BLAKE2b-256 db4b4893ca555119d53eb1e8f5fdb560dc86b91f8f213249098affa6318c5ce8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.473-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.473-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fb3848f51c56d91ea9b72a4512805a11eb2975568e96f8876197e63bba3d752f
MD5 95555749de906c0a1d6b11ac05e723ae
BLAKE2b-256 62c190706fb724d2b4d7a96b163f5b0000c5883be32eae2fdd9a95cc664fb241

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.473-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.473-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 910e8c3f4d120fc5ebb5fd8e3fb790a1d4b6818f065674f939d6ef3b5599dac8
MD5 531deeb9f8ebdbc31579a26c169997f9
BLAKE2b-256 c372b563e7720eeed5a89c0f062678109220d42a9451321edc474e045bd3137f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.473-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.473-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c6a611b8f6e65e393bf41a6cc82d411ccd9c2a6a9ae52bca91c4b6451b61d67
MD5 5d39b63636628fd4bf8b7a02604279d9
BLAKE2b-256 b4c875850491eeb34414a384e37a2f33b5dbafab4e5cac2b0bb470961e872232

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6673eafa40816c28eb205641626841e074c2770880cb20d13c617f9278b6febe
MD5 676f5cbcc20ece82e038e961a25137fc
BLAKE2b-256 39a82e5b0703a3c8f1c7211783712410ffd690e35c43da537cc445abdc831c5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.473-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.473-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6497ec3e6a060b997fcc2311065d5606466053e52c1b14d22dbb0b23e3c2262b
MD5 4cb9ce63b19df9df42ee9bbf41e815fa
BLAKE2b-256 28b8d9f1df9daa610cd42140b15b88d2a4897db614de17ee4d605b37fe041970

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.473-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.473-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e84c289bcd89f13e86895ce3a4e9fc6bc60ee518881357b1bb96b908bb6b1c2b
MD5 4db52b9eeabba679e5f293b1da5a75bf
BLAKE2b-256 f74caacc3d5ebf8b5176edd70eac951f37d11bb4f358a983b93a2d6fa21f7550

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.473-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.473-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56437ae302f13f38d66c0294d850c637aebc513c1b4843f9cd2a478176304737
MD5 1859198fba3018cfe1abb28de7a78361
BLAKE2b-256 e4e0ec286bc49f39fedccc994ef5d8b471c12d92f01fdade03f1d2b7edabd4d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.473-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 099454ece332f36802cbe393125dc640458081f304ab4bcb50edefb881c2e4a7
MD5 b4bf3e619759ffc7ce4cc513caa8b6d4
BLAKE2b-256 cd7ac23456e8e7935c5199804d4a8f760103ae4a4a799f74a255aa4e67a25e2e

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