I am trying to create matrices for cosine and euclidean distances of a document. not too sure how I would approach this question. Any advice would be appreciate
It is possible to count the number of zeros in an integer through a recursive method that takes a single int parameter and returns the number of zeros the param
New to c++ and possibly a really stupid question, but is there something like a destructor but for functions? I making a sort of game and as you can see that th
I am trying to detect a scroll on my page using JavaScript. So that I can change classes and attributes of some elements when user has scrolled certain amount o
I'm writing a code about radiation transportation and have generated isotropic vectors as shown by my code. I'm now unsure about how to generate isotropic steps
I am trying to crawl twitter for specific keywords, which I have made into the array keywords = ["art", "railway", "neck"] I am trying to search for these wo
What is the docstring convention when a function doesn't return anything? For example: def f(x): """Prints the element given as input Args: x
I am very beginner in LISP and hope that you can solve my confusion for me. My code is as follow: (defun retrieve (element closed) (if (= (length c
I have a firebase database structure like this and I have a loop function var jobTitle = document.getElementById('jobTitle'); var jobDescription= doc
I want to store functions in a list and then later in a program call those functions from that list. This works for me, however, I don't know if it is correct
I'm going through a JavaScript tutorial and I'm able to complete it. But the problem is that I don't understand what one of the lines is doing. I have a functi
I was just reading some code and I came across a function named __toString. Here is the function prototype: public function __construct($par) What is the reaso
i have been trying to make an easy calculator import java.util.Scanner; public class Math { static Scanner input = new Scanner(System.in);
calculate the sum of squares of given integers, excluding any negatives. The first line of the input will be an integer N (1 <= N <= 100), indicating the
I am trying to create an application in visual studio that will be able to access a .dll file that already exists. I need the application to call up routines. I
Is it possible to count the CRC of code in the memory of the function in the runtime? I have a function that compares user's password with the secret password.
I have a huge question about how to create div with JavaScript. In this case, I have tabs and I would like to be able to create a new one out of two variable ob
I have problem with functions call sequence or priority in jquery or javascript. Suppose I write different function on onclick event as you can see in the co
Is the Laravel str_random() function random enough so that I can use it for IDs? For example: str_random(32); This produces a random string of length 32 mad
I need a function that can return either a String or an Int depending on the parameters entered eg: func getValue (type: String) -> (String || Int) { //thi