Questions tagged [computation]

Computation is paramount to the discipline of computer science, and deals with the type and use of computing technology in information processing, in particular, in the context of an algorithm, or a protocol.

From Wiki

In the theory of computation, a diversity of mathematical models of computers have been developed. Typical mathematical models of computers are the following:

  • State models including Turing machine, push-down automaton, finite state automaton, and PRAM
  • Functional models including lambda calculus
  • Logical models including logic programming
  • Concurrent models including actor model and process calculi
404 questions
0
votes
1 answer

Adding numbers bi-weekly in javascript

Just want a help for adding numbers bi-weekly. Let's say, Start date : Jan 15, 2012 End date : May 15, 2012 Value : 300.00 What I want to accomplish is that, every 15th and last day of the month 300 will be multiplied to how many 15th and last…
Jhay
  • 77
  • 3
  • 14
-1
votes
0 answers

Overhead in parallel tasks in Python

I have a coordinate array of shape X.shape = (100000, 1000) and a property array of shape P.shape = (100000, 1000). I wish to calculate the distance dependent autocorrelation function of property P which I explain below. First I remind that the…
-1
votes
1 answer

Computation of Physics

import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # Parameter simulasi Lx = 10.0 # Panjang domain pada sumbu x Ly = 5.0 # Panjang domain pada sumbu y nx = 100 # Jumlah grid pada sumbu x ny = 50 #…
-1
votes
3 answers

Summing list to specific treshold with zeros trace

Is there a reasonable way to get the following done in fast compilation way? I try to sum the list of numbers to specific treshold and replace previous values to 0. I'm looking for the fastest compilation way (the list has 18 kk records). For given…
na ni
  • 1
-1
votes
1 answer

How to write Bessel function using power series method in Python without Sympy?

I am studying Computational Physics with a lecturer who always ask me to write Python and Matlab code without using instant code (a library that gives me final answer without showing mathematical expression). So I try to write Bessel function for…
-1
votes
1 answer

How to use sum in MYSQL

This my code and I want a output like in the picture: SELECT `test`.custinfo.CustID, OtherDeductionName AS DeductionName, sum(OtherDeductionAmount) as DeductionAmount FROM `db_payroll`.`tbl_otherdeductions` LEFT JOIN `db_payroll`.tbl_payroll ON…
allan
  • 7
  • 1
-1
votes
1 answer

proof of SAT np completeness

I know if we want to prove the np completeness of some problem we must show these : there is a nondeterministic polynomial solution for the problem all other np problems are reducible to the problem in the case of sat problem it's easy to show…
-1
votes
1 answer

How much computationally expensive is Matrix multiplication?

What advantage does the function N(x;θ) = θ1(θ2*x) has over G(x;θ) = θ*x for an input vector x ∈ R^n θ1 ∈ R^(nx1) θ2 ∈ R^(1xn) θ ∈ R^(nxn)
-1
votes
1 answer

What are the chances of a 1 + 1 sum giving the wrong result?

I know that, for as much as we want to believe computers to be unerring, transistors are not perfect and 1 + 1 will not always return 2, at a transistor level. I also know that, to protect us from errors, most computers nowadays have redundancy,…
Daniele Molinari
  • 541
  • 6
  • 29
-1
votes
1 answer

Need help understanding this this function

Dim i as Long, arr(5) As Long for i = 1 to 6 arr(i-1) = i-1 next console.writeLine(arr(LBound(arr)+5) + arr(UBound(arr)-2)) I understand the output is 8 but could someone explain why it is 8, Lbound and UBound, this type of question comes up…
loco3424
  • 23
  • 2
  • 6
-1
votes
1 answer

How to decide if a language is In R or RE or CoRE

I have these three languages I don't know how to decide whether the language is in R or RE or coRE L1={| epsilon belongs to L(M)} L2={|M doesn't accept any prefix of w} L3={|there exists w where M accepts all the prefixes of w}
S K
  • 41
  • 5
-1
votes
1 answer

How do I display the output of a function of multiple qualtrics sliders in real time?

My colleague and I am designing a survey using Qualtrics. On one page respondents must move a series of sliders. We need to display the output of a function of the values of the sliders on the same page, ideally also in the form of another…
Andy
  • 1
  • 2
-1
votes
1 answer

Need to prove language L = {a^nb^m: n < m < 2m} is not regular

I don't understand the pumping lemma very well, and could use a simple break down of how to prove something like this.
stacklee
  • 13
  • 1
  • 2
-1
votes
1 answer

Computation of weights in a neural network

How do I compute the weights of a neural network by hand if I have the training samples (X) and desired output (D), and I shall have one node in the output layer and sign as the activation function in the hidden layer as well as in the output…
-1
votes
1 answer

Computation theory - DFA

i want to design a DFA of an alphabet {x,y,z} which accepts words with a number of 'z' multiples of 3 (eg "xzyyxzzyy") Does anybody knows how? or which is the language that accepts it?
goofy126
  • 13
  • 2