Function Definition and 1000 Threads
-
M
Python Python - Endpoint : Can the function not return an array of dictionaries ?
Hey! 😊 I am trying to write a code for a server in Python and I got stuck. I gave as an input a csv file and using pandas we get a dictionary where the titles are the keys and the inputs are the values. From that we get the below : I have written the below endpoint to get all the...- mathmari
- Thread
- Array Function Python
- Replies: 3
- Forum: Programming and Computer Science
-
S
I How Does Electron Spin Affect the Partition Function in Saha's Equation?
Hey, I have a question about proving Saha's equation for ionizing hydrogen atoms. The formula is \frac{P_{p}}{P_{H}} = \frac{k_{B} T}{P_{e}} \left(\frac{2\pi m_{e} k_{B}T}{h^2} \right)^{\frac{3}{2}}e^{\frac{-I}{k_{B} T}} with P_{p} pressure proton's, P_{H} pressure hydrogen atoms, m_{e}...- Sebas4
- Thread
- Function Hydrogen Partition Partition function Rotation Thermodynamics
- Replies: 1
- Forum: Thermodynamics
-
M
Partition Function for system with 3 energy levels
I determined the partition function of the particle A, B and C. C should be the same as B. I then considered the situation, where all particles are in the system at the same time, and drew a diagram of all possible arrangements: The grey boxes are the different partitions, given that we...- MigMRF
- Thread
- Energy Energy levels Function Levels Partition Partition function System Thermodynamics
- Replies: 1
- Forum: Advanced Physics Homework Help
-
V
Finding tension as a function of distance from the center of rotation
I'm not too sure how to account for both the mass and the rope at once. I think the following are true for the two individually: For the mass at the end, ## T = m ω^2 L ##, following from ##a = v^2/r##and ##v=ωr##. For the rope, ##dT = ω^2 r dM##, where ##dM = λ dr## and λ is the mass per unit...- vparam
- Thread
- Center center of rotation Centripetal acceleration Dynamics Function Rotation Tension
- Replies: 23
- Forum: Introductory Physics Homework Help
-
Finding the generator function for 4 variables
Prove directly that the transformation $$Q_{1} = q_{1}, P_{1} = p_{1} − 2p_{2}$$ $$Q_{2} = p_{2}, P_{2} = −2q_{1} − q_{2}$$ is canonical and find a generating functionSo the first part is easy and can be skipped here. I have some difficults regarding the second part, namely, the one that ask for...- LCSphysicist
- Thread
- Function Generator Variables
- Replies: 3
- Forum: Calculus and Beyond Homework Help
-
B Wave function won't collapse under a microscope?
So what am I doing wrong here? I can clearly observe it, I'm nearly sure I can tell which particles are going throw each slit if I used another laser too. My suspicion is that the electrical current of the photon detector that uses germanium or silicon to detect the particles are influencing the...- ThiagoMNobrega
- Thread
- Collapse Function Microscope Quantum Quantum and general physics Wave Wave function
- Replies: 17
- Forum: Quantum Physics
-
Classical Understanding Derivative of Position Function: Is Velocity Wrong?
Hello! So, I was beginning to skim Kleppner and Kolenkow for an upcoming course I’m taking over the summer. I saw this on pg. 17 and was wondering if I’m making a silly mistake in understanding what the book is saying. When they take the derivative of the position function, isn’t the velocity...- mopit_011
- Thread
- Derivative Function Position Velocity
- Replies: 2
- Forum: Science and Math Textbooks
-
T
A Brownian Motion (Langevin equation) correlation function
So the Langevin equation of Brownian motion is a stochastic differential equation defined as $$m {d \textbf{v} \over{dt} } = - \lambda \textbf{v} + \eta(t)$$ where the noise function eta has correlation function $$\langle \eta_i(t) \eta_j(t') \rangle=2 \lambda k_B T \delta_{ij} \delta(t -...- Tim667
- Thread
- Brownian motion Correlation Correlation function Function Motion Statisical mechanics Stochastic Stochastic process
- Replies: 2
- Forum: Classical Physics
-
D
I Find the interference function for different emission modes
Homework Statement:: Find the interference function ##I(\delta)## where The emission is analyze by a Michelson interferometer. Relevant Equations:: ##I(\delta) = \frac{1}{2} \int_{-\infty}^{\infty} G(k) r^{ik \delta} dk## ##I(\vec{r}) = I_1 + I_i + 2 \sqrt(I_1 I_i) cos (k\delta)## I have 5...- DragonBlight
- Thread
- Emission Function Interference Michelson interferometer Modes Optical Spectral lines
- Replies: 2
- Forum: Optics
-
Classifying singularities of a function
I came across this question on chegg for practice as I'm self learning complex analysis, but became stumped on it and without access to the solution am unable to check. Let $$ f(z)=\frac{cos(z)} {(z-π/2)^7} $$. Then the singularity is at π/2. And on first appearance, it looks like a pole of...- penroseandpaper
- Thread
- Complex analysis Function Singularities
- Replies: 2
- Forum: Calculus and Beyond Homework Help
-
M
Convex Optimization: Dual Function Definition
Hi, I was working through the following problem and I am getting confused with the solution's definition of the dual. Problem: Given the optimization problem: minimize ## x^2 + 1 ## s.t. ## (x - 2) (x - 4) \leq 0 ## Attempt: I can define the Lagrangian as: L(x, \lambda) = (x^2 + 1) + \lambda...- Master1022
- Thread
- Convex Definition Dual Function Optimization
- Replies: 4
- Forum: Calculus and Beyond Homework Help
-
Problem involving Probability density function
I just want to be certain, i think the inequality indicated is not correct...ought to be less than. Kindly confirm...This is a textbook literature.- chwala
- Thread
- Density Density function Function Probability Probability density Probability density function
- Replies: 6
- Forum: Calculus and Beyond Homework Help
-
B Linearization of a function error viewed with differentials
Hi, PF, want to know how can I go from a certain error formula for linearization I understand, to another I do not Error formula for linearization I understand: If ##f''(t)## exists for all ##t## in an interval containing ##a## and ##x##, then there exists some point ##s## between ##a## and...- mcastillo356
- Thread
- Differentials Error Function Linearization
- Replies: 14
- Forum: Calculus
-
H
Evaluating cosine function from ##-\infty## to ##\infty##
Hi, I have some question about evaluating a cosine function from ##-\infty## to ##\infty##. I saw for a cosine function evaluate from ##-\infty## to ##\infty## I can change the limits from 0 to ##\infty##. I have a idea why, but I can't convince myself, furthermore, is it always the case no...- happyparticle
- Thread
- Complex integral Cosine Function Integral
- Replies: 3
- Forum: Calculus and Beyond Homework Help
-
N
A Constructing the Wigner Function from Measurements of Entangled Photons
Suppose i measure the phase and amplitude of some radiation, this might be a coherent state of an entangled state, how would i construct the Wigner function from these measurements?- neils
- Thread
- Function Measuring Wigner
- Replies: 5
- Forum: Quantum Physics
-
O
Engineering Mass flow rate as a function of time
At first, I inputted h(t), of which I solved for, into the mass flow rate formula. So it looked something like this, m-dot(t) = -(density)*[sqrt(g*(H-(g*d^4*t^2/D^4)]*(pi/4)*d^2 But I don't think that's right? Any thoughts?- oggillia
- Thread
- Flow Flow rate Function Mass Mass flow Mass flow rate Rate Time
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
M
Indefinite Integration of Heaviside function muliplied by a function
Will it be [{(r-a)/r}*H(r-a)]- MahaRoho
- Thread
- Function Heaviside Heaviside function Indefinite Integration
- Replies: 3
- Forum: Calculus and Beyond Homework Help
-
H
Mellin transform of Dirac delta function ##\delta(t-a)##
Hi, I found Laplace transform of this Dirac delta function which is ##F(s) = e^{-st}## since ##\int_{\infty}^{-\infty} f(t) \delta (t-a) dt = f(a)## and that ##\delta(x) = 0## if ##x \neq 0## Then the Mellin transform ##f(t) = \frac{1}{2 \pi i} \int_{\gamma - i \omega}^{\gamma +i \omega}...- happyparticle
- Thread
- Delta Delta function Dirac Dirac delta Dirac delta function Function Laplace transform Transform
- Replies: 3
- Forum: Calculus and Beyond Homework Help
-
C
Using command line parameters outside of main function
I would like a program to read in a file entered by the user via the command line, which is then used in the main body of the code. See example code below: #include <iostream> #include <fstream> struct run_t { std::string file; }; run_t run; const POINTER* ptr = toy(run.file,0); int...- CAF123
- Thread
- Function Line Outside Parameters
- Replies: 5
- Forum: Programming and Computer Science
-
[Quantum Chemistry] Generalized wave function in covalent bonding
Is there a general expression for the wave function $\psi$, which describes the electronic properties of an arbitrary covalent bond? For example is it equal to some sort of trigonometric expression? -
M
Python Use Python to integrate a function constructed in Mathematica
Hi PF! I followed someone's help on here and have the following code in python that performs monte carlo integration from math import * from random import * def integrate(alpha): # MONTE CARLO INTEGRATION OVER NON-RECTANGULAR DOMAINS def f(pt): # RETURN INTEGRAND AS FUNCTION...- member 428835
- Thread
- Function Integrate Mathematica Python
- Replies: 5
- Forum: Programming and Computer Science
-
A Green's function for Stokes equation
So I've just started learning about Greens functions and I think there is some confusion. We start with the Stokes equations in Cartesian coords for a point force. $$-\nabla \textbf{P} + \nu \nabla^2 \textbf{u} + \textbf{F}\delta(\textbf{x})=0$$ $$\nabla \cdot \textbf{u}=0$$ We can apply the...- steve1763
- Thread
- Function Green's function Greens function Navier stokes Navier stokes equation Stokes
- Replies: 1
- Forum: Differential Equations
-
R
Burst period on function generator
Hi, I am having to refresh my oscilloscope knowledge and am confused about one last function generator setting... Burst period. If I have 1 cycle at say 700 kHz it is 1.43us. If I set number of cycles to 10 then that is 10 * 1.43us = 14.3us time. This is my ON burst. So what is the burst...- rwooduk
- Thread
- Function Function generator Generator Period
- Replies: 7
- Forum: Electrical Engineering
-
M
A Green's function for Sturm-Louiville ODE
Hi PF! Given the following ODE $$(p(x)y')' + q(x)y = 0$$ where ##p(x) = 1-x^2## and ##q(x) = 2-1/(1-x^2)## subject to $$y'(a) + \sec(a)\tan(a)y(a) = 0$$ and $$|y(b)| < \infty,$$ where ##a = \sqrt{1-\cos^2\alpha} : \alpha \in (0,\pi)## and ##b = 1##, what is the Green's function? This is the...- member 428835
- Thread
- Function Green's function Ode
- Replies: 3
- Forum: Differential Equations
-
M
Mathematica Numerical integration over a Green's function
Hi PF! I'm numerically integrating over a Green's function along with a few very odd functions. What I have looks like this NIntegrate[-(1/((-1.` + x)^2 (1.` + x)^2 (1.` + y)^2)) 3.9787262092516675`*^14 (3.9999999999999907` + x (-14.99999999999903` + x (20.00000000000097` -...- member 428835
- Thread
- Function Green's function Integration Numerical Numerical integration
- Replies: 13
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
How Are Wigner D Functions Related to Nuclear Rotor Model Wave Functions?
hi guys I am recently taking a Nuclear structure course, and have a lot of questions regarding the nuclear rotor model. in most nuclear physics books the I have, the wave function associated with the rotor model of the nucleus is written in terms of the Wigner D functions , like the expression...- patric44
- Thread
- Function Model Nuclear Rotor Wave Wave function
- Replies: 2
- Forum: Advanced Physics Homework Help
-
I Open channel flow: derive function for energy slope on friction?
I want to determine the normal flow depth in a perfectly horizontal circular conduit. The system characteristics are known (Internal pipe diameter, Mannings roughness, Discharge). However, I am not sure how to calculate the normal flow depth. When using Manning's equation one can find the normal...- MrS
- Thread
- Channel Derive Energy Flow Friction Function Gravitation Slope
- Replies: 1
- Forum: Classical Physics
-
C
A Physical explanation of time-correlation function and spectrum
From my reading of several quantum optics textbooks and spectroscopy texbooks, the emission and absorption spectrum of an atom or molecule are always given in terms of the time-correlation function, for example the emission spectrum of a two level atom is given by: $$...- Cedric Chia
- Thread
- Absorption spectrum Emission spectrum Explanation Function Physical Quantum optics Spectrum
- Replies: 3
- Forum: Quantum Physics
-
Y
The velocity of the particle as a function of time
this is how i try to solve it: can someone please help me with that because i don't know what I am doing worng here.- yesmale4
- Thread
- Function Particle Time Velocity
- Replies: 3
- Forum: Introductory Physics Homework Help
-
Engineering MIPS - Fibonacci Series: Main and fib function
Write and test the fib function in two linked files (Fib.asm, fib_main.asm). Your solution must be made up of a function called fib(N, &array) to store the first N elements of the Fibonacci sequence into an array in memory. The value N is passed in $a0, and the address of the array is passed in...- Margarita0076
- Thread
- Assembly Assembly language Function Mips Series
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
I Wave function using the time dependent Schrodinger equation
Given a wavefunction ψ(x, 0) of a free particle at initial time t=0, I need to write the general expression of the function at time t. I used a Fourier transform of ψ(x, t) in terms of ψ(p, t), but, i don't understand how to use green's functions and the time dependent schrodinger equation to...- ThiagoSantos
- Thread
- Function Schrödinger Schrodinger equation Time Time dependent Wave Wave function
- Replies: 1
- Forum: Quantum Physics
-
M
Spectral Graph Clustering: where does the 'scoring' function come from
Hi, I was reading through some slides about graph clustering. In the slides was a very short discussion about 'eigenvectors and segmentation'. I don't quite understand where one of the formulae comes from. Context: We have some undirected graph with an affinity matrix (i.e. weighted adjacency...- Master1022
- Thread
- Function Graph Graph theory
- Replies: 1
- Forum: Calculus and Beyond Homework Help
-
C
Possible casting issue in declaration of function in header file
Hello all, see below for a snippet of a header file, class1.h, and source code file, class1.cpp, adjusted to reproduce the issue I am having. I have declared a series of functions in the .h file and their corresponding definitions in the .cpp file but when I compile I get the error...- CAF123
- Thread
- Casting File Function
- Replies: 6
- Forum: Programming and Computer Science
-
M
Why is this method valid to show function is PSD?
Hi, I was looking at the following example, and I cannot really understand the justification for why this function is positive semi-definite. Example Problem: We are looking at the function: ## f(x, y) = \frac{x^2}{y}, x \in \mathbb{R} , y > 0 ##. Is this function positive semi-definite...- Master1022
- Thread
- Function Method Psd
- Replies: 3
- Forum: Calculus and Beyond Homework Help
-
T
MHB Continuous, discontinuous and piece-wise function
help me please to determine what are the equations i need tofinish my activity. Thankyou- Tracy18
- Thread
- Continuous Function Piece-wise Piece-wise function
- Replies: 4
- Forum: General Math
-
W
Coding of Spin Spin correlation function
I tried to code spinoperators who act like $S_x^iS_x^j$ (y and z too) and to apply them to the states, which works fine. I am not sure about how to code the expectation value in the product Space. Has anyone pseudo Code to demonstrate that?- woodydewar
- Thread
- Coding Computational physics Correlation Correlation function Function Quantum measurement Spin
- Replies: 15
- Forum: Advanced Physics Homework Help
-
T
MHB Recursive Function for Virus Spread: Finding the General Solution
Could anyone please help me I am especially stuck on the second part of the question. Thanks very much I really appreciate it.- Tekilou
- Thread
- Function Recursive function
- Replies: 3
- Forum: Topology and Analysis
-
Electric Field as a function of r, evaluating bounds
Im having trouble understanding the wording to this problem. When it says "from r=0 to r=infinity". My Qenc would zero out. I guess it makes sense that from infinitely far away you wouldn't "feel' the electric field but considering this question leads to 4 other questions I don't think I am...- guyvsdcsniper
- Thread
- Bounds Electric Electric field Field Function
- Replies: 4
- Forum: Introductory Physics Homework Help
-
Create curve function from intersection of two surfaces
What I do is set the two equations equal to one another and solve for z. This gives: $$z = \sqrt{x^2+2y^2-4x}$$ which is a surface and not a curve. What am I doing wrong?- Addez123
- Thread
- Curve Function Intersection Surfaces
- Replies: 4
- Forum: Calculus and Beyond Homework Help
-
S
Deriving Wave Function: Confused about (ix/a) & (-x^2/2a)?
It is asking to derive the time-independent wave function and has managed to get the answer of and i am very confused as where (ix/a) and (-x^2/2a) came from ? Thanks.- sus1234
- Thread
- Confused deriving Function Wave Wave function
- Replies: 4
- Forum: Advanced Physics Homework Help
-
A
Green's theorem with a scalar function
Greetings! My question is: is it possible to use the green theorem to compute the circulation while in presence of a scalar function ? I know how to solve by parametrising each part but just in case we can go faster? thank you!- Amaelle
- Thread
- Function Green's theorem Scalar Theorem
- Replies: 2
- Forum: Calculus and Beyond Homework Help
-
H
Finding 2 solutions of this Bessel's function using a power series
I have to find 2 solutions of this Bessel's function using a power series. ##x^2 d^2y/dx^2 + x dy/dx+ (x^2 -9/4)y = 0## I'm using Frobenius method. What I did so far I put the function in the standard form and we have a singularity at x=0. Then using ##y(x) = (x-x_0)^p \sum(a_n)(x-x_0)^n##...- happyparticle
- Thread
- Bessel functions Frobenius Function Power Power series Series
- Replies: 8
- Forum: Calculus and Beyond Homework Help
-
A
Finding the Taylor series of a function
Greetings! Here is the solution that I understand very well I reach a point I think the Professor has mad a mistake , which I need to confirm after putting x-1=t we found: But in this line I think there is error of factorization because we still need and (-1)^(n+1) over 3^n Thank you...- Amaelle
- Thread
- Function Series Taylor Taylor series
- Replies: 1
- Forum: Calculus and Beyond Homework Help
-
I Defining Characteristic Time and Distance in an Acceleration Function
Before starting, I will leave the link to the article I am talking about here: http://www.msc.univ-paris-diderot.fr/~phyexp/uploads/LaimantParesseux/aimant2.pdf I am conducting a similar experiment to the one discussed in the paper above. Basically, I am rolling a neodium supermagnet down a...- emus
- Thread
- Acceleration Characteristic Function Time
- Replies: 10
- Forum: Classical Physics
-
A
A Solving an Integral involving a probability density function
In an article written by Richard Rollleigh, published in 2010 entitled The Double Slit Experiment and Quantum Mechanics, he argues as follows: "For something to be predictable, it must be a consistent measurement result. The positions at which individual particles land on the screen are not...- Ad VanderVen
- Thread
- Density Density function Function Integral Probability Probability density Probability density function
- Replies: 16
- Forum: Calculus
-
A
I The probability density function for the double-slit experiment
I am desperate. I've scoured the web for the formula for the probability density function for the interference pattern obtained in the double slit experiment with both slits open. So I want to know the probability density function and not the intensity function. I prefer not to have references...- Ad VanderVen
- Thread
- Density Density function Double-slit Double-slit experiment Experiment Formula Function Probability Probability density Probability density function
- Replies: 19
- Forum: Quantum Physics
-
M
MHB Finding MLE for $\theta$ of Statistical Product Model
Hey! :giggle: For $n \in \mathbb{N}$ we consider the discrete statistical product model $(X ,(P_{\theta})_{\theta \in\Theta})$ with $X = \mathbb{N}^n$, $\Theta = (0, 1)$ and $p_{\theta}(x_i) = \theta(1 -\theta)^{x_i−1}$ for all $x_i \in \mathbb{N}, \theta \in \Theta$. So $n$ independent...- mathmari
- Thread
- Function Likelihood
- Replies: 6
- Forum: Set Theory, Logic, Probability, Statistics
-
MHB What is the bipolar input and bipolar output truth table of ANDNOT function
- shivajikobardan
- Thread
- Function Input Output Table Truth table
- Replies: 6
- Forum: Programming and Computer Science
-
M
Python Importing entire script instead of function
Hello I have a script a13_roman2num.py that reads def value(r): if (r == 'I'): return 1 if (r == 'V'): return 5 if (r == 'X'): return 10 if (r == 'L'): return 50 if (r == 'C'): return 100 if (r == 'D'): return 500 if...- member 428835
- Thread
- Function
- Replies: 18
- Forum: Programming and Computer Science
-
S
Why Is Substitution Failing in Integrating This Function?
I tried using substitution ##u=\sqrt{16x-x^8}##, didn't work Tried factorize ##x## from the denominator and then used ##u=\sqrt{16-x^7}##, didn't work Tried using ##u=x^4## also didn't work How to approach this question? Thanks- songoku
- Thread
- Function Integration
- Replies: 3
- Forum: Calculus and Beyond Homework Help