Coder Social home page Coder Social logo

satysfi-karnaugh's Introduction

satysfi-karnaugh - Drawing Karnaugh maps in SATySFi

example

let-math \dc = ${\dontcare} in
{
  \karnaugh-map(${xy})(${zw}) [
    ${| 1   | 0   | 0   | 1   |};
    ${| 1   | 1   | 0   | 1   |};
    ${| \dc | \dc | \dc | \dc |};
    ${| 1   | 0   | \dc | \dc |};
  ] [
    Karnaugh.box  (0, 1);
    Karnaugh.tall (3, 0);
  ];
}

{
  \karnaugh-map(${AB})(${C}) [
    ${| 1 | 1 | 0 | 1 |};
    ${| 1 | 0 | 0 | 0 |};
  ] [
    Karnaugh.slim (0, 0);
    Karnaugh.flat (0, 0);
    Karnaugh.flat (3, 0);
  ];
}

The adbove will look like the following.

output

reference

  • \dontcare : [] math-cmd

    • “∅” in formula
  • \karnaugh-map : [math; math; (math list) list; (length list -> length list -> graphics list) list] inline-cmd
    \karnaugh-map : <label of the columns> <label of the rows> <contents> <groupings>

    • Draw a Karnaugh map
  • Karnaugh.box : int * int -> lenght list -> length list -> graphics list
    Karnaugh.box : (<start column>, <start row>) -> <grouping>

    • Group 2x2 cells
  • Karnaugh.tall : int * int -> lenght list -> length list -> graphics list
    Karnaugh.tall : (<start column>, <start row>) -> <grouping>

    • Group 2x4 cells
  • Karnaugh.wide : int * int -> lenght list -> length list -> graphics list
    Karnaugh.wide : (<start column>, <start row>) -> <grouping>

    • Group 4x2 cells
  • Karnaugh.slim : int * int -> lenght list -> length list -> graphics list
    Karnaugh.slim : (<start column>, <start row>) -> <grouping>

    • Group 1x2 cells
  • Karnaugh.flat : int * int -> lenght list -> length list -> graphics list
    Karnaugh.flat : (<start column>, <start row>) -> <grouping>

    • Group 2x1 cells
  • Karnaugh.minimum : int * int -> lenght list -> length list -> graphics list
    Karnaugh.minimum : (<start column>, <start row>) -> <grouping>

    • Group 1x1 cells
  • Karnaugh.large : int * int -> lenght list -> length list -> graphics list
    Karnaugh.large : (<start column>, <start row>) -> <grouping>

    • Group 4x4 cells
  • Karnaugh.group : int -> int -> int * int -> lenght list -> length list -> graphics list
    Karnaugh.group : <width> <height> (<start column>, <start row>) -> <grouping>

    • Group widthxheight cells
  • Karnaugh.group- : int * int -> int * int -> lenght list -> length list -> graphics list
    Karnaugh.group- : (<start column>, <start row>) (<last column>, <last row>) -> <grouping>

    • Group the cells in the specific range

satysfi-karnaugh's People

Contributors

takagiy avatar na4zagin3 avatar

Stargazers

Takehiro Ogura avatar SnO₂WMaN avatar tai-calg avatar  avatar Tatsuro YOKOTA avatar Takashi Suwa avatar Kitano-Kaneko, Naoki avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Forkers

na4zagin3

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.