that's what he's saying.. it does the opposite of what drluke said which is what nullsquared said
:psyduck:
NullSquared, write a program to see how many artistic ratings you got in this thread! :v:
that would be interesting
[QUOTE=Agent766;22104620]NullSquared, write a program to see how many artistic ratings you got in this thread! :v:[/QUOTE]
Be warned, you won't be able to use the unsigned int type if it's bigger than 4,294,967,295
[editline]07:13PM[/editline]
Fuck I don't deserve page king
WAYWO has come to nullsquared posting his graph with features that come out every other hour and people arguing about math.
[QUOTE=Poodle;22105925]WAYWO has come to nullsquared posting his graph with features that come out every other hour and people arguing about math.[/QUOTE]
This is true, it's a little amusing but it's losing its fun.
Null, I have another useless feature for you that'll take ten seconds to make:
support reading from a text file, like it contains
plot2 blahblahblah
[editline]02:46PM[/editline]
And saving a graph equation to file
actually you probably have both of these already
You should make some sort of command line interface out of the above.
maybe with a window preview added onto it, as a switch.
Yeh null, and make it cure cancer and also feed the 3rd world.
I thought he already implemented that
[QUOTE=Raccoon21;22107164]Null, I have another useless feature for you that'll take ten seconds to make:
support reading from a text file, like it contains
plot2 blahblahblah
[editline]02:46PM[/editline]
And saving a graph equation to file
actually you probably have both of these already[/QUOTE]
It already does all of that, except it uses a human-editable XML file that also stores all of the 2D/3D window settings and what-not, so when you load a graph file, you'll see exactly what you're supposed to see, instead of having to mess with all of the options first.
[editline]04:21PM[/editline]
[QUOTE=Overv;22107222]You should make some sort of command line interface out of the above.[/QUOTE]
What do you mean? Something like nullular_grapher.exe -open=some_graph.xml? Or something like plotting from the command line? Because if you're talking about the latter, then that's what Octave and gnuplot are for.
[QUOTE=nullsquared;22107988]...except it uses a human-editable XML file...[/QUOTE]
Example?
[QUOTE=Clavus;22102523]Only of older versions :saddowns:[/QUOTE]
I'll write a downloader that downloads it all into a directory tree like the website. :P
COLORS! and a an Ignore list.
[img]http://img24.imageshack.us/img24/2592/20100522486x337.png[/img]
Trying to write a small app for Android, but...
[img_thumb]http://i.imgur.com/T4qN2.png[/img_thumb]
[QUOTE=Xera;22092247]It's doing -(2^2), not (-2)^2[/QUOTE]
[QUOTE=nullsquared;22092729]-2^2 is the same thing as -1 * 2^2[/QUOTE]
Rated you two informative.
I was thinking of it in the traditional, non-specific/ambiguous handwritten sense, where -x^2 is treated the same as (-x)^2, instead of your method, which if I tested it on the graphing calculator - or the emulator of one, since I lost the one I originally had - would be as you say.
[editline]07:06PM[/editline]
[QUOTE=Poodle;22105925]WAYWO has come to nullsquared posting his graph with features that come out every other hour and people arguing about math.[/QUOTE]
He replaced Garry with Botch/GWEN.
I'm just working on a problem, working my way up to [URL="http://orac.amt.edu.au/cgi-bin/train/problem.pl?set=simple1&problemid=372"]this.[/URL]
[editline]12:10PM[/editline]
Please note that I have less than half a year of programming experience so, this is HELL.
Authentication Required
You must be logged in to use this section of the site. Please note that cookies must be enabled in your browser for the login process to work correctly. Your session will also time out approximately two hours after you log in.
:P
[editline]12:17PM[/editline]
I'll screen cap it.
[editline]12:18PM[/editline]
No I won't, I'll just do a wall of text.
[editline]12:18PM[/editline]
Another guy in my class calls it "a mindfucking scenario"
[editline]12:18PM[/editline]
The problems in this set are designed to be more accessible to beginning coders. As a learning aid, walkthroughs discussing how to solve the problems in this set are available by clicking on this link. On completion of this problem set, students should know how to use a programming language to read and write files, perform simple arithmetic calculations, and write conditional (if) statements.
A Mindbending Scenario
Input File: bendin.txt
Output File: bendout.txt
Time Limit: 0.05 seconds
Imagine a universe far different to the one we know. One where where people can walk through walls, where politicians don't lie, where the rules of physics itself are bent on a daily basis. Imagine how strange it would be to land in that universe, having to adjust to entirely new laws of reality, and having to integrate yourself into sentient cultures far beyond human comprehension.
Now, imagine that everything in this universe was suddenly destroyed in a cataclysmic explosion, leaving nothing but two rectangles on an endless plane. These two rectangles have their corners at integer co-ordinates (rational numbers having been destroyed). Your task is to discover the total area of the plane which is covered by these rectangles.
Beware! Some parts of the plane may be covered by both rectangles. If you merely add the individual areas together, you are surely doomed to incorrect answers!
Input
The input file will consist of two lines. Each line will be of the form x1 y1 x2 y2, describing the bottom-left and top-right corners of one rectangle. You are guaranteed that 0 <= x1 < x2 <= 10,000, and 0 <= y1 < y2 <= 10,000. (That is, each rectangle is at least one unit square in size.)
Output
Your output file should consist of a single integer: the total area covered by rectangles. (Remember - the rectangles may overlap!)
Sample Input
1 1 3 4
2 3 6 7
Sample Output
21
Explanation
The sample data describes the following two rectangles:
[IMG]http://orac.amt.edu.au/cgi-bin/train/support.pl?set=simple1&problemid=372&file=img1.png[/IMG]
The total area covered by the rectangles is 21 unit squares.
Scoring
The score for each input file will be 100% if the correct answer is written to the output file and 0% otherwise.
[editline]12:22PM[/editline]
And here's another problem that I did earlier,
[code]#include <cstdio>
int main() {
int r, t, s;
FILE *in = fopen("sitin.txt", "r");
FILE *out = fopen ("sitout.txt", "w");
fscanf (in, "%d %d %d", &r, &s, &t);
int sitting, standing;
sitting = r * s;
standing = t - sitting;
if (standing < 0){
sitting = t;
standing = 0;
}
fprintf (out, "%d %d\n", sitting, standing);
return 0;
}[/code]
[editline]12:23PM[/editline]
I love "if" statements, life would be so hard without them.
[QUOTE=GreyIOutcast;22114645]
I was thinking of it in the traditional, non-specific/ambiguous handwritten sense, where -x^2 is treated the same as (-x)^2[/QUOTE]
Even in plain old handwriting with some pen and paper, you need to use explicit parenthesis for (-x)^2.
I got bored, so I made a simplified web browser and fixed an old bug that I could never figure out :v:
[QUOTE=Chad Mobile;22115359]I got bored, so I made a simplified web browser and fixed an old bug that I could never figure out :v:[/QUOTE]
*drags mshtml control to form window* "guys i made a web browser"
[QUOTE=Chad Mobile;22115359]I got bored, so I made a simplified web browser and fixed an old bug that I could never figure out :v:[/QUOTE]
Chad come on. You know its not a web browser.
Its the IE renderer with some UI. Its not a Web Browser, at all.
[editline]08:41PM[/editline]
[QUOTE=diplo;22115905]*drags mshtml control to form window* "guys i made a web browser"[/QUOTE]
Thank you!
[QUOTE=zephyr_;22107090]This is true, it's a little amusing but it's losing its fun.[/QUOTE]
i go with the wind
[QUOTE=i300;22116068]Chad come on. You know its not a web browser.[/QUOTE]
Then what is it doing other than browsing the web?
Okay, literally its a web browser. But in everything else, its IE. Aka SHIT.
[IMG]http://i48.tinypic.com/sfkx7s.png[/IMG]
[QUOTE=efeX;22116292]i go with the wind[/QUOTE]
I'm a leaf on the wind
Sorry, you need to Log In to post a reply to this thread.