Welcome
Login:   Pass:     Register - Forgot Password - Resend Activation

Turkish Class Forums / Practice Turkish

Practice Turkish

Add reply to this discussion
postfix notation
1.       si++
3785 posts
 18 Jun 2012 Mon 11:29 am

Postfix notation, also known as reverse Polish notation, is a syntax for mathematical expressions in which the mathematical operator is always placed after the operands. For instance, the addition of 1 and 2 would be written in postfix notation as "1 2 +". Computer scientists and software developers are interested in postfix notation because postfix expressions can be easily and efficiently evaluated with a simple stack machine.

 

 

Can you turn the following into a Turkish expression using çarpım for "*" and "toplam" for "+" with some "ile"s as necessary and maintining the same order as in the math expression?

 

1 2 * 3 4 * + 5 *

 

Hint:

It would start something like

1 2 * = 1 ile 2´nin çarpımı

or

1 2 * = 1´in 2 ile çarpımı



Edited (6/18/2012) by si++

2.       Abla
3648 posts
 18 Jun 2012 Mon 10:40 pm

Quote:si++

1 2 * 3 4 * + 5 *

 

 

 

 

Could you mean something like

 

                   1 ile 2´nin çarpımıyla 3 ile 4´ün çarpımının toplamıyla 5´in çarpımı   ?

3.       ikicihan
1127 posts
 19 Jun 2012 Tue 04:41 am

this notation sometimes may be useful in computer programming but makes the mathematics more confusing in real time.

 

in mathematic we always muptiply and divide before addition and subtraction. if you add before division, you may get wrong result. if you want that on purpose you have to use paranthesis.

 

correct:
25-12*6/3
= 25-12*2
= 25-24
= 1

 

definitely incorrect:

25-12*6/3
= 13*6/3
= 78/3
= 26

 

correct:

(25-12)*6/3
= 13*2
=26



Edited (6/19/2012) by ikicihan

4.       si++
3785 posts
 19 Jun 2012 Tue 06:04 am

 

Quoting Abla

 

 

 

 

 

Could you mean something like

 

                   1 ile 2´nin çarpımıyla 3 ile 4´ün çarpımının toplamıyla 5´in çarpımı   ? 

 

Yes it´s correct.

 

I would say it this way though:

1 ile 2´nin çarpımı ile 3 ile 4´ün çarpımının toplamının 5 ile çarpımı

or

1´in 2 ile çarpımı ile 3´ün 4 ile çarpımının toplamının 5 ile çarpımı

5.       si++
3785 posts
 19 Jun 2012 Tue 06:14 am

 

Quoting ikicihan

this notation sometimes may be useful in computer programming but makes the mathematics more confusing in real time.

 

in mathematic we always muptiply and divide before addition and subtraction. if you add before division, you may get wrong result. if you want that on purpose you have to use paranthesis.

 

 

You don´t have that problem with this notation. There is no need for parentheses.

 

The notation we use in math is called infix notation. We say "1+2" with infix notation and "1 2 +" with postfix one.

 

Wth infix notation you may get wrong results without prentheses but there is no problem with postfix one. That´s why it´s simple and easy to implement in a computer language. Computer firmwares (and microcomputers) are usually built by using those that are based on postfix notation such as forth lanhuage.

 

6.       stumpy
638 posts
 19 Jun 2012 Tue 08:08 am

it´s rather simple 12*34*+5*

1*2 = 2

3*4 = 12

2+12 = 14

14*5 = 70

we were taught in school that infix was simpler but on the contrary it is more difficult to comprehend since we have to take into consideration operators priority and associativity.

((1*2)+(3*4))*5 is longer to analise than 12*34*+5*

postfix says it, signs after, prefix, signs before

imagine the time and energy waisted for a computer to use infix, we would be coding the applications for an eternity

 

here is a link to help understand  http://www.programmersheaven.com/2/Art_Expressions_p1

 

and if I were trying to write this in Turkish, well I guess I would still be trying to figure out how to say it

I´m with abla on the answer in Turkish



Edited (6/19/2012) by stumpy

7.       tristerecuerdos
518 posts
 19 Jun 2012 Tue 08:10 am

does this have something to do with math? :S its confusing me :o

8.       si++
3785 posts
 19 Jun 2012 Tue 08:35 am

 

Quoting stumpy

it´s rather simple 12*34*+5*

1*2 = 2

3*4 = 12

2+12 = 14

14*5 = 70

we were taught in school that infix was simpler but on the contrary it is more difficult to comprehend since we have to take into consideration operators priority and associativity.

((1*2)+(3*4))*5 is longer to analise than 12*34*+5*

postfix says it, signs after, prefix, signs before

imagine the time and energy waisted for a computer to use infix, we would be coding the applications for an eternity

 

here is a link to help understand  http://www.programmersheaven.com/2/Art_Expressions_p1

 

and if I were trying to write this in Turkish, well I guess I would still be trying to figure out how to say it

I´m with abla on the answer in Turkish

 

Yes maybe.

 

My point is the Turkish order is very similar to postfix notation (the same order of operands and operators). So it´s a little bit easier for us to understand the postfix notation.

 

 

Abla liked this message
Add reply to this discussion




Turkish Dictionary
Turkish Chat
Open mini chat
New in Forums
Why yer gördüm but yeri geziyorum
HaydiDeer: Thank you very much, makes perfect sense!
Etmeyi vs etmek
HaydiDeer: Thank you very much!
Görülmez vs görünmiyor
HaydiDeer: Thank you very much, very well explained!
Içeri and içeriye
HaydiDeer: Thank you very much for the detailed ...
Present continous tense
HaydiDeer: Got it, thank you!
Hic vs herhangi, degil vs yok
HaydiDeer: Thank you very much!
Rize Artvin Airport Transfer - Rize Tours
rizetours: Dear Guest; In order to make your Black Sea trip more enjoyable, our c...
What does \"kabul ettiğini\" mean?
HaydiDeer: Thank you very much for the detailed ...
Kimse vs biri (anyone)
HaydiDeer: Thank you!
Random Pictures of Turkey
Most liked