Jump to content

khaled

Senior Members
  • Posts

    594
  • Joined

  • Last visited

Posts posted by khaled

  1. Unity is an engine to build 3D games ,, it's tricky to learn

     

    But just like most 3D game engines, it's Object-Oriented .. meaning you write the algorithm for every object in the game

     

    and not a single-flow programming ,, 3D games have critical concurrency control issues

  2. I'm trying to come up with a general formula to describe irrational numbers, by using the general summation of (1/n) , like an infinite summation of (1/3) = .33333333333 = 1/3, which isn't irrational, but I suspect irrational numbers can be decribed by some sort of summation that modulates with a base 10 or possibly a base = to some arithmetic form of n as to have a different modulus every time and thus never repeat.

    Though, every time I've ever thought of some cool mathematical thing, it terms out some dead scientist thought of it 100 years ago or more, so I'm just wondering if this has already been done.

     

    I think you're talking about this, which looks ordinary:

     

    [math].333333 \approx \frac{1}{3} = .33333... = .\ddot{3}[/math]

     

    [math].\ddot{k} = .k + .0k + .00k + ... = \sum_{i=-1}^{-\infty}{{k}^{i}}[/math]

  3. Cap'n Refmmat is right, more memory doesn't always mean faster

     

    By the way, If you are using MATLAB on your personal computer or laptop .. then it shouldn't exceed 33% of CPU

     

    If you really need higher performance for MATLAB, you can dedicate Clusters for MATLAB .. Clusters of Processing & Memory Units

  4. If you seek to make MATLAB increase its performance by utilizing multiple processors: StackOverflow

     

    But, if you seek to give MATLAB more processing allowance of your CPU .. then there are two major things:

     

    1. Ask your OS to give priority to MATLAB, since OS use Priority-based Round-robin Processing Queue management

    .. on Linux, you can use command "nice"

     

    2. Here is a different approach to achieve higher performance: Maximize MATLAB Perofrmance

     

    .. good luck

  5. I'm not sure, I'm not good at this

     

    Problem # 1

     

     

     

    Assume: [math]T(X) = 0 \; FOR \; X < 1 \; AND \; X = 1[/math]

     

    [math]T(n) = T(n/2) + c[/math]

     

    [math]T(n) = ( T(n/4) + c ) + c[/math]

     

    [math]T(n) = (( T(n/8) + c ) + c ) + c[/math]

     

    ...

     

    [math]T(n) = T(n/n) + c + c + .. + c = T(1) + log_{2}{n} \; c = \; FLOOR(log_{2}{n}) c[/math]

     

     

     

  6. IMO I'd say it doesn't work since X/0 and 0/0 are undefined by definition. Do we really want to teach kids that these equal 0 because that's exactly what they'll think if their calculator says so. What next? Do we start teaching that the limits of these equations approach 0 as the denominator approaches 0? What effect would this have on engineering?

     

    Well, I didn't say his method is correct .. I just stated what his method result

  7. I've implemented his method, it works for most integers, especially positive numbers

     

    I've noticed that 0/X, X/0, and 0/0 all result in 0

     

    The code:

     

    #include <stdio.h>
    
    // assume our virtual machine support 8 decimal places
    
    #define DBL_8_MIN	0.00000001 /* min 8-decimal-places positive number */
    
    double f (int y) { return ((double)y - (double)DBL_8_MIN); }
    
    double g (int y) { return ((double)y + (double)DBL_8_MIN); }
    
    double bhartiya (int x, int y)
    {
    return (x/2.0) * (1.0/f(y) + 1.0/g(y));
    }
    
    int main ()
    {
    int x = 1;
    int y = 1;
    
    int u = 0;
    int v = 0;
    
    while (x < 999)
    {
    	y = 1;
    
    	while (y < 999)
    	{
    		u = bhartiya (x, y);
    
    		v = ( x / y );
    
    		if (u != v)
    		{
    			printf(" %d/%d = %d .. but Bhartiya gives %d with y'=%.8lf & y''=%.8lf \n",x,y,v,u);
    		}
    
    		y++;
    	}
    
    	x++;
    }
    
    return 0;
    }
    

  8. Here are the most basic Logic Operations:

     

    AND ([math]\wedge[/math]): The intersection of two statements, [math]A \wedge B[/math] is TRUE when A is TRUE and B is TRUE

     

    Example: "It's dark blue" = "It is dark [math]\wedge[/math] It is blue"

     

    OR ([math]\vee[/math]): The union of two statements, [math]A \vee B[/math] is TRUE when A is TRUE or B is TRUE, or both

     

    Example: "Xittenn drinks tea or coffee" = "Xittenn drinks tea [math]\vee[/math] Xittenn drinks coffee"

     

    NOT (¬): The negation operator, ¬A is TRUE when A is FALSE

     

    Example: "I am not a liar" = "¬ I am liar"

     

    Implication ([math]\longrightarrow[/math]): One statement enforce another, [math]A \rightarrow B[/math]

     

    Example: "A locked door cannot be opened" = "The door is locked \longrightarrow The door cannot be opened"

     

    Equivalence ([math]\Leftrightarrow[/math]): Two statements are equivalent, [math]A \Leftrightarrow B[/math]

     

    Example: "Jon and Monica go out together, or don't" = "Jon goes out [math]\Leftrightarrow[/math] Monica goes out"

     

    Here is a truth table for more operations, which are easy to understand with the Venn diagram:

     

    25eya1k.png

  9. y does processor give out more heat when working with linux os when compared with windows

     

    What linux are you using, with what desktop environment ?

     

    Try Linux Mint with LXDE (which is the lightest desktop environment): Lisa:LXDE 32-bit

     

    If you don't like LXDE, you can try Genome 2

     

    Try to stay away from KDE, unless your processor is good enough to be fine with it

  10. The second book Xittenn recommended "Logic and Computer Design Fundamentals by M. Morris Mano and Charles Kime" can help

     

    To understand what I was talking about, you can read more on Computability Theory: http://en.wikipedia.org/wiki/Computability_theory

     

    but it might confuse you, when it says that it's also known as "recursion theory", it also mention "degrees of computability"

     

    It can be simplified to this analogy:

     

    .. "Let's say that there is a problem that is computable to a machine 1 but not to machine 2 .. Just like how there is a weight that can be lifted by a man 1 but not by man 2"

     

    I don't have anything against anyone, I just want you to know that there is difference between knowing everything in Theoretical Computer Science, and understanding it actually

     

    Now if someone write right things, in irrelative way .. you can't say that what he said is wrong, but there is something wrong .. that's how Xittenn was on this issue

     

    .. peace and love

  11. So is computing a following of rules which guide the computation, whereas computation is the physical act ("work") done by computer hardware or brain cells?

     

    1. I suggest you ignore what Xittenn wrote, since I don't find them coherent on your questions

    .. her info is not wrong, but either incomplete or inconsistent

     

    2. The answer on your question is Yes, but you have to vary between the computation on physical level, on machine level, and on different virtual levels

     

    So you see for example a virtual turing machine that works on a computer with a windows xp OS, that's 6 levels of computation

     

    Now you may ask "why different levels of computation", because as we mentioned earlier "computability of a program is related to a given machine"

     

    So, there are programs that are computable on given level of computation but may not be computable on other levels

  12. I think there is something wrong with your definition Xittenn, "Computation is a 'process performed' whereby

    quantities of logic are compounded into other logical statement(s)!"

     

    Saying that ".. whereby quantities of logic are compounded into other logical statement(s)", which is confusing,

    is it related to Input and Output of the computation, or are you speaking about Grammar & Language

     

    Let's say you probably mean a Grammar when saying "quantities of Logic", which forms a Language "compound into other logical statements",

    but that's not computation.

  13. What about theoretical computation? Do the words "practical" and "theoretical" imply the difference between having the computer do it for you and making theoretical conjectures based on an understanding of what the computer is doing?

     

    1. there is no contradiction with what I posted, which was taken literally from references

     

    2. You're right, computation can be done by any System that has a Language & Grammar, which bound Input towards Execution, which result in Output

     

    you see, as I mentioned earlier, computation is the work done executing a program on a given system .. this system can even be your brain

  14. Computing is the noun from the verb Compute is a process that is more complex than calculate

     

    Computation is a work done by a Computer, a Processor, a Virtual Machine, or a Theoretical Machine .. given an Input, upon its Halt, It returns an Output

     

    Computability for a Program (not an algorithm) is relative to a given Machine

     

    Computation can be classified by at least three orthogonal criteria:

    - digital vs analog,

    - sequential vs parallel vs concurrent,

    - batch vs interactive.

     

    For more info: Wikipedia:Computation

  15. A frame with a very low time flow rate, we'd see the world progress faster on the outside .. that'd be traveling through time forwardly

     

    I agree with Spyman, that traveling backwardly in time doesn't even have a theoretical evidence

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.