# Search:

Type: Posts; User: GanglyLamb

Page 1 of 20 1

1. ## Thread: optimizing long if structure

by GanglyLamb
Replies
11
Views
994

### 10^7 is big when you do not only evaluate this...

10^7 is big when you do not only evaluate this function, we are taking into account fresnel reflections, phase changes, scattering etc... Our simulations now take around a couple of weeks to finish,...
2. ## Thread: optimizing long if structure

by GanglyLamb
Replies
11
Views
994

### Except that this is not possible the values which...

Except that this is not possible the values which are being compared to are not fixed. I am actually generating the C code in matlab, which I later plug into a dll which is being fed to a ray tracer....
3. ## Thread: optimizing long if structure

by GanglyLamb
Replies
11
Views
994

### That would be an option, but not a nice solution....

That would be an option, but not a nice solution. If the mathematical function which I am trying to approximate by using a cubic spline changes very rapidly then I need more samples. The amount of if...
4. ## Thread: optimizing long if structure

by GanglyLamb
Replies
11
Views
994

### Which works fine as long as I have less then ~150...

Which works fine as long as I have less then ~150 if - else if's after each other. With 200 of those structures I get a compiler error:

Using if else compared to only if's took ~20% less...
5. ## Thread: optimizing long if structure

by GanglyLamb
Replies
11
Views
994

### optimizing long if structure

Is there a way to optimize a long series of if structures? For example the code might look like:

if(x>0 && x<= 0.1)
t = calculation;
if(x>0.1 && x<=0.2)
t = calculation2;
So basically...
6. ## Thread: Maple procedure issue

by GanglyLamb
Replies
2
Views
1,567

### Wow, that I have been looking over this so many...

Wow, that I have been looking over this so many times... Thanks!

Anyhow, I will have to move away from the analytical solution as finding the inverse of a function is not that straightforward...
7. ## Thread: Maple procedure issue

by GanglyLamb
Replies
2
Views
1,567

### Maple procedure issue

I know some of you are into maple so I figured that perhaps someone might be able to help me with the issue that I am currently having.

restart;
calcDistributionFunc := proc (f)
cdf :=...
8. ## Thread: Aspect Oriented Programming

by GanglyLamb
Replies
6
Views
1,578

### Its more an addition to your toolbox rather then...

Its more an addition to your toolbox rather then a single way of programming.
I've experimented a bit with it a couple months ago and found it usefull to do logging for example. Instead of having...
9. ## Thread: Economy crises, Job loss etc etc

by GanglyLamb
Replies
33
Views
4,781

### Plus the fact that if at this point a company...

Plus the fact that if at this point a company starts research into a product even though there is no market at this moment for it. Then at least they will have a stable production proces etc by the...
10. ## Thread: Dumb Professors

by GanglyLamb
Replies
9
Views
2,446

### Wow , I can not even believe that this happens...

Wow , I can not even believe that this happens for real.

I am sure every university has its own share of professors who are in one (or more) way(s) dumb. But at least all of the ones I had...
11. ## Thread: why do you program?

by GanglyLamb
Replies
31
Views
4,709

### Poll: I started programming in high school and ever...

I started programming in high school and ever since I wear my "nerd programming alert" badge/button with pride. I hope all of you have one too, I even got all the collectors items (including the...

by GanglyLamb
Replies
6
Views
1,464

### A couple of years ago I did some usb interface...

A couple of years ago I did some usb interface programming (in that time I also asked this board for help - although i dont find the thread), at that time our goal was easy: set up a usb device which...
13. ## Thread: Small laptop

by GanglyLamb
Replies
120
Views
7,214

### Elysia responding in threads makes me go crazy. ...

Elysia responding in threads makes me go crazy.

I'll be at the nearest eee pc distributer to complain about its small hard drive capacity which I chose above a larger storage because I wanted ssd....
14. ## Thread: Small laptop

by GanglyLamb
Replies
120
Views
7,214

### Maybe Im just a salesman for asus irl. ...

Maybe Im just a salesman for asus irl.

Anyhow, Im satisfied with it, the only thing which I didnt like was that the drive where windows was installed on was only 4gb (in reality only 3.6 gb) so...
15. ## Thread: Small laptop

by GanglyLamb
Replies
120
Views
7,214

### I bought myself one of those eee pc's 8 days ago....

I bought myself one of those eee pc's 8 days ago. So far I'm very satisfied , its the 900 version which came with windows preinstalled.

One of the reasons I chose the eee pc and specificly this...
16. ## Thread: Who did you vote for? (anonymous poll)

by GanglyLamb
Replies
91
Views
10,857

### Poll: Enola as in Enola Gay , famous from the song by...

Enola as in Enola Gay , famous from the song by OMD (which also made the amazing song Electricity!).

And it was also the name of the plane that dropped an atomic bomb.
17. ## Thread: Who doesn't format Windows?

by GanglyLamb
Replies
89
Views
5,317

### An image of my whole windows partition after all...

An image of my whole windows partition after all updates have been installed is more then enough for me... I keep the first image on 3 different media.

Then every week I have a rotation scheme...
18. ## Thread: Simple 2D rubiks cube algorithm.

by GanglyLamb
Replies
19
Views
11,644

### It would be a great exercise to implement all...

It would be a great exercise to implement all kind of strategies that ultimately will lead to the one and only solution... like for example tabu search, hill climbing, simmulated annealing etc...
...
19. ## Thread: Start recording in Counter-Strike

by GanglyLamb
Replies
14
Views
1,742

### I dont know how to simulate keypresses since I...

I dont know how to simulate keypresses since I never tried it , I'm just saying that from my experience in setting up a counterstrike server and messing with configs and all sorts of scripts, I just...
20. ## Thread: Start recording in Counter-Strike

by GanglyLamb
Replies
14
Views
1,742

### There is a huge difference in commands and...

There is a huge difference in commands and variables in counterstrike

For instance, sv_restartround 1 means restart the round in 1 second.

Setting the players startmoney can be accomplished by...
21. ## Thread: Class Help

by GanglyLamb
Replies
4
Views
1,147

### Yes, unless its a static class... Simple example,...

Yes, unless its a static class... Simple example, you have a class named Chair, now this chair can have 4 or 3 legs...

But how can you tell what kind of chair it is , if you have not even created...
22. ## Thread: What about the oil crisis?

by GanglyLamb
Replies
22
Views
2,877

### You can add me to the idiot list as well. I...

You can add me to the idiot list as well.

I feel backstabbed in a lot of ways for instance:

The interest I get on my bank saving accounts was a mere 2%. Which felt ok to me at the time (before...
23. ## Thread: Quzah

by GanglyLamb
Replies
25
Views
2,980

### That would be awesome! Although I never got...

That would be awesome!

Although I never got into the hairs of quzah I was always amused with his posts, harsh in some cases but truthful all the time.
24. ## Thread: Who's upset about the 250GB/month bandwidth limit imposed by Comcast?

by GanglyLamb
Replies
29
Views
3,531

### I really dont understand what everyone is...

I really dont understand what everyone is complaining about. I pay 45 EUR / month to get 20 GB monthly (this includes up and download). And I even have to share this with 4 people... do the math...
25. ## Thread: Which (software)graphing calculator do you use?

by GanglyLamb
Replies
17
Views
2,196

### At school we use matlab and maple. At home we are...

At school we use matlab and maple. At home we are encouraged to use Octave (consider it as a free edition of matlab...) and Maple (we get the license for Maple trough school).
Results 1 to 25 of 500
Page 1 of 20 1