1. Introduction
    1. What is Chalk, what it is not
    2. What Chalk tries to fix
      1. Open the calculator
      2. Typing an expression
      3. Get an exact result when possible
      4. If no exact result is possible, display only what is exact
      5. Give access to standard math
      6. Much more…
  2. Calculator
    1. What is different with Chalk ?
    2. Computation modes
    3. Computation flags
    4. Numbers
      1. Digits
      2. Integer
      3. Fraction
      4. Reals, uncertainty and intervals
      5. Scientific notation
      6. Bases
    5. Complex numbers and quaternions
    6. Boolean
    7. Matrices
    8. Lists
    9. Subscripts and ranges
    10. Strings
    11. Raw values
    12. External values
    13. Variables
      1. Assignation
      2. Dynamic variables
    14. Constants
    15. Operators
      1. Standard operators
      2. Convenient operators
    16. Functions
      1. Standard functions
      2. User-defined functions
    17. Prime numbers
    18. If...Then...Else
    19. Infix and Reverse Polish Notation (RPN)
    20. Chalk limits
    21. Presentation
    22. Annotations
  3. Grapher
    1. What is different with Chalk ?
    2. Element size
    3. NaN : undefined values
    4. Curves
    5. Predicates
    6. Variables
  4. Bits and digits manipulator
    1. What is different with Chalk ?
    2. Navigation and presentation
    3. Conversion and interpretation
    4. Operations
    5. Digits
  5. Equations generator
    1. What is the equations generator ?
  6. History

Chalk

Computations done right.

Introduction

What is Chalk, what it is not

Chalk is a calculator. Great. And so ? Don't we already have a billion calculator softwares ? Yes, we do. (And at this point you think : what stupid argument will be advanced this time to justify a new one ? Does it connect to the cloud ? Does it use vocal recognition ? Does it share the computations on Facebook ? What super-sexy feature (that I will never use) *had* to be developed in 2017 ?)
Well... none of them, of course. Simply : in my opinion, almost all of those existing calculators just fail at being good.
Really, they suck.
Now, up to me to explain why.
I think that computers have always been the worst calculators, less handy than any real "desktop" calculator. The first really good calculator I ever had was a TI-92, and (provocation), in some sense, no computer calculator application can compete.

The TI-92 was what I call a good calculator

When I say that computers cannot compete, do not misunderstand. I you use Matlab, Octave, Scilab, Maple, Wolfram alpha… you get impressive results. But some of those software are expensive, and they are far from being "light" tools. The problem is that sometimes, even for basic computations, you need them just because nothing else will do the job. And that's a shame.

What I mean is that computers are powerful, incredibly powerful. And even if a calculator should be in the basic toolbox, it does not mean that the calculator itself should be basic. It must still be a light, handy tool, but able to exploit the computer potential. A very basic example : if you ever have to make an integer multiplication with very large numbers (more than 64 bits), what do you do ? How much time do you spend looking for a decent application that can handle it without overflowing ? Why can't the OS standard calculator do that ? Seriously, it's not that difficult !

To summarize, Chalk tries to fix all the points that I think are failures in standard calculators (and there are a lot of them, see the list below).
I think that what you used to think were normal limitations in basic calculators, are irrelevant nowadays.
Computers are not that limited ! Calculators must be improved. Chalk is a try to show that it is possible.

But Chalk is designed to be a small tool anyway, it is not Matlab. It must be possible to start and discard it like a widget. Neither is Chalk a number crusher. If you want to perform expensive computations, look at another software. Chalk is "slow". Don't worry, you won't notice lags when computing formulas ! But since it is designed for precision and arbitrary large computations, it is not highly efficient.

What Chalk tries to fix

Here is a non-comprehensive list of what Chalk tries to do right. This is just a quick preview, more details will be given along the documentation.

Do not forget that I want to compare Chalk to what you have in the basic MacOS toolbox, that is to say Calculator and Grapher. For some features, it seems pedantic, and Chalk is not that great. But if Chalk could do it, Calculator could do it too. But it does not. And you can blame it.

Open the calculator

Calculator : Different interfaces, and a single window. You can't even open two calculators. Notice that a programmer is not allowed to use a decimal point.

Chalk : Open as many windows as you want. You can have an advanced interface, just display it when needed, you won't have to switch windows.

 

