Inviato


Finite Difference Explicit Method for Fick's 2nd Law
Finite Difference Explicit Method (iteration) to solve for a PDE (Fick's 2nd Law of diffusion)

quasi 5 anni fa | 6 download |

Thumbnail

Inviato


Finite Difference Implicit Method for Fick's 2nd Law
PDE solution using the implicit method

quasi 5 anni fa | 3 download |

Thumbnail

Inviato


FEM to solve for 2D Laplace's Equation
FEM solution to a steady-state PDE (example: Laplace's) applied to an electric potential

quasi 5 anni fa | 6 download |

Thumbnail

Inviato


Vector field rotation using Rotation (Transformation) matrix
Animation to demonstrate the use of the 2D rotation matrix in a vector field

quasi 5 anni fa | 1 download |

Thumbnail

Inviato


Truss 3D (Tetrahedral) using FEM (direct stiffness)
Deformation of a tetrahedral truss (4 nodes and 6 elements) with 3 pinned bottom nodes and downward force applied to the top nod...

quasi 5 anni fa | 2 download |

Thumbnail

Inviato


Fick's 2nd Law of Diffusion using Method of Lines
PDE solution using Method of Lines

quasi 5 anni fa | 1 download |

Thumbnail

Inviato


Fick's 2nd Law of Diffusion using FEM (Direct Stiffness)
Direct stiffness finite element method to solve for c (concentration) at given x (1D space) and t (time) values

quasi 5 anni fa | 2 download |

Thumbnail

Inviato


Graph of a 3D vector field and its divergence and curl
Visualize vector field quiver, divergence (slice), and curl (quiver) at given 3D coordinates

circa 5 anni fa | 2 download |

Thumbnail

Inviato


Graph of a 2D vector field equation and its divergence
Visualize vector field using quiver and divergence using filled contour at given 2D coordinates

circa 5 anni fa | 1 download |

Thumbnail

Inviato


Divergence Theorem (Gauss’, Ostrogradsky’s) to Measure Flow
Example showing that the volume integral of the divergence of f = surface integral of the magnitude of f normal to the surface (...

circa 5 anni fa | 2 download |

Thumbnail

Risolto


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

circa 5 anni fa

Risolto


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

circa 5 anni fa

Risolto


Solitaire Cipher
Implement the <http://en.wikipedia.org/wiki/Solitaire_(cipher) solitaire cipher>. Since this is from Wikipedia, I am capturin...

circa 5 anni fa

Risolto


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

circa 5 anni fa

Risolto


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

oltre 5 anni fa

Risolto


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

oltre 5 anni fa

Risolto


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

oltre 5 anni fa

Risolto


Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

oltre 5 anni fa

Risolto


How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

oltre 5 anni fa

Risolto


How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

oltre 5 anni fa

Risolto


Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

oltre 5 anni fa

Risolto


Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

oltre 5 anni fa

Risolto


Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

oltre 5 anni fa

Risolto


Find the 9's Complement
Find the 9's complement of the given number. An example of how this works is <http://electrical4u.com/9s-complement-and-10s-c...

oltre 5 anni fa

Risolto


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

oltre 5 anni fa

Risolto


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

oltre 5 anni fa

Risolto


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

oltre 5 anni fa

Risolto


Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

oltre 5 anni fa

Risolto


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

oltre 5 anni fa

Risolto


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

oltre 5 anni fa

Carica altro