-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need real numbers #3
Comments
Also, this is needed to facilitate division. I thought about introducing division that leads to whole numbers, however the "/" symbol is already used for creating multiple parentheses (See http://cosmicos.github.io/ Statistics and Structure) Any ideas? |
Can you just use another symbol, like |
|
@aw1231 I recently freed up the |
Hi, I'm starting work again on this. But when I run make I get
|
hey @aw1231, what version of haxe are you using? What does |
haXe Compiler 2.07 - (c)2005-2011 Motion-Twin |
Oh wait...I need at least 3. My bad. |
Ok, now that I got a working build, I'm going to write my ideas about this. Real numbers need to be shown to be "the same" as the number system we currently have. For example:
Once that is established, I think it would be good to run it through the normal list of addition, subtraction, multiplication and division with equations that will result in non-decimal answers. Then on top of that, we can show how decimals work. Anything else I should add? |
That sounds like a pretty good start @aw1231! |
Do you think a new file is best for the source? Also, how exactly should I add a new "type" of number into the parsing system? |
Wow my code needs documentation... I think you'd want to add Floats here https://github.com/paulfitz/cosmicos/blob/master/transform/cosmicos/Evaluate.hx#L28 and you'd want to add a case just before here https://github.com/paulfitz/cosmicos/blob/master/transform/cosmicos/Parse.hx#L145 that checks for a decimal and parses the string as a float if so. |
Will do. Would opening a documentation issue sound ok? |
Question: what style would you like the result to be in? Would 3.2 be ok as:
,using whatever symbol we decide a decimal to be. |
+1 for a documentation issue. About how to represent a decimal: the easiest first step is to represent it in the message as something like |
Here is my todo list as it stand right now:
Possible way to add it to the source:
I'm looking for a good book that describes things like these in a method similar to Euclid's Elements. Principia Mathematica by Whitehead and Russell looks like a good start. |
Here is a question that I have that can go into the documentation: how do you code a new function/symbol for that function? |
I think I got representing floats ok. I just don't know how to say |
Bump. |
Some ideas were added to the wiki: https://github.com/paulfitz/cosmicos/wiki#real-numbers |
sorry for neglecting this issue @aw1231. The lesson plan sketched in the wiki seems plausible to me. So a start could be introducing floating point division, which can be done without having a way to directly represent floats in the message. |
Hey @paulfitz! Sorry for neglecting on my end as well. (College makes programming hard) I'm going to build some lines of the message, run them by you, and then program them. |
Is this still happening? If not, I would like to pick this up. |
That would be fine by me. |
I did in the end need real numbers for a section about |
@aw1231 mentions need for reals here: #2 (comment).
The text was updated successfully, but these errors were encountered: