n*******e 发帖数: 109 | 1 谢谢各位大牛
求附件贴图里面的图形的表达式,横坐标是时间t,纵坐标是电压E
就是E=f(t),要求只有一个表达式,v和τ已知 | p***c 发帖数: 2403 | 2 一段一段的写不行么?
【在 n*******e 的大作中提到】 : 谢谢各位大牛 : 求附件贴图里面的图形的表达式,横坐标是时间t,纵坐标是电压E : 就是E=f(t),要求只有一个表达式,v和τ已知
| n*******e 发帖数: 109 | 3 只能有一个表达式,这个很难么,我原先以为因为数学学的不好,所以做不出来 | p***c 发帖数: 2403 | 4 那就示性函数相加起来呗
【在 n*******e 的大作中提到】 : 只能有一个表达式,这个很难么,我原先以为因为数学学的不好,所以做不出来
| n***p 发帖数: 7668 | 5 我的理解是 v 是你的电压的最大值 那么斜率的绝对值是 v/tau.
I wrote several functions:
k(x) = v/tau sgn( sin(x pi/tau));
a(x) = 2 tau floor( x /(2 tau) ) ;
b(x) = 2 tau ceil( x /(2 tau) );
f1(x) = max(0, k (x-a) );
f2(x) = max(0, k (x-b) );
Then
f(x) = f1(x) +f2(x)
【在 n*******e 的大作中提到】 : 谢谢各位大牛 : 求附件贴图里面的图形的表达式,横坐标是时间t,纵坐标是电压E : 就是E=f(t),要求只有一个表达式,v和τ已知
| n***p 发帖数: 7668 | 6 附件是画图例子,取 tau=1,v=2, 0
【在 n***p 的大作中提到】 : 我的理解是 v 是你的电压的最大值 那么斜率的绝对值是 v/tau. : I wrote several functions: : k(x) = v/tau sgn( sin(x pi/tau)); : a(x) = 2 tau floor( x /(2 tau) ) ; : b(x) = 2 tau ceil( x /(2 tau) ); : f1(x) = max(0, k (x-a) ); : f2(x) = max(0, k (x-b) ); : Then : f(x) = f1(x) +f2(x)
| c*******v 发帖数: 2599 | 7 不用那么复杂吧,先定义方波,然后这个
就是方波的积分.
附件是画图例子,取 tau=1,v=2, 0
【在 n***p 的大作中提到】 : 附件是画图例子,取 tau=1,v=2, 0
| n***p 发帖数: 7668 | 8 k(x) = v/tau sgn( sin(x pi/tau))
不就是一个方波么?
The point is just to explicitly write down
the function. And there are surely easier ways.
【在 c*******v 的大作中提到】 : 不用那么复杂吧,先定义方波,然后这个 : 就是方波的积分. : : 附件是画图例子,取 tau=1,v=2, 0
| n*******e 发帖数: 109 | | n*******e 发帖数: 109 | 10 这个表达式明白了,是一个方波是么,但是怎么积分才能出那个三角形的图呀
谢谢大牛
【在 n***p 的大作中提到】 : k(x) = v/tau sgn( sin(x pi/tau)) : 不就是一个方波么? : The point is just to explicitly write down : the function. And there are surely easier ways.
| n***p 发帖数: 7668 | 11 Let me explain. But first let me give you a simpler expression
for f.
a(x) = 2 tau floor( x /(2 tau) ) ;
b(x) = 2 tau ceiling( x /(2 tau) ) ;
f1(x) = v/tau*(x-a);
f2(x) = -v/tau(x-b);
f(x)=min(f1,f2);
Since the function you want is periodic with period 2tau,
floor( x /(2 tau) )is the maximal integer not bigger than
x/(2tau). So a(x) is the left end point of the interval
x belongs to and b(x) is the right end point. Then
f1 is the line passing the left end point with slope v/tau,
and f2 is the line passing the right end point with slope
-v/tau. Taking minimum of both, f is the desired function.
The (more complicated) expressions in my previous post were
from similar ideas.
【在 n*******e 的大作中提到】 : 这个表达式明白了,是一个方波是么,但是怎么积分才能出那个三角形的图呀 : 谢谢大牛
| n*******e 发帖数: 109 | 12 谢谢大牛,我仔细研究下
【在 n***p 的大作中提到】 : Let me explain. But first let me give you a simpler expression : for f. : a(x) = 2 tau floor( x /(2 tau) ) ; : b(x) = 2 tau ceiling( x /(2 tau) ) ; : f1(x) = v/tau*(x-a); : f2(x) = -v/tau(x-b); : f(x)=min(f1,f2); : Since the function you want is periodic with period 2tau, : floor( x /(2 tau) )is the maximal integer not bigger than : x/(2tau). So a(x) is the left end point of the interval
| g******a 发帖数: 69 | 13 Rescale the function:
1/2-|x-[x]-1/2| to get
vτ(1-|x/τ-2[x/(2τ)]-1|)
【在 n*******e 的大作中提到】 : 谢谢各位大牛 : 求附件贴图里面的图形的表达式,横坐标是时间t,纵坐标是电压E : 就是E=f(t),要求只有一个表达式,v和τ已知
|
|