das2C
das core C utilities (v3)
Loading...
Searching...
No Matches
Macros
form_linear.h File Reference

Plain numbers, the formalism an absent <ops> implies. More...

#include <das3/form.h>
Include dependency graph for form_linear.h:

Go to the source code of this file.

Macros

#define DAS_FORM_LINEAR   (&das_form_linear_vtbl)
 Plain numbers, which add, subtract, multiply and divide as expected.
 

Detailed Description

Plain numbers, the formalism an absent <ops> implies.

Linear sits at the BOTTOM of the formalism knowledge graph. It knows about nothing, so it includes no other form's header and implements no binOpRight; every pairing between a plain number and something richer is claimed by the richer side, in that side's file. This header exists so those files can recognize a linear partner and construct a linear result.

A point minus a point is an interval, and an interval is linear – so form_point.c includes this. A vector scaled by a number is a vector, so form_vector.c and form_geoloc.c do too. The arrow never comes back.

Macro Definition Documentation

◆ DAS_FORM_LINEAR

#define DAS_FORM_LINEAR   (&das_form_linear_vtbl)

Plain numbers, which add, subtract, multiply and divide as expected.

This is what a numeric variable gets when its stream says nothing about the math.

See also
DasForm_isKind(), DasVar_formIs().