File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 231231 end
232232 end
233233
234+ describe '#lambertw' do
235+ context 'calculation of lambertw -e**-1' do
236+ it 'returns -1' do
237+ f = SymEngine ::lambertw ( -@e **( -1 ) )
238+ expect ( f ) . to eql ( -1 )
239+ end
240+ end
241+ end
242+
243+ describe '#zeta' do
244+ context 'calculation of zeta zero' do
245+ it 'returns minus half' do
246+ f = SymEngine ::zeta ( 0 )
247+ r1 = SymEngine ::Integer . new ( -1 )
248+ r2 = SymEngine ::Integer . new ( 2 )
249+ r = r1 /r2
250+ expect ( f ) . to eql ( r )
251+ end
252+ end
253+ end
254+
255+ describe '#dirichlet_eta' do
256+ context 'calculation of dirichlet_eta 1' do
257+ it 'returns log(2)' do
258+ f = SymEngine ::dirichlet_eta ( 1 )
259+ expect ( f . to_s ) . to eql ( 'log(2)' )
260+ end
261+ end
262+ end
263+
264+ describe '#gamma' do
265+ context 'calculation of gamma 1' do
266+ it 'returns one' do
267+ f = SymEngine ::gamma ( 1 )
268+ expect ( f . to_s ) . to eql ( '1' )
269+ end
270+ end
271+ end
272+
234273 end
235274end
Original file line number Diff line number Diff line change 1- e5852bf07ed6c9a344fea8da4cd5a11b803194e8
2-
1+ 46f54aeafbf2a93be0c8b1d492666f56f0ccbe73
You can’t perform that action at this time.
0 commit comments