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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.436-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.436-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.436-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b18c7740c7b5e3cd8dd63ccdea4c3e713494f061ca08d6e859c249cd7c7cefe6
MD5 932a52e0c420feb6381a4c4862702cdc
BLAKE2b-256 a8293cd615709465a8aaca6c986fe682e08f545c561a5d31731db0023a5329e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.436-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.436-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 aae5fce49b41b1aac5665b83154701ccd033799b8679fa193dfeb06cd8c14346
MD5 9e5d11479f56c572665a25d89b2a5180
BLAKE2b-256 738f591689863d51b99580895560636e41adc7acbef284d35b81448ceb7bc3f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.436-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.436-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d14f783714e54c0bc909dc71febbccb45dd49ed1a3f3246be65cf08d4cda6885
MD5 afb93e5e2f85c9d56ed174b349b8d037
BLAKE2b-256 1827990ddec7fd28ebb69596fadf4ac7e70e559ccaa0f1f3fdf0a08185ee2dbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 126e74cb973eb8e9cb7dfe71ceb3cbdd21e8f8b29dc1ef0afd28a2f0de922a69
MD5 4b7cd50acfc11261264e1ec4e72c0c89
BLAKE2b-256 f7d09049fc6beeecc91b960af94cfe7a815b1a64b950d9c88e9c835c05241553

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b6e4d768499be74591c784f2337f993e6a25f27213499db9b69a838f48edad1
MD5 a074ecbc9dbfd86f6b96e493b284f94c
BLAKE2b-256 b981186a86172e390d4e5c4f3f1998636640dfc0fa29b37643d3c0c859b1ea0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.436-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.436-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 825ef7e2aae80e8529c13d7b5132097f3f6adb70996a29ead0504f5060c87263
MD5 cb8f38bb7b3ff8ab2500f396753650f3
BLAKE2b-256 67c14136c03bb412d7cb0ba971b872a16f02e4bcc2e5c2505121db4fad0d30f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.436-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.436-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3ff85e0ef963d0b6e0f069a5b5ac035f6e8ef6cca6e17f191b71e6df0c1c410
MD5 496d2836eceb3035c6f4c84a7c813fa4
BLAKE2b-256 0000247b48644093acb0bf4b25ed2e0c2638590365ed57e943d45d3d4185117f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6536637779cbe7b6e0c197297b0d476707a50073650c459eb53a4a5fa89ff050
MD5 92990a4b254cf981c83a78542e86f9b3
BLAKE2b-256 cf334e8224a372c77b8adb8ecd4971ccc5757846d8f7264ca41de50fb78d2eef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a8753e6c451b014ee49ef43b0ff193d9afd92eaff1eeec8caffd3af1a0768a33
MD5 58e3999969f265c90f721d74709a44a1
BLAKE2b-256 e31061f2a51abb7caf1047fc236e8b7509135755398558152b5e3082f715c9d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.436-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.436-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 637963afd2ea4a54c7ae9cef6c55332c2923db0824144805735fb825c0874870
MD5 fc2e6b083a6e2d18be676a32eae2878b
BLAKE2b-256 e7fdd759a81b4101b4777dfdad036ac721641f8276131c613c65eca1bda26b6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.436-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.436-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aaa0702e15b91202e4aac7cd89435ffbd67bfcc88dfce1bb4f6d3e93c8b73e34
MD5 8211b4d4cdd0e4053f88f98a68e30887
BLAKE2b-256 486f175c2cac89048727f09d261262113423922a0f48b31cbabc5b733c9de9b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12e55959a60d86f857e341d6d5cdf36b5faa08cb48b320e42fca12cc760d4010
MD5 e04bbb7a67cd7bb7f9148b3838535955
BLAKE2b-256 73c96e6feed9e9fcc208344511b4979a67b7dca7f80b86eb5f0696240e45ecab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.436-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.436-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d460358faede415d0d60a15101b837bc23f5980c8a01f6c38bea3533186d49d9
MD5 49e74c142eb3c7f6f4e6975f2674b3f0
BLAKE2b-256 b569eb0c1d2600892f9d14b59afa717e2b0a9d4aee5f2c83530f941152f08dff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.436-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.436-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6f79f8aa2473059b47c1b104629a6417665e16b2f1e0fea5d97e05a9ed204019
MD5 9f856de6bddd5021bdbf78207f1681a9
BLAKE2b-256 8774e89bd96d9aa43a4cdf86ee91a572aef2e21a9a26751b7225385366e191d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.436-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.436-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d47f6ea13eb9d0a5b70ba18d1ee9afd0690bc677250933adfc35e62e6a8912e
MD5 f6ab84ac000ce0861fcd7960d184e38e
BLAKE2b-256 f7cfb38cd10e4ab45b16bf543b799a97de4f2072f3d4b13442574345e60094af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb03323e9b33dbc2ac3725fb6faaa47496d86dba093b181397cc6132c4523f06
MD5 28113c63c2e1b9df4ba0b23b869b7573
BLAKE2b-256 31326e3a25f2b17b1464cc7025c74cabe7f1df8b1ca1533e6bb22ce5105c74e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.436-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.436-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 53981aea2f9e159ff635314102cc948ce8458de5b6916636a6c0613990925033
MD5 80dccd210b7d1563464b1e4138db4a8f
BLAKE2b-256 5f15e75aba80dfd613ef5402b891d9580d929112535dfc7a49fd097b86624d18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.436-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.436-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2013def0046ff71ae92272ecca6613f0969d08be9171c1c0f31846723ca9b538
MD5 a993b9382eb334558a925d625feafc4d
BLAKE2b-256 fac8a2dde8833b7cd771c82c08743cfcaea4a06ce4e0e4b561256a9e5bc95194

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.436-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.436-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2a6d8562377bfef06982b075b1b760e36d599253c8410eff9d0743ef562c8b3
MD5 5477a5d6fdfb4bef16eb746e8944590c
BLAKE2b-256 d51ce631027a976cd511c8c549e5bf88402099cf2c442d993ce1b9b0f9eb04d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.436-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eec0df3b095b8ad760c7ceb5406238bc13c6058e9b28201497bb0388b8fe99dc
MD5 fdd5b925844f70f99f4cb819d9713657
BLAKE2b-256 0ad2ba94dcb664e73558797ec3a05289786f4e215946c7dfdfd9ff894f413182

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