Math / Science

The Math / Science topic primarily includes discussions of mathematics, physics, statistics and economic analysis, but also biology, chemistry and other sciences.

Share tech news, updates, or what's on your mind.

Sign up to Post

How to calculate ''32% Undergraduate Grade Point Average?
0
Hello again,

We forgot to ask you a question about prime numbers.

We are indeed releasing a number primality check tool for which there is no actual size limit beyond the one we have imposed for material resource issues.

However, it is often mentioned the existence of ILLEGAL prime numbers and we do not quite understand the meaning of being able to define a number, which ever it may be, illegal.

However, given the nature of our tool which has no processing limit, we do not wish to have any problem with the authorities.

What is your opinion on the issue, do you think we expose ourselves to any risk by releasing such a tool?

Looking forward to hearing from you.

Best regards,


Ex0-SyS
Roland LECOCQ



P.S. In attachment you will find a text file contains the 3 previous and the 3 next numbers following the first illegal known one that contains 1401 digits.
0
I am trying to find the term used in chemistry to describe the tendency of a 2-way chemical reaction to prefer one chemical combination over the other, such as in Keto-Enol in organic chemistry. I can only recall using the term affinity, but that is not precisely what I am looking for.
0
Hello,

This is a follow-up question to a previous thread located here:

Auto-fill a cell's color based on numeric RGB values and vice versa in Excel

In that thread, the solution (by Ejgil Hedegaard) includes an attached Excel file in which the fill color of a particular cell, automatically changes in response to entering various values in three other cells labeled R (red), G (green), & B (blue).

This functionality is tremendously useful for me (and I suspect will be for others) because it enables you to instantly view the new color resulting from changes in any of the RGB parameters (ie without the necessity of the four clicks typically required to obtain that information):

        Home > Fill Color > More Colors > Custom

(The file also includes a chart for quickly converting from RGB decimal to RGB hex and vice versa.)

Additionally, the solution to the thread contains the formula for calculating Excel's color code:

        ExcelColor = R + G *256 + B *256^2

For example:

        Red = 204
        Green = 102
        Blue = 255

is calculated as follows:

        ExcelColor = 204 + (102*256) + (255*256^2)
        ExcelColor = 16737996

It also displays the following for reversing the process (ie :

        R = C Mod 256
        G = C \ 256 Mod 256
        B = C \ 256^2 Mod 256

Are these three formulas math or code and what is the purpose of the backslash?
0
hi,

I'd like to take a list of intervals defined by pairs of numbers, eg
3,5
2,4
9,12
10,11
15,17

and convert this into a consolidated list counting any overlapping intervals as one, so the above example would give:
2,5
9,12
15,17

See attached drawing that illustrates this.

I want to do this with array/matrix operations, if possible, so I can implement in google sheets without coding.

Thanks
diagram.jpg
0
Can you guys please suggest me some good free web sites for the preparation of mcat exam?
0
Hello

I remember from my days of teaching school science that we used to demagnetize nails by hitting them with a hammer and magnetize them by stroking with a magnet until the atoms aligned in the same direction.

My friend was showing me an app on his phone where the accelerometer sometimes fails and you are advised to reset it by moving the phone in a figure of 8. I was curious why the figure of 8. I'll break my question into 2 separate parts as that's what my feeble brain needs :)  If you are kind enough to respond to this, please can you address the sub-questions in turn. For simplicity I am assuming the accelerometer is just a magnet

a) When atoms reorient themselves to be magnetized do they turn clockwise, anticlockwise or both directions (just curious)?
b) How does the figure of 8 movement reset a magnet? The electromagnetic field lines on either side of a bar magnet do look like a figure of 8 on its side. My days of knowing electromagnetism are long gone but is it a fair simplification to say by following the magnetic field lines that should be around your phone if its magnet were 'working,' you actually realign the atoms in the magnet. If that is the case I'm not sure how this works as it is not as obvious as the notion of  stroking a nail with a magnet to realign the atoms. If my simplification is correct I do not need to know how this works as that probably requires a physics degree so all I would ask is that confirm or disconfirm my suggestion (unless …
0
It's my math problem I'm struck
0
This could be an easy question and in fact, this is simple. But just wondering what's the proper algorithm for lucky draw chances?