Typing an expression

Let's say you have to compute (12+34)/(56+78).

Calculator : Where do I type my full expression ? Is it a joke ? I use a computer, with a keyboard and a large screen, why do you mimic the poor interface of minimalist calculators ?

Chalk : Here in Chalk you just type it. Notice that I made a mistake. Oh, I can see it and correct it ! Incredible !

 

Calculator : I hope I didn't make a mistake while typing…

Chalk : Oh, my expression is visible in a beautiful fraction ! And we are only in 2017 !

 

Get an exact result when possible

You can find it strange to claim the Chalk is better because it gives exact results. Yet again, do not misunderstand. Some computations cannot give exact results. But Chalk will allow to keep exact (integer) computations as long as you do not need an estimation.
Here are some examples of what Chalk computes right (not like Calculator).

Calculator

Chalk

 

Please note that we only mentioned integer computations. Limited precision on floats is also managed cleverly in section Reals, uncertainty and intervals.

If no exact result is possible, display only what is exact

Some computations just cannot give exact results with finite-precision numbers. There will always be some rounding.
This is not the problem. The problem is when the calculator gives you wrong numbers instead of limiting the result to what is true.

Calculator

Chalk

With a 53-bits significand precision (which is equivalent to a standard 64-bits double);
With a 24-bits significand precision (which is equivalent to a standard 32-bits double);
And of course, Chalk can use a larger precision.

 

Chalk can even show you where the inexact computations occured.

 

Chalk is VERY cautious about floating numbers and always answers with true digits. This is possible by using computations with uncertainty intervals (see section Reals, uncertainty and intervals).

Give access to standard math

When you are a scientist, you often need to perform some computations with a little more math

And guess what ? Chalk implements all of them. And more.

Much more…

For convenience, Chalk also manages list of numbers to perform the same computation on different arguments. It can also store values into variables for reuse, with dynamic variable update if there are dependencies. You can even rely on files to store large input or outputs.

And we are only talking about the Compute module of Chalk, there is also a grapher and a bit manipulator.

Calculator

What is different with Chalk ?

Apart from all the convenient functions that a tool like Chalk can implement, the real point to look at is the computation engine. Arbitrary large integers of arbitrary precise floating numbers are just a technical detail.
The only feature that is really interesting is that Chalk considers real numbers not like a single value, but like intervals, with a lower and an upper bound. This represents the uncertainty inherent to a floating number encoded with a finite number of bits. And since all implemented computations are interval-aware, the result is an interval, that evolved with the uncertainty of all the floating computations. That's how Chalk can display only true digits : they are the ones that are common to the lower and the upper bound of the result.

Chalk can tell you the underlying uncertainty interval.

 

And for practical purpose, since exact computations with uncertainty is not always what you want, Chalk provides three computation modes.

Computation modes

Chalk has three computation modes that serve different purposes.

The main "compute" button gives a quick access to all those modes by pressing alt (⌥) or shift (⇧).

Please note that for approximation modes, when some numerical events occurs (like rounding, overflow, underflow…), a flag is raised and reported with the result.

Computation flags

A major feature of Chalk is that when a computation cannot be exact, a flag is raised and reported to the user. Different type of flags can be encountered, and multiple ones can be reported together :

When displaying the text form of the input, you can also use the mouse cursor to see which part of the computation raised the flags.

Numbers

A number in Chalk can take different forms. Here are the different considerations that you should be aware of.

Digits

Chalk supports different bases, so a sequence of digits defining a number may contain various alpha-numeric characters.

Because of the ability of Chalk to optionally group digits for more friendly display, it should also accept spaces between digits on input, to let copy/paste work from output to input even in this case. However, this would not work with Reverse Polish notation. As a compromise, the unbreakable-space character can be used (⌥+<space>). With classical infix notation, regular and unbreakable spaces can be used inside a number ; with Reverse Polish Notation, unbreakable spaces are allowed inside a number, but a regular space will delimit a new number. On output, when grouping digits, Chalk always use an unbreakable space.

Integers

An integer is the simplest kind of number. It is just a sequence of digits that might be negative. The digits go from 0 to 9 for decimal numbers, but other bases are addressed as well (see Bases).

