Showing posts with label Conditional statements. Show all posts
Showing posts with label Conditional statements. Show all posts

Friday, 17 February 2012

Conditional statements

Hi Friends! In this session of solve math problems we will discuss about conditional statements. Conditional statements are the statements that check the true and false value for every given statements. In Conditional statements some statements shows that they are universally true (like:-sun rises from east) and some are false. In free online math tutoring sessions Conditional statements are generally same in every grade either grade XII or others. These statements are used in computer science in programming languages.
Conditional statements are:-
-If then else conditional statements are used to execute if block when this is true if it is not true than it goes to the else block and execute it syntax for it:-
if(condition)
statement1;
else if(condition2)
statement2;
-Else if is the nested if else block that have multiple else blocks.
if(condition1)
statement1;
else if(condition2)
statement2;
else if(condition3)
statement3;
else
statement-n;
-Switch statements are also used to check multi way conditional statements.
switch(expression)
case choice1:
statement1;
case choice2:
statement2;
case choice-n:
statement-n;
-Conditional operator (?) is also used to check true or false value for given statements syntax for this is:-
Condition ? Expression 1 for condition true : Expression 2 for condition false
Many operators are used to check statements like :-
logical operator:- AND, OR, NOT, XOR.
Comparison operator:- =, <=, >=, !=.
Conditional statements examples can be understand by converse, inverse and contra positive expressions.
If the deer will run then tiger will hunt the deer---conditional.
If the deer won't then the tiger won't hunt the deer---inverse.
If the tiger will hunt the deer then the deer will run---converse.
It the tiger won't hunt the deer then the deer won't run---contra positive.
If p then q conditional
if q then p converse
if p will be negation than negation q inverse
if negation q then negation p contra positive
Logically equivalent will be conditional expression and its contra positive.

In upcoming posts we will discuss about Geometric proofs in Grade XII and Correlation coefficient. Visit our website for information on school education Karnataka

Wednesday, 15 February 2012

Formal/informal proofs

Hi Friends! In this session of solve math problems for free, we will discuss about formal and informal proofs. Proofs are the statements that are said to be true in every case. When a statement is proved to be true then it is considered a theorem. Proofs are widely used in various fields of mathematics and they can be categorized in two types: Formal and informal proofs. Formal proofs follow step by step procedures and rules for proving statements, all work on formal proofs is done systematically, they cannot be written in natural language although they have own formal language that contains some rules, syntaxes, and predefined approaches that are written in English language.You can also refer free online math help
In formal proofs we find the solutions for every step with the reasons. In informal proofs we also have to find solutions but there is no necessity to define reasons for that. In the informal proofs our focus is only on solutions not on solution procedures and in formal proofs our focus should be based on solutions as well as solution procedures.
Conditional statements are the statements that are mainly based on true and false conditions and used in various programming languages they have some procedures that are used to obtain the sentences value like:-
-If then else, in this we have two statements one is in if block and second is in else block. When If condition is true than if block will be executed and when else condition is true than else block will be executed.
-Else if, it is nested if else block that is used for various conditions. Click here for more on proof theory.
Switch statement and ternary operator are also used for conditional statements. To verify conditional statements lots of operators are used like logical operator like and, not, or and comparison operator like =, <=, >= and many more. All operators have their different-2 syntax mechanism to solve various conditional statements.


In upcoming posts we will discuss about Conditional statements and Probability problems with finite sample spaces. Visit our website for information on Karnataka state board