Monday, May 24, 2010

一道数学题,解法不知正确与否,但结果与答案相同,存下以待后查

0<b<1+a 若关于x不等式(x-b)2>(ax)2的解集中的整数恰有3个,则a的取值范围是?

 

解:

根题中条件可得上图两条二次曲线,两条曲线 相交的两点之间为解集。也有可能只有一个交点的情况,但那样的话,解集中的整数就不只3个了,而是无数个。所以a的绝对值是大于1的,所以曲线和交点只能是图中所示的形式。

根据0<b<1+a可以得到a>-1,而上面的结论是a的绝对值大于1,所以a>1

这样就可以通过解方程(x-b)2(ax)2x-b=ax,和x-b=-ax,解得x1=b/(1+a)x2=b/(1-a), 如图中所标示的。

因为x1=b/(1+a), 又有已知条件0<b<1+a,所以x1<1,所以,在解集中的整数没有1,所以那三个整数为-2-10。所以有-2>x2=b/(1-a)>-3,解得b/3+1<a<b/2+1。

a<b/2+1,又有b<a+1,所以a<b/2+1<(a+1)/2+1,得 a<3;

a>b/3+1,又有b>0,所以a>b/3+1>0/3+1=1。

所以有 1<a<3。a的值取在(1, 3)区间。

Thursday, May 20, 2010

the method to synchronize Google Calendar with Microsoft Outlook

Export the Google Calendar data to a .ics file, open it with Microsoft Outlook by click on the file, not import the data into Outlook. Then, in Outlook there will be a new calendar content all the data in the .ics file.

In Outlook, export the new calendar out as a .csv file, open it with Microsoft Excel, sort the data by "modification date and time", then keep the newly modified data, delete all the older ones. Save the .csv file.

In Outlook, import the .csv file, then, the newly modified data exist in the Outlook data file, the .pst file.

To update the newly modified data in Outlook to Google Calendar, just do the same thing, just do it backwards. When the .csv file ready, then import it into Google Calendar.

Most important thing!!!! Before do all the procedure above, make a copy of the Outlook data file, the .pst file.

Wednesday, May 05, 2010

把工作日志自动写入不 同项目工作日志中的思路

在日志中每一日期前加上分隔符,===,在每一个项目名称前加上另一种分隔符如---,程序读到分隔符,确定将读取接下来的日期和项目名称。日期和项目称分别存入不同的变量中,当读取到一个日期后,将循环读取项目名称。在读取项名称后再循环读写项目名称下的工作内容。


工作日志这件可采取如下格式:

=====
日期1
-----
项目名称1
日志内容1.1
日志内容1.2

=====
日期2
-----
项目名称2



读取和写入数据的循环可以是如下:

input #1 dt
do while……