Integers in Chalk can have a very large number of bits. The maximum value is set in the preferences as "Integer compute bits". Usual applications handle integers with 64 bits, coding numbers up to 264. Chalk has a theroretical upper limit of 264 bits, coding numbers up to 2264, but you will run out of memory far before reaching such a value.

When Chalk computes in "exact" mode and encounters integer overflow regarding the current limit, it stops with an error. In "estimation" mode, in converts the integer to a float value and raise the "inexact" flag.

When Chalk computes in "exact" mode and must perform a non-integer operations, it tries to use a fraction if possible, or stops with an error otherwise. In "estimation" mode, in converts the integer to a float value and raise the "inexact" flag.

Fractions

Fractions are just stored as two integers. They are interesting to keep exact results as long as possible when working with integers and divisions.

Suprisingly, in the Preferences, you can set a bit limit for the denominator, different from the standard integer bits limit. This is useful to prevent chalk from converting decimal input (like 1.234) to fractions when it would requires a very large denominator. In that case, an "approximation" is more interesting.

Reals, uncertainty and intervals

Some real numbers can be stored with an exact bit representation, if they are a finite sum of power of two components, where the power can be negative and does not exceed the current bits limit. Such numbers are stored with their exact representation.

A real number that does not have such an exact bit representation, is stored as an interval, with a lower and an upper bound. This is a way to cope with the uncertainty of numerical computations.

A third value, the "best estimation", is also stored. This value is obviously within the interval bounds. This is the preferred value to display if the user does not want to see the uncertainty.

Each operation in Chalk is interval-aware and updates the bounds and the best estimation, so that the final result holds all the cumulated uncertainty of the numerical computations.

Such values using intervals are created by Chalk when needed (when a computation cannot be exact), but can also be created using an interval syntax ("[…;…]"), or an uncertainty syntax ("x ± d or x +/- d").

Finally, please note that the interval bounds use the exact same precision as defined for real numbers in the preferences. But for the sake of simplicity, the uncertainty is always displayed with a single significand digit. For instance, 1±0,071 is displayed as 1…±7e-2.

To be overly conservative, it could have been written 1…±8e-2, that is to say that the significand digit of uncertainty could be "rounded to upper" rather than "rounded to nearest". But this would make uncertainties look artificially large.

The uncertainty "d" can even be expressed as % (per cent), ‰ (per thousand), ‱ (per ten thousand) or ppm (per million), like x±5%.

Scientific notation

The standard notation 1.23e45 is a standard shortcut to mean 1.234*1045

In C language family, it is less known that 1.23p45 is a standard shortcut to mean 1.234*245, because in fact, it only works for hexadecimal literal, that is to say some number like 0x1.23p45. Chalk supports the p exponent for every base.

In both case, a problem occurs if e and p are valid digits in the current base, that's why p was introduced for hexadecimal literals in C. Chalk propose a disambiguification by adding a # before the exponent symbol. 0x1e2 will be interpreted as the value 0x1e2 (482 in decimal), while 0x1#e2 will be interpreted as 0x1*102, that is to say 0x6A (100 in decimal).

Bases

Chalk can handle non-decimal bases. It means that :

To help selecting a base, Chalk provides a way to define suffixes and prefixes identifying a base. For instance, "0x" can be used as an hexadecimal prefix, and "h" as an hexadecimal suffix. Both can be used at the same time. Thus, "0xA", "Ah" and "0xAh" represent the decimal value 10. It is up to the user to avoid using forbidden characters in the prefixes/suffixes, like a digit used by the base itself.

The preferences are used to defined base prefixes and suffixes.

 

On output, the right panel of Chalk provides a control to set the base.

The input using base 10 is displayed using base 2.

 

Complex numbers and quaternions

Chalk support complex numbers, so the symbol i is reserved. You can enter a number like 1+i.
Please note that 1+2i is invalid for many reasons, you should use the multiply operator as 1+2*i.

 

Complex numbers are just a particular case of quaternions. So, in reality, Chalk supports quaternions, with i, j and k.

 

Please note that i, j and k are obviously reserved symbols ; nevertheless they can be used as constants.

For quaternions, the division is possible, but the notation p/q is ambiguous and is provided only for convenience. In Chalk, q/r is computed as q*r-1, not as r-1*q

Boolean

