[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More


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

I have an index and it is only published quarterly. I want to change it to monthly data.  I did the to the power 1/3 so each month in the quarter has the same return and it produces the same return as the quarter. This causes correlation problems with other indices which has monthly data.

Index 1 (Quarterly Data)
Index 2 (Monthly Data)

Index 1
Quarterly Return 0.48%

Index 2
June -6.71%
July 1.29%
August 2.65%
Which bring this quarterly return to -3.00%.

When I am converting Index 1 to monthly data , i would like to use Index 2 as a guidance.  So, it needs to weighted using the Index 2 data when making Index 1 monthly.

I tried the following.

For June Index 2 x1 = (1+ -6.71%)/(1+ 3%) - 1
For July Index 2 x2 =(1+ 1.29%)/(1+ 3%) - 1
For August Index 3 x3 = (1+ 2.65%)/(1+ 3%) - 1

For June Index 1  y1= (x1/(x1+x2+x3)) * 0.48%        (0.48% is the quarterly return for Index 1)
For July Index 1 y2= (x2/(x1+x2+x3)) * 0.48%        (0.48% is the quarterly return for Index 1)
For August Index 1  y3= (x3/(x1+x2+x3)) * 0.48%        (0.48% is the quarterly return for Index 1)

Then when I compound (1+y1)(1*y2)(1*y3) - 1 = 0.48% So it worked for this quarter.

It works great for some quarters but it doesn't work for some quarters. In some quarters, when I compound y1 y2 y3, i get a number very different from the actual quarterly data for Index 1.  Please see the attached file for the excel file. It has the calculations.
Introduction to R
LVL 12
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Attached are few pages from Image Signal Processing textbook.  It talks about how image is acquired from pinhole  Camera model.

They come up with Two equations from matching similar triangles.  Please identify the similar triangles.  And how they come up with Two equations from similar triangles?

My question is in following line of section 1.2.1
"By matching similar triangles we obtain the relations"
y = -f * (Y / Z)     and     x = -f * (X / Z)
Proper AWG for low voltage application.

I want to run some wire for a low voltage lighting.  The transformer supply will be about 6 -8 feet from the LED lights.  Transformer max output is rated at 36 watts.
36w / 12v = 3Amps.  (max)

Question: What would be safe wire gage to use ?  Was considering using 16AWG lamp cord ?   Most of the documentation and/or charts that I can find online shows 16AWG would be sufficient.  See Attached.
Hi I have a problem, I'm trying to solve for x,
Please help me to identify the correct type or find a replacement alternative to the broken mini push button used in GPS Prestigio Geovision 5055 as seen in the photos from attached pdf file.


Is there a way to calculate percentile rank using a conditional statement. For example, PERCENTRANK.EXC of column Ratio if Rating value is AAA. Example is attached.


I am unable to understand how we can derive: (S,K and cap are positive integers)

3*( max(S-K,0) – max(S – (K+Cap/3),0))


3* min(max((S – K,0), Cap/3)

From plugging values in 3* min(max((S – K,0), Cap/3) , I can see that it is equivalent. But how do i think about this?

Water molecules can be joined by hydrogen bounds. Should be these clusters calculated as one particle? Is there any theory that can estimate the numbers of all particles (moles) per one kilogram of pure water? Is it possible to calculate also the distributions of the water molecules through these clusters? E.g. number (moles) of clusters composed with two molecules of water.
I have a set of points and if I draw them on a paper, I have a diagram like the image in attached file.
I want to find any almost horizontal curve/line in the scattered points, something like another image in the attached files, the image with red diagram.
the result will be like below image:

In fact what I want as output is an array of points that are on the line/curve, or the equation which gives me the y component of the point if I set the x value.

I searched for a Java/Android library or code that does the job but didn't find any. I would appreciate if you let me know about the exact mathematical process or any Java/Android library or class that does the job.

Thanks in advance.
Dear experts,

The below url shows the compound interest calculations - discrete and continuous.


In the video between time lines 6.45 minutes - 7.05 minutes, it shows log 2/0.05 = 11.55 yrs

If log 2 to the base 10 gives 0.3010. Then 0.3010/.06 = c5.016. How is the number 11.55 arrived?

Is it considering log 2 to the base 'e'?

then in which cases do we calculate log use base 'e'?

Thank you

Kindly help.
Exploring ASP.NET Core: Fundamentals
LVL 12
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Hi to all,

I use findpeaks function in my code to calculate the four maximum values of a fft function.

I use it in this way:

[maxpeaks, idx] = findpeaks(10*log10(psdx),'MinPeakDistance',195,'NPeaks',4,'MinPeakHeight', -Inf, 'SortStr','descend')

Open in new window

The problem is that I need to run the code in a Matlab version which doesn't have the Signal Processing Toolbox. Is there any solution to write a similar function without the need of the SP Toolbox?

Thank you!
Hello! I am trying to figure out (am I am completely new to Livecycle) how to track an employees time they spent traveling whether it be in one day or for overseas folks multiple days, and either find the time duration or adding the estimated time it takes for each segment of their trip in order to calculate the time our of their normal work hours they are eligible for time compensation. I cannot decide if its easier to do a duration between two times or do like the previous form in excel , and calculate with decimals. After the time duration is calculated, they will enter in either decimals or mins, the time it takes to get from their home to work and it will be subtracted from the total hours they spent traveling. I have been searching for formulas to do this but I don't have an experience with javaspript or formcalc. When someone does post a formula I have no idea how to implement it into livecycle. Thanks!
I would like to perform fractal analysis on a financial series (stock exchange index). What shall I use (prices or log returns) for calculating fractal dimension, Hurst Exponent, for performing R/S Analysis and for predictions? Are there R functions that calculate all of these immediately? Are there any things I need to take care of when analyzing the index? Thank you in advance!
At the time of Solving the angle dependence with time for a simple pendulum without taking approximation i got a 2nd degree Differential equation After integrating for one time i got a constant and took It as m and end up with another Integration and lost My Hope over It.
Integral of one over Square root of (m+cosx) last Hope that one may say how to solve this 😖😖
While learning about converting numbers to hexadecimal, I found a video that seems to explain it good. I understand most of it. But could someone explain why a number like one (1) divided by 16 produces 0 with a remainder of 1?
5815 / 16 = 363 R 7
 363 / 16 = 22  R 11 (B)
  22 / 16 = 1   R 6
   1 / 16 = 0   R 1
Result = 16B7

Open in new window

I'm trying to calculate fastener load for a shelf of the given dimensions below.

|               20.5"

This is an L shelf with the load being placed on the bottom portion

For the moment let's assume the materials used are able to support the required load. I am fully aware that I need to evaluate the materials used, bracing, and sizing, etc.  This is really just a starting point.  My goal is to create a "floating shelf" where the rear brackets will be hidden by the load.

 I am thinking of using either 3, or 5 L brackets made of 2" wide by 1/4" thick hot rolled a36 plate that has been waterjet cut into the specified L shape and size.  The brackets will set "edgewise" against the mounting wall, with bracket tabs welded on at the top, and the bottom of the back to support the load.  The load bearing surface of the shelf will be covered in thin plate, likely 1/8"   Also the 850lb load will be evenly distributed across the shelf, however the load is only 18 inches wide (deep).  In order for it to fit on the bracket, the bottom leg will need to be 20.5" to account for the dimension of the rear brace.   The reality in that case is, that the center mass will be shifted 2" away from the wall mounting plane.  

The shelf will be 48" (long) against the wall.  

If I were to use 3 brackets, and 3 top fasteners (one at each bracket) and 3 bottom fasteners, how would one calculate the rotational load of the bracket, and in …
Can anyone tell what is the difference between data analytics and data science?
I am trying to figure out how this equation works but I cannot understand the steps.

Calculate demand with 10% lower rate
50 per hour
% change quantity (Q1 – Q0)/Q0
(Q1 - 2,000 )/2000 = 1- (Q1 /2000)
% change price -10% = (P1 – P0)/P0
Elasticity = -.5 = [(Q1 /2000)-1]/-10%
Solve and get Q1 = 2000 x 1.05 = 2100
Demand goes up 100 hours
P x Q = Revenue = 45x2100=


The steps in this calculation are:

Elasticity = ΔQ% / ΔP%
Elasticity = [(Q1 – Q0)/Q0] / [(P1 – P0)/P0]
Elasticity x [(P1 – P0)/P0] = [(Q1 – Q0)/Q0]
Elasticity x [(P1 – P0)/P0] x Q0 = (Q1 – Q0)
{Elasticity x [(P1 – P0)/P0] x Q0} + Q0= Q1
{-.5 x [-.1] x 2000} + 2000= Q1
{100} + 2000= Q1
2100= Q1

Can someone explain to me the steps needed to solve this?
I cannot seem to arrive at the same answer as the example. Therefore I dont
think I understand the proper order and steps required. Can someone explain so I can improve my skills?

Is there anyone that can help?

he cut some apples into eighths. she and her friends ate all but 17 pieces. how many whole apples and parts of apples did she have left over? tell how you know?
Fundamentals of JavaScript
LVL 12
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.


I am doing a fitness trainer course alongside my computing and I am confused about the terms used to rotate the hip. The images on Google images also seem to be conflicting

Imagine the knee is bent and lifted up I thought lateral rotation was moving the hip away from the midline of the body to the leg makes a 'r' shape with the feumr being the top of the r and medially rotation was turning it back to its starting position.

This page states that external rotation is lateral rotation and it is the rotary movement that is occurring in the vertical axis when the femur moves away from midline, thereby turning the thigh or pelvis outward.1 the hip can rotate externally 45 degrees.


I extrpaolate from that that medial roation is internal rotation. Correct?

However the image I have attached called incorrect internal and external extension seems to suggest the opposite of the website. The second image is what I would have expected to see

Is the first image incorrect or have I misunderstood as there are so many different sites and pictures it can get confusing. But the second image is intuitive which does make it feel correct. The first image could be a labeling error. I hope so :)

Many thanks in advance
I am drawing rectangle using 4 points. User should resize rectangle by mouse drag one of rectangle points. So program should  appropriately calculate two neighboring points of the rectangle while the diagonally opposed point is stationary.

Calculating is simple if rectangle is not rotated, but how to calculate points if it is rotated.... for example 30 degrees ?
It is mathematical and program problem and I am a little short how to do it in C++.
twitter sentiment analysis using Matlab   , kindly tell me whenever i import MaxentTagger class , i generate error that *. is must fot import statement..

Even i put *. but still MaxentTagger methods are not imoported in my program.....    

function result = PosTaggerM(str)
      import java.io.*;
      import edu.stanford.nlp.tagger.maxent.MaxentTagger.*;

      % This initialization is expensive.
        % It is better to create the tagger once and then reuse it.
      tagger = MaxentTagger('C:/Program Files/MATLAB/R2017a/bin/english-left3words-distsim.tagger');
      result = java.util.ArrayList();
      sentences = MaxentTagger.tokenizeText(StringReader(str));
      for ii = 1:size(sentences)
            tSentence = tagger.tagSentence(sentences.get(ii-1));

ERROR GENERATED on RUN     Undefined function or variable 'MaxentTagger'.

Error in PosTaggerM (line 40)
      tagger = MaxentTagger('C:/Program Files/MATLAB/R2017a/bin/english-left3words-distsim.tagger');
I watch and have looked at information to get me  as far as I am now all I need before I can run is to target it I know its com  but have no I idea on the prefix
I got the positive number multiplication right and I can kinda do negative numbers . but I cant do both at the same time
my try code
        STA A
        STA B
        LDA A
        BRZ END
        LDA B
        BRZ END
        LDA NUM
        SUB B
        BRP CHANGE
        SUB B
        STA B
        LDA NUM
        SUB A
        STA A
        BRZ END
        SUB ONE
        STA B
        LDA P
        ADD A
        STA P
        BRA LOOP
        SUB P
        STA P
A       DAT
B       DAT
P       DAT 0
ONE     DAT 1
NUM     DAT 0
calculate the disk capacity transfer rate
given that no. of recording=10,no. of tracks per surface=256,no. of sector per track=32,no. of bytes per sector=128,disk rotation speed=2400 rpm