Let's say in every new deposit amount of X get a no of chances of Y. Providing X = $1000, Y = 1

If there's a customer A credited $10000, he got 10 chances in this month.
If there's a customer B credited $2000, he got 2 chances in this month.
If there's a customer C credited $100, he got 0 chances in this month.
If there's a customer D credited $3500, he got 3 chances in this month.

By end of this month, how do I use a proper algorithm to pick a lucky draw winner? That's to pick a winner among this 15 chances.

One of the approaches is to create multiple chances in a temp table, and then random a position to pick the winner. But my question is what if the total no of chances is a very big number? Will the process of populating this temp table become slow?

Thank you.
0
A workshop table has an equilateral triangular top each side 900mm the legs are on the three corners . A load of 500N is placed on the table at point distant 325mm from one leg and 625mm from another . What is the load on each of the three legs
0
I have an irregular figure with the sides of 7,7,5,10. What is the area and perimeter of this shape?
15090920255281201159589.jpg
0
I will be given a set of X/Y points and their corresponding Z values. Z = f(X, Y), but I do not know the function f. The points will be clustered together and I don't expect pathological conditions. The local maximums and minimums will have extra sample points to help make the interpolation better. The goal is to come up with a smooth surface that represents the function f as close as possible.

The analyst providing me with the set of points of known XYZ points will also give me an XY rectangular grid; and at all the intersection points of horizontal and vertical lines, I need to provide a z-value.

One thought I had was to consider a point and look at 4 quadrants, and take the closest point in each quadrant, and using those 4 points or more to try to interpolate. Prefer to be able to use a curved surface to get the results rather than linear planes. One rule is that the final results will match the given XYZ points . The given points are known as anchor points or knots.

I am just looking for something functional. I am not interested in speed.

 I am not allowed to use binaries, so I will have to build from source code in Linux or Windows.

Thanks in advance.
Paul
0
Hi,

I'm blanking out here on proper terminology. Suppose I have an array (e.g. of seasonal records for a sports team).

2016: Wins: 8. Losses; 2.  Percentage: 80.00
2017: Wins: 4: Losses: 6.  Percentage: 40.00

The dataset also contains a totals object:
Wins:  12: Losses: 8. Percentage: 60.00

Wins &  Losses are the SUM of the individual elements. But, what's the term for the Percentage (60.00). Aggregate?

Need the above for an API guide.
Thanks,
Steve
0
One of the datacenters a company uses is a converted nuclear shelter.
Switzerland, paranoid about security, has enough nuclear shelters to protect all of its inhabitants. Imagine if we converted all of these nuclear shelters to power racks and racks of standard 1U servers instead. How many servers can we support? Make your best guess and round your answer to the nearest million.
0
A company's email product runs in the browser and supports multiple composers windows (the box where you write an email). Imagine a browser window of width L. Each composer has width W. There are a total of N composers. When the number N is large, composer windows must overlap so that all composers can fit within width L. Each composer has the same overlap X. What is X in terms of N, W, and L?
0
Parliament has 100 seats. Only parties with strictly more than 5% of votes can qualify to get seats. There are 12 parties participating. Seats are distributed to the parties that qualify to get seats, proportionally to their votes. Votes are strictly for 1 party (no voting for multiple parties or no party).
What is the maximum number of seats that a party with 25% of the votes can get?
0
hi,

Say you're shopping for some ingredients which come in standard pack sizes of either 100g, 250g or 500g, having prices $0.40, $0.75 and $1.00 respectively.

Depending on the exact quantity you need, you can choose to optimise your choice of pack purchases according to price or minimum wastage, or perhaps some combination of the two.

For example if you need 350g, you could buy 1 x 500g pack for $1.00, and waste 150g, or buy 1 x 250g + 1x100g at a cost of $1.15 and have no wastage.

