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

Hi,
I am trying to check integration using two different methods, first by using [function (int)] and second by using summation. I am integration from high to low values (0.1 to 0). I got same result. However, from function I got positive value (0.005) and from summation, negative value (-0.005). I am not sure if that because I am integrating from high to low values so I need to use (dr) in negative value when finding the integration using summation.

I used below code

clear all; clc; syms x y y = -x; z=int(y,x); v=[0:0.1/19:0.1]; dr=0.1/20; for i=1:20 x=v(i); kk(i)=eval(y)*(dr); end R1=sum(kk(1,:)); x=0.1; z1=eval(z); x=0; z2=eval(z); R2=z2-z1;

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

import flash.events.MouseEvent;

stage.addEventListener(MouseEvent.MOUSE_MOVE, FollowMouse);
function FollowMouse(event:MouseEvent):void
{
var SideY:Number = mouseY-circle.Y;
var SideX:Number = mouseY-circle.X;

I'm programming Infineon TC29x Aurix Tricore Microcontroller based embedded system in 'C' language.

I need to set program counter to illegal address, i.e. 0x00FF FFFC. Can this be done with assembly language instructions?
If yes, please instrument assembly language instruction that would set program counter to 0x00FF FFFC while code is running.

I know I post a lot of article on here, but this is one you really should read. Right now we are reaching the limits silicone. The smallest transistors (that I have heard of) are just 7 nm (7 atoms wide). At this point it becomes very difficult to make the transistor stable. We are going to have to come up with a new material. That's where quantum computing steps in. It uses qubits , small particles that are smaller than an atom. Unlike traditional computing, a qubit can exist as both a 1 and a 0 at the same time. Again it is very hard to make them stable, but as we continue to increase them it will be the next big jump in computer technology. And this one will make the jump from vacuum tubes to the transistor look like a pinprick!

I would like to implement a fast fixed point sine approximation for PIC24F microcontrollers on 16bit.
I started from here: http://www.coranac.com/2009/07/sines/
The approximation is done with polynomials: 3rd order up to 5th or even 6th order.
I am stuck in the beginning.
The 3rd order polynomial is S3(x)=(3/PI)*x-(4/PI^3)*(x^3) or S3(z)=(1/2)*z*(3-z^2) with z=x/(1/(2*PI))
I tried an Excel sheet for this function and I compared with sin() from Excel.
Either I make a mistake or the approximation error is too big.
Here is the Excel: https://goo.gl/2KJXj8
Could you help to debug this?

I have a client who has an issue getting the LINEST() function to work for them. This is my first time using LINEST(), and what seemed, at first, to be straightforward has deepened considerably in levels of complexity. I am an accomplished VBA programmer, and I feel the best way to give the client what they need is to duplicate the equation in VBA to calculate the slope (m) when there are multiple X Axes. When only one X axis exists, I have validated LINEST against my own independent calculation, as shown by the equation below.

I am looking for a similar equation I can apply, given 2 or more X Axes. Reproducing the underlying query in VBA will make for a much more versatile function, capable of calculating LINEST in a more wide-ranging set of circumstances than Excel currently allows, thus meeting my client's requirements. For those not familiar with LINEST(), I have included a couple of sites that have given me the best start on solving the problem. The office support site provided the equation, as shown above, which gave me a reliable means to have an independent check against the Excel function on a single X axis. Every site I've seen thus far provides the LINEST() equation for multiple X Axes, but nowhere have I seen a more nuanced formula that tells me what Excel is doing to derive that number. That's my missing piece.

Thanks, in advance, for your support. ~ Peter Ferber

I have a report I created that shows how many items we shipped on time, early and late. I am trying to find out the percentage of on time.

So for example the totals at the end of the report come out to 92 early 81 on time and 53 late. What would the formula be to figure out the total percentage of on time (early counts as on time as well)?

I am recreating a project I did over 20 years ago to calculate the mandelbrot set. The code I have written is very simple yet is behaving strangely in two ways:

1) Where I have put in the statusLabel.text = "Working" - it does not change the value on screen. Even if I put a sleep command in after the change, it still remains at the original value.

