Giter VIP home page Giter VIP logo

marked-with-table-functions's Introduction

Marked with table functions

The repository is based on Marked repository. But here are the table functions added.

Usage

Download the project and copy the marked.min.js file to the server (or just download this one file) and use the example under this text.

<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
</head>
<body>
  <div id="content"></div>
  <script src="marked.min.js"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked.parse('# Marked in the browser\n\nRendered by **marked**.');
  </script>
</body>
</html>

Functions

All functions work only in tables and are writen between == signs. Example: ==SUM(B1-B6)==.

Example function

Input:

# Finding Rational Zeroes

Polinom function: f(x) = 4x² + 4x - 4

| Designation  | Value                      |
| :----------: | :------------------------: |
| a [x²]       | 4                          |
| b [x]        | 4                          |
| c            | -4                         |
| Discriminant | ==(b2^2-4*b1*b3)==         |
| x1           | ==(0-b2-b4^(1/2))/(2*b1)== |
| x2           | ==(0-b2+b4^(1/2))/(2*b1)== |

Output:

Designation Value
a [x²] 4
b [x] 4
c -4
Discriminant 80
x1 -1.61803
x2 0.61803

Math operators

Operator Usage Example Result
+ addition ==15+3== 18
- subtraction ==15-3== 12
* multiplication ==15*3== 45
/ division ==15*3== 5
^ exponential ==15^3== 3375

You can calculate roots with exponents. Example: if you want to calculate the square root of 16, you can use ==16^(1/2)== instead.

Math functions

Operator Usage Example
sum(...) summary ==sum(B1-B3)==
avg(...) average ==avg(B1-B3)==
min(...) minimum ==min(B1-B3)==
max(...) maximum ==max(B1-B3)==

Conditional statement

Command structure:

==IF(CONDITION, COMMANDS_IF_STATEMENT_IS_TRUE, COMMANDS_IF_STATEMENT_IS_FALSE)==

Examples:

==if(5>3, "Five is greater than three.", "Five isn't greater then three")==

marked-with-table-functions's People

Contributors

aprotim avatar barrywoolgar avatar benmccann avatar bzwheeler avatar calculuschild avatar chjj avatar chriswren avatar davisjam avatar dependabot[bot] avatar feder1co5oave avatar flouc001 avatar joshbruce avatar jun-sheaf avatar kitsonk avatar koczkatamas avatar kostyatretyak avatar lepture avatar martii avatar matt- avatar mccraveiro avatar mithgol avatar papandreou avatar paulroub avatar scrum avatar semantic-release-bot avatar styfle avatar trott avatar uzitech avatar vsemozhetbyt avatar x13machine avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.