Given the quantity you need, how could you optimise your pack selection mathematically? (a) for minimum cost, and (b) for minimum wastage?

ie some function(quantity needed) gives the pack sizes and quantities to buy, eg:
f_mincost(350) outputs 1 x 500g
f_minwaste(350) outputs 1 x 250g, 1 x 100g

Here is a spreadsheet with some more examples:
https://docs.google.com/spreadsheets/d/1TMiCPLrCq4pI-SjYUz_AhBY8g_duXlIKfDvOAZo0EC8/edit#gid=531556003

Many thanks
0
A fair coin is tossed 200 times. Find the probability of getting a head an odd number of times
Sol: the number of cases favourable to E is 200C1 + 200C3 +200C5 +200C7 +200C9…. +200C199  = (2200/2)

Dear experts,

Can someone throw more light on the above binomial equation for counting odd number of items which results 2n-1.
Similar will the result change if were to add the even number of times.
What about for adding for all cases where r=prime number and less than ≤n

Kindly help.
Probability-tossing-a-coin.docx
0
Write a function called my_gcd() that takes parameters a and b and returns their greatest common divisor. Create your own implementation of the algorithm and test your code by comparing the output of your function to Python's gcd() function from math package.Test the code with the following inputs: (39, 91), (20, 30) and (40,40). Explain the logic of your function.
0
I have here what I think is a classical O.R. (operations research) problem. I'm looking to formulate it mathematically and look at the options available to solve it.

We have a list of say 100 recipes.

These recipes combined use 400 ingredients.

The quantity of ingredients required for all the recipes could be defined by a matrix dimension 100 x 400.

We can combine recipes into meal plans, so that the ingredients required for a meal plan is the total of the ingredients required for each recipe in the meal plan.

Each ingredient has an associated cost, that varies depending on the quantity bought.

Say the cost variations can be expressed with no more than 5 cost buckets per ingredient. Eg.

Bucket, Cost / kg
< 1kg, £4.00
1-5kg, £3.50
5-20kg, £3.00
20-100kg, £2.80
> 100kg, £2.50

The ingredient costs can be expressed in two matrices each of dimension 400 x 5:
a) One matrix 400 x 5 giving the buckets for each ingredient
b) Another matrix 400 x 5 giving the unit costs per ingredient and bucket number (1 to 5)

A given meal plan will have a given ingredient requirement, with associated total cost determined via the above matrices.

Suppose we constrain the number of meals in the meal plan to say 4 meals, and these 4 meals must be different recipes. For simplicity (!) we have no other constraints for now.

Our objective is to choose our meal plan (4 meals) such that the total cost is minimised.

Questions:
1. How do we formulate this problem?
0
There are huge amount of different slot machines available online, like in the given list here bettingcasinoslots.com. All of them powered by own random generated algorithm. So I would like to know if there some strategies to play slots? I mean when you are playing for money and you want to make even a little profit and it would be great it the strategy does not include loosing money. Researches and publications are appreciated too.
0
The market research department at a manufacturing plant determines that 20% of the
people who purchase the plant’s product during any month will not purchase it in the
next month. On the other hand, 30% of the people who do not purchase the product
during any month will purchase it the next month. In a population of 1000 people, 100
people purchased the product this month. How many will purchase the product in 2 months?
0
Hi Experts,

I have tried to round off a value x = 455.77 using math .round() function but not rounded the value 466.

Code I have given to round off:

var rounded = Math.Round(x, 2, MidpointRounding.AwayFromZero);

Open in new window


Could you guys please explain whats wrong here?

Thanks,
Anjala Baby
0
Dear Experts,

Actually learning the basic of Machine Learning through the following link:

https://machinelearningmastery.com/machine-learning-in-python-step-by-step/

That contains an url url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data" which have the data of 150 records from the iris dataset, but I would like to test the results on more records.

Could you please advise is there on the internet availabe more iris data for free to download?

Thanks in advance,
0
317.2 feets , 297feets , 338feets , 325feets .... Find the total area in acres
0