You may be familiar with boolean operations that only take two values : true or false. Here again, Chalk is somewhat different. It declares instead 5 "boolean" values : no, unlikely, maybe, certainly, yes. true and false can still be used instead of yes and no.

You are right, it is quite wrong to keep calling it "boolean", but the terminology has been kept for simplicity.

It is no more boolean logic, just some fuzzy logic. It was introduced to deal properly with prime numbers, because when it comes to the primality test of large numbers, most efficient algorithms are probabilistic. Theoretically, when such a test returns "no", it really means "no"; but when it returns "yes", it really means "almost 100% sure", that is to say "certainly" in Chalk's vocabulary. And for the sake of completeness, "unlikely" was introduced as a the opposite of "certainly", and "maybe" means "could be true as well as false."

You will certainly only encounter yes and no when using the calculator module of Chalk, but those extra logic symbols could be useful in the future.

If they were to be represented as probabilistic values, no is 0, unlikely is ε, maybe is 12, certainly is 1-ε, yes is 1.

Even if such a conversion to a real number makes sense, Chalk only allows logic operations for those special values : "certainly*certainly" is not accepted, for instance.

Operations like AND, OR are defined as a kind of MIN and MAX, NOT is trivial, and XOR is defined as (A AND (NOT B)) OR ((NOT A) AND B).

 

Under the hood, the maybe value is also used internally by the Grapher module when displaying 2D predicates, when sub-pixel precision would be needed.

Matrices

Chalk supports matrices with a "parenthesis-only" syntax. A matrix can contain complex or quaternion values. Boolean values are also supported, but it is not very useful apart from structuring data, because it drastically restricts the operations you can perform, since no arithmetic is possible.

 

Let M and N be matrices and k a scalar number ; supported operations are :

Chalk also supplies convenient operators. Let's say you have a matrix M. The expression 1+M is mathematically invalid, but in most cases, you just want to add 1 to each element of the matrix.
With Chalk you can type 1+?M to exactly say that.

Similarly, functions like cos(), sin(), tan()… are applied to every element instead of being refused as meaningless or as infinite sums of limited development.

 

Accessing a subset of elements of a matrix is possible using Subscripts and ranges.

Lists

Prime decomposition is one of the rare function that needs to return a list of values. So, Chalk had to support lists just as a kind of storage flavour.
But the support of lists in Chalk has been enlarged to a different meaning : like a set of operands for batch operations.

When a list is used as an operand, the operation is called as many times as the number of elements in the list, and return a list of all the results.

 

Similarly to matrices, lists support convenient operators for a slighly different meaning. Here again, just add a question mark after an operator. For instance, instead of a cartesian product, the operator *? is an element-wise multiplication, that can work only if list sizes matches.

 

Accessing a subset of elements of a list is possible using Subscripts and ranges.

Subscripts and ranges

Accessing a subset of elements of matrices or lists is possible with square brackets, and zero-based indexing.

 

More than simple indexing, a range can even be defined between two bounds, with an include (...) or exclude (..<) specifier for the upper bound.

 

Finally, the joker * can be used to match a full subset.

 

Strings

Strings are supported in Chalk when a function requires such an argument, like infile and outfile.

