|
Re: Make something totally useless!
[Re: Inestical]
#67090
03/23/06 12:44
03/23/06 12:44
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,230
|
wow, I am impressed, that thing has really not the base of any known use ... After I downloaded it, opened it in MED, I tried to move the view, my specs: AMD Athlon XS 3800+ GeForce 7800GTX 1GB RAM .... nothing happend, I had to quit the process of MED to close the window That one is my current favorite Regards
Your friendly mod is at your service.
|
|
|
Re: Make something totally useless!
[Re: MichaelGale]
#67091
03/23/06 12:59
03/23/06 12:59
|
Joined: Apr 2005
Posts: 3,815 Finland
Inestical
Rabbit Developer
|
Rabbit Developer
Joined: Apr 2005
Posts: 3,815
Finland
|
nooo... it's useful for checking you memory ratings if bad memory = won't run if good memoeyr = runs
"Yesterday was once today's tomorrow."
|
|
|
Re: Make something totally useless!
[Re: Ambassador]
#67094
03/23/06 14:39
03/23/06 14:39
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,230
|
@ Jostie: How if the engine canot load it and even if the engine could it would be terrible slow @ Samuel : No, spelling mistakes help to learn a word correctly ... if you make the same mistake often, you learn the right word better ... learn from mistakes btw, I tried to make something useless, too ... here is the result: Code:
temp = sqrt((double)x*x+y*y*cos((double)y)/sin((double)x)*z*z+y*y)/sqrt(2);
Don't even know what it really does ... If anyone wants to try it ... find some useless uses for it (... what a paradox) EDIT: wow, that calculation returns ever the same, doesn't care which numbers I use for x,y and z ... it returns ever 1.14937 Regards
Last edited by Kohji; 03/23/06 15:12.
Your friendly mod is at your service.
|
|
|
Re: Make something totally useless!
[Re: MichaelGale]
#67095
03/23/06 15:17
03/23/06 15:17
|
Joined: Jul 2004
Posts: 1,924 Finland
Ambassador
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,924
Finland
|
If someone wants to try that calculation here is the code for it: Code:
#include <iostream> #include <math.h> using namespace std;
inline void michael_calculation(double x, double y, double z) { double temp = sqrt( x*x+y*y*cos( y)/sin( x)*z*z+y*y)/sqrt(2); cout << temp << endl; }
int main() { double x = 0; double y = 0; double z = 0; cout << "Please enter a number for x: "; cin >> x; cout << "Please enter a number for y: "; cin >> y; cout << "Please enter a number for z: "; cin >> z; michael_calculation(1.0,1.0,1.0); }
though the result is always 1.14937...
|
|
|
Re: Make something totally useless!
[Re: Ambassador]
#67096
03/23/06 17:10
03/23/06 17:10
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Quote:
@ Jostie: How if the engine canot load it and even if the engine could it would be terrible slow
Convert it to .3ds and load it into an engine which CAN handle it
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: Make something totally useless!
[Re: Ambassador]
#67098
03/24/06 06:13
03/24/06 06:13
|
Joined: Jun 2004
Posts: 610
AMan
Developer
|
Developer
Joined: Jun 2004
Posts: 610
|
@Samuel_Anjam: Well, ofcourse it will always output 1.14937... when you call the function you dont send it the variables, you send it "1.0". (That, and you forgot the ".h" on iostream.h) (And a few other minor things) Code:
michael_calculation(1.0,1.0,1.0); should be michael_calculation(x,y,z); Here is the corrected code... Code:
#include <iostream.h> #include <math.h>
void michael_calculation(double x, double y, double z) { double temp = sqrt(x*x+y*y*cos(y)/sin(x)*z*z+y*y)/sqrt(2); cout << temp; } void main() { double x = 0; double y = 0; double z = 0; cout << "Please enter a number for x: "; cin >> x; cout << "Please enter a number for y: "; cin >> y; cout << "Please enter a number for z: "; cin >> z; michael_calculation(x,y,z); }
The new code will now return different results based on user input. Not quite sure if this now makes it 'useful' or not though. -------------------------- Cheers, AMan
Last edited by AMan; 03/24/06 06:15.
|
|
|
|