2) At the moment, the program will draw a block of orange pixels (haven't figured out the mathematics yet) but only if the Console.WriteLine commands are there. If I comment them out, not a single pixel is drawn.

---
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;

namespace Mandelbrot3
{
public partial class Mandelbrot : Form
{
public Mandelbrot()
{
InitializeComponent();
statusLabel.Text = "Ready";
}

private void goButton_Click(object sender, EventArgs e)
{
int Width = 320, Height = 160, x, y, n;

Bitmap b = new Bitmap(Width, Height);
mandelbrotPanel.BackgroundImage = (Image)b;

I am using MATLAB to solve equation using (syms) then evaluating the result. The program is working. However, each loop taking almost 23 second. Is there anyway that I can optimize program so it will work faster?

I used the below code

clear;clc;syms A B C D E ; R=((4*B*A)/((D-C)^2+(B+A)^2));R1=((4*B*A)/((D+C)^2+(B+A)^2));F1 = ellipticK(R);I1 = ellipticE(R);F2 = ellipticK(R1);I2 = ellipticE(R1);P= ((((A*B)^(1/2))/(2*E*(R^(1/2))))*(((2 - R)*F1) -... (2*I1)))-(((((A*B)^(1/2))/(2*E*(R1^(1/2)))))* ... (((2 - R1)*F2) - (2*I2)));P1=feval(symengine,'simplify',P,'IgnoreAnalyticConstraints');X=(1/B)*(diff(P1,D));X1=feval(symengine,'simplify',X,'IgnoreAnalyticConstraints');[B,D]= meshgrid(linspace(0.1,10),linspace(0.1,10));E=3;N1 = 10*rand(100000,1);N2 = 5*rand(100000,1);M(:)=0;for i=1:100000 tic A=N1(i);C=N2(i); F = matlabFunction(X1); B = F(A, B, C, D, E); In(:,:,i)=B(:,:); fprintf('%d\n ', i); tocend

We are using TC29x Microcontroller. The flash size is 6Mbytes. There are Three banks, 2Mbyte each.

Program Flash 0 (PF0) is bank 1. Program Flash 1 (PF1) is bank 2. Program Flash 2 (PF2) is bank 3.

PF0 address range is: 0x8000 0000 - 0x801F FFFF
PF1 address range is: 0x8020 0000 - 0x803F FFFF
PF2 address range is: 0x8040 0000 - 0x805F FFFF

Where is Program Flash ECC stored. Is it within 6Mbyte ? Or is there additional storage space for ECC that we don't have access to ?

How does Flash ECC work ? For how many bytes of data, how many bytes of ECC are there ? Whenever we write to flash, ECC updates? When we erase flash ECC updates?

How is it possible to create Flash ECC Error ? Because everytime you write or erase flash, ECC will update?

The above was gifted. what would be most ideal specifications to aim for this (for elec wire to go with this for outdoor use)? when searching for outdoor electrical wire, below are specs are needed to be filtered thru.. can you guide how you would choose in the below availability..

ideally, more durable to last a few years. (mainly for summer, and possible little snow blower too)
also ideal to have feature to roll it up when not in use

In a class of 40 students, everyone has either a pierced nose or a pierced ear. The professor asks everyone with a pierced nose to raise his or her hand. Nine hands go up. Then the professor asked everyone with a pierced ear to do likewise. This time there are 33 hands raised. How many students have piercings both on their ears and their noses?

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Hence informing the following:
Answer count depends on
1. data type you are using.
2. related programming language
3. compiler whether 32 bit or 64 bit
4. related applications(either a.out or program.exe or java or browser or ...)

I'm in the Business Intelligence Department, but practically speaking we're the Reporting Department, your basic operational type of reports - lists, lists, and more lists.

I'm at an institution of higher learning, and a new project has come up for the Math Department. They want to know relationships between courses, grades, etc.

Examples:

- if someone gets a D in Calc I, what's the likelihood of graduation? with various permutations, like taking Calc I again
- what's the likelihood of someone getting a D in Calc I, getting a D or F in Calc II
- for placing incoming students in Pre-Calc or Calc I, what are the factors that indicate success? such as Verbal SAT

So I think I've targeted the right discipline (Analytics), but not sure where to take this project.

For a birthday gift for a teen aspiring to put canon camera to good use for scenic photography and also making summer business of taking family portraits, what would be ideal camera lens to gift?

already in procession: 55-250 and 18-55.

any technical ideas on what to consider would be appreciated

In order to draw all the polynomial equations (f(x)=x^2 +7x+12) I am looking at excel based formulae (linking to the graph).

What i am looking at is for excel which can handle input and provide the Y value and also draw the graph. In addition I should be able to overlay it shifts/compression and expansion.

Explaining some of the many benefits of being able to program bacterial life via computer programming software. What we could do by understanding the genetic makeup of a bacterium, and how we would be able to program that bacterium to execute endless tasks in the future. feel free to ask questions.

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