A string is delimited by simple quotes (') or double quotes (")

 

Raw values

A Raw value in Chalk denotes the binary representation of an integer or floating value, in a format compatible with the Bit manipulator. For instance, instead of a native integer with large precision, it can be a 64-bit float in IEEE754 with 1 sign bit, 11 exponent bits, and 52 significand bits.

Most arithmetic computations are not allowed with such values, because the purpose of Chalk is not to mimic the behaviour of implicit cast and fixed-width bit arithmetic. The only supported operators/functions are bitwise manipulations:

To convert a chalk value to a raw value, the target representation must be specified:

Similarly, a raw value can be converted back to a native Chalk format.

 

External values

When dealing with large inputs and large outputs, it may be handy to deport input and output to files. Chalk supplies two functions : infile(some url) and outfile(some url) than respectively read and write to the given URLs.

A URL is specified as a string.

An input content must be a string that could have been used as regular Chalk input. It is not restricted to values, it can be expressions.

The output is a string similar to what would be visible in Chalk if no pretty print was used.

 

To write to the output, the assignation operator must be used.

Please note that input URL can be remote locations (http), but output URLs cannot be.

Please also note that URLs can be named pipes, to stream data easily.

Variables

To store results and reuse them easily, Chalk supports variables.

A variable's name cannot start by a digit, and cannot be the same as a reserved symbol like i, j or k (see quaternions).

 

The variables can be seen on the left inspector.

 

Assignation

The static assignation to a variable can be done by ":=" or "<-".
A dynamic assignation can be done by "::=" or "<<-".

The difference between static and dynamic variables is explained below.

Dynamic and static variables

Let assume you set the value 1 to a and the value a+1 to b.
Now, you update a to 2. Do you want b to be updated ?
There is no good answer, it will always depend on what you are doing with your variables.
That's why Chalk makes a difference between static and dynamic assignation.

When a variable is dynamic, it will be updated when any dependency is updated. When a variable is static, it won't. The "dynamic" property can be changed aterwards in the variable inspector.

 

Constants

Chalks defines a few constants.

Operators

Standard operators

Chalk defines the following standard operators:

Convenient operators

Convenient operators are a variation of operators designed to be handy. When dealing with matrices or lists, it is sometimes useful to apply the same operation to every element instead of performing the mathematical operation that would require the dimensions to match

Convenient operators are just regular operators postfixed with a question mark.

 

Functions

Standard functions

Alphabetical list of supported function:

Thematic list of supported function:

User-defined functions

A user can define his own functions with the assignation syntax.

Example : f(x, y) := x+y can then be used with f(1, 2).

Prime numbers

A few functions are dedicated to prime computations : isprime(), nextprime(), nthprime() and primes(). Optionaly, a specific algorithm can be used to deal with primality tests, used as a secondary argument of those functions :

If...Then...Else

The syntax IF (A) THEN (B) ELSE (C), or alternatively A ? B : C, evaluates to B if and only if A is equal to true, and evaluates to C otherwise.

Beware that Chalk has more booleans than true and false, and that obviously, certainly and maybe are not considered equal to true.

Infix and Reverse Polish Notation (RPN)

If you ever want to enter your expression using reverse polish notation, it is possible. You must set that in Chalk's preferences, as the "parse mode".

 

Chalk limits

In practice, Chalk can always be configured so that you won't be limited by the size of your numbers. In theory, there is obviously a limit, but you will certainly be limited by the RAM and the computation capacity of your computer far before reaching such a limit. Chalk is only available as a 64 bits application, so that the limits do not depend on the support architecture.

Presentation

The pretty print done by Chalk, to render maths properly, is performed thanks to MathJax.
It is possible to switch from that rendering to a string that can be copied to the clipboard, using a little button on the left of the expression.

 

Various presentation options are available in the right-side inspector panel of the calculator window, like the number of displayed digits (rounding from full available precision), output base, or digits grouping. Those options do not trigger a new computation, they serve the purpose of displaying numbers in the most user-friendly way.

Annotations

For convenience, the little triangle in the upper left of each item can reveal an annotation area to take notes about the current computations. The fact that the triangle is full or empty is a hint to know that an annotation has been filled.

 

Grapher

What is different with Chalk ?

Rendering a curve is rather easy. The problem is that it is almost always done wrong. What I mean is that a standard rendering usually samples values and draws a line by connecting the samples. Most of the time it works well and is very fast. But when things become serious, it can be very misleading.

A graph is also very difficult to render when NaN values (Not A Number) are encountered. For a given pixel range, you might not compute any value (for instance logaritm of negative values), but for more complex functions, can you be sure that there is not a smaller pixel range where it could be defined ? Once again, Chalk has not the answer, but it highlights the question, by displaying uncertainty when NaN is encountered. For convenience, this can be disabled, but it is naturally built-in.

Here is an example with Grapher. A gaussian is drawn, and we try to make the standard deviation very small.

A gaussian (with the MacOS Grapher tool)

A thinner gaussian (with the MacOS Grapher tool)

An even thinner… wait… where is my curve ? (with the MacOS Grapher tool)

 

As you can see, the sampling could not catch a value of the gaussian peak. So you see nothing.

Another example of the sampling problem is when it comes to values changing very quickly along the x-axis:

A sinus (with the MacOS Grapher tool)

An "accelerating" sinus… wait… what do I just see ? Isn't it only glitches from sampling ? (with the MacOS Grapher tool)

 

In both cases, the problem is just that when drawing a curve properly, you cannot ignore that a pixel does have a width. So, there is some uncertainty for each pixel, it does not cover a single value, but a range of values.
Since Chalk is familiar with uncertainty, it has none of these problems.
On the other hand, the performance of such a drawing is obviously far behind the usual sampling strategy. And even more surprising, the performance depends on the size of the presentation window, since every pixel will count.

An even thinner… wait… where is my curve ? (with the MacOS Grapher tool)

An even thinner gaussian in Chalk

 

An "accelerating" sinus… wait… what do I just see ? Isn't it only glitches from sampling ? (with the MacOS Grapher tool)

An "accelerating" sinus in Chalk. For convienence, a sampled curve is drawn, but it is quickly surrounded by the exploding uncertainty range, so that you know that you are looking at something fuzzy.

 

The way Chalk considers pixel width may have surprising results. Consider for instance the expression sin(x)/x. This expression is undefined for x=0, and the numerical uncertainty explodes around 0. (The fact that mathematically, uniform continuity can be applied, since lim sin(x)/x -> 1 for x -> 0, is not really useful here).
In that case, whatever the precision (53, 64, 1024, 65728982897 bits), the rendering will always be the same :

Increasing the precision (number of bits for float computation) does not help to get rid of the uncertainty near x=0. The "problem" is here the width of a pixel)

 

