2018年8月31日金曜日

Sassにおけるcalc()関数でゼロを除算する方法

Sassにおけるcalc()関数でゼロを除算する方法
if文をつかう
今回、calc関数を使用してゼロを除算しようとした結果見事にハマってしまったのでメモ。
とても素晴らしいメモをMDNが記してくれていたのですが、
コチラのメモにもあるように「ゼロで割った結果はHTMLパーサーで生成されるエラーになります。」と書かれている。

どうやらゼロでは除算できないらしい。
解決策
そこで考えたのが@ifを使用してゼロで除算した結果と同じ値をプロパティとして適用することで実現できました。
@mixin offset($offset-left, $offset-right){
  @if $offset-left == 0 {
    margin-left: 0;
  }
  @if $offset-right == 0 {
    margin-right: 0;
  }
  @if $offset-left != 0 or $offset-right != 0{
    margin-left: calc(100% / (12 / #{$offset-left}));
    margin-right: calc(100% / (12 / #{$offset-right}));
}
こうすることでゼロで除算するのと同じ結果を得られることができました。
ゼロ除算でハマった人は是非参考にしてください。それでは。
Wadacy is portfolio of RYOHEI WADA
© 2018 Wadacy.com
ゼロ除算の発見は日本です:
∞???    
∞は定まった数ではない・
人工知能はゼロ除算ができるでしょうか:

とても興味深く読みました:2014年2月2日 4周年を超えました:
ゼロ除算の発見と重要性を指摘した:日本、再生核研究所


ゼロ除算関係論文・本

\documentclass[12pt]{article}
\usepackage{latexsym,amsmath,amssymb,amsfonts,amstext,amsthm}
\numberwithin{equation}{section}
\begin{document}
\title{\bf  Announcement 409:  Various Publication Projects on the Division by Zero\\
(2018.1.29.)}
\author{{\it Institute of Reproducing Kernels}\\
Kawauchi-cho, 5-1648-16,\\
Kiryu 376-0041, Japan\\
 }
\date{\today}
\maketitle
 The Institute of Reproducing Kernels is dealing with the theory of division by zero calculus and declares that the division by zero was discovered as $0/0=1/0=z/0=0$ in a natural sense on 2014.2.2. The result shows a new basic idea on the universe and space since Aristoteles (BC384 - BC322) and Euclid (BC 3 Century - ), and the division by zero is since Brahmagupta  (598 - 668 ?).
In particular,  Brahmagupta defined as $0/0=0$ in Brhmasphuasiddhnta (628), however, our world history stated that his definition $0/0=0$ is wrong over 1300 years, but, we showed that his definition is suitable.
 For the details, see the references and the site: http://okmr.yamatoblog.net/

We wrote two global book manuscripts \cite{s18} with 154 pages and \cite{so18} with many figures for some general people. Their main points are:

\begin{itemize}

\item The division by zero and division by zero calculus are new elementary and fundamental mathematics in the undergraduate level.

\item They introduce a new space   since Aristoteles (BC384 - BC322) and Euclid (BC 3 Century - ) with many exciting new phenomena and properties with general interest, not specialized and difficult topics. However, their properties are mysterious and very attractive.

\item  The contents are very elementary,  however  very exciting with general interest.

\item The contents give great impacts to our basic ideas on the universe and  human beings.

\end{itemize}

Meanwhile, the representations of the contents are very important and delicate with delicate feelings to the division by zero with a long and mysterious history. Therefore, we hope the representations of the division by zero as follows:

\begin{itemize}

\item

Various book publications by many native languages and with the author's idea and feelings.

\item

Some publications are like arts and some comic style books with pictures.

\item

Some T shirts design, some pictures, monument design may be considered.

\end{itemize}

The authors above may be expected to contribute to our culture,  education, common communications and enjoyments.
\medskip

For the people having the interest on the above projects, we will send our book sources with many figure files.

\medskip

 How will be our project introducing our new world since Euclid?

\medskip

Of course, as mathematicians we have to publish new books on

\medskip

Calculus,  Differential Equations and Complex Analysis, at least and soon, in order to {\bf correct them} in some complete and beautiful ways.

\medskip

Our topics will be interested in over 1000 millions people over the world on the world history.


\bibliographystyle{plain}
\begin{thebibliography}{10}



\bibitem{kmsy}
M. Kuroda, H. Michiwaki, S. Saitoh, and M. Yamane,
New meanings of the division by zero and interpretations on $100/0=0$ and on $0/0=0$,
Int. J. Appl. Math.  {\bf 27} (2014), no 2, pp. 191-198,  DOI: 10.12732/ijam.v27i2.9.

\bibitem{ms16}
T. Matsuura and S. Saitoh,
Matrices and division by zero $z/0=0$,
Advances in Linear Algebra \& Matrix Theory, {\bf 6}(2016), 51-58
Published Online June 2016 in SciRes.   http://www.scirp.org/journal/alamt
\\ http://dx.doi.org/10.4236/alamt.2016.62007.

\bibitem{ms18}
T. Matsuura and S. Saitoh,
Division by zero calculus and singular integrals. (Submitted for publication)

\bibitem{mms18}
T. Matsuura, H. Michiwaki and S. Saitoh,
$\log 0= \log \infty =0$ and applications. Differential and Difference Equations with Applications. Springer Proceedings in Mathematics \& Statistics.

\bibitem{msy}
H. Michiwaki, S. Saitoh and  M.Yamada,
Reality of the division by zero $z/0=0$.  IJAPM  International J. of Applied Physics and Math. {\bf 6}(2015), 1--8. http://www.ijapm.org/show-63-504-1.html

\bibitem{mos}
H. Michiwaki, H. Okumura and S. Saitoh,
 Division by Zero $z/0 = 0$ in Euclidean Spaces,
 International Journal of Mathematics and Computation, {\bf 2}8(2017); Issue  1, 2017), 1-16.


\bibitem{osm}
H. Okumura, S. Saitoh and T. Matsuura, Relations of   $0$ and  $\infty$,
Journal of Technology and Social Science (JTSS), {\bf 1}(2017),  70-77.

\bibitem{os}
H. Okumura and S. Saitoh, The Descartes circles theorem and division by zero calculus. https://arxiv.org/abs/1711.04961 (2017.11.14).

\bibitem{o}
H. Okumura, Wasan geometry with the division by 0. https://arxiv.org/abs/1711.06947 International  Journal of Geometry.

\bibitem{os18}
H. Okumura and S. Saitoh,
Applications of the division by zero calculus to Wasan geometry.
(Submitted for publication).



\bibitem{ps18}
S. Pinelas and S. Saitoh,
Division by zero calculus and differential equations. Differential and Difference Equations with Applications. Springer Proceedings in Mathematics \& Statistics.

\bibitem{romig}
H. G. Romig, Discussions: Early History of Division by Zero,
American Mathematical Monthly, Vol. {\bf 3}1, No. 8. (Oct., 1924), pp. 387-389.



\bibitem{s14}
S. Saitoh, Generalized inversions of Hadamard and tensor products for matrices,  Advances in Linear Algebra \& Matrix Theory.  {\bf 4}  (2014), no. 2,  87--95. http://www.scirp.org/journal/ALAMT/

\bibitem{s16}
S. Saitoh, A reproducing kernel theory with some general applications,
Qian,T./Rodino,L.(eds.): Mathematical Analysis, Probability and Applications - Plenary Lectures: Isaac 2015, Macau, China, Springer Proceedings in Mathematics and Statistics,  {\bf 177}(2016),     151-182. (Springer) .

\bibitem{s17}
S. Saitoh, Mysterious Properties of the Point at Infinity, arXiv:1712.09467 [math.GM](2017.12.17).

\bibitem{s18}
S. Saitoh, Division by zero calculus (154 pages: draft): http//okmr.yamatoblog.net/


\bibitem{so18}
S. Saitoh and H. Okumura, Division by Zero Calculus in Figures --  Our New Space --


\bibitem{ttk}
S.-E. Takahasi, M. Tsukada and Y. Kobayashi,  Classification of continuous fractional binary operations on the real and complex fields,  Tokyo Journal of Mathematics,   {\bf 38}(2015), no. 2, 369-380.



\end{thebibliography}

\end{document}

 List of division by zero:

\bibitem{os18}
H. Okumura and S. Saitoh,
Remarks for The Twin Circles of Archimedes in a Skewed Arbelos by H. Okumura and M. Watanabe, Forum Geometricorum.

Saburou Saitoh, Mysterious Properties of the Point at Infinity、
arXiv:1712.09467 [math.GM]

Hiroshi Okumura and Saburou Saitoh
The Descartes circles theorem and division by zero calculus. 2017.11.14

L. P. Castro and S. Saitoh, Fractional functions and their representations, Complex Anal. Oper. Theory {\bf7} (2013), no. 4, 1049-1063.

M. Kuroda, H. Michiwaki, S. Saitoh, and M. Yamane,
New meanings of the division by zero and interpretations on $100/0=0$ and on $0/0=0$, Int. J. Appl. Math. {\bf 27} (2014), no 2, pp. 191-198, DOI: 10.12732/ijam.v27i2.9.

T. Matsuura and S. Saitoh,
Matrices and division by zero z/0=0,
Advances in Linear Algebra \& Matrix Theory, 2016, 6, 51-58
Published Online June 2016 in SciRes. http://www.scirp.org/journal/alamt
\\ http://dx.doi.org/10.4236/alamt.2016.62007.

T. Matsuura and S. Saitoh,
Division by zero calculus and singular integrals. (Submitted for publication).

T. Matsuura, H. Michiwaki and S. Saitoh,
$\log 0= \log \infty =0$ and applications. (Differential and Difference Equations with Applications. Springer Proceedings in Mathematics \& Statistics.)

H. Michiwaki, S. Saitoh and M.Yamada,
Reality of the division by zero $z/0=0$. IJAPM International J. of Applied Physics and Math. 6(2015), 1--8. http://www.ijapm.org/show-63-504-1.html

H. Michiwaki, H. Okumura and S. Saitoh,
Division by Zero $z/0 = 0$ in Euclidean Spaces,
International Journal of Mathematics and Computation, 28(2017); Issue 1, 2017), 1-16.

H. Okumura, S. Saitoh and T. Matsuura, Relations of $0$ and $\infty$,
Journal of Technology and Social Science (JTSS), 1(2017), 70-77.

S. Pinelas and S. Saitoh,
Division by zero calculus and differential equations. (Differential and Difference Equations with Applications. Springer Proceedings in Mathematics \& Statistics).

S. Saitoh, Generalized inversions of Hadamard and tensor products for matrices, Advances in Linear Algebra \& Matrix Theory. {\bf 4} (2014), no. 2, 87--95. http://www.scirp.org/journal/ALAMT/

S. Saitoh, A reproducing kernel theory with some general applications,
Qian,T./Rodino,L.(eds.): Mathematical Analysis, Probability and Applications - Plenary Lectures: Isaac 2015, Macau, China, Springer Proceedings in Mathematics and Statistics, {\bf 177}(2016), 151-182. (Springer) .
再生核研究所声明371(2017.6.27)ゼロ除算の講演― 国際会議 https://sites.google.com/site/sandrapinelas/icddea-2017 報告


1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12276045402.html
1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12263708422.html
1/0=0、0/0=0、z/0=0

ソクラテス・プラトン・アリストテレス その他


Title page of Leonhard Euler, Vollständige Anleitung zur Algebra, Vol. 1 (edition of 1771, first published in 1770), and p. 34 from Article 83, where Euler explains why a number divided by zero gives infinity.

私は数学を信じない。 アルバート・アインシュタイン / I don't believe in mathematics. Albert Einstein→ゼロ除算ができなかったからではないでしょうか。

ドキュメンタリー 2017: 神の数式 第2回 宇宙はなぜ生まれたのか


〔NHKスペシャル〕神の数式 完全版 第3回 宇宙はなぜ始まったのか


〔NHKスペシャル〕神の数式 完全版 第1回 この世は何からできているのか

NHKスペシャル 神の数式 完全版 第4回 異次元宇宙は存在するか

                                                 
再生核研究所声明 411(2018.02.02):  ゼロ除算発見4周年を迎えて

ゼロ除算の論文

Mysterious Properties of the Point at Infinity

Algebraic division by zero implemented as quasigeometric multiplication by infinity in real and complex multispatial hyperspaces
Author: Jakub Czajko, 92(2) (2018) 171-197
https://img-proxy.blog-video.jp/images?url=http%3A%2F%2Fwww.worldscientificnews.com%2Fwp-content%2Fplugins%2Ffiletype-icons%2Ficons%2F16%2Ffile_extension_pdf.pngWSN 92(2) (2018) 171-197
                                                                                                                                             

ゼロ除算(division by zero)1/0=0、0/0=0、z/0=0

2018年05月28日(月)
テーマ:数学
これは最も簡単な 典型的なゼロ除算の結果と言えます。 ユークリッド以来の驚嘆する、誰にも分る結果では ないでしょうか?

Hiroshi O. Is It Really Impossible To Divide By Zero?. Biostat Biometrics Open Acc J. 2018; 7(1): 555703.  DOI: 10.19080/BBOJ.2018.07.555703
ゼロで分裂するのは本当に不可能ですか? - Juniper Publishers

ダ・ヴィンチの名言 格言|無こそ最も素晴らしい存在
                     
ゼロ除算の発見はどうでしょうか:
Black holes are where God divided by zero:

再生核研究所声明371(2017.6.27)ゼロ除算の講演― 国際会議 
https://ameblo.jp/syoshinoris/entry-12287338180.html

1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12276045402.html
1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12263708422.html
1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12272721615.html
Division By Zero(ゼロ除算)1/0=0、0/0=0、z/0=0
ゼロ除算(ゼロじょざん、division by zero)1/0=0、0/0=0、z/0=0

ソクラテス・プラトン・アリストテレス その他
https://ameblo.jp/syoshinoris/entry-12328488611.html

ドキュメンタリー 2017: 神の数式 第2回 宇宙はなぜ生まれたのか
https://www.youtube.com/watch?v=iQld9cnDli4
〔NHKスペシャル〕神の数式 完全版 第3回 宇宙はなぜ始まったのか
https://www.youtube.com/watch?v=DvyAB8yTSjs&t=3318s
〔NHKスペシャル〕神の数式 完全版 第1回 この世は何からできているのか
https://www.youtube.com/watch?v=KjvFdzhn7Dc
NHKスペシャル 神の数式 完全版 第4回 異次元宇宙は存在するか
https://www.youtube.com/watch?v=fWVv9puoTSs

再生核研究所声明 411(2018.02.02):  ゼロ除算発見4周年を迎えて
https://ameblo.jp/syoshinoris/entry-12348847166.html

再生核研究所声明 416(2018.2.20):  ゼロ除算をやってどういう意味が有りますか。何か意味が有りますか。何になるのですか - 回答
再生核研究所声明 417(2018.2.23):  ゼロ除算って何ですか - 中学生、高校生向き 回答
再生核研究所声明 418(2018.2.24):  割り算とは何ですか? ゼロ除算って何ですか - 小学生、中学生向き 回答
再生核研究所声明 420(2018.3.2): ゼロ除算は正しいですか,合っていますか、信用できますか - 回答

2018.3.18.午前中 最後の講演: 日本数学会 東大駒場、函数方程式論分科会 講演書画カメラ用 原稿
The Japanese Mathematical Society, Annual Meeting at the University of Tokyo. 2018.3.18.
https://ameblo.jp/syoshinoris/entry-12361744016.html より
再生核研究所声明 424(2018.3.29):  レオナルド・ダ・ヴィンチとゼロ除算
再生核研究所声明 427(2018.5.8): 神の数式、神の意志 そしてゼロ除算

Title page of Leonhard Euler, Vollständige Anleitung zur Algebra, Vol. 1 (edition of 1771, first published in 1770), and p. 34 from Article 83, where Euler explains why a number divided by zero gives infinity.
私は数学を信じない。 アルバート・アインシュタイン / I don't believe in mathematics. Albert Einstein→ゼロ除算ができなかったからではないでしょうか。
1423793753.460.341866474681

Einstein's Only Mistake: Division by Zero
God’s most important commandment

never-divide-by-zero-meme-66

Even more important than “thou shalt not eat seafood”
Published by admin, on October 18th, 2011 at 3:47 pm. Filled under: Never Divide By Zero Tags: commandment, Funny, god, zero • Comments Off on God’s most important commandment
http://thedistractionnetwork.com/.../never-divide.../page/4/

1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12276045402.html
1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12263708422.html
1/0=0、0/0=0、z/0=0
http://ameblo.jp/syoshinoris/entry-12272721615.html
Division By Zero(ゼロ除算)1/0=0、0/0=0、z/0=0
ゼロ除算(ゼロじょざん、division by zero)1/0=0、0/0=0、z/0=0

再生核研究所声明371(2017.6.27)ゼロ除算の講演― 国際会議 https://sites.google.com/site/sandrapinelas/icddea-2017 報告

ソクラテス・プラトン・アリストテレス その他
https://ameblo.jp/syoshinoris/entry-12328488611.html

Ten billion years ago DIVISION By ZERO:
https://www.facebook.com/notes/yoshinori-saito/ten-billion-years-ago-division-by-zero/1930645683923690/

One hundred million years ago DIVISION By ZERO
https://www.facebook.com/.../one-hundred-million-years-ago

0 件のコメント:

コメントを投稿