Skip to main content

Handling Mixed Numbers

Handling Mixed Numbers

Mixed numbers are a combination of a whole number and a fraction. They are different from improper fractions, which have a numerator that is larger than or equal to the denominator.

Definition of Mixed Numbers

Mixed numbers are written as a whole number followed by a fraction. For example, 3 1/2 is a mixed number. It means three wholes and one half.

Converting Mixed Numbers to Improper Fractions

To convert a mixed number to an improper fraction, you can follow these steps:

  1. Multiply the whole number by the denominator of the fraction
  2. Add the numerator of the fraction to the result of the previous step
  3. Write the result as the numerator over the denominator of the fraction

For example, to convert 3 1/2 to an improper fraction:

  1. 3 x 2 = 6
  2. 6 + 1 = 7
  3. 7/2

Converting Improper Fractions to Mixed Numbers

To convert an improper fraction to a mixed number, you can follow these steps:

  1. Divide the numerator by the denominator
  2. Write the whole number part
  3. Write the remainder over the denominator

For example, to convert 7/2 to a mixed number:

  1. 7 divided by 2 is 3 remainder 1
  2. 3
  3. 1/2

Adding and Subtracting Mixed Numbers

To add or subtract mixed numbers, you can convert them to improper fractions, add or subtract the improper fractions, and then convert the result back to a mixed number.

For example, to add 3 1/2 and 2 3/4:

  1. Convert 3 1/2 to 7/2
  2. Convert 2 3/4 to 11/4
  3. Add 7/2 and 11/4 to get 23/4
  4. Convert 23/4 to 5 3/4

Multiplying and Dividing Mixed Numbers

To multiply or divide mixed numbers, you can multiply or divide the whole numbers and fractions separately, then simplify the result.

For example, to multiply 3 1/2 and 2 3/4:

  1. Multiply the whole numbers: 3 x 2 = 6
  2. Multiply the fractions: 1/2 x 3/4 = 3/8
  3. Add the products: 6 + 3/8 = 49/8
  4. Simplify the fraction: 6 1/8

Applications of Mixed Numbers

Mixed numbers are used in various real-world scenarios such as:

  • Measuring ingredients for a recipe
  • Calculating the area of a room or a field
  • Dividing a group of objects into equal parts

Comments

Popular posts from this blog

The most powerful kernel trick of SVM

 The kernel trick is most important and powerful technique of SVM . Linear VS Non-Linear dataset linear vs non-linear figure Problem Statement Currently we have learn how to apply SVM algorithm at linear datasets, but what if we have non linear dataset. Solution of Problem Solution is kernel trick. Kernel Trick The Kernel trick is trick where we add  many SVMS  models by bagging,voting,stacking and boosting or we can use SVM class to implement it. Implementation To implement it follow code given below- from sklearn.svm import SVC svc=SVC() svc.fit(X_train,y_train) svc.score(X_test,y_test)

Loss function

Loss function Loss function is Quantity helps to find loss of our model when ever it is greater models perform poor else model perform good. Today we learnt about  Loss function in regression in other class we discus  Loss function in classification There are Several Loss function in regression MSE(Mean Squared Error) MAE(Mean Absolute Error) RMSE(Root Mean Squared Error) R2 Score MSE MSE formula --> 𝛴 (y i -p) 2 Note - MSE is effected by outlier MAE MAE formula --> Σ | y i -p | RMSE RMSE formula --> √Σ (y i -p) 2 R2 Score R2 Score formula --> 1-RSS/TSS RSS=Sum of Square of Residual TSS=Total Sum of Square

Overfitting

Overfitting Overfitting is famous term in machine learning it says in our training data accuracy is good but in testing data and new data from user our model perform bad. Good model vs Overfit model result on training data In this thing, we have to study bias-variance tradeoff bias and variance is loss but bias is loss of training data where variance is loss of testing data they have an inverse relationship means-    B is inversion proportion to the V In overfitting bias is very low but variance is very high Prevention If it is happening with you then simply use the ensemble techniques.