Skip to main content

All Questions

0 votes
0 answers
37 views

Problem Derivative (D) of function defined with Piecewise or UnitStep functions - SIMPLE BEAM PROBLEM, 3 SUPPORTS

I am solving a simple structural beam problem using slope-deflection approach - 3 support A(left- fixed), B(middle- pin), C(right - pin). Beam AB - uniform load, Beam BC - concentrated load in ...
SAK's user avatar
  • 63
2 votes
1 answer
90 views

Integrate regions in Plot/Piecewise

I have the following code: ...
vladpopovcev's user avatar
1 vote
2 answers
55 views

Strange behavior when integrating vector valued piecewise function

The following straightforward integral should clearly equal $\{0,0\}$ for any $R\in\mathbb R$: ...
Funktorality's user avatar
0 votes
1 answer
39 views

Piecewise integration doesn't evaluate

I'm trying to integrate the following function: $$q(d, \theta) = q_x(d, \theta) + q_y(d, \theta) - 2q_x(d, \theta) q_y(d, \theta)$$ where $q_x(d, \theta) = \min\left(2 - d\cos\theta, d\cos\theta\right)...
Reality Check's user avatar
4 votes
1 answer
67 views

Confusing cases in Piecewise

The following FullSimplify[Integrate[Exp[I ω t] Sin[ω x]/ω, {ω, 0, ∞}, Assumptions -> t > 0 && x > 0]] gives a piecewise output of the form I ...
Adam's user avatar
  • 63
3 votes
2 answers
95 views

Derivative of piecewise function returns one more case

I define the following piecewise function: U[c_,n_,g_,p_]:=Piecewise[{{c^(1-g)/(1-g)-n^(1+p)/(1+p),g!=1}, {Log[c]-n^(1+p)/(1+p),g==1}}] When I take the derivative <...
NC520's user avatar
  • 479
1 vote
1 answer
116 views

Derivative of long expression renders Piecewise[…<<…>>…] in Jupyter notebook

My mathematical problem is to solve the optimization problem: $$ Max_{u} \quad \mathbb{E}[\gamma S-S^2]$$ where $$S= A_0 u X+a-\max(\alpha u X+b,0)$$ with $\gamma,A_0,a,\alpha,b$ some constants and $X\...
Wiles01's user avatar
  • 123
3 votes
2 answers
96 views

How do I integrate this piecewise function with Mathematica?

I came across the question of what percent of numbers from 0 to 1 have a logerithm whose floor is even. What I did was I made a piecewise function: ...
Brandon Nadel's user avatar
0 votes
1 answer
343 views

How to obtain the convolution of these functions?

I am starting to use Mathematica. I wanted to compute $$\nabla F*\phi(x),\;x\in\mathbb{R^2}$$ where $F(x)=\ln\|x\|$ and $\phi(x)=\chi_{B(0,2)}(x)$. I am a new user of this software, so I don't know ...
prosep's user avatar
  • 101
4 votes
1 answer
148 views

Mathematica 12.1 integrates functions individually but not their sum

I found something odd in MMA 12.1 when symbolically integrating DiracDelta and Piecewise. These functions are integrated individually but not their sum. The following code ...
Rainer Glüge's user avatar
5 votes
2 answers
317 views

Using Piecewise to create a periodic waveform

I want to create a piecewise function that repeats after t=T. ...
Syed's user avatar
  • 55.9k
4 votes
2 answers
102 views

Plot and differentiate a piecewise vector function [closed]

Consider the map $f:\mathbb R^2\to \mathbb R$ defined as $$ f(x,y)=\begin{cases} \|(x,y)\|^2\sin(1/\|(x,y)\|) & (x,y)\neq0 \\ 0 & (x,y) =0\\ \end{cases}$$ I am trying to get a ...
laikaka's user avatar
  • 41
0 votes
1 answer
78 views

Difficult on integration the normalization of a piecewise function

I have a little problem; I have defined the following Piecewise-function in the variables {x,L,w}: f[x_, L_, w_] := Piecewise[{{x w (L - x), 0 <= x <= L}}]; ...
Lorenzo Bagnasacco's user avatar
1 vote
1 answer
83 views

NDSolve with embedded piecewise function for state-variable

Given ODE: $\dot{x}=-2 e^{-x^2} x + U$ where: $U=-u_{as}$ $u_{as} = \begin{cases} \frac{e}{\psi_+-e}, & \mbox{if } e\mbox{>=0} \\ \frac{e}{e-\psi_-}, & \mbox{if } e\mbox{<0} \end{cases}$ ...
ayr's user avatar
  • 2,434
1 vote
1 answer
122 views

Solving a complicated time-dependent function

I want to solve the following time-dependent system of equations: ...
Jan Eerland's user avatar
  • 2,001

15 30 50 per page
1
2 3 4 5