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 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.
Cloud Class® Course: Microsoft Office 2010
LVL 12
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

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.
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?

Cloud Class® Course: C++ 11 Fundamentals
LVL 12
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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?

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 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
In a previous question we're shopping for an ingredient which comes in standard pack sizes of either 100g, 250g or 500g, having prices $0.40, $0.75 and $1.00 respectively.


PackSize = {100; 250; 500}
PackPrice = {0.40; 0.75; 1.00}

QuantityNeeded = {0.... up in steps of GCD(PackSize)... MaxQuantity }

GCD = greatest common divisor, eg GCD({100; 250; 500}) = 50

We only need to define a table with intervals in these steps as in between there won't be any change in the cost. I think this logic is right, please correct me if wrong.

We then define f_mincost(QuantityNeeded ) as the set of packs that meets the QuantityNeeded at minimum cost, eg:

f_mincost(1050) gives 1 x 100g + 2 x 500g at a total cost of $2.40

This problem is solved in the previous question by using dynamic programming to create a lookup table of values:

a) Quantity needed, eg 1050
b) Minimum cost, eg $2.40
c) Pack selection, eg 100, 500, 500

1. What MaxQuantity do we need to tabulate upto before the pattern is repeating
    ie MaxQuantity = some function of Packsize
2. How can we define f_mincost(QuantityNeeded) as a function of this repeating pattern
   eg what is f_mincost(6400) as a function of f_mincost(some value <= MaxQuantity)

This is is probably straightforward but after the previous question my head has been frazzled!

Thanks again
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.
Cloud Class® Course: MCSA MCSE Windows Server 2012
LVL 12
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

1. Write the pseudocode and draw the flowchart for a hotel program to determine the cost a customer has to pay for a stay based on the following pricing policy of the choice of room:
>>>Room for 1 to 2 people: RM85
>>>Room for 3 to 4 people: RM90
>>>Room for 5 to 6 people: RM120
>>>Room for > 6 people, RM125 plus charge for additional people at RM25 per person

If the customer has a membership card, there is a 20% discount. If the customer wants to pay using credit card, there is a 15% discount. A customer cannot receive both discounts. If the customer wants to pay using credit card and has a membership card, the highest discount rate will be given.

Answer these questions before you start solving the problem.
What is the output?
→Cost of customer has to pay for a stay
How many input(s) is/are needed?
What is/are the input(s)?
→number of people, number of days, payment type,
What is the process (equation) to find the output?                                                                                                                    
→cost = number of days * 85
→cost = number of days * 90
→cost = number of days * 120
→additional people = number of people - 6
→cost = number of days * [125 + 25 (additional people)]
→membership card =  cost * 80/100
→credit card = cost * 85/100
How many different calculation(s) is/are needed?
What structure need to be used to select which is the correct calculation to use? Repetition or decision? →decision…
It is for a science project we just don't have any weighing scales to test it ourselves
How much more will the cost be for a wager on V5 compared to V4 when adjusting for difference in probability, price per unit and track's deduction?:

For V5 (a type of wagering on harness racing where you should pick the winner in 5 races), the probability to pick the winners in the five races is 12 times more difficult compared to for V4 (1/248832 divided with 1/20736; (12x12x12x12x12)/(12x12x12x12)), which means you need to spend 12 times more units on V5 to achieve the same probability. However, this should be adjusted first for price per unit, which for V4 is 2 SEK and for V5 is 1 SEK, so the adjustment becomes 12 x 0.5 = 6.

The final adjustment is for the racing track's deduction, which for V4 is 25 % and for V5 is 35 %.

Is this correct?:

6 + (0.1/0.25) = 6.4

Which means in order to compensate for lower probability in V5 compared to V4, and for difference in price per unit (V4: 2 SEK; V5 1 SEK) and difference in track's deduction (V4: 25 %; V5 35 %), I need to spend 6.4 times more units/money on V5 compared to V4 so that I in the end have the same probability to win on my wager on both V4 and V5, provided that the payouts on both the wagers are the same.

Or do I get it wrong? Is it that the payout on V5 needs to be 6.4 times higher than on V4 in order to compensate for the difference in probability, price per unit and track's deduction?
I am trying to rotate an object and get the following error message: 1119:access of possibly undefined property Math through a reference with a static type class. Thank you for your help

 here is the code


stage.addEventListener(MouseEvent.MOUSE_MOVE, FollowMouse);
function FollowMouse(event:MouseEvent):void
      var SideY:Number = mouseY-circle.Y;
      var SideX:Number = mouseY-circle.X;
      var Rad:Number = Math.atan2(SideY,SideX);
      var Deg:Number = Rad * 180/Math.PI;
      circle.rotation = Deg;
I heard gastritis and heartburn can be solved by ingesting alkaline substances.
Alkaline plants supposedly containing alkaline substances can be ingested to lower the pH value in the stomach due to stomach acid.
I'm trying to extract alkaline substances from plants using simple boiling extraction.
Thus, I tried to extract alkaline substances from a alkaline plant, dandelion, in ethanol and ethyl acetate solvent for 10~15 minutes.
The solution was filtered with carbon black for decolourization, but it didn't show alkaline colour with universal indicator.

So... I've got some questions to ask

1. Is dandelion alkaline?
2. If it's alkaline, is it possible to extract alakline substances or alkaloids from the plant?
3. If dandelion is not alkaline enough, then could there be any othe ralternative plant or food that can be extracted alkaline substances?
4. Is alkaloid alkaline?
5. What are the alkaline substances coming from?
6. If the simple boiling extraction doesn't work , is there any other ways that I can extract alkaline substances from the plants?

Could you explain in high school level.
I hope this forum can also help regarding electricity science.
Need to purchase a few single cells of lipo and ni-mh battery types >> high drain >> for airsoft purpuse, and rc!

1. Would like to get anykind information to get them from any Europe dealers, wholesalers,distributors, etc?
2. Or, name of a few manufacturers companies?

Thanks in advance...

Math / Science

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