What will happen here is that the uncertainty will just "retreat" as you zoom in. The width of the pixel just match smaller and smaller x intervals, but the effect on uncertainty is very comparable.

scale -10…10

zoom x10 : scale -1…1

zoom x100 : scale -0.1…0.1

 

Element size

The "element size" parameter makes pixels "bigger". It has two meanings :

An very thin gaussian in Chalk, with an element size of 1.

An very thin gaussian in Chalk, with an element size of 10.

 

You may miss at first sight the little yellow dot at (2,2)

Enlarging the element size makes it difficult to miss

 

NaN : undefined values

When the function to draw is not defined everywhere, some pixels may not lead to any value, for instance logarithm of a negative input. During a computation the special values NaN (Not a Number) or infinity are raised. To draw it, the simplest (and usual) way is to just ignore it and draw nothing. This has major drawbacks:

Once again, Chalk will cannot make a better mathematical analysis, but since it works with ranges an uncertainties, it is able to draw with another color those special pixel ranges. Thus, it can draw differently what is true for sure (when all the range is valid) and what should be taken carefully (when some non regular value occurs within a pixel range).

A NaN range could have two origins : either the full range is invalid, or a subrange is invalid. Unless a mathematical analysis is done, a NaN pixel cannot guarantee that zooming deeper in the pixel won't raise tiny valid ranges.

 

Curves

There is not much to say about curves. Just enter the x formula, without any y= prefix.

When a curve is added to the list on the left, its color can be changed.

Predicates

A predicate in Chalk's grapher is just an expression using x and y and returning a boolean value. The color of each pixel will take the color associated to the result (by default green for yes, red for no, and yellow for maybe).

The maybe value is typically used on pixels which width does not allow a single answer.

The edges are in yellow because the corresponding pixels which have a non-zero width, cover the inside and the outside of the ellipse.

 

If the predicate contains logical operators like AND, please note that the right operand won't be evaluated if the left one returns an error. This is particularly useful when trying to draw a predicate when some values cannot be defined.
For instance, the expression ln(sin(x))<y is not defined when sin(x)≤0. In those area, the predicate returns maybe to mean that no value can be relevant. Anyway, there is still a cost for Chalk, because the relevant intervals cannot be predicted. Writing (sin(x)>0) AND ln(sin(x))<y will save much time by not trying to compute the logarithm on invalid intervals.

Variables

Like with the Calculator, variables can be defined to help writing expressions.
Unlike with the Calculator, the assignment operator cannot be used in the expression field; instead, a variable must be added in the table on the left, and then the expression field can be used to specify the value.

 

Bits and digits manipulator

The bits and digits manipulator is designed to act on the representation of a number and see how it modifies its value.

What is different with Chalk ?

Usually, calculators provide a fixed-size bit representation. Such a tool is somewhat useful for developers or computer scientists, but honestly, it misses a lot of features that Chalk provides:

An hexadecimal number reveals π when interpreted as IEEE754 32 bits float. The yellow, blue and purple parts are sign, exponent and significand.

 

Navigation and presentation

The bit manipulator is compatible with a set of well-known standard representations known as Raw values in the calculator module.

Each representation has a known bit size for sign, exponent and significand. Modifiying the width is not allowed, but chosing a color is possible.

 

The total bit width being known, since it is only displayed by groups of 64 bits, navigation through the groups is provided, to the "left" or to the "right" (which can be most or least significand bits according to a display option). There are three buttons to navigate in a direction : to the end, to the next relevant bit, or to the next group.

 

Bits can be displayed with least significand bits in the lower-right corner, and most significand bits in the upper left corner, or the contrary.

 

Conversion and interpretation

The bit-manipulator must be configured to convert the input value to a standard representation, and to compute an output value regarding a interpretation in a standard representation, which may be different.

Thus, each bit has two colors : the one of the input representation, and the one of the output interpretation. The color of the upper half of a cell comes from the input, the color of the lower half is for the output.

 

Operations

The displayed bit can support a number of operation that will ultimately modify the output value. When a bit has been changed, it is display in bold.

Each operation can be applied to a subset of bits, which can be different from the visible bits.

 

Group of bits can be

 

Digits

As an advanced feature, it is possible to consider digits by groups of 1, 2, 3, 4 or 5 bits, which is equivalent to work in base 2, 4, 8, 16 or 32.

Currently, Chalk still apply operations bit-wise and not digit-wise, so the result may be surprising. Moreover, when grouping bits, significand and exponent may not exactly fit, but Chalk will reflect the colors accordingly.

In base 16 (4 bits per digit), the cells with multiple horizontal colors reveal that they do not fit the bit limits of the different components, and span over.

 

Equations generator

What is the equations generator ?

The equations generator (menu "Equations") is a minimalist tool to generate beautifully rendered equations in PDF or SVG.

It is in no way a tool to solve equations, just render them for copy and paste in other documents.

The input language to typeset the equations is TeX. If you do not know TeX, you should learn it.

Only a small part of TeX is supported, you cannot even type a preamble. Consider it as a minimalist tool for small equations that would fit in a $$...$$ environment.

 

History

23rd April 2021 : v1.6.9

13th March 2021 : v1.6.8

12th March 2021 : v1.6.7

26th January 2021 : v1.6.6

20th December 2020 : v1.6.5

24th November 2020 : v1.6.4

6th September 2020 : v1.6.3

9th August 2020 : v1.6.2

17th July 2020 : v1.6.1

10th July 2020 : v1.6.0

10th June 2020 : v1.5.7

1st May 2020 : v1.5.6

27th April 2020 : v1.5.5

24th April 2020 : v1.5.4

23th April 2020 : v1.5.3

16th April 2020 : v1.5.2

15th April 2020 : v1.5.1

13th January 2020 : v1.4.2

12th January 2020 : v1.4.1

19th July 2019 : v1.4.0

21st April 2018 : v1.3.2

30th March 2018 : v1.3.1

5th March 2018 : v1.3.0

8th February 2018 : v1.2.0

17th November 2017 : v1.1.0

30th May 2017 : v1.0.0

20th May 2017 : v1.0.0 rc 5

20th May 2017 : v1.0.0 rc 4

18th May 2017 : v1.0.0 rc 3

16th May 2017 : v1.0.0 rc 2

11th May 2017 : v1.0.0 rc 1

9th May 2017 : v1.0.0 beta 14

5th May 2017 : v1.0.0 beta 13

5th May 2017 : v1.0.0 beta 12

4th May 2017 : v1.0.0 beta 11

3rd May 2017 : v1.0.0 beta 10

2nd May 2017 : v1.0.0 beta 9

1st May 2017 : v1.0.0 beta 8

1st May 2017 : v1.0.0 beta 7

25th April 2017 : v1.0.0 beta 6

24th April 2017 : v1.0.0 beta 5

23th April 2017 : v1.0.0 beta 4

23th April 2017 : v1.0.0 beta 3

22th April 2017 : v1.0.0 beta 2

13th April 2017 : v1.0.0 beta 1