Code Monkey home page Code Monkey logo

bracket's People

Contributors

soegaard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bracket's Issues

Expansion of (Sin n)

Sin should only evaluate inexact numbers, and expressions that there
is an exact value for.

That is (Sin 1) should be (Sin 1).
(Sin 1.0) should evaluate.

Rewrite unparse to suppose non-string values

Currently every value is run through unparse (which returns a string) prior to printing it in the REPL. Values such as pict structures (from slideshow/picts) can not be converted into strings. The return type of unparse and friends thus needs to change into something that can support both strings, picts and other snips.

Faulty unparse output

The program:
#lang bracket
DeclareVars(x,a);
Expand(((x-1)^a)/(1-x));
Outputs:
(-1+x)^a/1-x

The parentheses are missing in the denominator.

Parser: x^-1

x^-1
Syntax error

Should unary minus be accepted?
Should unary minus have a special symbol as in NSpire?

Unparse: Handle function values

Unparse ought to handle function values.
From a bracket repl:

List(Sin)
. . ../unparse.rkt:77:13: string-append: contract violation
expected: string?
given: #procedure:Sin

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.