answersLogoWhite

0

Numerical Analysis and Simulation

The study of algorithms for problems related to continuous mathematics

818 Questions

Binary search iterative method over recurssive method?

#include <iostream>

#include <conio.h>

int linearSearch( const int array[], int length, int value);

int main()

{

const int arraySize = 100;

int a[arraySize];

int element;

for( int i = 0; i < arraySize; i++)

{

a[i] = 2 * i;

}

element = linearSearch( a, arraySize, 10);

if( element != -1 )

cout << "Found value in element " << element << endl;

else

cout << "Value not found." << endl;

getch();

return 0;

}

int linearSearch( const int array[], int length, int value)

{

if(length==0) return -1;

else if (array[length-1]==value) return length-1;

else return urch( array, length-1, value);

}

it is in c++ language ,u can change it to c by including stdio.h ,printf & scanf.....i think it wud be beneficial

have a look their too. similar program like that and easy understanding

http://fahad-cprogramming.blogspot.com/2014/02/linear-search-program-in-c-using.html

What is the advantage of using OLS method?

OLS leads to a closed-form solution. The problems in other metrics such as L1 do not. Furthermore, the statistical theory for OLS is much richer than for other metrics in spite of the fact that OLS leads to difficulties in dealing with 'outliers'.

How many possible area codes can you get without using 0 as the first number?

It depends on how many digits in an area code. North America (USA, Canada, etc.) uses a uniform system of 3-digit area codes, but many other countries do not.

Assuming a 3-digit area code and no other restrictions other than "first digit not zero," that leaves 900 possible area codes.

What are the differences between numerical methods and numerical analysis?

A numerical method is the same as an algorithm, the steps required to solve a numerical problem. Algorithms became very important as computers were increasingly used to solve problems. It was no longer necessary to solve complex mathematical problems with a single closed form equation. See link on algorithm. According to Wikipedia: Numerical analysis is the study of algorithms for the problems of continuous mathematics (as distinguished from discrete mathematics). See link on numerical analysis. An expanded definition offered by K.E. Atkinson is: Numerical analysis is the area of mathematics and computer science that creates, analyzes, and implements algorithms for solving numerically the problems of continuous mathematics. Such problems originate generally from real-world applications of algebra, geometry and calculus, and they involve variables which vary continuously; these problems occur throughout the natural sciences,social sciences, engineering, medicine, and business. Numerical analysis courses typically are offered as part of Industrial engineering (Operations research), applied mathematics, computer science. Simulation, operations research and computer science are very interrelated

What is the equation for velocity what units for each variable?

velocity is the distance divided by the time it takes to go that distance.

let velocity equal V

let distance equal D

let time equal T

v = d/t

velocity has units of length per rate

distance has units of length

time has units of rate

the length can have units such as

1) meters, centimeters, millimeters, kilometers

2) feet, inches

3) yards

the time can have units such as

1) seconds, minutes, hours, years

it depends on which system you are using for you units then you will know which units to choose from. the most common is meters per second (m/s)

What are the consecutive angles of a convex pentagon?

The consecutive angles are ones that are next to ano another when going around the pentagon in either direction.

How many hours is it till 7 o clock Saturday 2 of April?

It depends on whether you meant AM or PM.

As of 6:15PM on Thursday, March 31, when this question was answered, it is 35.5 hours to 7:00AM on Saturday, April 2, and it is 47.5 hours to 7:00PM on Saturday, April 2

What if you double a triangular number?

You get a sequence of doubled triangular numbers.

This sequence can also be represented by

Un = n*(n + 1), [products of pairs of consecutive integers]

Under what condition will percentage error be negative?

it will be negative if the accepted value is less than the experimental value

**********************2nd Opinion************

Don't you have that turned around?

How many people can play in baseball what are the positions?

In Major league baseball...

25 players on a roster.

9 players on the field at once.

Positions and abbreviations are.........................

Pitcher P

Catcher C

First Baseman 1B

Second Baseman 2B

Third Baseman 3B

Left Field LF

Center Field CF

Right Field RF

Designated Hitter DH

In the AL,(American League),there is something called a designated hitter who hits in the place of the pitcher.

What are the primary methods used to develop an algorithm?

Three methods commonly used to develop the algorithm are flowcharts, pseudocode, and hierarchy charts.

How do you make roman numeral in keyboard?

I hope ur kidding. But you are serious use capital X I V L C D and M

What is the error propagation in numerical methods?

Error propagation in numerical analysis is just calculating the uncertainty or error of an approximation against the actual value it is trying to approximate. This error is usually shown as either an absolute error, which shows how far away the approximation is as a number value, or as a relative error, which shows how far away the approximation is as a percentage value.

What are the essential elements of modern day statistics?

Modern day statistics involves the collection, organization, interpretation and the resulting presentation of numerical information.