Skip to content
the poor coder

If X + Y means “X is the daughter of Y”, X * Y means “X is the son of Y” and X-Y means “X is the wife of Y”, then in the expression “Z * T - S * U - P”, What is U to Z?

Poor Man
Published
Reading time
1 min read

If X + Y means “X is the daughter of Y”, X * Y means “X is the son of Y” and X-Y means “X is the wife of Y”, then in the expression “Z * T - S * U - P”, What is U to Z?#

To solve the given expression, we need to understand the meanings of the operators +, *, and - as defined in the question. According to the given definitions:

  • X + Y means “X is the daughter of Y”
  • X * Y means “X is the son of Y”
  • X - Y means “X is the wife of Y”

So, for example, if we have:

Text
Z + T

It means "Z is the daughter of T".

Now let's apply these definitions to the given expression:

Text
Z * T - S * U - P

This means "Z is the son of T, S is the wife of U, and then we subtract P from that". But we are asked to find what U is to Z. So, if we rearrange the expression to isolate U-Z relationship, we get:

Text
Z * T - P = S * U

This means "Z is the son of T and P is subtracted from that, which equals S being married to U". Now we can isolate U:

Text
U = (Z * T - P) / S

So, U is the wife of S and her husband is Z's father (T), but her relationship with Z is determined by the value of P. If P is 0, then U is Z's mother, if P is not 0, then U is still Z's stepmother.

Keep going

2023

how to sort an array

How to Sort an Array If you have an array and you want to order its elements in a specific way, you need to use a sorting algorithm. There are several sorting algorithms available, but two of the most commonly used are…

javascript2 min read
2023

jquery mobile or desktop

jQuery Mobile or Desktop? As a web developer, I have had some experience with both jQuery Mobile and jQuery Desktop. Both frameworks have their pros and cons, and which one to use really depends on the specific project…

javascript1 min read
2023

node.js folder structure

Node.js Folder Structure If you are new to Node.js, it can be daunting to create a folder structure that will work for your project. The structure you choose will depend on the size and complexity of your project. Here…

javascript1 min read
ESC