Function Definition and 1000 Threads

  1. Lilian Sa

    Star collapse in general relativity — pressure as a function of star radius

    What I've done is using the TOV equations and I what I found at the end is: ##e^{[\frac{-8}{3}\pi G\rho]r^2+[\frac{16}{9}(G\pi\rho)^{2}]r^4}-\rho=P(r)## so I am sure that this is not right, if someone can help me knowing it I really apricate it :)
  2. MisterH

    A Fitness function for window length of filter

    Fitness function for window length of filter On a sinusoidal signal with amplitude 1, and period P, an exponential moving average (EMA) (with alpha = 1/n), and a linear weighted moving average (LWMA) (with window length n) are calculated; when you subtract the EMA from the LWMA, it can be seen...
  3. M

    Decision Theory: Discriminant function for 2D Gaussians

    Hi, I was working on the following problem: Two classes ## C_1 ## and ## C_2 ## have equal priors. The likelihoods of ## x## belonging to each class are given by 2D normal distributions with different means, but the same covariance: p(x|C _1) = N(\mu_x, \Sigma) \text{and} p(x|C_2) =...
  4. D

    Is there a smooth function in the unit ball with compact support?

    Is there a function that takes positive values only in the unit ball not including the boundary points defined by the set ##\{x^2+y^2+z^2<1\}##, and ##0## everywhere else?
  5. J

    Polymorphic conversion in return type of function

    I have an abstract class template, BinNode<E> and another class template, BSTNode<Key, E>, which is derived from BinNode<E>. Here is the relevant pieces of code from each template: template <typename E> class BinNode { public: virtual BinNode<E>* left() const = 0; virtual void...
  6. D

    Verify this function is a solution of the heat equation

    I spent hours looking at this and cannot figure out where the error is. I'm wondering if there is an error before the boxed expression. @Orodruin and @PeroK may I ask for your assistance?Consider a solution ##u:[0,\infty)\times \mathbb{R}^n\rightarrow \mathbb{R}## of the heat equation, ie...
  7. mcastillo356

    Thoughts on the derivative of a function

    (a) ##f(x)## is continuous only at ##x=3##: 1- If ##x\in\mathbb Q##, ##f(x)=9## at ##x=3##; around, there is ##\mathbb Q## 2- If ##x\in \mathbb R\setminus \mathbb Q##, this is the set of irrational numbers. Intuitively, if ##x## was in ##\mathbb R##, ##x^2## and ##6(x-3)+9## would meet at...
  8. N

    MHB Horizontal Asymptote of Rational Function

    Given f(x) = [sqrt{2x^2 - x + 10}]/(2x - 3), find the horizontal asymptote. Top degree does not = bottom degree. Top degree is not less than bottom degree. If top degree > bottom degree, the horizontal asymptote DNE. The problem for me is that 2x^2 lies within the radical. I can rewrite...
  9. D

    How to show a function is twice continuously differentiable?

    this seems to come up frequently in undergrad math classes so it is worth asking, what is the simplest and most efficient way to show ##f(x)\in C^2(\mathbb{R})## given $$f(x)=\begin{cases} (x+1)^4 & x<-\frac{1}{2} \\ 2x^4-\frac{3}{2}x^2+\frac{5}{16} & -\frac{1}{2}\leq x \end{cases}$$ And what...
  10. Lexovix

    B Wave Function Collapse using faulty recording devices.

    Hey there! I have two questions regarding the Double Slit Experiment and the Wave Function Collapse. How effective does a measuring device have to be to cause a collapse? As in, say that every second the device has a 50% chance to turn off or on for one second, does the collapse still occur...
  11. S

    Solution of inequality of composite function involving inverse

    I can solve (i), I got x = -1.6 For (ii), I did like this: $$(f^{-1} o ~g)(x)<1$$ $$g(x)<f(1)$$ But it is wrong, the correct one should be ##g(x) > f(1)##. Why? Thanks
  12. wcjy

    Circuits - Transfer function of this LRC circuit

    Got B = 9. My school doesn't provide answers, hence could someone double check if my answers is right? Thanks!
  13. R

    Find a continuous solution to an ODE that includes a step function

    Non-homegenous first order ODE so start with an integrating factor ##\mu## $$\mu=\textrm{exp}\left(\int a dt\right)=e^t.$$ Then rewrite the original equation as $$\frac{d}{dt}\mu y = \mu g(t).$$ Using definite integrals and splitting the integration across the two cases, $$\begin{align}...
  14. icesalmon

    Engineering Where Did the Minterm AB'C Come From in This Boolean Function?

    I simplified the given function into a single minterm and a single maxterm F(A,B,C,D) = ABC + (A + B + C) + AB F(A,B,C,D) = AB(C+1) + (A+B+C) F(A,B,C,D) = AB(1) + (A+B+C) F(A,B,C,D) = AB + (A+B+C) The only terms that involve a logical AND operation are AB as (A+B+C) is a maxterm of the...
  15. S

    MHB Solving the Floor Function Equation: $[x]=2x+1$

    Solve the following equation: $[x]=2x+1$,where [x] is the floor function
  16. A

    A Green's function for tunneling electrons between quantum dots

    Good afternoon! I am writing with such a problem, I hope to find someone who could help me. I'm almost desperate! So, there is such a thing as the Braess paradox, this is a classic paradox for roads and power grids, and there is also such an article...
  17. C

    Finding a domain for a function

    I am having some trouble find the domain with this function: ##f(x)=\frac{1}{\sqrt{x^2-4x\cos(\theta)+4}}## and ##\theta\in[0,\pi]##.I know that the denominator needs to be greater than 0. So ##\sqrt{x^2-4x\cos(\theta)+4}>0##. I squared both side of the inequality, ##x^2-4x\cos(\theta)+4>0##...
  18. C

    MHB Finding the domain of this function.

    Dear Everyone, I am having some trouble find the domain with this function: $f(x)=\frac{1}{\sqrt{x^2-2x\cos(\theta)+4}}$ and $\theta\in[0,\pi]$. My attempt: I know that the denominator needs to be greater than 0. So $\sqrt{x^2-2x\cos(\theta)+2}>0$. I squared both side of the inequality...
  19. Lord Doppler

    Engineering Transfer function of AC Transformer

    I'm solving this exercise, first I did a force diagram for the transformer nucleus and I got this: ∑Fx = ma P(t) - Fk - Fb = ma P(t) = mx''+ bx' + kx So I got that dynamic equation, my question is, after transform that dynamic equation to Laplace Domain how can I relate it with the Output...
  20. S

    B Value of t for Probability Generating Function

    My questions: 1) What about if t = 2? Is there a certain meaning to ##G_X (2)## ? 2) PGF for uniform distribution is ##G_X (t)=\frac{t(1-t^n)}{n(1-t)}## and for t = 1 ##G_X (1)## is undefined so ##G_X (1) =1## is not true for all cases? Thanks
  21. N

    MHB Does the function have a zero in the given interval?

    Verify the given function has a zero in the indicated interval. Then use the Intermediate Value Theorem to approximate the zero correct to three decimal places by repeatedly subdividing the interval containing the zero into 10 subintervals. f (x) = x3 − 4x + 2; interval: (1, 2) I don't...
  22. mcastillo356

    B Derivative of the product of a function by a constant (possible typo)

    Hi, PF, I think I've found a typo in my textbook. It says: "In the case of a multiplication by a constant, we've got $$(Cf)'(x)=\displaystyle\lim_{h \to{0}}{\dfrac{Cf(x+h)-Cf(x)}{h}}=\displaystyle\lim_{h \to{0}}{\dfrac{f(x+h)-f(x)}{h}}=Cf'(x)$$" My opinion: it should be...
  23. H

    MHB Solving Function Expressions h(x): (x+a)2 +b & h-1 Range

    The function h is defined as h : x x 2 – 8x – 9 where x ≥4 (a) h(x) can be written in the form (x+a) 2 +b, find the value of ‘a’ and ‘b’ (b) Express the inverse function h –1 in the form h –1 : x ... (c) Find the range of function ‘h’.
  24. S

    Engineering Finding the natural frequency of transfer function (2s) / (3s^2+5s+2)

    In the context of control systems, if I have a vibratory second-order system, (ω_n)^2 / [s^2 + 2ζ(ω_n) + (ω_n)^2], I know how to get the natural frequency ω_n. So, if I have something like 2 / (3s^2+5s+2), I know how to get the natural frequency ω_n. However, if I instead have something like...
  25. greg_rack

    Solving an immediate indefinite integral of a composite function

    That's my attempt: $$\int (\frac{1}{cos^2x\cdot tan^3x})dx = \int (\frac{1}{cos^2x}\cdot tan^{-3}x) dx$$ Now, being ##\frac{1}{cos^2x}## the derivative of ##tanx##, the integral gets: $$-\frac{1}{2tan^2x}+c$$ But there is something wrong... what?
  26. icesalmon

    Engineering Determine the transfer function of the block diagram

    Step 1: I first started by reducing the inside of the block diagram of picture "bd" (the portion with G1 and the negative feedback G2) I obtained G1/[1 + G1G2] I'll call this term "F" Step 2: Then I'm left with two terms feeding into a summing point: F - G3 I'll call this term "K" I can...
  27. hyksos

    A Wave Function Collapse and Thermodynamic Irreversible Processes

    Very early in the development of thermodynamics, it was realized that the 2nd Law of Thermodynamics is not a law fundamental to the fabric of our cosmos, but only becomes true in the limit of the number of particles. It was none other than Boltzmann himself who realized and articulated this...
  28. P

    Proving the existence of a real exponential function

    Ok, first I tried to show that ##A = \left \{a^{r}|r\in\mathbb{Q},r<x \right \}## does not have a maximum value. Assume ##\left\{ a^{r}\right\}## has a maximum, ##a^{r_m}##. By this hypothesis, ##r_{m}<x## and ##r_{m}>r\forall r\neq r_{m}\in\mathbb{Q}##. Consider now that ## q\in\mathbb{Q}|q>0##...
  29. chwala

    Find the derivative of given function and hence find its integral

    ##y=x^2ln x-x## ##\frac {dy}{dx}=2x ln x+x-1## ##\int [2xln x+x-1]\,dx##=##x^2ln x-x##, since ##\int -1 dx= -x## it follows that, ##\int [2x ln x +x]\,dx##=##x^2 ln x## ##\int 2x ln x \,dx = x^2ln x##+##\int x\,dx## ##\int_1^2 xln x\,dx =\frac {x^2ln x}{2}##+##\frac{x^2}{4}##=##2ln2+1-0.25##
  30. J

    Passing function type as default template parameter

    The book is asking me to write my own unique_ptr template (after just covering a bit about templates). I called my template single_ptr, and I gave it two template parameters, T and D. T is supposed to be the type that the raw pointer points to. D is supposed to represent a function type so that...
  31. greg_rack

    Why Does My Integration by Parts Result Differ?

    Hi guys, I've attempted to integrate this function by parts, which seemed to be the most appropriate method... but apparently, I'm getting something wrong since the result doesn't match the right one. Everything looks good to me, but there must be something silly missing :) My attempt:
  32. J

    I Ricci scalar for FRW metric with lapse function

    I need the Ricci scalar for the FRW metric with a general lapse function ##N##: $$ds^2=-N^2(t) dt^2+a^2(t)\Big[\frac{dr^2}{1-kr^2}+r^2(d\theta^2+\sin^2\theta\ d\phi^2)\Big]$$ Could someone put this into Mathematica as I don't have it?
  33. S

    Integration of this trigonometry function

    Is it possible to do the integration? That is the full question I don't know where to start, try to use ##u=\cos x## and also ##\cos^2 (x) = \frac{1}{2} + \frac{1}{2} \cos (2x)## but failed. Thanks
  34. Z

    Derivative of Cost Function with Respect to Output Layer Weight

    This is an issue I've been stuck on for about two weeks. No matter how many times I take this derivative, I keep getting the same answer. However, this answer is inevitably wrong. Please help me to understand why it incorrect. To start, I will define an input matrix ##X##, where ##n## is the...
  35. D

    Find the wave function of a particle in a spherical cavity

    (a) Let the center of the concentric spheres be the origin at ##r=0##, where r is the radius defined in spherical coordinates. The potential is given by the piece-wise function $$V(r)=\infty, r<a$$ $$V(r)=0, a<r<R$$ $$V(r)=\infty, r<a$$ (b) we solve the Schrodinger equation and obtain...
  36. Eclair_de_XII

    Proving continuity of inverse cube function

    The proof is given in two steps 1. Prove the lemma. 2. Use lemma to prove result. %%1-Lemma%% Assume ##a\neq0##. Define ##g:(-(|a|+1),|a|+1)\longrightarrow \mathbb{R}## by ##g(x)=\sqrt[3]{x^2}+\sqrt[3]{xa}+\sqrt[3]{a^2}##. Then ##g## is bounded from below by some positive number ##m##...
  37. C

    I Expansion of a complex function around branch point

    I’m coming at this question with a physics application in mind so apologies if my language is a bit sloppy in places but I think the answer to my question is grounded in math so I’ll post it here. Say I have a function F(z) defined in the complex z plane which has branch points at z=0 and z =...
  38. D

    Find the composition of a multivariate function with itself

    Solution attempt: $$F(F(x,y))=(z,w)$$ is the map given by $$x=z$$ $$y=w$$
  39. S

    Is ideal fluid flow around an airfoil the Lambert W function?

    NOTE: By "ideal", I mean incompressible & inviscid (the forum doesn't allow a long enough title). I was looking at this Wikipedia article, and the graph of this function struck me as looking exactly like ideal fluid flow around an object. https://en.wikipedia.org/wiki/Lambert_W_function...
  40. M

    Showing that this identity involving the Gamma function is true

    My attempt at this: From the general result $$\int \frac{d^Dl}{(2\pi)^D} \frac{1}{(l^2+m^2)^n} = \frac{im^{D-2n}}{(4\pi)^{D/2}} \frac{\Gamma(n-D/2)}{\Gamma(n)},$$ we get by setting ##D=4##, ##n=1##, ##m^2=-\sigma^2## $$-\frac{\lambda^4}{M^4}U_S \int\frac{d^4k}{(2\pi)^4} \frac{1}{k^2-\sigma^2} =...
  41. M

    A Example of Ritz method with Bessel functions for trial function

    Hi PF! Do you know of any examples of the Ritz method which use Bessel functions as trial functions? I’ve seen examples with polynomials, Legendre polynomials, Fourier modes. However, all of these are orthogonal with weight 1. Bessel functions are different in this way. Any advice on an...
  42. JD_PM

    Integration and hyperbolic function problem

    This question arose while studying Cosmology (section 38.2 in Lecture Notes in GR) but it is purely mathematical, that is why I ask it here. I do not see why the equation $$H^2 = H_0^2 \left[\left( \frac{a_0}{a}\right)^3 (\Omega_M)_0 + (\Omega_{\Lambda})_0 \right] \tag{1}$$ Has the following...
  43. Y

    Function Template: Solve Complications with Mixing Types for Variable Swapping

    Hi I want to see whether there is a way to make this program work without much complication. I read from Ivor book that you can work with two different type of variables for example mixing int x = 1 and double y = 2.5 and use template to swap them using declaration <double> in the program as...
  44. Arman777

    Python Is there a Python function that finds an unknown inside an integral?

    I have a integral with unknown h. My integral looks like this where C, a, b are constants F(x) and G(x) are two functions. So the only unknows in the integral is h. How can I solve it ? I guess I need to use scipy but I don't know how to implement or use which functions. Thanks
  45. Sciencemaster

    I Does the wave function spread more quickly after it is observed?

    For the sake of this question, I am primarily concerned with the position wave function. So, from my understanding, the wave function seems to 'collapse' to a few states apon measurement. We know this because, if the same particle is measured again shortly after this, it will generally remain in...
  46. Strand9202

    Velocity of an Object given its position as a function of time

    Attached is the problem and my work through the problem. I got the problem correct, but my teacher said this could be done quicker on a calculator. Any idea how it could be done quicker.
  47. Shackleford

    A How Do You Construct the Chain Rule for Green's Function in Half-Space?

    This is from Evans page 37. I seem to be missing a basic but perhaps subtle point. Definition. Green's function for the half-space ##\mathbb{R}^n_+,## is \begin{gather*} G(x,y) = \Phi(y-x) - \Phi(y-\tilde{x}) \qquad x,y \in \mathbb{R}^n_+, \quad x \neq y. \end{gather*} What's the proper way to...
  48. JD_PM

    I Green's function for massive photon theory

    I am studying the 'toy' Lagrangian (Quantum Field Theory In a Nutshell by A.Zee). $$\mathcal{L} = - \frac{1}{4} F_{\mu \nu}F^{\mu \nu} + \frac{m^2}{2}A_{\mu}A^{\mu}$$ Which assumes a massive photon (which is of course not what it is experimentally observed; photons are massless). The...
  49. jdawg

    Total Emissivity as a Function of Temperature (Ceramics)

    Hello, I’m trying to better my understanding of how the total emissivity changes with temperature for ceramic materials. Currently it is my understanding that non-metals typically have a high emissivity. A sanded surface will result in a higher emissivity, and that spectral emissivity varies...
Back
Top