function-integrale-cartesian-q1.at

来自「这是FreeFem2D的姊妹软件」· AT 代码 · 共 44 行

AT
44
字号
# This file is part of ff3d - http://www.freefem.org/ff3d# Copyright (C) 2005 Stephane Del Pino# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software Foundation,# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  # $Id: function-integrale-cartesian-q1.at,v 1.1 2006/07/23 22:19:23 delpinux Exp $AT_SETUP([Function integrale        (cartesian Q1-FEM)])AT_KEYWORDS (fem)AT_DATA([test.ff],[[vector n = (10,10,10);vector a = (0,0,0);vector b = (1,1,1);mesh m = structured(n,a,b);femfunction f(m) = 1;function integrate = int[x,x+0.5] (f) dx;cout << integrate(0.3,0.5,0.5) << "\n";]])AT_CHECK([$abs_top_builddir/ff3d -V 0 -nw test.ff],0,[[0.5]])AT_CLEANUP

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?