Search Results for:

[Algorithm] Calculate the trigonometric functions

The formula for calculating the sine(x) and the other trigonometric functions as follows: VD calculate sine(x) , x per radian may be due to the type of data or some other reason that is only accurate to -27<=x<With x = 27 per radian. In the code above we do not count the function x ^(2i 1) and (2i 1)! apart which means continuity in temp temp = x ^ calculation(2i 1) / (2i 1)! to avoid overflow of the […]

[C / C ] Show us some 2, Contacts 8, Contacts 16 of decimal

To display of system 10 to other systems, usually we think of how we change the algorithm with other systems. If you want so you can find on Google has many articles about the algorithm then, here he set a certain way that we do not need to use algorithms that can display immediately. CEO: Enter 1 Some systems 10 already […]

[Assembly] Hex Display as of 1 decimal

In our current program on the number num is hex 223, You can replace it with another. code

[Java] Recursive call in the main Java

Unexpectedly, when a friend gave this code and the test was run.

[Android] Failed to allocate 1999634432 B: Cannot allocate memory

This error occurs when you turn down the Option RAM Memory to about 512.

[Assembly] Export multiple digit numbers in Assembly

To export multiple digit numbers we perform some separation from right to left in order to stack and store div. Then again taken from the stack. The following example in some 12346 screen code

[Assembly] Export array of Assembly

[Assembly] Down the line in Assembly

CR: ASCII is 0dh help us return to the beginning of the line. LF: ASCII code 0Ah help us to new line. Declaring clrf 13.10 db, '$’ was declared a sequence of two characters CR and LF. Note that there are still characters $ to inform ending. VD on the assembly line to use 0Ah. Examples of the first assembly line in use 0dh. CEO […]

[Java] The level of access in java – Edit in Java

To protect data prevent free access from outside, object-oriented programming using the keywords specified range access the properties and methods of the class. Java uses some later complements to control access to the components of the object : public: Ingredients public, free access from outside. protected: Ingredients are […]

[Java] Permutation functions in Java – Swap in Java

The implementation of the function swap (swapped – conversion) in java it is somewhat different from C / C or Pascal,… To change the value of the variable out of a function, you must use the object. You can refer to 2 The following example function swap later if you want to read the details below or if the code was puzzled to read, then read […]